/* ===== 重置与基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #0a0a0a;
    --primary-blue: #1a3a5c;
    --accent-blue: #0066ff;
    --accent-teal: #00d4ff;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-dark: #1e293b;
    --border-color: #334155;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--primary-dark);
    overflow-x: hidden;
    position: relative;
}

/* ===== 首屏翻译防闪烁 =====
   HTML 里写死的默认文案是中文，而默认语言是英文。若等 DOMContentLoaded 才翻译，
   浏览器可能先把中文画出来再替换掉，就是刷新时看到的那一闪。
   做法：<head> 的内联脚本先给 <html> 挂 i18n-pending，翻译完成后由 js/i18n.js 摘掉，
   第一帧就不会画出未翻译的文案。
   背景色同时挂到 html 上，避免隐藏 body 时出现白屏。
   兜底的“强行显示”不写在这里：CSS animation 要靠帧调度推进，标签页在后台不渲染时不会生效，
   所以由 <head> 内联脚本里的 setTimeout 负责（见 index.html / query.html）。 */
html.i18n-pending {
    background-color: var(--primary-dark);
}

html.i18n-pending body {
    visibility: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(26, 58, 92, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

/* Hero 容器特殊处理 */
.hero .container {
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
}

/* 背景图片容器调整 */
.hero-bg-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

/* 左侧黑色背景 */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-teal));
    border-radius: 1px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.language-switch:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.mobile-menu-btn {
    display: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

/* ===== Hero 首屏区 ===== */
.hero {
    position: relative;
    min-height: 70vh;
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 背景图片容器 */
.hero-bg-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 400px;
    display: flex;
    align-items: center;
    padding-top: 0;
    gap: 40px;
}

/* 品牌介绍（在图片上方，靠左） */
.hero-text-overlay {
    flex: 1;
    max-width: 500px;
    padding-right: 40px;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: 0;
    top: 0;
}

/* 右侧占位图片 */
.hero-placeholder-image {
    flex: 0 0 300px;
}

.placeholder-img {
    display: none;
}

/* 虚空占位元素 */
.hero-placeholder-image::after {
    content: '';
    display: block;
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
    background: transparent;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 24px;
    color: var(--accent-blue);
    margin-bottom: 24px;
    font-weight: 500;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

/* 三个品牌图标 */
.hero-brands-overlay {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.brand-icon-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.brand-icon-circle {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    border-radius: 50%;
    font-size: 28px;
    font-weight: 700;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-icon-circle:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.3);
}

/* CCA 为三字母品牌，需更小字号以适应圆形图标 */
.brand-icon-circle.brand-cca {
    font-size: 20px;
    letter-spacing: -0.5px;
}

.brand-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 18px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    font-weight: 500;
}

.section-description {
    font-size: 16px;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 500px;
}

.search-container {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    max-width: 600px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    font-size: 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-lg);
    color: var(--text-dark);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.search-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
}

.search-hint i {
    color: var(--accent-blue);
}

/* 证书预览 */
.certificate-visual {
    display: flex;
    justify-content: center;
}

.preview-card {
    width: 300px;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid #e2e8f0;
}

.preview-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.preview-grade {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

.preview-body {
    padding: 30px;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 40px;
}

.preview-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.info-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.info-value {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

/* ===== 为什么选择 CCA-Grading ===== */
.why-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-title {
    color: var(--text-primary);
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.section-header .section-subtitle {
    color: var(--text-secondary);
    font-size: 20px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-8px);
}

.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.why-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.why-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== 评级的作用 ===== */
.benefits-section {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.benefit-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.benefit-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== 查询页面 ===== */
.query-page {
    padding-top: 100px;
    min-height: 100vh;
}

.query-hero {
    padding: 60px 0;
    text-align: center;
}

.page-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.page-title i {
    color: var(--accent-blue);
    margin-right: 12px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--accent-blue);
    margin-bottom: 12px;
    font-weight: 500;
}

.page-description {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.query-content {
    padding: 40px 0;
}

.query-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.query-form-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.form-label i {
    color: var(--accent-blue);
    margin-right: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-input::placeholder {
    color: var(--text-secondary);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 12px;
}

.form-hint i {
    color: var(--accent-blue);
}

.form-buttons {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* 查询结果预览 */
.query-preview {
    position: relative;
}

.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
}

/* 卡牌详情标题 */
.result-detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.result-detail-title i {
    color: var(--accent-blue);
    font-size: 22px;
}

/* 正反面图片轮播 */
.card-gallery {
    margin-bottom: 24px;
}

.gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* contain 而非 cover：评级卡是竖长图，不能裁切 */
.gallery-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    cursor: zoom-in;
}

/* 右上角放大提示，悬停时显现 */
.gallery-zoom-hint {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.gallery-stage:hover .gallery-zoom-hint {
    opacity: 1;
}

/* ===== 图片放大预览（Lightbox） ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 40px;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(4px);
    overflow: hidden;
}

.lightbox.open {
    display: flex;
}

/* 放大时禁止背景页面滚动 */
body.lightbox-open {
    overflow: hidden;
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
}

.lightbox-figure img {
    max-width: 100%;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    /* 滚轮缩放/拖拽平移时直接跟手，不要过渡动画 */
    transform-origin: center center;
    will-change: transform;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-caption {
    font-size: 14px;
    color: var(--text-secondary);
}

.lightbox-tips {
    margin: 0;
    font-size: 12px;
    color: rgba(148, 163, 184, 0.75);
}

/* 缩放倍率徽标，点击还原 */
.lightbox-zoom-badge {
    position: absolute;
    top: 30px;
    left: 28px;
    padding: 6px 12px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-zoom-badge:hover {
    background: var(--accent-blue);
}

.lightbox-zoom-badge.active {
    background: var(--accent-blue);
}

.lightbox-close,
.lightbox-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.lightbox-nav {
    width: 52px;
    height: 52px;
    font-size: 20px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--accent-blue);
}

.lightbox-nav:hover {
    transform: scale(1.08);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--accent-blue);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.35);
}

.gallery-nav:hover {
    background: var(--accent-teal);
    transform: translateY(-50%) scale(1.08);
}

.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot.active {
    background: var(--accent-blue);
    transform: scale(1.25);
}

.result-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    text-align: left;
}

/* 标签与数值同一行，与设计稿一致 */
.result-info-item {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

/* 卡牌编号是 12 位数字，放单列会被折行拆开，独占一行更稳当，
   顺便让 5 项刚好排成 3 整行、不留空位 */
.result-info-item--full {
    grid-column: 1 / -1;
}

.result-info-label {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.result-info-label::after {
    content: ':';
}

.result-info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

/* 查询说明 */
.instructions-section {
    padding: 80px 0;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.instruction-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.instruction-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
}

.instruction-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.instruction-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.instruction-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== 底部 ===== */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo .logo-text {
    font-size: 36px;
}

.footer-logo .logo-sub {
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.link-group h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-group a:hover {
    color: var(--text-primary);
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* ===== 弹窗 ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: rgba(20, 30, 50, 0.7);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(0, 102, 255, 0.2);
}

.modal-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.close {
    font-size: 28px;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.close:hover {
    color: white;
}

.modal-body {
    padding: 30px;
    color: white;
}

.modal-placeholder {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

.placeholder-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    border: 1px solid #e2e8f0;
}

.placeholder-img {
    width: 100%;
    height: 200px;
    background: #f1f5f9;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.placeholder-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.placeholder-line {
    height: 20px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
}

.placeholder-line:nth-child(1) { width: 80%; }
.placeholder-line:nth-child(2) { width: 60%; }
.placeholder-line:nth-child(3) { width: 70%; }

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
    .why-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .query-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .instructions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero {
        padding: 120px 0 60px;
        min-height: 60vh;
    }
    
    .hero-content {
        padding-top: 40px;
        align-items: center;
    }
    
    .hero-bg-overlay {
        background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 100%);
    }
    
    .hero-text-overlay {
        text-align: center;
        max-width: 100%;
        padding-right: 0;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-brands-overlay {
        justify-content: center;
        gap: 20px;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .why-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .query-grid {
        grid-template-columns: 1fr;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .result-info {
        grid-template-columns: 1fr;
    }
    
    .result-card {
        padding: 24px;
    }
    
    .gallery-stage {
        height: 320px;
        padding: 12px;
    }
    
    .gallery-nav {
        width: 38px;
        height: 38px;
    }
    
    .gallery-prev { left: 8px; }
    .gallery-next { right: 8px; }
    
    .lightbox {
        gap: 8px;
        padding: 16px;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    .lightbox-zoom-badge {
        top: 16px;
        left: 12px;
    }
    
    .lightbox-figure img {
        max-height: calc(100vh - 120px);
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
        padding: 100px 0 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .hero-brands-overlay {
        gap: 15px;
    }
    
    .brand-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .brand-name {
        font-size: 14px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .preview-card {
        width: 100%;
    }
    
    .page-title {
        font-size: 28px;
    }
}
