/* =========================================================================
   弘朝科技 (Hongchao Tech) - 皇家蓝高端企业级响应式 CSS 样式表 (v3.0)
   设计理念: 皇家深蓝 (Royal Tech Blue) + 玻璃拟态 (Glassmorphic Navy) + 极致移动适配
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* 核心色彩 Token - 蓝色系高端企业风 */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0284c7 100%);
    --accent: #0284c7;
    --accent-light: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.35);
    
    /* 深色与蓝色系背景系统 */
    --dark-navy: #0b132b;
    --dark-bg: #0f172a;
    --header-bg: rgba(15, 23, 42, 0.94);
    --card-bg: #ffffff;
    --light-bg: #f8fafc;
    --surface-bg: #f1f5f9;
    
    /* 文本与边框 */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: rgba(226, 232, 240, 0.8);
    
    /* 投影与圆角 */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 30px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 10px 30px -5px rgba(37, 99, 235, 0.35);
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   全局基础重置与 Mobile 自适应基准
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background-color: var(--light-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
}

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

ul {
    list-style: none;
}

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

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

/* 渐变文本 */
.text-gradient {
    background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================================================
   1. 顶部公告与 皇家蓝高端 Glass Header
   ========================================================================= */
.top-bar {
    background-color: #090d16;
    color: var(--text-light);
    font-size: 13px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-info span {
    margin-right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.top-links span {
    font-size: 12.5px;
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent-light);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    font-weight: 600;
}

/* 皇家蓝高端主导航栏 (Royal Blue Glass Header) */
.main-header {
    background-color: var(--header-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    display: block;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active .nav-link {
    color: #ffffff;
    background: var(--primary-gradient);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

/* 皇家蓝专属 Header CTA 按钮 */
.nav-cta {
    background: rgba(56, 189, 248, 0.15) !important;
    color: var(--accent-light) !important;
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    margin-left: 12px;
    border-radius: 8px;
}

.nav-cta:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
    border-color: transparent !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5) !important;
}

/* 移动端菜单 Toggle 按钮 */
.mobile-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-toggle:active {
    transform: scale(0.95);
}

/* =========================================================================
   2. 视觉轰炸 Hero 英雄展台 Section
   ========================================================================= */
.hero-section {
    background: linear-gradient(135deg, rgba(11, 19, 43, 0.95), rgba(15, 23, 42, 0.9)), url('../images/modern_office_1.jpg') center/cover no-repeat fixed;
    color: white;
    padding: 120px 0 140px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(2, 132, 199, 0) 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: clamp(15px, 2vw, 19px);
    color: #94a3b8;
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* 通用 Button 设计 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 34px;
    min-height: 48px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.45);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.65);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn-outline:hover {
    background-color: white;
    color: var(--dark-navy);
    border-color: white;
    transform: translateY(-3px);
}

/* 浮动统计面板 (Glassmorphism Floating Bar) */
.stats-bar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.15);
    border: 1px solid var(--border-light);
    padding: 36px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    position: relative;
    padding: 0 16px;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--border-color);
}

.stat-item h3 {
    font-size: 38px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
}

/* =========================================================================
   3. 核心功能板块 Header & Layout
   ========================================================================= */
.section {
    padding: 90px 0;
}

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

.section-title .section-subtitle {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title h2 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16.5px;
    line-height: 1.6;
}

/* =========================================================================
   4. 产品卡片与筛选 (Products UX)
   ========================================================================= */
.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    border-radius: 30px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 32px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.14);
    border-color: rgba(37, 99, 235, 0.4);
}

.product-img {
    height: 220px;
    background-color: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.88);
    color: var(--accent-light);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
}

.product-body {
    padding: 26px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-body h3 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.product-body p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.product-specs-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.spec-pill {
    background: #f1f5f9;
    color: var(--text-secondary);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 500;
}

/* =========================================================================
   5. 专家团队与新闻 Cards
   ========================================================================= */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.expert-card {
    background: white;
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition: var(--transition);
}

.expert-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.expert-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-light);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    flex-shrink: 0;
}

.expert-info h4 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.expert-info .position {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(37, 99, 235, 0.08);
    padding: 2px 10px;
    border-radius: 12px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.news-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.news-body {
    padding: 28px;
}

.news-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* =========================================================================
   6. 全局页脚 Footer
   ========================================================================= */
.main-footer {
    background-color: var(--dark-navy);
    color: var(--text-light);
    padding: 70px 0 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-col h4 {
    color: white;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-gradient);
}

.footer-col p, .footer-col ul li {
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

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

.footer-bottom a:hover {
    color: white;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-glow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* =========================================================================
   7. 极致移动端自适应适配 (Mobile Responsive Optimization)
   ========================================================================= */
@media (max-width: 1024px) {
    .hero-section {
        padding: 90px 0 110px 0;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .stat-item:nth-child(2)::after {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .top-bar {
        font-size: 12px;
    }
    .top-info span {
        margin-right: 0;
    }

    /* 移动端侧滑抽屉导航 (Slide Drawer Overlay) */
    .nav-wrapper {
        height: 72px;
    }
    .nav-menu {
        display: flex;
        position: fixed;
        top: 72px;
        left: -100%;
        width: 85%;
        max-width: 320px;
        bottom: 0;
        background-color: #0f172a;
        flex-direction: column;
        padding: 30px 20px;
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
        border-right: 1px solid rgba(255,255,255,0.1);
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
    }
    .nav-menu.show {
        left: 0;
    }
    .nav-link {
        padding: 14px 20px;
        font-size: 16px;
        border-radius: 10px;
    }
    .nav-cta {
        margin-left: 0;
        margin-top: 12px;
        text-align: center;
    }
    .mobile-toggle {
        display: flex;
    }

    .hero-section {
        padding: 60px 0 90px 0;
    }
    .hero-tag {
        font-size: 12.5px;
        padding: 6px 16px;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
    }

    .stats-bar {
        margin-top: -40px;
        padding: 24px 16px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .stat-item::after {
        display: none !important;
    }
    .stat-item h3 {
        font-size: 32px;
    }

    .section {
        padding: 60px 0;
    }
    .section-title {
        margin-bottom: 36px;
    }

    .expert-grid, .news-grid, .product-grid {
        grid-template-columns: 1fr;
    }
    .expert-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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