﻿/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f; color: #e0e0e0; line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Colors ===== */
:root {
    --primary: #3b82f6; --primary-dark: #2563eb; --primary-light: #60a5fa;
    --accent: #06b6d4; --accent2: #8b5cf6; --accent3: #10b981;
    --bg-dark: #0a0a0f; --bg-card: #12121a; --bg-card-hover: #1a1a28;
    --border: rgba(255,255,255,0.06); --border-light: rgba(255,255,255,0.1);
    --text: #e0e0e0; --text-secondary: #9090a0; --text-muted: #606070;
    --radius: 12px; --radius-lg: 20px;
    --shadow-glow: 0 0 60px rgba(59,130,246,0.15);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; transition: all 0.3s ease;
    background: rgba(10,10,15,0.8); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}
.navbar.scrolled { padding: 10px 0; background: rgba(10,10,15,0.95); }
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; color: #fff; }
.logo-icon { font-size: 1.5rem; }
.nav-menu { display: flex; gap: 8px; }
.nav-link {
    padding: 8px 16px; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
    color: var(--text-secondary); transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.06); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; padding-top: 80px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
.hero-particles { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(59,130,246,0.1) 0%, transparent 70%); }
.hero-content { position: relative; text-align: center; z-index: 1; padding: 40px 0; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 100px; font-size: 0.8rem; font-weight: 500;
    background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2);
    color: var(--primary-light); margin-bottom: 32px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; line-height: 1.15; color: #fff; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 40px; line-height: 1.8; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 700; color: #fff; }
.stat-unit { font-size: 1.25rem; color: var(--primary); font-weight: 600; }
.stat-label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-size: 0.75rem; color: var(--text-muted); animation: bounce 2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
.scroll-arrow { font-size: 1.2rem; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 100px; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.3s ease; font-family: inherit;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 20px rgba(59,130,246,0.35); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.45); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid var(--border-light); }
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.2); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; width: 100%; justify-content: center; }
.btn-full { width: 100%; justify-content: center; }
.btn-arrow { font-size: 1.1rem; }

/* ===== Section Common ===== */
.section { padding: 100px 0; position: relative; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; padding: 4px 14px; border-radius: 100px;
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em;
    background: rgba(59,130,246,0.1); color: var(--primary-light);
    border: 1px solid rgba(59,130,246,0.2); margin-bottom: 16px;
}
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; color: #fff; margin-bottom: 12px; }
.section-desc { font-size: 1.05rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto; }

/* ===== Features ===== */
.features-section { background: var(--bg-dark); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    transition: all 0.3s ease; cursor: default;
}
.feature-card:hover { background: var(--bg-card-hover); border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 12px; }
.feature-card > p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.feature-list { display: flex; flex-direction: column; gap: 8px; }
.feature-list li { font-size: 0.82rem; color: var(--text-muted); padding-left: 16px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }

/* ===== Demo Section ===== */
.demo-section { background: #0d0d15; }
.demo-tabs {
    display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 32px;
}
.demo-tab {
    padding: 10px 20px; border-radius: 100px; font-size: 0.9rem; font-weight: 500;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
    font-family: inherit;
}
.demo-tab:hover { border-color: var(--border-light); color: #fff; }
.demo-tab.active { background: rgba(59,130,246,0.15); border-color: var(--primary); color: var(--primary-light); }
.demo-panel { display: none; }
.demo-panel.active { display: block; }
.demo-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.demo-viewer { position: relative; }
.viewer-container {
    position: relative; aspect-ratio: 1; max-width: 600px; margin: 0 auto;
    background: #000; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); cursor: crosshair;
}
.viewer-container canvas { width: 100%; height: 100%; display: block; }
.viewer-overlay { position: absolute; inset: 0; pointer-events: none; }
.scan-line {
    position: absolute; left: 0; right: 0; height: 2px;
    background: rgba(59,130,246,0.5); box-shadow: 0 0 20px rgba(59,130,246,0.3);
    animation: scanDown 3s ease-in-out infinite;
}
@keyframes scanDown { 0%, 100% { top: 20%; } 50% { top: 80%; } }
.viewer-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 12px 16px; background: linear-gradient(transparent, rgba(0,0,0,0.8));
    display: flex; justify-content: space-between; font-size: 0.8rem; color: #fff;
}
.viewer-toolbar {
    position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; background: rgba(0,0,0,0.75); backdrop-filter: blur(10px);
    padding: 6px 10px; border-radius: 100px; z-index: 10;
}
.tool-btn {
    width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
    background: transparent; font-size: 1rem; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.tool-btn:hover, .tool-btn.active { background: rgba(255,255,255,0.12); }
.demo-controls {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.demo-controls h4 { font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 20px; }
.control-group { margin-bottom: 16px; }
.control-group label { display: block; font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 6px; font-weight: 500; }
.control-group input[type="range"] {
    width: 100%; height: 6px; border-radius: 3px; background: var(--border);
    outline: none; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--primary); cursor: pointer; box-shadow: 0 0 10px rgba(59,130,246,0.4);
}
.control-group select {
    width: 100%; padding: 10px 12px; border-radius: 8px;
    background: var(--bg-card-hover); border: 1px solid var(--border);
    color: #fff; font-size: 0.85rem; cursor: pointer; font-family: inherit;
}
.control-value { display: inline-block; font-size: 0.85rem; color: var(--primary-light); font-weight: 600; margin-top: 4px; }

/* DICOM Info */
.dicom-info { margin-bottom: 16px; }
.dicom-tag {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-bottom: 1px solid var(--border); font-size: 0.8rem;
}
.tag-name { color: var(--text-muted); }
.tag-value { color: #fff; font-weight: 500; }

/* AI Results */
.ai-results { margin-top: 16px; }
.ai-results h4 { margin-bottom: 12px; }
.result-card { background: var(--bg-card-hover); border-radius: var(--radius); padding: 16px; min-height: 80px; }
.detection-box { position: absolute; border: 2px solid var(--accent3); border-radius: 4px; pointer-events: none; animation: detectPulse 1.5s infinite; }
@keyframes detectPulse { 0%, 100% { border-color: var(--accent3); } 50% { border-color: var(--primary); } }

/* ===== Tech Section ===== */
.tech-section { background: var(--bg-dark); }
.tech-stack { max-width: 800px; margin: 0 auto; }
.tech-layer { text-align: center; margin-bottom: 8px; }
.layer-label {
    display: inline-block; padding: 4px 14px; border-radius: 6px;
    font-size: 0.78rem; font-weight: 600; color: var(--primary-light);
    background: rgba(59,130,246,0.1); margin-bottom: 12px;
}
.layer-items { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tech-item {
    padding: 10px 20px; border-radius: 10px; font-size: 0.85rem; font-weight: 500;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-secondary);
}
.tech-item.highlight { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.25); color: var(--primary-light); }
.tech-arrow { text-align: center; font-size: 1.2rem; color: var(--text-muted); padding: 8px 0; }

/* ===== About Section ===== */
.about-section { background: #0d0d15; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-text p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 16px; }
.about-mission { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.mission-card {
    flex: 1; min-width: 160px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
}
.mission-number { font-size: 2rem; font-weight: 700; color: var(--primary); opacity: 0.3; }
.mission-card h4 { font-size: 0.95rem; font-weight: 600; color: #fff; margin: 8px 0; }
.mission-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.contact-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
}
.contact-card h4 { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px 16px; border-radius: 10px;
    background: var(--bg-card-hover); border: 1px solid var(--border);
    color: #fff; font-size: 0.9rem; font-family: inherit; resize: vertical;
    transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }

/* ===== Footer ===== */
.footer { background: #06060a; border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 8px; }
.footer-logo { font-size: 1.15rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; }
.footer-links h4 { font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links a { display: block; font-size: 0.85rem; color: var(--text-muted); padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }

/* ===== Animations ===== */
.fade-up { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .about-content { grid-template-columns: 1fr; }
    .demo-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,10,15,0.98); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); }
    .nav-menu.open { display: flex; }
    .nav-toggle { display: flex; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 24px; }
    .hero-cta { flex-direction: column; align-items: center; }
    .demo-layout { grid-template-columns: 1fr; }
    .about-mission { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
}

/* ===== 管理员入口 ===== */
.admin-entry {
    position: fixed; bottom: 24px; left: 24px; z-index: 999;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s; color: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}
.admin-entry:hover {
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.7);
    transform: scale(1.1); box-shadow: 0 0 20px rgba(59,130,246,0.2);
}

/* ===== Win10 登录遮罩 ===== */
.win-login-overlay {
    position: fixed; inset: 0; z-index: 10000;
    display: none; align-items: center; justify-content: center;
    animation: fadeIn 0.3s ease;
}
.win-login-overlay.show { display: flex; }
.win-login-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #003366 0%, #001a33 30%, #000d1a 60%, #001f3f 100%);
}
.win-login-bg::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0,120,212,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(0,120,212,0.08) 0%, transparent 50%);
}
.win-login-container {
    position: relative; z-index: 1; text-align: center;
    animation: slideUp 0.5s ease;
}
@keyframes slideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.win-login-time { font-size: 3.5rem; font-weight: 200; color: #fff; letter-spacing: 2px; font-family: "Segoe UI", "Inter", sans-serif; }
.win-login-date { font-size: 0.9rem; color: rgba(255,255,255,0.5); margin: 4px 0 40px; }
.win-login-avatar { margin-bottom: 12px; }
.win-login-name { font-size: 1.1rem; color: #fff; font-weight: 500; margin-bottom: 24px; }
.win-login-input-area {
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08); border-radius: 6px;
    padding: 0; border: 2px solid rgba(255,255,255,0.1); transition: border-color 0.3s;
    max-width: 280px; margin: 0 auto;
}
.win-login-input-area:focus-within { border-color: rgba(255,255,255,0.4); }
.win-login-input {
    background: none; border: none; padding: 12px 16px; font-size: 1rem;
    color: #fff; outline: none; flex: 1; width: 200px;
    font-family: "Segoe UI", "Inter", sans-serif;
}
.win-login-input::placeholder { color: rgba(255,255,255,0.4); }
.win-login-submit {
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    font-size: 1.2rem; padding: 12px 16px; cursor: pointer; transition: all 0.2s;
    border-radius: 0 4px 4px 0;
}
.win-login-submit:hover { background: rgba(255,255,255,0.2); }
.win-login-hint { color: #ff6b6b; font-size: 0.8rem; margin-top: 12px; min-height: 20px; }
.win-login-attempts { color: rgba(255,255,255,0.3); font-size: 0.75rem; margin-top: 8px; }

/* ===== 管理面板 ===== */
.admin-overlay {
    position: fixed; inset: 0; z-index: 10001;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
}
.admin-overlay.show { display: flex; }
.admin-panel {
    background: #1a1d2e; border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; width: 90%; max-width: 560px; max-height: 80vh;
    overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    animation: panelIn 0.3s ease;
}
@keyframes panelIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.admin-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-header h3 { color: #fff; font-size: 1.1rem; margin: 0; }
.admin-close {
    background: none; border: none; color: rgba(255,255,255,0.4); font-size: 1.3rem;
    cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all 0.2s;
}
.admin-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-body { padding: 24px; }
.admin-section { margin-bottom: 24px; }
.admin-section h4 { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; font-weight: 500; }
.admin-log {
    background: #0d0d15; border-radius: 10px; padding: 16px;
    font-size: 0.82rem; color: rgba(255,255,255,0.7); line-height: 1.8;
    max-height: 300px; overflow-y: auto; font-family: "Consolas", "Monaco", monospace;
}
.admin-log .log-time { color: #60a5fa; }
.admin-log .log-ok { color: #10b981; }
.admin-log .log-warn { color: #f59e0b; }
.admin-log .log-err { color: #ef4444; }
.admin-btn {
    padding: 10px 18px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04); color: #fff; cursor: pointer;
    font-size: 0.85rem; font-family: inherit; transition: all 0.2s;
    margin-right: 8px; margin-bottom: 8px;
}
.admin-btn:hover { background: rgba(255,255,255,0.08); }
.admin-btn-danger { border-color: rgba(239,68,68,0.3); color: #ef4444; }
.admin-btn-danger:hover { background: rgba(239,68,68,0.1); }

/* ===== 底部版权栏 compact ===== */
.footer-bottom { text-align: center; padding: 12px 0; font-size: 0.75rem; }
