/* 云端律师事务所 - 主样式文件 */
/* 设计规范：国际律所风格，深蓝色/高级灰/典雅金配色 */

:root {
    /* 主色调 */
    --primary-color: #1E40AF;      /* 更鲜艳的蓝色 */
    --secondary-color: #F5F7FA;    /* 高级灰色 */
    --accent-color: #C6A15B;       /* 典雅金色 */
    --white: #FFFFFF;
    
    /* 文字颜色 */
    --text-primary: #1E2A3A;       /* 主要文字 */
    --text-secondary: #6B7A8F;     /* 次要文字 */
    --text-light: #8A9BB2;         /* 浅色文字 */
    
    /* 边框和阴影 */
    --border-color: #E1E5EB;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    /* 间距 */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* 字体大小 */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
}

/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: var(--text-primary);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* 排版 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-2xl);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: var(--text-base);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0A1E32;
    border-color: #0A1E32;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: var(--text-lg);
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand h1 {
    font-size: var(--text-2xl);
    margin-bottom: 0;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: var(--text-2xl);
    color: var(--primary-color);
    cursor: pointer;
}

/* 移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    transition: right 0.3s ease;
    padding: var(--space-xl);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--space-xl);
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: var(--text-2xl);
    color: var(--primary-color);
    cursor: pointer;
}

.mobile-nav {
    list-style: none;
}

.mobile-nav li {
    margin-bottom: var(--space-md);
}

.mobile-nav a {
    display: block;
    padding: var(--space-sm) 0;
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav a.active {
    color: var(--accent-color);
}

/* 英雄区域 */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1A365D 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    margin-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-lg);
    color: var(--white);
}

.hero-subtitle {
    font-size: var(--text-2xl);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-2xl);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* 数据统计 */
.stats {
    padding: var(--space-2xl) 0;
    background-color: var(--secondary-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stat-card {
    text-align: center;
    padding: var(--space-xl);
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: var(--text-5xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    font-weight: 500;
}

/* 服务区域 */
.services {
    padding: var(--space-2xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    font-size: var(--text-xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.service-card {
    padding: var(--space-xl);
    background-color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-color);
}

.service-icon {
    font-size: var(--text-5xl);
    color: var(--accent-color);
    margin-bottom: var(--space-lg);
}

.service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.service-link {
    color: var(--accent-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.service-link:hover {
    gap: var(--space-sm);
}

/* 特色优势 */
.features {
    padding: var(--space-2xl) 0;
    background-color: var(--secondary-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    background-color: var(--white);
    border-radius: var(--radius-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: var(--text-4xl);
    color: var(--primary-color);
    margin-bottom: var(--space-lg);
}

.feature-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--primary-color);
}

.feature-description {
    color: var(--text-secondary);
}

/* 页脚 */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: rgba(255, 255, 255, 0.8);
}

.contact-info i {
    color: var(--accent-color);
    margin-top: 0.25rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

/* 响应式设计 */
@media (max-width: 1199px) {
    .services-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    :root {
        --text-5xl: 2.5rem;
        --text-6xl: 3rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-xl);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 var(--space-sm);
    }
}

@media (max-width: 480px) {
    :root {
        --text-5xl: 2rem;
        --text-6xl: 2.5rem;
    }
    
    .hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-lg);
    }
    
    .stat-number {
        font-size: var(--text-4xl);
    }
}
/* ============================================
   律师团队矩阵布局
   ============================================ */

/* 律师网格容器 */
.lawyers-grid {
    display: grid;
    gap: 30px;
    margin: 40px 0;
}

/* 律师卡片 */
.lawyer-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 37, 64, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.lawyer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(10, 37, 64, 0.15);
}

/* 律师头像区域 */
.lawyer-avatar {
    height: 200px;
    background: linear-gradient(135deg, #0A2540 0%, #1a3a5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
}

/* 律师信息区域 */
.lawyer-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lawyer-name {
    font-size: 20px;
    font-weight: 600;
    color: #0A2540;
    margin-bottom: 8px;
}

.lawyer-title {
    color: #C6A15B;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

/* 专业领域标签 */
.lawyer-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.expertise-tag {
    background: #F0F2F5;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
}

/* 律师描述 */
.lawyer-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* 联系按钮 */
.lawyer-contact {
    margin-top: auto;
}

/* ============================================
   响应式矩阵布局
   ============================================ */

/* PC端：3列矩阵 */
@media (min-width: 992px) {
    .lawyers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 平板端：2列矩阵 */
@media (min-width: 768px) and (max-width: 991px) {
    .lawyers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 移动端：1列 */
@media (max-width: 767px) {
    .lawyers-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .lawyer-avatar {
        height: 180px;
        font-size: 56px;
    }
    
    .lawyer-info {
        padding: 20px;
    }
}

/* 小手机端优化 */
@media (max-width: 480px) {
    .lawyer-avatar {
        height: 160px;
        font-size: 48px;
    }
    
    .lawyer-name {
        font-size: 18px;
    }
    
    .lawyer-description {
        font-size: 14px;
    }
}

/* ============================================
   手机端首页导航栏优化
   只在首页隐藏导航菜单，其他页面保持正常
   ============================================ */

/* 首页特定样式 - 通过body.home类识别 */
body.home .mobile-menu-btn {
    display: none !important;
}

body.home .mobile-menu {
    display: none !important;
}

/* 手机端首页导航栏简化 */
@media (max-width: 767px) {
    body.home .navbar {
        justify-content: center !important;
        padding: 10px 0 !important;
    }
    
    body.home .nav-menu {
        display: none !important;
    }
    
    body.home .nav-actions {
        display: none !important;
    }
    
    body.home .nav-brand {
        text-align: center;
        width: 100%;
        margin: 0;
    }
    
    body.home .nav-brand h1 {
        font-size: 18px;
        margin: 0;
        color: #1E40AF; /* 更鲜艳的蓝色 */
        font-weight: 600;
    }
    
    body.home .nav-brand a {
        text-decoration: none;
    }
    
    /* 添加副标题 */
    body.home .nav-brand .site-subtitle {
        font-size: 12px;
        color: #666;
        margin-top: 2px;
        font-weight: normal;
    }
}

/* 其他页面保持原有移动端导航 */
@media (max-width: 767px) {
    body:not(.home) .mobile-menu-btn {
        display: block;
    }
    
    body:not(.home) .navbar {
        justify-content: space-between;
    }
    
    body:not(.home) .nav-brand {
        width: auto;
    }
    
    /* 隐藏手机导航栏的案件评估模块 */
    .mobile-nav li:nth-child(2) {
        display: none;
    }
}

/* ============================================
   16:9数据展示窗口
   ============================================ */

/* 数据展示窗口容器 */
.data-window-section {
    padding: 40px 0;
    background: linear-gradient(135deg, #0A2540 0%, #1a3a5f 100%);
    color: white;
}

.data-window-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 16:9数据窗口 */
.data-window {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    color: #333;
}

/* 16:9比例计算：高度 = 宽度 * 9/16 */
.data-window {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9比例 (9/16=0.5625) */
    height: 0;
}

.data-window-header,
.data-window-content,
.data-window-footer {
    position: absolute;
    left: 0;
    right: 0;
}

/* 窗口头部 */
.data-window-header {
    top: 0;
    height: 60px;
    background: #F5F7FA;
    border-bottom: 1px solid #E1E5EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.data-window-title {
    font-size: 18px;
    font-weight: 600;
    color: #0A2540;
    margin: 0;
}

.data-window-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.data-prev-btn,
.data-next-btn {
    background: white;
    border: 1px solid #E1E5EB;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.data-prev-btn:hover,
.data-next-btn:hover {
    background: #0A2540;
    color: white;
    border-color: #0A2540;
}

.data-slide-indicator {
    display: flex;
    gap: 8px;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E1E5EB;
    cursor: pointer;
    transition: all 0.2s;
}

.slide-dot.active {
    background: #C6A15B;
    transform: scale(1.2);
}

/* 窗口内容区域 */
.data-window-content {
    top: 60px;
    bottom: 50px;
    overflow: hidden;
    position: relative;
}

.data-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.data-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.data-slide-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

.data-main-number {
    font-size: 64px;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 8px;
    line-height: 1;
}

.data-main-label {
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
}

.data-breakdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.breakdown-item {
    text-align: center;
}

.breakdown-number {
    font-size: 24px;
    font-weight: 600;
    color: #0A2540;
    margin-bottom: 4px;
}

.breakdown-label {
    font-size: 14px;
    color: #666;
}

.data-trend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F0F2F5;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.trend-up {
    color: #4CAF50;
}

/* 窗口底部 */
.data-window-footer {
    bottom: 0;
    height: 50px;
    background: #F5F7FA;
    border-top: 1px solid #E1E5EB;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.data-update-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.data-view-all a {
    color: #C6A15B;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
}

.data-view-all a:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .data-window-container {
        padding: 0 12px;
    }
    
    .data-window-header {
        height: 50px;
        padding: 0 16px;
    }
    
    .data-window-title {
        font-size: 16px;
    }
    
    .data-window-content {
        top: 50px;
        bottom: 45px;
        padding: 20px;
    }
    
    .data-main-number {
        font-size: 48px;
    }
    
    .data-main-label {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .data-breakdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .breakdown-number {
        font-size: 20px;
    }
    
    .data-window-footer {
        height: 45px;
        padding: 0 16px;
    }
    
    .data-update-time span {
        font-size: 12px;
    }
    
    .data-view-all a {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .data-main-number {
        font-size: 36px;
    }
    
    .data-main-label {
        font-size: 16px;
    }
    
    .data-breakdown {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .data-window-controls {
        gap: 12px;
    }
    
    .data-prev-btn,
    .data-next-btn {
        width: 32px;
        height: 32px;
    }
}
