/* ========================================
   NEBULA — 深蓝+黑色调动效示例网站
   ======================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* 主色调 - 深蓝+黑 */
    --bg-primary: #05070d;
    --bg-secondary: #0a0f1a;
    --bg-tertiary: #111827;
    --bg-card: rgba(17, 24, 39, 0.6);
    
    /* 蓝色系 */
    --blue-900: #0a1628;
    --blue-800: #0f2140;
    --blue-700: #1a365d;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-300: #93c5fd;
    
    /* 辅助色 */
    --indigo-500: #6366f1;
    --violet-500: #8b5cf6;
    --cyan-400: #22d3ee;
    --sky-400: #38bdf8;
    
    /* 文字 */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* 边框和分割 */
    --border-color: rgba(59, 130, 246, 0.15);
    --border-hover: rgba(59, 130, 246, 0.35);
    
    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #0ea5e9 100%);
    --gradient-secondary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(180deg, #05070d 0%, #0a0f1a 100%);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
    --shadow-glow-lg: 0 0 80px rgba(59, 130, 246, 0.2);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    /* 动画时长 */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--blue-700);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--blue-600);
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ---------- 启动动画 Splash Screen ---------- */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.splash-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 6s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--blue-500), transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--indigo-500), transparent 70%);
    bottom: -80px;
    right: -80px;
    animation-delay: 2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--cyan-400), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
    opacity: 0.2;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.splash-content {
    position: relative;
    text-align: center;
    z-index: 1;
    transition: transform 0.8s var(--ease-out), filter 0.8s var(--ease-out);
}

.splash-screen.hidden .splash-content {
    transform: scale(1.08);
    filter: blur(8px);
}

.splash-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    animation: logoReveal 1s var(--spring) forwards;
    opacity: 0;
    transform: scale(0.5);
}

.splash-logo svg {
    width: 100%;
    height: 100%;
}

#logoCircle {
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    animation: drawCircle 1.5s ease forwards 0.5s;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes logoReveal {
    to { opacity: 1; transform: scale(1); }
}

.splash-text {
    animation: textFade 0.9s var(--ease-out) forwards 0.6s;
    opacity: 0;
}

.splash-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    animation: titleSpread 1.4s var(--ease-out) forwards;
}

@keyframes titleSpread {
    from { letter-spacing: 0.6em; filter: blur(6px); }
    to { letter-spacing: 0.15em; filter: blur(0); }
}

.splash-line {
    width: 0;
    height: 1px;
    margin: 0 auto 16px;
    background: linear-gradient(90deg, transparent, var(--blue-400), transparent);
    animation: lineGrow 1s var(--ease-out) forwards 1.1s;
}

@keyframes lineGrow {
    to { width: 180px; }
}

.splash-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.3em;
    opacity: 0;
    animation: textFade 0.8s ease forwards 1.3s;
}

@keyframes textFade {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(10px); }
}

/* ---------- 主内容 ---------- */
.main-content {
    opacity: 0;
    transition: opacity 1s ease 0.3s;
}

.main-content.visible {
    opacity: 1;
}

/* ---------- 导航栏（毛玻璃） ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
    background: rgba(10, 15, 26, 0.45);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(59, 130, 246, 0.08);
}

/* 顶部高光，强化玻璃质感 */
.navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 60%);
    pointer-events: none;
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(5, 7, 13, 0.72);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.nav-container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    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-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.nav-logo svg {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.nav-cta.is-hidden {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
    pointer-events: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* ---------- 右上角菜单（语言切换 / 作者作品） ---------- */
.nav-menu {
    position: relative;
}

.nav-menu-trigger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: color 0.3s ease, background 0.3s ease;
}

.nav-menu-trigger span {
    display: block;
    width: 24px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-menu-trigger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-menu-trigger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-menu-trigger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-menu-trigger:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    padding: 14px;
    background: rgba(10, 15, 26, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 2000;
}

.nav-menu.is-open .nav-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.nav-dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.nav-dropdown-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lang-switch {
    display: flex;
    gap: 6px;
}

.lang-btn {
    flex: 1;
    padding: 7px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.lang-btn.is-active {
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

.nav-dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 4px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, padding 0.2s ease;
}

.nav-dropdown-link::after {
    content: '↗';
    font-size: 0.85rem;
    opacity: 0.6;
}

.nav-dropdown-link:hover {
    color: var(--blue-400);
    padding-left: 10px;
}

@media (max-width: 768px) {
    .nav-dropdown {
        right: -8px;
        min-width: 200px;
    }
}

/* ---------- Hero Section ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, var(--blue-900) 0%, var(--bg-primary) 60%);
}

/* 星空背景 */
.stars {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 120px, #fff, transparent),
        radial-gradient(1px 1px at 200px 50px, rgba(59, 130, 246, 0.8), transparent),
        radial-gradient(2px 2px at 250px 160px, #fff, transparent),
        radial-gradient(1px 1px at 300px 90px, rgba(255,255,255,0.7), transparent);
    background-repeat: repeat;
    background-size: 320px 200px;
    animation: starsMove 80s linear infinite;
}

.stars-2 {
    background-size: 400px 250px;
    opacity: 0.5;
    animation-duration: 120s;
    animation-direction: reverse;
}

.stars-3 {
    background-size: 500px 300px;
    opacity: 0.3;
    animation-duration: 160s;
}

@keyframes starsMove {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

.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;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--blue-400);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--blue-500);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title .gradient-text .char {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 打字机效果 */
.hero-title .char {
    display: inline-block;
    visibility: hidden;
}

.hero-title .char.typed {
    visibility: visible;
    animation: charIn 0.22s var(--ease-out);
}

.hero-title .char-space {
    width: 0.3em;
}

@keyframes charIn {
    from { opacity: 0; }
}

/* 闪烁光标 */
.hero-title .type-caret {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    margin-left: 4px;
    border-radius: 2px;
    background: var(--gradient-primary);
    vertical-align: -0.06em;
    animation: caretBlink 1s step-end infinite;
}

@keyframes caretBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-title .char {
        visibility: visible;
    }
    .hero-title .type-caret {
        display: none;
    }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-desc {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

a.nav-cta {
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-3px);
}

.btn-secondary svg {
    width: 18px;
    height: 18px;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    width: 100%;
    justify-content: center;
}

.btn-outline:hover {
    border-color: var(--blue-500);
    color: var(--blue-400);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'JetBrains Mono', monospace;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    animation: bounceDown 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--blue-400);
    border-bottom: 2px solid var(--blue-400);
    transform: rotate(45deg);
    opacity: 0.6;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Section通用样式 ---------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--blue-400);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Features Section ---------- */
.features {
    padding: 120px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.1));
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    color: var(--blue-400);
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-hover {
    font-size: 0.9rem;
    color: var(--blue-400);
    font-weight: 500;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-hover {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Showcase Section ---------- */
.showcase {
    padding: 120px 24px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    pointer-events: none;
}

.showcase-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.55;
    background:
        radial-gradient(1px 1px at 20% 30%, white, transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(147, 197, 253, 0.8), transparent),
        radial-gradient(1px 1px at 80% 20%, white, transparent),
        radial-gradient(1px 1px at 40% 80%, rgba(59, 130, 246, 0.6), transparent),
        radial-gradient(2px 2px at 70% 40%, white, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
}

.showcase-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.showcase-content {
    max-width: 640px;
}

.showcase-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.showcase-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.showcase-item:hover {
    background: var(--bg-card);
    border-color: var(--border-color);
    transform: translateX(8px);
}

.item-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--blue-500);
    min-width: 60px;
}

.item-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.item-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Showcase Scene */
.planet {
    position: absolute;
    border-radius: 50%;
}

.planet-1 {
    width: 150px;
    height: 150px;
    top: 18%;
    left: 52%;
    background: radial-gradient(circle at 30% 30%, var(--blue-400), var(--blue-700));
    box-shadow: 
        inset -20px -20px 40px rgba(0,0,0,0.5),
        0 0 40px rgba(59, 130, 246, 0.3);
    animation: planetFloat 8s ease-in-out infinite;
}

.planet-2 {
    width: 84px;
    height: 84px;
    bottom: 16%;
    right: 10%;
    background: radial-gradient(circle at 30% 30%, var(--indigo-500), var(--blue-900));
    box-shadow: 
        inset -15px -15px 30px rgba(0,0,0,0.5),
        0 0 30px rgba(99, 102, 241, 0.3);
    animation: planetFloat 6s ease-in-out infinite 1s;
}

.planet-3 {
    width: 34px;
    height: 34px;
    top: 12%;
    right: 28%;
    background: radial-gradient(circle at 30% 30%, var(--cyan-400), var(--blue-500));
    box-shadow: 
        inset -8px -8px 16px rgba(0,0,0,0.5),
        0 0 20px rgba(34, 211, 238, 0.5);
    animation: planetFloat 5s ease-in-out infinite 0.5s;
}

@keyframes planetFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.ring {
    position: absolute;
    width: 176px;
    height: 48px;
    top: 38%;
    left: 60%;
    transform: translate(-50%, -50%) rotateX(70deg);
    border: 2px solid rgba(147, 197, 253, 0.3);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

@keyframes ringRotate {
    to { transform: translate(-50%, -50%) rotateX(70deg) rotate(360deg); }
}

.asteroid {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--blue-300);
    border-radius: 50%;
    opacity: 0.7;
}

.asteroid-1 {
    top: 30%;
    left: 60%;
    animation: orbit 10s linear infinite;
}

.asteroid-2 {
    top: 50%;
    left: 40%;
    animation: orbit 14s linear infinite reverse;
}

.asteroid-3 {
    top: 60%;
    left: 70%;
    width: 5px;
    height: 5px;
    animation: orbit 8s linear infinite 2s;
}

@keyframes orbit {
    from { transform: rotate(0deg) translateX(80px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(80px) rotate(-360deg); }
}

/* ---------- Pricing Section ---------- */
.pricing {
    padding: 120px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.pricing-featured {
    border-color: var(--blue-600);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(99, 102, 241, 0.15));
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: 28px;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price .currency {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.price .amount {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price .period {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    width: 18px;
    height: 18px;
    color: var(--blue-400);
    flex-shrink: 0;
}

/* ---------- CTA Section ---------- */
.cta-section {
    position: relative;
    padding: 120px 24px;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--blue-900) 50%, var(--bg-primary) 100%);
}

.cta-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.cta-orb-1 {
    background: var(--blue-600);
    top: -100px;
    left: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}

.cta-orb-2 {
    background: var(--indigo-500);
    bottom: -100px;
    right: -100px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-form {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 8px;
    backdrop-filter: blur(10px);
    max-width: 480px;
    margin: 0 auto 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cta-form:focus-within {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cta-form input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}

.cta-form input::placeholder {
    color: var(--text-muted);
}

.cta-form .btn {
    flex-shrink: 0;
    padding: 12px 24px;
}

.cta-note {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
}

/* ---------- Footer ---------- */
.footer {
    padding: 80px 24px 32px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 16px 0 24px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--blue-400);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ---------- 滚动动画 (Scroll Reveal) ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 不同的动画变体 */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s var(--ease-out);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s var(--ease-out);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s var(--ease-out);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* 交错动画延迟 */
.reveal:nth-child(1) { transition-delay: 0.1s; }
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.3s; }
.reveal:nth-child(4) { transition-delay: 0.4s; }
.reveal:nth-child(5) { transition-delay: 0.5s; }
.reveal:nth-child(6) { transition-delay: 0.6s; }

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .showcase-scene {
        opacity: 0.35;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .hero {
        padding: 100px 20px 60px;
    }
    
    .hero-stats {
        gap: 24px;
    }
    
    .features,
    .showcase,
    .pricing,
    .cta-section {
        padding: 80px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-form {
        flex-direction: column;
        padding: 12px;
    }
    
    .cta-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   问题反馈面板
   ============================================ */
.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.feedback-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.feedback-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 16, 0.62);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.feedback-panel {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 36px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(19, 28, 46, 0.96), rgba(9, 14, 24, 0.98));
    border: 1px solid rgba(96, 140, 255, 0.18);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: translateY(24px) scale(0.94);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.feedback-modal.is-open .feedback-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.feedback-close {
    /* 固定在视口右上角：面板或页面滚动都不影响它 */
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--text-secondary);
    background: rgba(10, 15, 26, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: all 0.25s ease;
}

.feedback-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.feedback-close svg {
    width: 16px;
    height: 16px;
}

.feedback-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    color: var(--cyan-400);
}

.feedback-head h3 {
    margin: 10px 0 8px;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
}

.feedback-head p {
    margin: 0 0 24px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.feedback-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.chip {
    padding: 9px 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 999px;
    transition: all 0.25s ease;
}

.chip:hover {
    color: #fff;
    border-color: rgba(96, 140, 255, 0.45);
}

.chip.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(99, 102, 241, 0.28));
    border-color: rgba(96, 140, 255, 0.6);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.22);
}

.feedback-field {
    display: block;
    position: relative;
    margin-bottom: 14px;
}

.feedback-field textarea,
.feedback-field input {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.92rem;
    line-height: 1.7;
    color: #e8eefc;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    outline: none;
    resize: vertical;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.feedback-field textarea::placeholder,
.feedback-field input::placeholder {
    color: rgba(148, 163, 184, 0.6);
}

.feedback-field textarea:focus,
.feedback-field input:focus {
    border-color: rgba(96, 140, 255, 0.6);
    background: rgba(59, 130, 246, 0.06);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.feedback-field.is-invalid textarea {
    border-color: rgba(248, 113, 113, 0.7);
    animation: fieldShake 0.4s ease;
}

@keyframes fieldShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.field-counter {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: rgba(148, 163, 184, 0.5);
    pointer-events: none;
}

.feedback-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
}

.feedback-status {
    font-size: 0.82rem;
    color: var(--text-muted);
    min-height: 1em;
}

.feedback-status.is-error {
    color: #f87171;
}

#feedbackSubmit {
    min-width: 148px;
    justify-content: center;
    gap: 10px;
    opacity: 1;
    transition: opacity 0.2s ease, box-shadow 0.3s ease;
}

/* 提交状态指示：旋转加载环 → 勾 / 叉 */
.submit-indicator {
    display: none;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    position: relative;
}

.submit-indicator.is-spin {
    display: inline-block;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
}

.submit-indicator.is-check,
.submit-indicator.is-cross {
    display: inline-block;
    animation: indicatorPop 0.3s var(--ease-out);
}

.submit-indicator.is-check::before,
.submit-indicator.is-cross::before {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.submit-indicator.is-check::before {
    content: '✓';
    color: #4ade80;
}

.submit-indicator.is-cross::before {
    content: '✕';
    color: #f87171;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes indicatorPop {
    0% { transform: scale(0.4); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); }
}

/* 附件上传 */
.feedback-attach {
    margin-bottom: 4px;
}

.attach-drop {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.attach-drop svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.attach-drop small {
    margin-left: auto;
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.65);
}

.attach-drop:hover {
    color: #fff;
    border-color: rgba(96, 140, 255, 0.5);
    background: rgba(59, 130, 246, 0.07);
}

.attach-list {
    list-style: none;
    display: grid;
    gap: 8px;
    margin: 10px 0 0;
    padding: 0;
}

.attach-list:empty {
    display: none;
}

.attach-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    animation: attachIn 0.25s var(--ease-out);
}

@keyframes attachIn {
    from { opacity: 0; transform: translateY(-4px); }
}

.attach-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #dbe6ff;
}

.attach-size {
    font-family: 'JetBrains Mono', monospace;
    color: rgba(148, 163, 184, 0.7);
}

.attach-remove {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 235, 255, 0.7);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.attach-remove:hover {
    background: rgba(248, 113, 113, 0.22);
    color: #fecaca;
}

/* 进入反馈页 / 提交成功时，表单内容被模糊，仅保留按钮 */
body.is-submit-transit .feedback-panel > *:not(.submit-keep) {
    filter: blur(9px) brightness(0.6);
    transition: filter 0.4s ease;
}

.feedback-modal.is-entering #feedbackSubmit {
    opacity: 0;
    pointer-events: none;
}

.feedback-caret {
    width: 2px;
    height: 1.05em;
    background: rgba(255, 255, 255, 0.9);
    animation: caretBlink 1s step-end infinite;
}

.feedback-success {
    text-align: center;
    padding: 12px 0 4px;
    animation: successIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feedback-success[hidden] {
    display: none;
}

@keyframes successIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-check {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.success-check circle {
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: drawRing 0.7s ease forwards;
}

.success-check path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawCheck 0.5s ease 0.5s forwards;
}

@keyframes drawRing {
    to { stroke-dashoffset: 0; }
}

@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.feedback-success h4 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #fff;
}

.feedback-success p {
    margin: 0 0 22px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

body.feedback-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .feedback-close {
        top: 16px;
        right: 16px;
        width: 34px;
        height: 34px;
    }

    .feedback-panel {
        padding: 28px 22px;
        border-radius: 20px;
    }

    /* 提交按钮保持内容宽度，不随屏幕拉满，避免过渡动画着陆位置错位 */
    .feedback-actions {
        flex-direction: column-reverse;
        align-items: flex-end;
    }

    #feedbackSubmit {
        width: auto;
    }
}

/* ============================================
   进入反馈页的过渡动画
   ============================================ */
.main-content {
    transition: filter 0.5s ease, transform 0.6s var(--ease-out);
}

body.is-feedback-transit .main-content {
    filter: blur(16px) brightness(0.45) saturate(0.8);
    transform: scale(1.015);
    pointer-events: none;
}

.transit-overlay {
    position: fixed;
    inset: 0;
    z-index: 2040;
    background: rgba(4, 8, 16, 0.35);
}

.transit-btn {
    position: fixed;
    z-index: 2050;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 28px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.45);
    transition:
        left 0.62s var(--ease-out),
        top 0.62s var(--ease-out),
        width 0.42s var(--ease-out),
        height 0.42s var(--ease-out),
        border-radius 0.42s ease,
        box-shadow 0.42s ease,
        transform 0.62s var(--ease-out),
        opacity 0.35s ease;
    will-change: left, top, width, transform;
}

.transit-btn .transit-content {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.transit-btn.is-morphing {
    transition:
        left 0.18s ease,
        top 0.22s ease,
        width 0.18s ease,
        height 0.2s ease,
        border-radius 0.2s ease,
        transform 0.4s var(--ease-out),
        opacity 0.25s ease;
}

.transit-btn .transit-label {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.transit-btn .char {
    display: inline-block;
    visibility: hidden;
}

.transit-btn .char.typed {
    visibility: visible;
    animation: charIn 0.2s var(--ease-out);
}

/* 光标独立于文字排版，绝对定位，不占字符宽度 */
.transit-btn .transit-caret {
    position: absolute;
    top: 50%;
    width: 2px;
    height: 1.12em;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%);
    animation: caretBlink 1s step-end infinite;
    pointer-events: none;
}

.transit-btn .transit-typing {
    position: relative;
    display: inline-block;
    white-space: pre;
}

.transit-btn .transit-morph {
    white-space: pre;
}

.transit-btn .transit-done {
    color: #7ef0c0;
    font-variant-numeric: tabular-nums;
}

.transit-btn.is-leaving {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
}

@media (prefers-reduced-motion: reduce) {
    body.is-feedback-transit .main-content {
        filter: none;
    }
}
