/* 
==========
全局变量与重置 
==========
*/
:root {
    /* 律所红色主题，提取自中国传统庄重红 */
    --primary-color: #C00000;
    --primary-light: #E03333;
    --primary-dark: #8c0000;
    
    /* 文本与背景颜色 */
    --text-main: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-light: #f4f6f9;
    --bg-dark: #222222;
    --border-color: #eaeaea;
    
    /* 间距与阴影 */
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 25px rgba(192, 0, 0, 0.15);
    --border-radius: 4px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.section {
    padding: 90px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* 按钮通用样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(192, 0, 0, 0.3);
}

/* 章节头部 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 15px;
}

.subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* 
==========
头部及导航 
==========
*/
.header {
    background-color: var(--bg-white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.3s ease;
}

.header.scrolled .header-container {
    height: 70px;
}

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

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.1;
    letter-spacing: 1px;
}

.logo-text span {
    font-size: 11px;
    color: #888;
    letter-spacing: 1.5px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* 
==========
横幅区 (Hero) 
==========
*/
.hero {
    position: relative;
    height: 100vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 80px; /* offset header */
    background: linear-gradient(135deg, var(--primary-dark) 0%, #3a0000 100%);
}

/* 模拟背景纹理 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: 0 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--bg-white);
}

.hero-content h2 {
    font-size: 54px;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 22px;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* 简单的向上动画 */
.animate-up {
    animation: fadeInUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
==========
律所简介 (About) 
==========
*/
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-main);
    text-indent: 2em;
    line-height: 1.8;
}

.cert-info {
    margin-top: 30px;
    padding: 15px 20px;
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-size: 15px;
    color: var(--text-muted);
}

.cert-info strong {
    color: var(--text-main);
}

.visual-box {
    position: relative;
    padding: 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.visual-box::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    bottom: 15px;
    left: 15px;
    background-color: var(--primary-color);
    opacity: 0.05;
    z-index: -1;
    border-radius: 8px;
}

.visual-inner {
    padding: 40px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    text-align: center;
    border-radius: 4px;
    border: 1px dashed #ccc;
}

.visual-inner h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.visual-inner ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.visual-inner li {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
}

/* 
==========
专业团队 (Team) 
==========
*/
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 0 20px;
}

.team-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-bottom-color: var(--primary-color);
}

.member-avatar {
    margin-bottom: 25px;
}

.avatar-placeholder {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    font-size: 45px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(192, 0, 0, 0.2);
}

.member-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.member-header h3 {
    font-size: 22px;
    color: var(--text-main);
}

.bagde {
    background-color: #fdeaea;
    color: var(--primary-color);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.team-card .title {
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 15px;
}

.team-card hr {
    width: 40px;
    height: 2px;
    background-color: var(--border-color);
    border: none;
    margin: 0 auto 20px;
}

.team-card .desc {
    font-size: 14px;
    color: var(--text-muted);
    text-align: justify;
    line-height: 1.7;
}

/* 
==========
联系我们 (Contact) 
==========
*/
.contact-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-white);
    box-shadow: var(--box-shadow);
    border-radius: 8px;
    padding: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 8px 0 0 8px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: #fcebeb;
    color: var(--primary-color);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.item-content h4 {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: normal;
}

.item-content p {
    font-size: 18px;
    color: var(--text-main);
    font-weight: 500;
}

/* 
==========
页脚 (Footer) 
==========
*/
.footer {
    background-color: var(--bg-dark);
    color: #a0a0a0;
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-logo h2 {
    color: var(--bg-white);
    font-size: 24px;
    margin-bottom: 5px;
}

.footer-logo p {
    font-size: 12px;
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-links a {
    color: #a0a0a0;
}

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

.sep {
    color: #444;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
}

.icp-box {
    margin-top: 10px;
}

.icp-box a {
    color: #888;
}

.icp-box a:hover {
    color: var(--bg-white);
}

/* 
==========
响应式布局 
==========
*/
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.4s ease;
        box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    }
    
    .header.scrolled .nav-links {
        top: 70px;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .nav-links li a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links li a::after {
        display: none;
    }
    
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .hero-content h2 {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text span {
        font-size: 9px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .contact-card {
        padding: 30px 20px;
    }
}
