/* ========================================
   公司网站 - 主样式表
   ======================================== */

/* ---------- 变量 ---------- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent: #f59e0b;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- 容器 ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   导航栏
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
    transition: var(--transition);
}

/* 首页 Hero 模式：透明悬浮，白字 */
.header-hero {
    background: transparent;
}
.header-hero .logo .logo-text { color: #fff; }
.header-hero .nav-link { color: rgba(255,255,255,0.9); }
.header-hero .nav-link:hover { color: #fff; }
.header-hero .nav-link.active { color: #fff; }
.header-hero .mobile-toggle { color: #fff; }

/* 滚动后变白 */
.header-hero.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}
.header-hero.scrolled .logo .logo-text { color: var(--text); }
.header-hero.scrolled .nav-link { color: var(--text); }
.header-hero.scrolled .nav-link:hover { color: var(--primary); }
.header-hero.scrolled .mobile-toggle { color: var(--text); }

/* 非首页：始终实体背景 */
.header-solid {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.header-solid .logo .logo-text { color: #fff; }
.header-solid .nav-link { color: rgba(255,255,255,0.85); }
.header-solid .nav-link:hover { color: #fff; }
.header-solid .nav-link.active { color: var(--accent); }
.header-solid .mobile-toggle { color: #fff; }

/* 导航容器 */
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}
.logo-img { height: 36px; width: auto; }
.logo-text { font-size: 18px; font-weight: 700; transition: color 0.3s; }

.nav { display: flex; align-items: center; }
.nav-list {
    display: flex;
    gap: 6px;
}
.nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-link:hover { background: rgba(255,255,255,0.1); }
.nav-link.active { font-weight: 700; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

/* Banner 模式 */
.hero-slider { width: 100%; height: 100%; position: relative; }
.hero-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-default-bg {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e3a5f 100%);
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.7) 100%);
}

/* 视频模式 */
.hero-video {}
.hero-video .hero-slide { opacity: 1; }
.hero-video-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.hero-video-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-video-poster {
    display: none;
}

/* Hero 内容 */
.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 80px;
}
.hero-content-slide {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%;
}
.hero-text { max-width: 600px; }
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 32px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.15s both;
}
.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}
.btn-hero {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}
.btn-hero-primary {
    background: var(--primary);
    color: #fff;
}
.btn-hero-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,99,235,0.4);
}
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-hero-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.hero-logo {
    flex-shrink: 0;
    animation: fadeInRight 0.8s ease 0.4s both;
}
.hero-logo img { max-height: 160px; width: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }

/* Banner 指示器 */
.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}
.hero-dot.active { background: #fff; transform: scale(1.3); }

/* Banner 箭头 */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}
.hero-arrow:hover { background: rgba(255,255,255,0.3); }
.hero-arrow-left { left: 20px; }
.hero-arrow-right { right: 20px; }

/* ========================================
   通用 Section
   ======================================== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.section-desc { color: var(--text-light); font-size: 1.05rem; }

.section-about { background: var(--bg-alt); }
.section-contact { background: var(--bg); }

/* ========================================
   分类卡片
   ======================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.category-card {
    display: block;
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
    text-align: center;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.category-icon { font-size: 40px; margin-bottom: 16px; }
.category-name { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.category-desc { color: var(--text-light); font-size: 14px; margin-bottom: 12px; }
.category-arrow { color: var(--primary); font-size: 14px; opacity: 0; transition: var(--transition); }
.category-card:hover .category-arrow { opacity: 1; }

/* ========================================
   关于我们
   ======================================== */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.about-subtitle {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 13px;
}
.about-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* ========================================
   联系方式
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.contact-card {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
}
.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.contact-icon { font-size: 32px; margin-bottom: 12px; }
.contact-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.contact-card p { color: var(--text-light); font-size: 14px; }

/* ========================================
   页脚
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}
.footer-links { margin-bottom: 16px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: #fff; }

/* ========================================
   动画
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 1024px) {
    .hero-content { flex-direction: column; justify-content: center; text-align: center; }
    .hero-text { max-width: 100%; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons { justify-content: center; }
    .hero-logo img { max-height: 100px; margin-top: 24px; }
    .about-wrapper { grid-template-columns: 1fr; }
    .about-image { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .hero { min-height: 500px; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-arrow { display: none; }
    .btn-hero { padding: 12px 24px; font-size: 14px; }

    .nav-list {
        position: fixed;
        top: 0; right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(15,23,42,0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 24px 24px;
        gap: 4px;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    .nav-list.open { right: 0; }
    .nav-link { color: rgba(255,255,255,0.85) !important; padding: 12px 16px; font-size: 16px; }
    .nav-link:hover { background: rgba(255,255,255,0.1); }
    .mobile-toggle { display: block; }

    .section { padding: 60px 0; }
    .section-title { font-size: 1.6rem; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
}
