/* ============================================
   重庆策达税务师事务所 - 共享样式表
   ============================================ */

:root {
    --primary: #1a3a6b;
    --primary-dark: #122850;
    --secondary: #c9a84c;
    --secondary-light: #e0c06a;
    --bg: #f5f7fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #e2e8f0;
    --shadow: 0 4px 20px rgba(26, 58, 107, 0.1);
    --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Noto Sans SC', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* ===== Header ===== */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 50px; width: auto; }
.logo-text { display: flex; flex-direction: column; }
.logo-text .name {
    font-family: 'Noto Serif SC', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}
.logo-text .sub {
    font-size: 11px;
    color: var(--secondary);
    letter-spacing: 2px;
}
.nav { display: flex; gap: 32px; }
.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s;
}
.nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s;
}
.nav a:hover, .nav a.active { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--primary); }
.header-phone { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-light); }
.header-phone i { color: var(--secondary); }

/* ===== Page Hero ===== */
.page-hero {
    position: relative;
    height: 300px;
    background: url('../images/team.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,58,107,0.88) 0%, rgba(18,40,80,0.7) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}
.page-hero-overlay h1 {
    font-family: 'Noto Serif SC', serif;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
}
.page-hero-overlay p {
    font-size: 16px;
    opacity: 0.85;
}

/* ===== Sections ===== */
.section { padding: 80px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
    text-align: center;
    margin-bottom: 16px;
    font-size: 13px;
    letter-spacing: 4px;
    color: var(--secondary);
    text-transform: uppercase;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-family: 'Noto Serif SC', serif;
    font-size: 36px;
    color: var(--primary);
    font-weight: 700;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin: 16px auto 0;
}

/* ===== Services Grid ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid transparent;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(26,58,107,0.15);
    border-top-color: var(--secondary);
}
.service-icon { font-size: 36px; color: var(--secondary); margin-bottom: 20px; }
.service-card h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-light); line-height: 1.8; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-images { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-images img { border-radius: var(--radius); object-fit: cover; height: 200px; width: 100%; }
.about-images img:first-child { grid-column: span 2; height: 240px; }
.about-text h2 { font-family: 'Noto Serif SC', serif; font-size: 32px; color: var(--primary); margin-bottom: 20px; }
.about-text h2 span { color: var(--secondary); }
.about-text p { font-size: 15px; color: var(--text-light); line-height: 2; margin-bottom: 16px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat { text-align: center; padding: 20px; background: var(--bg); border-radius: var(--radius); }
.stat .number { font-size: 32px; font-weight: 700; color: var(--secondary); font-family: 'Noto Serif SC', serif; }
.stat .label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}
.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s; }
.gallery-item.large img { height: 416px; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(26,58,107,0.85));
    color: white;
    padding: 30px 16px 12px;
    font-size: 13px;
    font-weight: 500;
}

/* ===== CTA ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}
.cta-section h2 { font-family: 'Noto Serif SC', serif; font-size: 36px; margin-bottom: 16px; }
.cta-section p { font-size: 16px; opacity: 0.85; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 14px 36px;
    border-radius: 40px;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
}
.cta-btn:hover { background: var(--secondary-light); transform: scale(1.05); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-form { background: var(--white); padding: 36px; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Noto Sans SC', sans-serif;
    transition: border-color 0.3s;
    background: white;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--secondary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 36px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
    font-family: 'Noto Sans SC', sans-serif;
}
.btn-primary:hover { background: var(--primary-dark); }
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.contact-card i { font-size: 24px; color: var(--secondary); margin-top: 4px; }
.contact-card h4 { font-size: 15px; color: var(--primary); margin-bottom: 4px; }
.contact-card p { font-size: 14px; color: var(--text-light); }
.map-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 20px; }
.map-container iframe { width: 100%; height: 300px; border: none; }

/* ===== Footer ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 60px 20px 30px; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-brand .name { font-family: 'Noto Serif SC', serif; font-size: 18px; color: white; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer h4 { color: white; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; font-size: 14px; }
.footer ul li a:hover { color: var(--secondary); }
.footer-contact p { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.footer-contact i { color: var(--secondary); margin-top: 3px; }
.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
}
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 48px; }

/* ===== Mobile ===== */
@media (max-width: 768px) {
    .nav { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); flex-direction: column; gap: 0; box-shadow: var(--shadow); z-index: 999; }
    .nav.open { display: flex; }
    .nav a { padding: 16px 20px; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: block; }
    .page-hero h1 { font-size: 28px; }
    .page-hero { height: 220px; }
    .about-grid { grid-template-columns: 1fr; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item.large { grid-column: span 2; grid-row: span 1; }
    .gallery-item.large img { height: 200px; }
    .section { padding: 50px 20px; }
    .section-title { font-size: 26px; }
    .header-phone { display: none; }
    .team-hero-inner { grid-template-columns: 1fr; }
}