/* ========== 基础样式 ========== */
:root {
    --primary: #06b6d4; /* Cyan 500 */
    --primary-dark: #0891b2; /* Cyan 600 */
    --primary-light: #ecfeff; /* Cyan 50 */
    --success: #10B981;
    --dark: #0f172a; /* Slate 900 */
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.5);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--white);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); text-decoration: none; }

/* ========== 导航栏 ========== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: 70px; background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}
.navbar-transparent { background: transparent; border-bottom: 1px solid transparent; }
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 30px;
    height: 100%;
    display: grid; grid-template-columns: 1fr auto 1fr;
    align-items: center; gap: 20px;
}
.nav-brand {
    grid-column: 1; justify-self: start;
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--gray-900);
}
.brand-icon { font-size: 28px; filter: drop-shadow(0 0 10px rgba(6,182,212,0.3)); }
.brand-text { font-size: 20px; font-weight: 700; letter-spacing: -0.5px; }
.navbar-transparent .brand-text { color: var(--white); }

.nav-search {
    grid-column: 2; justify-self: center;
    width: clamp(300px, 50vw, 600px);
    opacity: 0; animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

.nav-search-form {
    display: flex; align-items: center;
    background: var(--gray-100); border-radius: 100px;
    border: 1px solid transparent; overflow: hidden;
    transition: all 0.3s;
}
.nav-search-form:focus-within {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}
.nav-search-form input {
    flex: 1; padding: 10px 20px; border: none; outline: none;
    background: transparent; font-size: 14px; color: var(--gray-900);
}
.nav-search-form button {
    padding: 10px 20px; background: none; border: none;
    color: var(--gray-500); cursor: pointer; transition: color 0.2s;
}
.nav-search-form button:hover { color: var(--primary); }
.nav-search-form button svg { width: 18px; height: 18px; display: block; }

.nav-menu { display: flex; gap: 20px; margin-left: auto; }
.nav-link {
    padding: 8px 16px; color: var(--gray-600); text-decoration: none;
    border-radius: 100px; font-size: 15px; font-weight: 500; transition: all 0.2s;
}
.nav-link:hover { color: var(--primary); background: rgba(6, 182, 212, 0.05); }
.nav-link.active { color: var(--primary); background: rgba(6, 182, 212, 0.1); }

/* ========== 首页样式 - 高端科技风 ========== */
.page-home {
    background: #0B1121; /* Deep Space Blue */
    overflow: hidden;
    color: var(--white);
}
.page-home .navbar { background: transparent; border-bottom: 1px solid rgba(255,255,255,0.05); }
.page-home .navbar .brand-text { color: var(--white); }
.page-home .navbar .nav-link { color: rgba(255,255,255,0.7); }
.page-home .navbar .nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.page-home .footer { display: none; }

.home-main {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; overflow: hidden;
    padding-top: 60px;
}

/* ===== 震撼背景 ===== */
.home-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 100%);
}

/* 星空 - 更细腻 */
.stars {
    position: absolute; inset: 0;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1.5px 1.5px at 160px 120px, rgba(255,255,255,0.6), transparent);
    background-size: 550px 550px;
    animation: starsMove 120s linear infinite;
    opacity: 0.4;
}
@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-550px); }
}

/* 地球光环 - 科技蓝 */
.earth-glow {
    position: absolute;
    bottom: -50%; left: 50%;
    width: 150vw; height: 100vw;
    transform: translateX(-50%);
    background: radial-gradient(ellipse at 50% 0%, 
        rgba(6, 182, 212, 0.2) 0%,
        rgba(6, 182, 212, 0.1) 20%,
        rgba(6, 182, 212, 0.01) 50%,
        transparent 70%);
    pointer-events: none;
}

/* 数据流Canvas */
#dataFlow {
    position: absolute; inset: 0;
    opacity: 0.4;
    mix-blend-mode: screen;
}

/* ===== 内容区域 ===== */
.home-content {
    position: relative; z-index: 2;
    width: 100%; max-width: 900px;
    text-align: center; padding: 0 24px;
    display: flex; flex-direction: column; align-items: center;
}

/* 主标题 */
.home-hero { margin-bottom: 60px; }

.hero-title {
    font-size: 0; margin: 0 0 20px 0;
    line-height: 1.1;
}
.title-line { display: inline-block; }
.hero-title .char {
    display: inline-block;
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    color: transparent;
    background: linear-gradient(135deg, #fff 20%, #22d3ee 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(6,182,212,0.3));
    letter-spacing: -0.02em;
    animation: charReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    margin: 0 0.05em;
}
/* 英文等语言词组间距 */
.lang-en .hero-title .char,
.lang-ja .hero-title .char,
.lang-ko .hero-title .char,
.lang-es .hero-title .char,
.lang-fr .hero-title .char,
.lang-de .hero-title .char,
.lang-pt .hero-title .char,
.lang-ru .hero-title .char,
.lang-ar .hero-title .char {
    margin: 0 0.15em;
}
.hero-title .char:nth-child(1) { animation-delay: 0.1s; }
.hero-title .char:nth-child(2) { animation-delay: 0.2s; }
.hero-title .char:nth-child(3) { animation-delay: 0.3s; }
.hero-title .char:nth-child(4) { animation-delay: 0.4s; }
.hero-title .char:nth-child(5) { animation-delay: 0.5s; }

@keyframes charReveal {
    0% { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(10px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) drop-shadow(0 0 30px rgba(6,182,212,0.3)); }
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 400;
    color: rgba(148, 163, 184, 0.8); /* Slate 400 */
    letter-spacing: 0.5em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 0.6s both;
}

/* ===== 搜索框 ===== */
.home-search {
    width: 100%;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease 0.4s both;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-form { width: 100%; display: flex; justify-content: center; }

.search-box {
    display: flex; align-items: center;
    width: 100%; max-width: 720px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 8px 8px 8px 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-box:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}
.search-box:focus-within {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2), 0 20px 40px rgba(0,0,0,0.4);
}

.search-box input {
    flex: 1;
    padding: 16px 0;
    background: transparent;
    border: none; outline: none;
    font-size: 18px;
    color: #fff;
    font-weight: 300;
}
.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.btn-search {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    border: none; border-radius: 18px;
    color: #fff;
    font-size: 16px; font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}
.btn-search svg { width: 20px; height: 20px; stroke-width: 2.5; }
.btn-search:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
    transform: translateY(-1px);
}
.btn-search:active { transform: translateY(0); }

/* ===== 数据指标 ===== */
.home-metrics {
    display: flex; justify-content: center;
    gap: clamp(40px, 6vw, 100px);
    animation: fadeInUp 1s ease 0.8s both;
}

.metric {
    display: flex; flex-direction: column; align-items: center;
    position: relative;
}
.metric::after {
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
    z-index: -1; pointer-events: none;
}

.metric-value {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}
.metric-value .small { font-size: 0.6em; opacity: 0.8; font-weight: 400; }

.metric-label {
    font-size: 13px;
    color: rgba(148, 163, 184, 0.8);
    margin-top: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ========== 搜索结果页 ========== */
.page-search { background: var(--gray-50); }
.search-main { flex: 1; padding: 90px 20px 40px; }

/* 搜索布局 - 左侧边栏 + 右侧内容 */
.search-layout {
    display: flex;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

/* 左侧边栏 */
.search-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
}

.sidebar-inner {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.sidebar-section {
    padding: 20px;
    border-bottom: 1px solid var(--gray-100);
}
.sidebar-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

/* 统计区域 */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    padding: 24px 20px;
}
.stats-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 4px;
}
.stats-label {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}
.stats-time {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
}

/* 筛选选项 */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 单选按钮样式 */
.filter-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}
.filter-radio:hover {
    background: var(--gray-50);
}
.filter-radio input[type="radio"] {
    display: none;
}
.radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}
.filter-radio input[type="radio"]:checked + .radio-mark {
    border-color: var(--primary);
}
.filter-radio input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}
.radio-label {
    font-size: 14px;
    color: var(--gray-700);
}
.filter-radio input[type="radio"]:checked ~ .radio-label {
    color: var(--primary);
    font-weight: 500;
}

/* 复选框样式 */
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}
.filter-checkbox:hover {
    background: var(--gray-50);
}
.filter-checkbox input[type="checkbox"] {
    display: none;
}
.checkbox-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 5px;
    position: relative;
    transition: all 0.2s;
    flex-shrink: 0;
}
.filter-checkbox input[type="checkbox"]:checked + .checkbox-mark {
    background: var(--primary);
    border-color: var(--primary);
}
.filter-checkbox input[type="checkbox"]:checked + .checkbox-mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-label {
    font-size: 14px;
    color: var(--gray-700);
}
.filter-checkbox input[type="checkbox"]:checked ~ .checkbox-label {
    color: var(--primary);
    font-weight: 500;
}

/* 每页数量按钮 */
.page-size-options {
    display: flex;
    gap: 8px;
}
.size-btn {
    flex: 1;
    padding: 10px 0;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.2s;
}
.size-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}
.size-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(6,182,212,0.3);
}

/* 导出按钮 */
.btn-export-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-export-full:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.btn-export-full svg {
    flex-shrink: 0;
}

/* 右侧内容区域 */
.search-content {
    flex: 1;
    min-width: 0;
}

/* 旧工具栏样式保留兼容 */
.search-container { max-width: 900px; margin: 0 auto; }
.search-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--white);
    padding: 16px 20px; border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    flex-wrap: wrap; gap: 12px;
}
.toolbar-left { color: var(--gray-600); font-size: 14px; font-weight: 500; }
.toolbar-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.toolbar-option { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-600); }
.toolbar-option select {
    padding: 6px 12px; border: 1px solid var(--gray-300);
    border-radius: 6px; font-size: 13px; outline: none;
    background: var(--white); color: var(--gray-700);
}
.toolbar-option input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--primary);
    border: 1px solid var(--gray-300); border-radius: 4px;
}

.btn-export {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; background: var(--white); border: 1px solid var(--gray-300);
    border-radius: 6px; font-size: 13px; color: var(--gray-700); cursor: pointer;
    transition: all 0.2s; font-weight: 500;
}
.btn-export:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* 结果列表 */
.results-list { display: flex; flex-direction: column; gap: 16px; }
.result-item {
    background: var(--white);
    padding: 24px; border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.result-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.result-title-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.result-title-link {
    font-size: 18px; color: var(--gray-900); font-weight: 600;
    line-height: 1.4; max-width: 100%;
}
.result-title-link:hover { text-decoration: none; color: var(--primary); }
.result-title-link:visited { color: var(--gray-600); }
/* 标题高亮 - 红色不斜体 */
.result-title-link em.hl { color: #CC0000; font-style: normal; font-weight: 700; }

.contact-icon { font-size: 16px; opacity: 0.8; cursor: help; }
.detail-link { margin-left: auto; font-size: 13px; color: var(--primary); font-weight: 500; }
.detail-link:hover { text-decoration: underline; }

.result-url-row { font-size: 13px; color: var(--success); margin-bottom: 12px; display: flex; align-items: center; gap: 8px;}
.result-url-row cite { font-style: normal; }

.result-snippet { font-size: 14px; color: var(--gray-600); line-height: 1.6; margin-bottom: 16px; }
/* 描述高亮 - 红色不斜体 */
.result-snippet mark, .result-snippet em.hl { color: #CC0000; background: transparent; font-weight: 600; padding: 0; border-radius: 0; font-style: normal; }

.result-meta-row { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--gray-500); }
.meta-item { display: flex; align-items: center; gap: 4px; }
.meta-tag {
    padding: 4px 10px; background: var(--gray-100); color: var(--gray-600);
    border-radius: 100px; font-size: 12px; font-weight: 500;
}

/* 联系方式 */
.result-contact-row {
    background: var(--gray-50);
    margin: 16px -24px -24px; padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
    border-radius: 0 0 var(--radius) var(--radius);
    display: flex; flex-direction: column; gap: 8px;
}
.contact-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.contact-label { color: var(--gray-500); font-weight: 500; }
.contact-link { color: var(--primary-dark); }
.contact-link:hover { text-decoration: underline; }
.contact-text { color: var(--gray-700); }
.contact-sep { color: var(--gray-300); margin: 0 4px; }
.contact-more { color: var(--gray-400); font-size: 12px; }

/* 分页 */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 40px; padding: 20px 0;
}
.page-btn {
    min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; background: var(--white); border: 1px solid var(--gray-300);
    color: var(--gray-700); font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.page-btn:hover:not(:disabled) { background: var(--gray-50); border-color: var(--gray-400); }
.page-btn:disabled { color: var(--gray-400); cursor: not-allowed; opacity: 0.6; }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; box-shadow: 0 2px 4px rgba(6,182,212,0.3); }
.page-info { color: var(--gray-400); font-size: 14px; margin: 0 8px; }

/* ========== 关于页面 ========== */
.page-about { background: var(--gray-50); }
.about-main { flex: 1; padding: 100px 20px 60px; }
.about-container { max-width: 900px; margin: 0 auto; }
.about-container h1 { font-size: 36px; font-weight: 800; color: var(--gray-900); margin-bottom: 40px; text-align: center; letter-spacing: -0.5px; }

.about-section { margin-bottom: 60px; }
.about-section h2 {
    font-size: 24px; font-weight: 700; color: var(--gray-900);
    margin-bottom: 24px; padding-bottom: 12px;
    border-bottom: 2px solid var(--primary); display: inline-block;
}
.about-section p { font-size: 16px; color: var(--gray-600); line-height: 1.8; }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-item {
    display: flex; gap: 20px; padding: 30px;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--gray-100);
    transition: all 0.3s;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-item .feature-icon { font-size: 32px; background: var(--primary-light); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 16px; }
.feature-content h3 { font-size: 18px; font-weight: 600; color: var(--gray-900); margin-bottom: 8px; }
.feature-content p { font-size: 14px; color: var(--gray-600); margin: 0; }

.stats-row { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stat-box {
    text-align: center; padding: 30px 50px;
    background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--gray-100);
}
.stat-box .stat-number { font-size: 42px; font-weight: 800; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.stat-box .stat-text { font-size: 14px; color: var(--gray-500); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* ========== 弹窗组件 ========== */
.modal { display: none; position: fixed; inset: 0; z-index: 2000; }
.modal.show { display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); }
.modal-dialog {
    position: relative; background: var(--white); border-radius: var(--radius);
    width: 100%; max-width: 600px; max-height: 90vh; display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg); animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-sm { max-width: 400px; }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--gray-100);
}
.modal-header h3 { font-size: 18px; font-weight: 600; color: var(--gray-900); }
.modal-close {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: none; font-size: 24px; color: var(--gray-400);
    cursor: pointer; border-radius: 6px; transition: all 0.2s;
}
.modal-close:hover { background: var(--gray-100); color: var(--gray-600); }
.modal-body { padding: 24px; overflow-y: auto; flex: 1; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 12px;
    padding: 20px 24px; border-top: 1px solid var(--gray-100); background: var(--gray-50);
    border-radius: 0 0 var(--radius) var(--radius);
}

/* 详情内容 */
.detail-section { margin-bottom: 24px; }
.detail-section h4 { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.5px; }
.detail-content { font-size: 15px; color: var(--gray-700); line-height: 1.6; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.detail-item { padding: 12px 16px; background: var(--gray-50); border-radius: 8px; border: 1px solid var(--gray-100); }
.detail-item .label { font-size: 12px; color: var(--gray-500); margin-bottom: 4px; }
.detail-item .value { font-size: 14px; color: var(--gray-900); font-weight: 500; word-break: break-all; }

.contact-detail-list { display: flex; flex-direction: column; gap: 16px; }
.contact-detail-item { display: flex; flex-direction: column; gap: 8px; }
.contact-detail-label { font-size: 13px; color: var(--gray-500); font-weight: 500; }
.contact-detail-values { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-detail-value {
    display: inline-block; padding: 6px 12px;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 6px; font-size: 13px; color: var(--gray-700);
    word-break: break-all; text-decoration: none; transition: all 0.2s;
}
a.contact-detail-value { color: var(--primary); background: var(--primary-light); border-color: transparent; }
a.contact-detail-value:hover { background: var(--primary); color: var(--white); }

/* 表单元素 */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; color: var(--gray-700); margin-bottom: 8px; }
.form-group select, .form-group input {
    width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300);
    border-radius: 8px; font-size: 14px; color: var(--gray-900); outline: none; transition: border-color 0.2s;
}
.form-group select:focus, .form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(6,182,212,0.1); }
.radio-group { display: flex; gap: 20px; }
.radio-group label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--gray-700); }
.radio-group input[type="radio"] { width: 18px; height: 18px; accent-color: var(--primary); }

/* 按钮组件 */
.btn {
    padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
    cursor: pointer; border: none; transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-default { background: var(--white); border: 1px solid var(--gray-300); color: var(--gray-700); }
.btn-default:hover { background: var(--gray-50); border-color: var(--gray-400); color: var(--gray-900); }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 2px 4px rgba(6,182,212,0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 6px rgba(6,182,212,0.4); }
.btn-success { background: var(--success); color: var(--white); box-shadow: 0 2px 4px rgba(16,185,129,0.3); }
.btn-success:hover { filter: brightness(1.1); transform: translateY(-1px); }

/* 通用组件 */
.loading-mask {
    display: none; position: fixed; inset: 0; z-index: 3000;
    background: rgba(255,255,255,0.8); backdrop-filter: blur(2px); align-items: center; justify-content: center;
}
.loading-mask.show { display: flex; }
.loading-spinner {
    width: 40px; height: 40px; border: 3px solid var(--gray-200);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-inline { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 40px; color: var(--gray-500); }
.spinner-small {
    width: 20px; height: 20px; border: 2px solid var(--gray-200);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(20px);
    padding: 12px 24px; background: var(--gray-900); color: var(--white);
    border-radius: 50px; font-size: 14px; font-weight: 500; z-index: 4000;
    opacity: 0; visibility: hidden; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--gray-500); }
.empty-state h3 { font-size: 18px; color: var(--gray-900); margin-bottom: 8px; font-weight: 600; }

/* 页脚 */
.footer { background: var(--white); border-top: 1px solid var(--gray-200); padding: 40px 0; }
.footer-container { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
.footer-links a { color: var(--gray-600); font-size: 14px; }
.footer-links a:hover { color: var(--primary); }
.footer-copyright { font-size: 13px; color: var(--gray-500); }

/* 响应式 */
@media (max-width: 1024px) {
    .search-layout {
        flex-direction: column;
    }
    .search-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
    }
    .sidebar-inner {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
    }
    .sidebar-section {
        flex: 1;
        min-width: 200px;
        border-bottom: none;
        border-right: 1px solid var(--gray-100);
    }
    .sidebar-section:last-child {
        border-right: none;
    }
    .stats-section {
        width: 100%;
        flex: none;
    }
}

@media (max-width: 768px) {
    .nav-container { padding: 0 16px; }
    .nav-search, .nav-menu { display: none; }
    
    .hero-title .char { font-size: 48px; }
    .search-box { padding: 6px 6px 6px 16px; border-radius: 20px; flex-direction: column; }
    .search-box input { width: 100%; text-align: center; padding: 12px; }
    .btn-search { width: 100%; justify-content: center; margin-top: 8px; }
    .home-metrics { flex-direction: column; gap: 40px; }
    
    .search-toolbar { flex-direction: column; align-items: stretch; gap: 16px; }
    .toolbar-right { justify-content: space-between; }
    .detail-grid { grid-template-columns: 1fr; }
    .modal-footer { flex-direction: column; }
    .modal-footer .btn { width: 100%; }
    
    .feature-item { flex-direction: column; text-align: center; }
    .feature-item .feature-icon { margin: 0 auto; }
    
    /* 移动端侧边栏 */
    .sidebar-inner {
        flex-direction: column;
    }
    .sidebar-section {
        border-right: none;
        border-bottom: 1px solid var(--gray-100);
    }
    .page-size-options {
        flex-wrap: wrap;
    }
}


/* ========== 语言切换器 ========== */
.lang-switcher {
    position: relative;
}
.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid var(--gray-300);
    border-radius: 100px;
    color: var(--gray-600);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.page-home .lang-btn {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}
.page-home .lang-btn:hover {
    border-color: rgba(255,255,255,0.5);
    color: var(--white);
}
.lang-icon {
    font-size: 16px;
}
.lang-arrow {
    transition: transform 0.2s;
}
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    overflow: hidden;
}
.lang-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    color: var(--gray-700);
    text-decoration: none;
    transition: background 0.2s;
}
.lang-option:hover {
    background: var(--gray-50);
    color: var(--primary);
}
.lang-option.active {
    background: var(--primary-light);
    color: var(--primary);
}
.lang-native {
    font-weight: 500;
}
.lang-name {
    font-size: 12px;
    color: var(--gray-500);
}
.lang-option.active .lang-name {
    color: var(--primary);
}
