/* ==========================================================================
   允赫传媒官网样式
   全局变量与基础重置
   ========================================================================== */
:root {
    /* 主色调：深蓝 + 品牌金 */
    --primary: #1a2b4a;
    --primary-light: #2c4373;
    --accent: #f5b94a;
    --accent-dark: #d99a25;
    --bg: #ffffff;
    --bg-alt: #f7f8fb;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 10px 30px rgba(26, 43, 74, 0.08);
    --radius: 12px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

a { color: inherit; text-decoration: none; }
img { width: 100%; height: 100%; object-fit: cover; display: block; }
ul { list-style: none; }

/* 通用容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 通用区块 */
.section {
    padding: 96px 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.section-tag {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary);
}

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

/* 通用按钮 */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 185, 74, 0.35);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

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

.btn-block { width: 100%; }

/* ==========================================================================
   导航栏
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #fff;
    transition: color var(--transition);
}

.navbar.scrolled .logo { color: var(--primary); }

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: var(--accent);
    padding: 4px;
    flex-shrink: 0;
}

.logo-text {
    font-size: 18px;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 36px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

.nav-link:hover, .nav-link.active { color: var(--accent); }

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-link:hover::after, .nav-link.active::after { width: 24px; }

.navbar.scrolled .nav-link { color: var(--text); }
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active { color: var(--accent); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span { background: var(--primary); }

/* ==========================================================================
   首屏 Banner
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.hero-bg, .hero-bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-bg img { object-fit: cover; }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 25, 50, 0.85), rgba(26, 43, 74, 0.65));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(245, 185, 74, 0.6);
    border-radius: 999px;
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 60px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title .accent { color: var(--accent); }

.hero-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 72px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 64px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 32px;
}

.stat-num {
    font-size: 40px;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   关于我们
   ========================================================================== */
.about { background: var(--bg); }

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

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 15.5px;
}

.about-features {
    margin-top: 24px;
}

.about-features li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text);
}

.about-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* ==========================================================================
   核心服务
   ========================================================================== */
.services { background: var(--bg-alt); }

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

.service-card {
    background: #fff;
    padding: 40px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(245, 185, 74, 0.15);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
    font-size: 14.5px;
}

/* ==========================================================================
   新闻资讯
   ========================================================================== */
.news { background: var(--bg-alt); }

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

.news-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    gap: 20px;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 43, 74, 0.12);
}

.news-date {
    flex-shrink: 0;
    text-align: center;
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    height: fit-content;
}

.news-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.news-date .month {
    font-size: 11px;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.7);
}

.news-body h4 {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-body p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.news-more {
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 600;
}

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

/* ==========================================================================
   联系我们
   ========================================================================== */
.contact { background: var(--bg); }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-desc {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.contact-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text-muted);
    font-size: 15px;
}

.contact-list strong {
    color: var(--primary);
    margin-right: 8px;
    font-weight: 600;
}

.contact-form {
    background: var(--bg-alt);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    margin-bottom: 16px;
    transition: border-color var(--transition);
}

.contact-form textarea { resize: vertical; }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-tip {
    margin-top: 12px;
    text-align: center;
    color: var(--accent-dark);
    font-size: 14px;
    min-height: 20px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 64px 0 24px;
}

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

.footer-col h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 10px;
    font-size: 14px;
    transition: color var(--transition);
}

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

.footer-col p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    margin-bottom: 8px;
}

.footer .logo { color: #fff; margin-bottom: 16px; }

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

/* ==========================================================================
   滚动出现动画
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   响应式适配
   ========================================================================== */
@media (max-width: 992px) {
    .hero-title { font-size: 44px; }
    .section { padding: 72px 0; }
    .section-title { font-size: 30px; }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .nav-menu {
        position: fixed;
        top: 72px;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: calc(100vh - 72px);
        flex-direction: column;
        background: #fff;
        padding: 32px 24px;
        gap: 20px;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: right var(--transition);
    }

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

    .nav-menu .nav-link { color: var(--primary); }
    .nav-toggle { display: flex; }

    .hero { min-height: 560px; }
    .hero-title { font-size: 32px; }
    .hero-desc { font-size: 15px; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .stat-num { font-size: 28px; }

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

    .section-title { font-size: 26px; }

    .contact-form { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }

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