/* 广东兰凯律师事务所 - 网站样式 */
/* 主色调：清华大学紫色系 */

:root {
    --primary-purple: #4B0082;
    --dark-purple: #2E0052;
    --light-purple: #6A0DAD;
    --accent-purple: #7B1E5A;
    --bg-white: #FFFFFF;
    --bg-light: #F8F8F8;
    --bg-gray: #F0F0F0;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border-color: #E0E0E0;
    --gold: #C9A96E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-purple);
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    color: #fff;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.2;
}

.logo-text p {
    font-size: 11px;
    opacity: 0.8;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* 导航菜单 */
.nav {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav li {
    position: relative;
}

.nav li a {
    display: block;
    padding: 12px 22px;
    color: rgba(255,255,255,0.9);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav li a:hover,
.nav li a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-bottom-color: var(--gold);
}

/* 下拉菜单 */
.nav li .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 3px solid var(--gold);
}

.nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav li .dropdown a {
    color: var(--text-dark);
    padding: 12px 20px;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
    border-bottom-color: transparent;
}

.nav li .dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary-purple);
}

/* Banner区域 */
.banner {
    margin-top: 110px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 50%, var(--dark-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>');
    background-size: 80px 80px;
    opacity: 0.5;
}

.banner-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.banner-content h2 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 8px;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.8;
    margin-bottom: 30px;
}

.banner-content .btn-primary {
    display: inline-block;
    padding: 12px 40px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    font-size: 15px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-content .btn-primary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* 内容区域通用样式 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h3 {
    font-size: 28px;
    font-weight: 400;
    color: var(--primary-purple);
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.section-title .line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto;
}

.section-title p {
    color: var(--text-gray);
    margin-top: 15px;
    font-size: 14px;
}

/* 首页 - 关于我们预览 */
.about-preview {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h4 {
    font-size: 22px;
    color: var(--primary-purple);
    margin-bottom: 20px;
    font-weight: 400;
}

.about-text p {
    color: var(--text-gray);
    line-height: 2;
    margin-bottom: 15px;
    text-align: justify;
}

.about-text .btn-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.about-text .btn-more:hover {
    background: var(--primary-purple);
    color: #fff;
}

.about-image {
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* 业务领域 */
.practice-areas {
    background: var(--bg-white);
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.practice-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.practice-card:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 5px 25px rgba(75,0,130,0.1);
    transform: translateY(-5px);
}

.practice-card .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-purple);
    transition: all 0.3s ease;
}

.practice-card:hover .icon {
    background: var(--primary-purple);
    color: #fff;
}

.practice-card h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 500;
}

.practice-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* 专业团队预览 */
.team-preview {
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: var(--bg-white);
    text-align: center;
    padding: 40px 30px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.team-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-color: var(--border-color);
}

.team-card .photo {
    width: 160px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 20px;
    background: #e8e0ee;
    border: 3px solid var(--bg-light);
    transition: all 0.3s ease;
}

.team-card:hover .photo {
    border-color: var(--primary-purple);
}

.team-card h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 500;
}

.team-card .title {
    font-size: 13px;
    color: var(--primary-purple);
    margin-bottom: 12px;
}

.team-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* 新闻中心预览 */
.news-preview {
    background: var(--bg-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.news-card .news-image {
    height: 180px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.03);
}

.news-card .news-content {
    padding: 25px;
}

.news-card .news-date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.news-card h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.4;
}

.news-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* 页脚 */
.footer {
    background: var(--dark-purple);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 500;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.6);
}

.footer-column h5 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* 内页通用样式 */
.page-banner {
    margin-top: 110px;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.page-banner h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 6px;
}

.page-banner p {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 10px;
}

.page-content {
    padding: 60px 0;
}

/* 关于我们页面 */
.about-section {
    background: var(--bg-white);
}

.about-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 60px;
}

.about-intro p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 2;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.feature-item {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-purple);
    box-shadow: 0 5px 20px rgba(75,0,130,0.08);
}

.feature-item .number {
    font-size: 36px;
    font-weight: 300;
    color: var(--primary-purple);
    margin-bottom: 10px;
}

.feature-item h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
}

.feature-item p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* 业务领域页面 */
.practice-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.practice-item {
    padding: 40px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-purple);
    transition: all 0.3s ease;
}

.practice-item:hover {
    background: var(--bg-white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.practice-item h4 {
    font-size: 18px;
    color: var(--primary-purple);
    margin-bottom: 15px;
    font-weight: 500;
}

.practice-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 专业团队页面 */
.team-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.lawyer-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.lawyer-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.lawyer-card .lawyer-photo {
    height: 360px;
    overflow: hidden;
    background: #e8e0ee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lawyer-card .lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s ease;
}

.lawyer-card:hover .lawyer-photo img {
    transform: scale(1.02);
}

.lawyer-card .lawyer-info {
    padding: 25px;
}

.lawyer-card .lawyer-info h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 500;
}

.lawyer-card .lawyer-info .position {
    font-size: 13px;
    color: var(--primary-purple);
    margin-bottom: 12px;
}

.lawyer-card .lawyer-info p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* 新闻列表页面 */
.news-list {
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.news-item:hover {
    padding-left: 10px;
}

.news-item .news-date-box {
    min-width: 80px;
    text-align: center;
    padding: 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.news-item .news-date-box .day {
    font-size: 28px;
    font-weight: 300;
    color: var(--primary-purple);
    line-height: 1;
}

.news-item .news-date-box .month {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 5px;
}

.news-item .news-body h4 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
}

.news-item .news-body p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}

.news-item .news-thumb {
    width: 200px;
    height: 130px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-item .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.news-item .news-body .tag {
    display: inline-block;
    padding: 3px 12px;
    background: var(--bg-light);
    color: var(--primary-purple);
    font-size: 12px;
    margin-top: 10px;
    border: 1px solid var(--border-color);
}

/* 后台管理登录 */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-purple) 100%);
}

.login-box {
    background: #fff;
    padding: 50px;
    width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.login-box h3 {
    text-align: center;
    font-size: 22px;
    color: var(--primary-purple);
    margin-bottom: 30px;
    font-weight: 400;
    letter-spacing: 2px;
}

.login-box .form-group {
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.login-box input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    transition: border-color 0.3s ease;
    outline: none;
}

.login-box input:focus {
    border-color: var(--primary-purple);
}

.login-box button {
    width: 100%;
    padding: 14px;
    background: var(--primary-purple);
    color: #fff;
    border: none;
    font-size: 15px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-box button:hover {
    background: var(--dark-purple);
}

/* 后台管理面板 */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 260px;
    background: var(--dark-purple);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
}

.admin-sidebar .sidebar-header {
    padding: 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.admin-sidebar .sidebar-header h4 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
}

.admin-sidebar .sidebar-header p {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 5px;
}

.admin-sidebar .sidebar-menu {
    list-style: none;
    padding: 15px 0;
}

.admin-sidebar .sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.admin-sidebar .sidebar-menu li a:hover,
.admin-sidebar .sidebar-menu li a.active {
    background: rgba(255,255,255,0.05);
    color: #fff;
    border-left-color: var(--gold);
}

.admin-sidebar .sidebar-menu li a .icon {
    width: 20px;
    margin-right: 12px;
    text-align: center;
}

.admin-main {
    flex: 1;
    margin-left: 260px;
    background: var(--bg-light);
    min-height: 100vh;
}

.admin-header {
    background: #fff;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.admin-header h4 {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 13px;
    color: var(--text-gray);
}

.admin-header .user-info a {
    color: var(--primary-purple);
}

.admin-content {
    padding: 30px;
}

/* 后台卡片 */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    padding: 25px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.stat-card h5 {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 10px;
    font-weight: 400;
}

.stat-card .number {
    font-size: 28px;
    font-weight: 300;
    color: var(--primary-purple);
}

/* 后台表格 */
.data-table {
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table th {
    background: var(--bg-light);
    font-weight: 500;
    color: var(--text-dark);
    font-size: 13px;
}

.data-table td {
    color: var(--text-gray);
}

.data-table tr:hover td {
    background: var(--bg-light);
}

.data-table .actions a {
    color: var(--primary-purple);
    font-size: 13px;
    margin-right: 15px;
}

.data-table .actions a:hover {
    text-decoration: underline;
}

/* 后台按钮 */
.btn {
    display: inline-block;
    padding: 10px 25px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-purple);
    color: #fff;
}

.btn-primary:hover {
    background: var(--dark-purple);
}

.btn-secondary {
    background: var(--bg-gray);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
}

/* 后台表单 */
.admin-form {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--border-color);
    max-width: 800px;
}

.admin-form .form-group {
    margin-bottom: 25px;
}

.admin-form label {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    transition: border-color 0.3s ease;
    outline: none;
    font-family: inherit;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
    border-color: var(--primary-purple);
}

.admin-form textarea {
    min-height: 150px;
    resize: vertical;
}

.admin-form .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        padding: 10px 0;
    }
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav li a {
        padding: 8px 15px;
        font-size: 13px;
    }
    .banner {
        margin-top: 150px;
        height: 350px;
    }
    .banner-content h2 {
        font-size: 28px;
    }
    .practice-grid,
    .team-grid,
    .news-grid,
    .about-features,
    .practice-detail,
    .team-detail {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .section {
        padding: 50px 0;
    }
    .admin-sidebar {
        width: 100%;
        position: relative;
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-layout {
        flex-direction: column;
    }
    .stat-cards {
        grid-template-columns: 1fr;
    }
}

/* 隐藏后台入口 */
.admin-hidden {
    display: none !important;
}

/* 关于我们详情卡片 */
.about-detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.about-detail-card {
    padding: 35px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary-purple);
    transition: all 0.3s ease;
}

.about-detail-card:hover {
    background: var(--bg-white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.about-detail-card h4 {
    color: var(--primary-purple);
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 500;
}

.about-detail-card p {
    color: var(--text-gray);
    line-height: 2;
    font-size: 14px;
    text-align: justify;
}

@media (max-width: 768px) {
    .about-detail-section {
        grid-template-columns: 1fr;
    }
}

/* ========== 移动端汉堡菜单 ========== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* ========== Header 滚动效果 ========== */
.header-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.header-scrolled .header-main {
    padding: 10px 0;
}

/* ========== 回到顶部按钮 ========== */
#backToTop {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--primary-purple);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(75,0,130,0.3);
}

#backToTop:hover {
    background: var(--dark-purple);
    transform: translateY(-3px);
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
}

/* ========== 滚动淡入动画 ========== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== 律师专长标签 ========== */
.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.specialty-tag {
    display: inline-block;
    padding: 3px 12px;
    background: var(--bg-light);
    color: var(--primary-purple);
    font-size: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.lawyer-card:hover .specialty-tag {
    background: var(--primary-purple);
    color: #fff;
    border-color: var(--primary-purple);
}

/* ========== 移动端响应式补充 ========== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-main {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--dark-purple);
        flex-direction: column;
        padding: 10px 0;
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }

    .nav-open {
        display: flex;
    }

    .nav li a {
        padding: 14px 25px;
        border-bottom: none;
        font-size: 15px;
    }

    .nav li a:hover,
    .nav li a.active {
        background: rgba(255,255,255,0.1);
        border-bottom: none;
    }

    .banner {
        margin-top: 80px;
        height: 320px;
    }

    .banner-content h2 {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .page-banner {
        margin-top: 80px;
        height: 200px;
    }

    .page-banner h2 {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .section {
        padding: 40px 0;
    }

    .practice-grid,
    .team-grid,
    .news-grid,
    .about-features,
    .practice-detail,
    .team-detail {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .news-item {
        flex-direction: column;
        gap: 15px;
    }

    .news-item .news-thumb {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .admin-sidebar {
        width: 100%;
        position: relative;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-layout {
        flex-direction: column;
    }

    .stat-cards {
        grid-template-columns: 1fr;
    }

    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .practice-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-content {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
