/* ===== 华纳万宝路企业官网样式表 =====
   轻量、移动端优先、秒级加载
*/

:root {
    --primary: #0d47a1;
    --primary-dark: #002171;
    --primary-light: #5472d3;
    --accent: #ff6f00;
    --accent-light: #ffa040;
    --text: #212529;
    --text-light: #495057;
    --text-muted: #6c757d;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #0a192f;
    --border: #dee2e6;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --max-width: 1200px;
    --transition: 0.25s ease;
}

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

button {
    font-family: inherit;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== 按钮组件 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 71, 161, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    text-decoration: none;
}

.btn-light {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-light:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ===== 头部导航 ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.125rem;
}

.logo a:hover {
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 800;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.main-nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 0.5rem;
}

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

/* ===== 首屏 Hero ===== */
.hero {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(10, 25, 47, 0.82), rgba(13, 71, 161, 0.85)), url('../images/hero-office.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.hero-title small {
    display: block;
    font-size: 1.125rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.75rem;
    letter-spacing: 1px;
}

.keyword-core {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 700px;
    margin-bottom: 2rem;
    opacity: 0.92;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-meta strong {
    color: var(--accent-light);
}

/* ===== 通用标题 ===== */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.section-title.left {
    text-align: left;
}

.section-title.left::after {
    left: 0;
    transform: none;
}

.section-title.light {
    color: #fff;
}

.section-title.light::after {
    background: #fff;
}

.section-desc {
    text-align: center;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.05rem;
}

/* ===== 联系卡片区 ===== */
.contact-cards {
    padding: 5rem 0;
    background: var(--bg-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    border-top: 4px solid var(--primary);
}

.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    word-break: break-all;
}

.card-note {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.link-action {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    border: none;
    background: transparent;
    font-size: 1rem;
    padding: 0;
}

.link-action:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== 业务范围 ===== */
.services {
    padding: 5rem 0;
    background: #fff;
}

.service-list {
    display: grid;
    gap: 1.5rem;
}

.service-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 1.75rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: background var(--transition);
}

.service-item:hover {
    background: #e9eef5;
}

.service-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.25;
    line-height: 1;
}

.service-title {
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.service-item p {
    color: var(--text-light);
    grid-column: 2;
}

/* ===== 关于我们 ===== */
.about-preview {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split-layout.reverse {
    direction: rtl;
}

.split-layout.reverse > * {
    direction: ltr;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.about-subtitle {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    object-fit: cover;
}

/* ===== 文章资讯 ===== */
.articles {
    padding: 5rem 0;
    background: #fff;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.article-card {
    padding: 1.75rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-top: 3px solid var(--accent);
    transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.article-title {
    font-size: 1.125rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    font-weight: 600;
    color: var(--accent);
}

.read-more:hover {
    color: var(--primary-dark);
}

/* ===== 图片展示 ===== */
.gallery {
    padding: 5rem 0;
    background: var(--bg-light);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 0.95rem;
}

/* ===== FAQ ===== */
.faq {
    padding: 5rem 0;
    background: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
}

.faq-item dt {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.faq-item dd {
    color: var(--text-light);
}

/* ===== CTA ===== */
.cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    text-align: center;
}

.cta p {
    max-width: 700px;
    margin: 0 auto 1.75rem;
    opacity: 0.92;
    font-size: 1.1rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== 页脚 ===== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-title {
    color: #fff;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-brand p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-contact {
    color: var(--accent-light);
    font-weight: 500;
}

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

.footer-links li {
    margin-bottom: 0.5rem;
}

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

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

.footer-keywords p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0.5rem;
}

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

/* ===== 页面内页横幅 ===== */
.page-banner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ===== 关于页额外样式 ===== */
.about-section {
    padding: 5rem 0;
    background: #fff;
}

.team-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.team-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}

.team-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    font-size: 1.75rem;
    font-weight: 700;
}

.team-card h3 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.team-card h5 {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.features {
    padding: 5rem 0;
    background: #fff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.feature-box {
    padding: 1.75rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.feature-box h3 {
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== 网站地图页 ===== */
.sitemap-section {
    padding: 5rem 0;
    background: #fff;
}

.sitemap-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.sitemap-list li a {
    display: block;
    padding: 1.25rem 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
    transition: background var(--transition), transform var(--transition);
}

.sitemap-list li a:hover {
    background: #e9eef5;
    transform: translateX(4px);
    text-decoration: none;
}

.sitemap-list h3 {
    color: var(--primary-dark);
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
}

.sitemap-list p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.keyword-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.sitemap-contact {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    text-align: center;
}

.sitemap-contact p {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.sitemap-contact strong {
    color: var(--primary-dark);
}

/* ===== 复制提示 ===== */
.copy-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: #fff;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
        padding: 1.5rem;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        min-height: auto;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .split-layout,
    .split-layout.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .split-layout.reverse > * {
        direction: ltr;
    }

    .service-item {
        grid-template-columns: 1fr;
    }

    .service-number {
        margin-bottom: 0.5rem;
    }

    .service-item p {
        grid-column: 1;
    }

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

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-content {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .info-card,
    .team-card,
    .feature-box,
    .article-card {
        padding: 1.5rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }
}
