@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');
/*
 * 星火启元 (spark1.cn) - 主站样式
 * 暗色科技风 + 人文温度（靛蓝紫）
 */

@import '../shared/design-tokens.css';
@import '../shared/dark-base.css';

/* spark1 靛蓝紫调色板 */
:root {
    --c-primary: #6366f1;
    --c-primary-dark: #4f46e5;
    --c-secondary: #8b5cf6;
    --c-accent: #06b6d4;
    --c-accent-warm: #f59e0b;
    --c-glow: rgba(99, 102, 241, 0.4);
    --c-glow-warm: rgba(245, 158, 11, 0.3);
    --grad-text: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #22d3ee 100%);
    --grad-btn: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    --grad-card-border: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(139,92,246,0.5), rgba(6,182,212,0.5));
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px var(--c-glow);
    --shadow-btn: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* Hero 区域 */
.page-hero {
    color: white;
    text-align: center;
    padding: 4rem 0;
    background: transparent !important;
    position: relative;
}

.page-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 40%, #a5b4fc 70%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.page-hero p {
    color: #94a3b8;
    font-size: 1.1rem;
}

/* 毛玻璃内容块 */
.service-item, .info-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    margin: 1.5rem 0;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-item::before, .info-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-card-border);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-item:hover, .info-item:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: var(--shadow-glow);
    background: rgba(255,255,255,0.1);
}

.service-item:hover::before, .info-item:hover::before { opacity: 1; }

.service-item h2, .info-item h2, .info-item h3 {
    color: #e0e7ff;
    margin-bottom: 1rem;
}

.service-item p, .info-item p {
    color: #94a3b8;
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

.service-item ul {
    padding-left: 1.2rem;
    color: #94a3b8;
}

.service-item li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.service-item li::marker {
    color: var(--c-primary);
}

/* About 内容区域 */
.about-content, .services-detail {
    padding: 3rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content h2, .services-detail h2 {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.vision, .mission, .history, .team, .values {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    transition: all 0.4s;
}

.vision {
    border-top: 3px solid;
    border-image: linear-gradient(90deg, #667eea, #f59e0b) 1;
}

.vision:hover, .mission:hover, .history:hover, .team:hover, .values:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: var(--shadow-glow);
}

.vision h2, .mission h2, .history h2, .team h2, .values h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #e0e7ff;
}

.vision p, .mission p, .history p, .team p {
    color: #94a3b8;
    line-height: 1.8;
}

.values ul {
    list-style: none;
    padding: 0;
}

.values li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: #94a3b8;
    line-height: 1.7;
}

.values li:last-child { border-bottom: none; }
.values strong { color: #c7d2fe; }

/* 联系区域 */
.contact-content {
    padding: 3rem 0;
}

.contact-info, .contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
}

.contact-info h2, .contact-form h2 {
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.info-item h3 {
    font-size: 1.1rem;
}

/* 表单 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #c7d2fe;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.6);
    color: #e2e8f0;
    transition: all 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
    outline: none;
    background: rgba(15, 23, 42, 0.8);
}

.form-group textarea {
    resize: vertical;
}

.form-group select option {
    background: #1e293b;
    color: #e2e8f0;
}

/* ========================================
 * 以下为首页 index.html 内联样式提取
 * ======================================== */

/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    color: #cbd5e1;
    background: #0f172a;
    overflow-x: hidden;
}

/* 流动渐变背景 */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139,92,246,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(6,182,212,0.08) 0%, transparent 50%);
    animation: meshFloat 20s ease-in-out infinite alternate;
    z-index: -2;
    pointer-events: none;
}

/* 点阵网格 */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

@keyframes meshFloat {
    0%   { transform: scale(1) translate(0, 0); }
    33%  { transform: scale(1.05) translate(-2%, 1%); }
    66%  { transform: scale(0.98) translate(1%, -2%); }
    100% { transform: scale(1.02) translate(-1%, 1%); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 毛玻璃导航栏 */
header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: white;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    position: relative;
    gap: 0.5rem;
}

nav li { position: relative; }

nav a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--grad-btn);
    transition: left 0.3s, right 0.3s;
    border-radius: 1px;
}

nav a:hover { color: #e0e7ff; }
nav a:hover::after { left: 0; right: 0; }

/* 子菜单 */
.submenu { position: relative; }
.submenu-content {
    display: none;
    position: absolute;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    min-width: 170px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 1;
    border-radius: 12px;
    top: 100%;
    left: 0;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    padding: 6px 0;
}
.submenu-content a {
    color: rgba(255,255,255,0.8);
    padding: 10px 16px;
    display: block;
    font-size: 0.9rem;
}
.submenu-content a:hover {
    background: rgba(99,102,241,0.15);
    color: #c7d2fe;
}
.submenu-content a::after { display: none; }
.submenu:hover .submenu-content { display: block; }

/* 频道下拉菜单 - 两列布局 */
.channels-submenu .submenu-content {
    min-width: 380px;
    display: none;
    grid-template-columns: 1fr 1fr;
}
.channels-submenu:hover .submenu-content {
    display: grid;
}

/* Hero 区域（首页） */
.hero {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(99,102,241,0.2) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(139,92,246,0.15) 0%, transparent 50%);
    color: white;
    text-align: center;
    padding: 6rem 0 5rem;
    position: relative;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 40%, #a5b4fc 70%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    color: #94a3b8;
    line-height: 1.8;
}

/* 愿景标语 */
.hero-vision {
    font-size: 1.25rem;
    color: #c7d2fe;
    margin-bottom: 0.4rem;
    letter-spacing: 2px;
    font-weight: 600;
}
.hero-vision-en {
    font-size: 0.9rem;
    max-width: 700px;
    margin: 0 auto 1rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    font-style: italic;
}

/* 渐变炫光按钮 */
.btn {
    display: inline-block;
    background: var(--grad-btn);
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: var(--shadow-btn);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(99,102,241,0.5);
}
.btn:hover::after { opacity: 1; }

/* 服务区域（首页） */
.services {
    padding: 5rem 0;
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 毛玻璃卡片 */
.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--grad-card-border);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99,102,241,0.3);
    box-shadow: var(--shadow-glow);
    background: rgba(255,255,255,0.1);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: #e0e7ff;
    font-weight: 600;
}

.service-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* About 区域（首页） */
.about {
    padding: 5rem 0;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.about-text p {
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-image { text-align: center; }
.about-image img {
    max-width: 100%;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.2rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    color: #94a3b8;
    font-size: 0.9rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--c-accent), var(--c-accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 联系区域（首页） */
.contact {
    padding: 5rem 0;
    background: rgba(99,102,241,0.05);
    border-top: 1px solid var(--glass-border);
    color: white;
    text-align: center;
}
.contact h2 { font-size: 2rem; margin-bottom: 1rem; color: #e0e7ff; }
.contact p { color: #94a3b8; margin-bottom: 1.5rem; }

/* 愿景横幅 */
.vision-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2rem;
    text-align: center;
}
.vision-text {
    font-size: 1.8rem;
    color: #fff;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.vision-text-en {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 1px;
    font-style: italic;
}

/* 频道展示区 */
.channels-showcase {
    padding: 5rem 0;
    background: #f8f9fa;
}
.channel-cat-title {
    font-size: 1.1rem;
    color: #64748b;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
}
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.channel-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.channel-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}
.channel-card h4 {
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 0.3rem;
    font-weight: 600;
}
.channel-card p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

/* Footer */
#contact footer, footer#contact {
    background: transparent;
}

/* 认证组件样式 */
.auth-section { display: flex; align-items: center; position: relative; gap: 10px; }
.auth-section .btn-login {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}
.auth-section .btn-login:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(129,140,248,0.5);
}
.auth-section .btn-register {
    display: inline-block;
    background: var(--grad-btn);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    margin-left: 10px;
    transition: all 0.3s;
}
.auth-section .btn-register:hover { box-shadow: var(--shadow-btn); }
.auth-section .user-dropdown-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}
.auth-section .user-dropdown-btn:hover { background: rgba(255,255,255,0.15); }
.auth-section .user-name { color: white; font-size: 14px; }
.auth-section .dropdown-arrow { width: 12px; height: 12px; fill: white; transition: transform 0.3s; }
.auth-section .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px); right: 0;
    min-width: 200px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 1001;
    padding: 8px 0;
}
.auth-section .dropdown-item {
    padding: 12px 20px; color: #cbd5e1;
    text-decoration: none; display: block; transition: background 0.2s;
}
.auth-section .dropdown-item:hover { background: rgba(99,102,241,0.15); }
.auth-section .dropdown-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 8px 0; }
.auth-section .btn-logout-dropdown {
    width: 100%; text-align: left; background: none; border: none;
    color: #f87171; cursor: pointer; font-size: 14px; padding: 12px 20px;
}

/* 响应式 */
@media (max-width: 768px) {
    .page-hero h1 { font-size: 1.6rem; }
    .page-hero { padding: 2.5rem 0; }
    .contact-content .container > div { margin-bottom: 2rem; }
    .header-content { flex-direction: column; }
    nav ul { margin-top: 0.8rem; flex-wrap: wrap; justify-content: center; }
    nav li { margin: 0; }
    .auth-section { margin-top: 0.8rem; }
    .hero { padding: 3.5rem 0 3rem; }
    .hero h1 { font-size: 1.8rem; }
    .about-content { grid-template-columns: 1fr; }
    .services { padding: 3rem 0; }
    .about { padding: 3rem 0; }
    .channels-showcase { padding: 3rem 0; }
    .channel-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .channel-card { padding: 1rem; }
    .channel-card-icon { font-size: 1.5rem; }
    .channels-submenu .submenu-content {
        min-width: 280px;
        grid-template-columns: 1fr;
    }
    .channels-submenu:hover .submenu-content { display: block; }
}

/* 无障碍：减弱动画 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
