/* =========================================================
   ShanHeCMS 前台样式 — 深蓝科技风设计系统
   深色背景 + 蓝色光效 + 渐变 + 玻璃拟态 + 微动画
   ========================================================= */

/* ── CSS Variables ── */
:root {
    /* 主色调 */
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #06b6d4;
    --accent: #8b5cf6;

    /* 深色背景层次 */
    --bg-darkest: #060818;
    --bg-dark: #0a0e27;
    --bg-card: #111634;
    --bg-card-hover: #161c42;
    --bg-elevated: #1a2148;

    /* 文字色 */
    --text-primary: #f1f5f9;
    --text-secondary: #ffffff;
    --text-muted: #e2e8f0;

    /* 边框色 */
    --border: rgba(255,255,255,0.08);
    --border-hover: rgba(59,130,246,0.3);

    /* 渐变 */
    --gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    --gradient-text: linear-gradient(135deg, #60a5fa 0%, #06b6d4 100%);

    /* 发光 */
    --glow-blue: 0 0 40px rgba(59,130,246,0.15);
    --glow-cyan: 0 0 40px rgba(6,182,212,0.15);

    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.5);
    --shadow-glow: 0 8px 32px rgba(59,130,246,0.2);

    /* 旧变量兼容 */
    --dark: var(--bg-dark);
    --gray: var(--text-secondary);
    --light: var(--bg-card);
    --white: var(--text-primary);
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-darkest);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(59,130,246,0.3); color: #fff; }

/* 全局滚动条 */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,0.5); }

/* ── Misc inline images ── */
.logo-img { height: 40px; filter: brightness(0) invert(1); }
.footer-logo-img { height: 40px; filter: brightness(0) invert(1); margin-bottom: 20px; }

/* ── Animated Background ── */
.bg-animated { position: fixed; inset: 0; z-index: -1; background: var(--bg-darkest); overflow: hidden; }
.bg-animated::before {
    content: ''; position: absolute; top: -30%; left: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    border-radius: 50%; animation: float1 20s ease-in-out infinite;
}
.bg-animated::after {
    content: ''; position: absolute; bottom: -20%; right: -10%; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
    border-radius: 50%; animation: float2 25s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(60px,40px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px,-30px); } }

/* ── Header ── */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(6,8,24,0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}
.header.scrolled { background: rgba(6,8,24,0.95); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; color: #fff; }
.logo-icon {
    width: 40px; height: 40px; background: var(--gradient);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; box-shadow: 0 4px 12px rgba(59,130,246,0.4);
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
    font-size: 15px; font-weight: 500; color: var(--text-secondary);
    position: relative; padding: 8px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav a:hover { color: #fff; background: rgba(59,130,246,0.1); }
.nav a.active { color: var(--primary-light); background: rgba(59,130,246,0.15); }
.nav-cta {
    background: var(--gradient); color: #fff !important; padding: 9px 22px !important;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(59,130,246,0.4); }
.header-right { display: flex; align-items: center; gap: 12px; }
.search-toggle {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border);
    background: rgba(255,255,255,0.05); cursor: pointer; display: flex;
    align-items: center; justify-content: center; font-size: 18px;
    transition: all 0.2s; color: var(--text-secondary);
}
.search-toggle:hover { background: rgba(59,130,246,0.15); color: var(--primary-light); border-color: var(--border-hover); }
.hamburger {
    display: none; width: 38px; height: 38px; border: 1px solid var(--border);
    background: rgba(255,255,255,0.05); border-radius: 10px; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.hamburger span { display: block; width: 18px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s; }

/* ── Search Modal ── */
.search-overlay { display: none; position: fixed; inset: 0; background: rgba(6,8,24,0.8); z-index: 2000; backdrop-filter: blur(8px); }
.search-overlay.show { display: flex; align-items: flex-start; justify-content: center; padding-top: 120px; }
.search-box {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; width: 100%; max-width: 640px; margin: 0 24px;
    overflow: hidden; box-shadow: var(--shadow-lg);
}
.search-input-wrap { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.search-input-wrap svg { flex-shrink: 0; color: var(--text-secondary); }
.search-input-wrap input {
    flex: 1; border: none; outline: none; font-size: 18px; padding: 8px 16px;
    color: var(--text-primary); background: transparent;
}
.search-input-wrap input::placeholder { color: var(--text-muted); }
.search-close {
    flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--border);
    background: rgba(255,255,255,0.05); border-radius: 8px; cursor: pointer;
    font-size: 16px; color: var(--text-secondary); margin-left: 12px;
}
.search-results { max-height: 480px; overflow-y: auto; }
.search-result-item {
    display: flex; align-items: center; gap: 16px; padding: 14px 20px;
    border-bottom: 1px solid var(--border); transition: background 0.2s; cursor: pointer;
}
.search-result-item:hover { background: rgba(59,130,246,0.08); }
.search-result-item:last-child { border-bottom: none; }
.search-result-img { width: 60px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-elevated); }
.search-result-img img { width: 100%; height: 100%; object-fit: cover; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-meta { font-size: 13px; color: var(--text-secondary); }
.search-result-empty { padding: 40px 20px; text-align: center; color: var(--text-secondary); font-size: 15px; }
.search-footer { padding: 12px 20px; background: rgba(0,0,0,0.2); font-size: 13px; color: var(--text-muted); display: flex; gap: 16px; }
.search-footer span { display: flex; align-items: center; gap: 4px; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.75); }
.breadcrumb a { color: rgba(255,255,255,0.75); transition: color 0.2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: 0.5; }
.breadcrumb-light a { color: rgba(255,255,255,0.75); }
.breadcrumb-light a:hover { color: #fff; }
.breadcrumb-light .breadcrumb-sep { opacity: 0.5; }
.breadcrumb-current { color: #fff; }

/* ── Hero Section ── */
.hero {
    padding: 140px 0 80px; position: relative; overflow: hidden;
    background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-dark) 100%);
}
.hero::before {
    content: ''; position: absolute; top: -20%; right: -10%; width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(59,130,246,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
    border-radius: 20px; font-size: 13px; font-weight: 500; color: var(--primary-light); margin-bottom: 24px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--primary-light); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-content h1 {
    font-size: 52px; font-weight: 800; line-height: 1.2; margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-content .hero-highlight {
    background: var(--gradient-text); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p { font-size: 18px; color: var(--text-secondary); margin-bottom: 36px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
    background: var(--gradient); color: #fff; border-radius: 10px;
    font-weight: 600; font-size: 16px; transition: all 0.3s;
    box-shadow: 0 4px 14px rgba(59,130,246,0.3); border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(59,130,246,0.45); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
    background: rgba(255,255,255,0.05); color: var(--text-primary);
    border: 1px solid var(--border); border-radius: 10px;
    font-weight: 600; font-size: 16px; transition: all 0.3s; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--primary-light); color: var(--primary-light); background: rgba(59,130,246,0.08); }
.hero-visual { position: relative; }
.hero-card {
    background: rgba(17,22,52,0.8); backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: 20px;
    box-shadow: var(--shadow-lg); padding: 30px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg); transition: transform 0.5s;
}
.hero-card:hover { transform: perspective(1000px) rotateY(0deg) rotateX(0deg); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.hero-stat {
    text-align: center; padding: 20px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--border);
    border-radius: 12px; transition: all 0.3s;
}
.hero-stat:hover { border-color: var(--border-hover); background: rgba(59,130,246,0.05); }
.hero-stat-num { font-size: 32px; font-weight: 800; background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat-label { font-size: 13px; color: var(--text-secondary); }

/* Hero code window */
.hero-code-window {
    background: rgba(6,8,24,0.9); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; margin-bottom: 20px;
}
.hero-code-header {
    display: flex; align-items: center; gap: 6px; padding: 10px 16px;
    border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.3);
}
.hero-code-dot { width: 12px; height: 12px; border-radius: 50%; }
.hero-code-dot.red { background: #ef4444; }
.hero-code-dot.yellow { background: #eab308; }
.hero-code-dot.green { background: #22c55e; }
.hero-code-body { padding: 20px; font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 13px; line-height: 1.8; }
.hero-code-line { display: flex; gap: 16px; }
.hero-code-num { color: var(--text-muted); width: 20px; text-align: right; flex-shrink: 0; }
.hero-code-content { color: var(--text-secondary); }
.hero-code-content .keyword { color: #c084fc; }
.hero-code-content .string { color: #34d399; }
.hero-code-content .func { color: var(--primary-light); }
.hero-code-content .comment { color: var(--text-muted); }

/* ── Sections ── */
.section { padding: 100px 0; position: relative; }
.section-gray { background: rgba(255,255,255,0.015); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-title {
    font-size: 38px; font-weight: 700; margin-bottom: 16px; color: #fff;
}
.section-sub { font-size: 17px; color: var(--text-secondary); }
.section-label {
    display: inline-block; padding: 6px 16px;
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
    color: var(--primary-light); border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 16px;
}

/* ── Banner Slider ── */
.banner-slider { position: relative; height: 600px; overflow: hidden; }
.banner-slider .swiper { width: 100%; height: 100%; }
.banner-slider .swiper-slide { display: flex; align-items: center; position: relative; }
.banner-slide-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-elevated) 100%);
}
.banner-slide-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.banner-content { position: relative; z-index: 1; color: #fff; text-align: center; max-width: 800px; margin: 0 auto; padding: 0 24px; width: 100%; }
.banner-content h2 { font-size: 48px; font-weight: 800; margin-bottom: 20px; }
.banner-content p { font-size: 20px; opacity: 0.85; margin-bottom: 32px; }
.banner-slider .swiper-pagination-bullet { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.3); opacity: 1; }
.banner-slider .swiper-pagination-bullet-active { background: var(--primary-light); width: 32px; border-radius: 6px; }
.banner-slider .swiper-pagination { bottom: 24px; }

/* ── Services ── */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 36px 24px; text-align: center;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient); opacity: 0; transition: opacity 0.3s;
}
.service-card:hover {
    transform: translateY(-8px); border-color: var(--border-hover);
    background: var(--bg-card-hover); box-shadow: var(--shadow-glow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    font-size: 28px; transition: all 0.3s;
}
.service-card:hover .service-icon {
    background: var(--gradient); border-color: transparent;
    box-shadow: 0 8px 24px rgba(59,130,246,0.3);
}
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: #fff; }
.service-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.service-card .service-link {
    display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500;
    color: var(--primary-light); transition: gap 0.2s;
}
.service-card:hover .service-link { gap: 8px; }

/* ── Tech Stack ── */
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tech-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 24px 12px; text-align: center; transition: all 0.3s;
}
.tech-item:hover {
    border-color: var(--border-hover); background: var(--bg-card-hover);
    transform: translateY(-4px); box-shadow: var(--shadow-sm);
}
.tech-icon { font-size: 36px; margin-bottom: 8px; }
.tech-name { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

/* ── Process / Development Flow ── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 32px 24px; text-align: center;
    transition: all 0.3s; position: relative;
}
.process-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-4px); }
.process-num {
    width: 48px; height: 48px; margin: 0 auto 16px;
    background: var(--gradient); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 800; color: #fff;
    box-shadow: 0 4px 12px rgba(59,130,246,0.3);
}
.process-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; color: #fff; }
.process-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.process-arrow {
    position: absolute; top: 50%; right: -16px; transform: translateY(-50%);
    color: var(--primary-light); font-size: 24px; opacity: 0.4;
}

/* ── Stats / Counters ── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-card {
    text-align: center; padding: 40px 20px;
    background: rgba(255,255,255,0.02); border: 1px solid var(--border);
    border-radius: 16px; transition: all 0.3s;
}
.stat-card:hover { border-color: var(--border-hover); background: rgba(59,130,246,0.05); }
.stat-num {
    font-size: 48px; font-weight: 800;
    background: var(--gradient-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1.2;
}
.stat-label { font-size: 15px; color: var(--text-secondary); margin-top: 8px; }
.stat-icon { font-size: 32px; margin-bottom: 12px; }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 32px; transition: all 0.3s; position: relative;
}
.testimonial-card:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.testimonial-quote {
    font-size: 40px; line-height: 1; color: rgba(59,130,246,0.2);
    font-family: Georgia, serif; margin-bottom: 16px;
}
.testimonial-text { font-size: 15px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gradient); display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: 15px; font-weight: 600; color: #fff; }
.testimonial-role { font-size: 13px; color: var(--text-muted); }

/* ── Team ── */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; transition: all 0.3s;
}
.team-card:hover { transform: translateY(-8px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.team-img { height: 260px; overflow: hidden; background: var(--bg-elevated); }
.team-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s; }
.team-card:hover .team-img img { transform: scale(1.05); }
.team-body { padding: 20px; text-align: center; }
.team-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; color: #fff; }
.team-body p { font-size: 14px; color: var(--primary-light); font-weight: 500; }

/* ── Products ── */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; transition: all 0.3s; display: block;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.product-img { height: 200px; overflow: hidden; background: var(--bg-elevated); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.product-card:hover .product-img img { transform: scale(1.05); }
.product-body { padding: 24px; }
.product-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: #fff; }
.product-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { margin-top: 16px; font-size: 20px; font-weight: 700; color: var(--primary-light); }

/* ── News ── */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; transition: all 0.3s; display: block;
}
.news-card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.news-img { height: 200px; overflow: hidden; background: var(--bg-elevated); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-body { padding: 24px; }
.news-date { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.news-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; line-height: 1.5; color: #fff; transition: color 0.2s; }
.news-title:hover { color: var(--primary-light); }
.news-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px;
    font-size: 15px; transition: all 0.2s;
}
.pagination a { border: 1px solid var(--border); color: var(--text-primary); background: var(--bg-card); }
.pagination a:hover { border-color: var(--primary-light); color: var(--primary-light); background: rgba(59,130,246,0.08); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .disabled { color: var(--text-muted); pointer-events: none; }

/* ── Links Bar ── */
.links-bar { padding: 40px 0; background: var(--bg-darkest); border-top: 1px solid var(--border); }
.links-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.links-bar a {
    padding: 10px 24px; background: rgba(255,255,255,0.03);
    border: 1px solid var(--border); color: var(--text-secondary);
    border-radius: 8px; font-size: 14px; transition: all 0.3s;
}
.links-bar a:hover { background: rgba(59,130,246,0.1); border-color: var(--border-hover); color: var(--primary-light); }

/* ── Footer ── */
.footer {
    background: var(--bg-darkest); color: rgba(255,255,255,0.6);
    padding: 80px 0 30px; border-top: 1px solid var(--border);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 50px; }
.footer-brand h3 { font-size: 22px; color: #fff; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.5); transition: color 0.3s; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 24px; text-align: center;
    font-size: 14px; display: flex; flex-direction: column; gap: 8px;
}
.footer-bottom-links { display: flex; gap: 16px; justify-content: center; margin-top: 8px; }
.footer-bottom-links a { color: rgba(255,255,255,0.5); }
.footer-bottom-links a:hover { color: var(--primary-light); }

/* ── Page Hero (sub pages) ── */
.page-hero {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-elevated));
    color: #fff; padding: 120px 0 60px; text-align: center;
    border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 40px; font-weight: 700; margin-bottom: 12px; }
.page-hero-sub { opacity: 0.7; font-size: 15px; margin-top: 12px; }
.about-text { font-size: 17px; line-height: 2; color: var(--text-secondary); }
.about-text p { margin-bottom: 20px; }
.about-text img { max-width: 100%; border-radius: 12px; margin: 24px 0; }

/* ── Article detail ── */
.article-content { font-size: 17px; line-height: 2; color: var(--text-secondary); }
.article-content p { margin-bottom: 20px; }
.article-content img { max-width: 100%; border-radius: 12px; margin: 24px 0; }
.article-content h2, .article-content h3 { font-weight: 700; color: #fff; margin: 32px 0 16px; }

/* ── Cases Grid ── */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; overflow: hidden; transition: all 0.3s;
    box-shadow: var(--shadow-sm); display: block;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(59,130,246,0.15); border-color: var(--border-hover); }
.case-img { height: 200px; overflow: hidden; background: var(--bg-elevated); }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.case-card:hover .case-img img { transform: scale(1.05); }
.case-body { padding: 24px; }
.case-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.case-title { font-size: 17px; font-weight: 600; color: #fff; margin-bottom: 10px; line-height: 1.4; }
.case-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 12px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.case-tag { padding: 2px 10px; background: rgba(59,130,246,0.1); color: var(--primary-light); border-radius: 20px; font-size: 12px; }

/* ── Index case card ── */
.index-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.index-case-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
    display: block; transition: all 0.3s; text-decoration: none;
}
.index-case-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(59,130,246,0.15); border-color: var(--border-hover); }
.index-case-img { height: 180px; overflow: hidden; background: var(--bg-elevated); }
.index-case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.index-case-card:hover .index-case-img img { transform: scale(1.05); }
.index-case-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; opacity: 0.2; }
.index-case-body { padding: 20px; }
.index-case-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.index-case-title { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 8px; line-height: 1.4; }
.index-case-excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.index-more-wrap { text-align: center; margin-top: 40px; }
.index-more-btn {
    display: inline-block; padding: 12px 32px;
    border: 1px solid var(--primary-light); color: var(--primary-light);
    border-radius: 8px; font-weight: 600; font-size: 15px; transition: all 0.3s; background: transparent;
}
.index-more-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── CTA Section ── */
.cta-section {
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-elevated));
    color: #fff; text-align: center; padding: 80px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59,130,246,0.1) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.cta-section p { font-size: 18px; opacity: 0.8; margin-bottom: 32px; }
.cta-section .btn-primary { background: #fff; color: var(--primary); padding: 16px 48px; font-size: 18px; box-shadow: 0 4px 20px rgba(255,255,255,0.2); }
.cta-section .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,255,255,0.3); }

/* ── Contact page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form-title { font-size: 24px; font-weight: 600; margin-bottom: 24px; color: #fff; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text-primary); }
.form-input {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--border); border-radius: 8px; font-size: 15px;
    color: var(--text-primary); background: var(--bg-card);
    transition: all 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); background: var(--bg-card-hover); }
.form-input::placeholder { color: var(--text-muted); }
textarea.form-input { resize: vertical; font-family: inherit; }
.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row .form-input { flex: 1; }
.captcha-img { height: 40px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; flex-shrink: 0; }
.captcha-refresh { font-size: 12px; color: var(--primary-light); cursor: pointer; display: inline-block; margin-top: 6px; }
.form-submit {
    padding: 14px 40px; background: var(--gradient); color: #fff;
    border: none; border-radius: 10px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.form-submit:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(59,130,246,0.3); }
.contact-info-title { font-size: 24px; font-weight: 600; margin-bottom: 24px; color: #fff; }
.contact-info-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; }
.contact-info-item { margin-bottom: 24px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-label { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.contact-info-value { font-size: 18px; font-weight: 600; color: #fff; }
.form-alert-success { padding: 16px 24px; background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); border-radius: 8px; color: #4ade80; margin-bottom: 24px; }
.form-alert-error { padding: 12px 16px; background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); border-radius: 8px; color: #f87171; margin-bottom: 20px; }

/* ── About page ── */
.about-text-wrap { max-width: 900px; margin: 0 auto; font-size: 16px; color: var(--text-secondary); line-height: 2; }
.about-contact-bar { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 40px; margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-contact-item { text-align: center; }
.about-contact-icon { font-size: 28px; margin-bottom: 10px; }
.about-contact-label { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.about-contact-value { font-size: 16px; font-weight: 600; color: #fff; }

/* ── Article detail page ── */
.article-cover { margin-bottom: 32px; border-radius: 12px; overflow: hidden; }
.article-cover img { width: 100%; max-height: 400px; object-fit: cover; }
.article-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-back a { color: var(--primary-light); font-weight: 500; }

/* ── Product detail page ── */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.product-cover-wrap { border-radius: 16px; overflow: hidden; background: var(--bg-elevated); }
.product-cover-wrap img { width: 100%; display: block; }
.product-cover-placeholder { border-radius: 16px; height: 400px; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; font-size: 80px; }
.product-detail-name { font-size: 32px; font-weight: 700; margin-bottom: 20px; color: #fff; }
.product-detail-desc { font-size: 16px; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }
.product-price-box { margin-bottom: 32px; }
.product-price-label { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.product-price-value { font-size: 36px; font-weight: 800; color: var(--primary-light); }
.product-price-original { font-size: 16px; color: var(--text-muted); text-decoration: line-through; margin-top: 4px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.product-tag { padding: 6px 16px; border-radius: 20px; font-size: 13px; }
.product-tag-featured { background: rgba(234,179,8,0.1); color: #eab308; font-weight: 600; }
.product-tag-stock { background: rgba(34,197,94,0.1); color: #4ade80; }
.product-tag-out { background: rgba(239,68,68,0.1); color: #f87171; }
.product-tag-category { background: rgba(59,130,246,0.1); color: var(--primary-light); }
.product-consult-btn { display: inline-flex; padding: 16px 48px; font-size: 18px; }
.product-consult-hint { margin-top: 16px; font-size: 13px; color: var(--text-secondary); }
.product-detail-section { margin-top: 80px; padding-top: 60px; border-top: 1px solid var(--border); }
.product-detail-section h3 { font-size: 24px; font-weight: 700; margin-bottom: 32px; color: #fff; }
.product-back { margin-top: 60px; padding-top: 32px; border-top: 1px solid var(--border); }
.product-back a { color: var(--primary-light); font-weight: 500; }

/* ── Case detail page ── */
.case-header {
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.1));
    border-bottom: 1px solid var(--border); padding: 80px 0;
}
.case-header-inner { max-width: 900px; margin: 0 auto; padding: 0 20px; color: #fff; }
.case-header-meta { font-size: 13px; opacity: 0.7; margin-bottom: 12px; }
.case-header-title { font-size: 32px; font-weight: 700; margin-bottom: 16px; }
.case-header-date { font-size: 13px; opacity: 0.6; }
.case-detail-section { padding: 50px 0; }
.case-detail-inner { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.case-info-bar { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 32px; display: flex; gap: 30px; flex-wrap: wrap; }
.case-info-label { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.case-info-value { font-size: 14px; color: #fff; }
.case-info-value a { color: var(--primary-light); word-break: break-all; }
.case-detail-content { font-size: 16px; line-height: 2; color: var(--text-secondary); min-height: 400px; }
.case-back { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--border); text-align: center; }
.case-back a { display: inline-block; padding: 10px 30px; background: var(--primary); color: #fff; border-radius: 6px; font-size: 14px; }

/* ── Search page ── */
.search-tabs { display: flex; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; border-bottom: 2px solid var(--border); padding-bottom: 0; }
.search-tab { padding: 10px 24px; border-radius: 8px 8px 0 0; font-size: 15px; font-weight: 500; transition: all 0.2s; color: var(--text-secondary); }
.search-tab-active { background: var(--bg-card); color: var(--primary-light); border: 2px solid var(--border); border-bottom-color: var(--bg-card); margin-bottom: -2px; }
.search-tab-count { background: rgba(255,255,255,0.05); padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.search-empty { text-align: center; padding: 80px 0; }
.search-empty-icon { font-size: 64px; margin-bottom: 24px; opacity: 0.2; }
.search-empty-title { font-size: 24px; font-weight: 600; margin-bottom: 12px; color: #fff; }
.search-empty-text { color: var(--text-secondary); }
.search-empty-text a { color: var(--primary-light); }
.search-section { margin-bottom: 60px; }
.search-section-title { font-size: 20px; font-weight: 600; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); color: #fff; }
.search-section-count { font-size: 14px; color: var(--text-secondary); font-weight: 400; }
.search-more { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }

/* ── Empty state ── */
.empty-state { text-align: center; color: var(--text-muted); padding: 60px 0; }
.empty-text { text-align: center; color: var(--text-muted); font-size: 15px; padding: 60px 0; }

/* ── Container widths ── */
.container-narrow { max-width: 800px; margin: 0 auto; }
.container-narrow-lg { max-width: 900px; margin: 0 auto; }

/* ── Honeypot (anti-spam) ── */
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Honors Page ── */
.honors-page { padding: 60px 0; }
.honors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-top: 30px; }
.honor-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.2s; }
.honor-card:hover { transform: translateY(-2px); border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.honor-img-wrap { height: 180px; overflow: hidden; background: var(--bg-elevated); display: flex; align-items: center; justify-content: center; }
.honor-img { width: 100%; height: 100%; object-fit: cover; }
.honor-info { padding: 16px; }
.honor-title { font-size: 15px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.honor-meta { display: flex; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.honor-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Jobs Page ── */
.jobs-page { padding: 60px 0; }
.jobs-list { max-width: 900px; margin: 30px auto 0; }
.job-card { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; transition: all 0.2s; text-decoration: none; color: inherit; }
.job-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-sm); }
.job-title { font-size: 17px; font-weight: 600; color: #fff; margin: 0 0 8px; }
.job-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.job-tag { display: inline-block; padding: 2px 10px; font-size: 12px; color: var(--text-secondary); background: rgba(255,255,255,0.05); border-radius: 4px; }
.job-salary { font-size: 18px; font-weight: 700; color: #f87171; white-space: nowrap; margin-left: 20px; }

/* ── Job Detail ── */
.job-detail-page { padding: 60px 0; }
.job-detail { max-width: 800px; margin: 0 auto; }
.job-detail-header { margin-bottom: 30px; }
.job-detail-title { font-size: 24px; font-weight: 700; color: #fff; margin: 0 0 12px; }
.job-detail-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--text-secondary); }
.job-detail-salary { color: #f87171; font-weight: 700; font-size: 16px; }
.job-detail-body h2 { font-size: 18px; font-weight: 600; color: #fff; margin: 30px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--primary); }
.job-detail-content { font-size: 14px; line-height: 1.8; color: var(--text-secondary); }
.job-detail-content p { margin: 8px 0; }
.job-detail-content ul, .job-detail-content ol { padding-left: 20px; margin: 8px 0; }
.job-detail-footer { display: flex; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); }
.btn-back { display: inline-block; padding: 10px 24px; border: 1px solid var(--border); border-radius: 6px; color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: all 0.2s; }
.btn-back:hover { background: rgba(255,255,255,0.05); border-color: var(--border-hover); }
.btn-apply { display: inline-block; padding: 10px 24px; background: var(--primary); color: #fff; border-radius: 6px; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.btn-apply:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ── Page Title ── */
.page-title { font-size: 28px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 10px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-btns { justify-content: center; }
    .hero-visual { display: none; }
    .services-grid, .team-grid, .products-grid, .news-grid, .cases-grid,
    .index-case-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .tech-grid { grid-template-columns: repeat(3, 1fr); }
    .process-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .process-arrow { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .hamburger { display: flex; }
    .hero-content h1 { font-size: 32px; }
    .hero-content p { font-size: 16px; }
    .section-title { font-size: 26px; }
    .section { padding: 60px 0; }
    .services-grid, .team-grid, .products-grid, .news-grid, .cases-grid,
    .index-case-grid, .testimonials-grid, .tech-grid, .process-grid, .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .banner-content h2 { font-size: 28px; }
    .banner-content p { font-size: 16px; }
    .banner-slider { height: 400px; }
    .product-detail-grid { grid-template-columns: 1fr !important; }
    .contact-grid { grid-template-columns: 1fr !important; }
    .about-contact-bar { grid-template-columns: 1fr !important; }
    .stat-num { font-size: 36px; }
    .hero-stats { grid-template-columns: 1fr; }
}

/* ── Mobile Nav Drawer ── */
.mobile-nav {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: var(--bg-dark); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md); z-index: 999; padding: 16px; flex-direction: column; gap: 4px;
}
.mobile-nav.show { display: flex; }
.mobile-nav a { padding: 12px 16px; border-radius: 8px; font-size: 16px; font-weight: 500; color: var(--text-primary); transition: all 0.2s; }
.mobile-nav a:hover { background: rgba(59,130,246,0.1); color: var(--primary-light); }
.mobile-nav-cta { color: var(--primary-light) !important; font-weight: 600 !important; }

/* ── Scroll Reveal Animation ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Glow effect on hover for key elements ── */
.glow-hover { transition: all 0.3s; }
.glow-hover:hover { box-shadow: 0 0 30px rgba(59,130,246,0.2); }
