/* ========================================
   全局样式 - fhwow.cn 安防保障风
   藏蓝 + 深灰 + 银白配色方案
   ======================================== */

:root {
    --primary-blue: #0a1628;
    --secondary-blue: #1a2a4a;
    --accent-blue: #2d4a7c;
    --dark-gray: #2a2a2a;
    --medium-gray: #4a4a4a;
    --light-gray: #6a6a6a;
    --silver-white: #e8e8e8;
    --pure-white: #ffffff;
    --border-color: #3a4a5a;
    --hover-blue: #3d5a8c;
    --shadow-color: rgba(10, 22, 40, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background-color: var(--primary-blue);
    color: var(--silver-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   顶部导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(180deg, var(--primary-blue) 0%, rgba(10, 22, 40, 0.95) 100%);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.header.scrolled {
    background: linear-gradient(180deg, var(--secondary-blue) 0%, rgba(26, 42, 74, 0.98) 100%);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 45px;
    width: auto;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: var(--pure-white);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    font-size: 15px;
    font-weight: 500;
    color: var(--silver-white);
    padding: 8px 0;
    position: relative;
    display: inline-block;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pure-white);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--pure-white);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--pure-white);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   横向时间轴悬浮布局
   ======================================== */
.timeline-section {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.timeline-container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--primary-blue);
}

.timeline-container::-webkit-scrollbar {
    height: 8px;
}

.timeline-container::-webkit-scrollbar-track {
    background: var(--primary-blue);
    border-radius: 4px;
}

.timeline-container::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

.timeline-item {
    flex: 0 0 350px;
    scroll-snap-align: start;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--dark-gray) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--pure-white) 0%, var(--accent-blue) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.timeline-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--accent-blue);
}

.timeline-item:hover::before {
    opacity: 1;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--hover-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.timeline-icon img {
    width: 32px;
    height: 32px;
}

.timeline-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--pure-white);
    margin-bottom: 12px;
}

.timeline-desc {
    font-size: 14px;
    color: var(--light-gray);
    line-height: 1.8;
}

/* ========================================
   全屏 Banner
   ======================================== */
.hero-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--dark-gray) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: bold;
    color: var(--pure-white);
    margin-bottom: 20px;
    letter-spacing: 3px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--silver-white);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-btn {
    display: inline-block;
    padding: 16px 45px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--hover-blue) 100%);
    color: var(--pure-white);
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-btn:hover {
    background: transparent;
    border-color: var(--pure-white);
    transform: translateY(-3px);
}

/* ========================================
   核心优势板块
   ======================================== */
.advantages-section {
    padding: 100px 0;
    background: var(--secondary-blue);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: bold;
    color: var(--pure-white);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--light-gray);
    max-width: 700px;
    margin: 0 auto;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.advantage-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-gray) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-color);
    border-color: var(--accent-blue);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--hover-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon img {
    width: 40px;
    height: 40px;
}

.advantage-card h3 {
    font-size: 22px;
    color: var(--pure-white);
    margin-bottom: 12px;
}

.advantage-card p {
    font-size: 14px;
    color: var(--light-gray);
    line-height: 1.8;
}

/* ========================================
   快速入口
   ======================================== */
.quick-access {
    padding: 80px 0;
    background: var(--primary-blue);
}

.access-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.access-item {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--dark-gray) 100%);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
}

.access-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--hover-blue) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.access-item:hover::before {
    opacity: 0.9;
}

.access-item:hover {
    transform: scale(1.05);
}

.access-icon {
    position: relative;
    z-index: 2;
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.access-icon img {
    width: 100%;
    height: 100%;
}

.access-text {
    position: relative;
    z-index: 2;
    font-size: 18px;
    font-weight: 600;
    color: var(--pure-white);
}

/* ========================================
   资讯列表
   ======================================== */
.news-section {
    padding: 100px 0;
    background: var(--secondary-blue);
}

.news-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.news-tab {
    font-size: 16px;
    font-weight: 600;
    color: var(--light-gray);
    padding: 10px 25px;
    border-radius: 30px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-tab.active,
.news-tab:hover {
    color: var(--pure-white);
    border-color: var(--accent-blue);
    background: var(--accent-blue);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-gray) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow-color);
    border-color: var(--accent-blue);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--light-gray);
    margin-bottom: 10px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pure-white);
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-excerpt {
    font-size: 14px;
    color: var(--light-gray);
    line-height: 1.8;
    margin-bottom: 15px;
}

.news-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-blue);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.news-link:hover {
    color: var(--pure-white);
}

/* ========================================
   页脚
   ======================================== */
.footer {
    background: linear-gradient(180deg, var(--primary-blue) 0%, #050a14 100%);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo-text {
    font-size: 26px;
    font-weight: bold;
    color: var(--pure-white);
    letter-spacing: 2px;
}

.footer-desc {
    font-size: 14px;
    color: var(--light-gray);
    line-height: 1.8;
    max-width: 350px;
}

.footer-links h4 {
    font-size: 18px;
    color: var(--pure-white);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--pure-white);
}

.footer-contact p {
    font-size: 14px;
    color: var(--light-gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    text-align: center;
}

.footer-copyright {
    font-size: 13px;
    color: var(--light-gray);
}

/* ========================================
   内页通用样式
   ======================================== */
.page-header {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--pure-white);
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--light-gray);
}

.page-content {
    padding: 80px 0;
}

/* ========================================
   动画效果
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1024px) {
    .access-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-blue);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        gap: 25px;
        transition: left 0.4s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .timeline-container {
        gap: 20px;
    }
    
    .timeline-item {
        flex: 0 0 280px;
    }
    
    .access-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-tabs {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .timeline-item {
        flex: 0 0 260px;
        padding: 20px;
    }
}
