/**
 * 现代化用户管理系统 - 全局样式
 * 深邃暗色 + 玻璃拟态 + 精致动效
 */

/* ==================== 变量定义 ==================== */
:root {
    /* 色彩系统 */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-card: rgba(18, 18, 26, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #22d3ee;
    
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-disabled: #475569;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* 间距 */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    
    /* 动画 */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    
    /* 字体 */
    --font-sans: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

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

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ==================== 背景效果 ==================== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(139, 92, 246, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 10% 90%, rgba(34, 211, 238, 0.08), transparent);
    pointer-events: none;
    z-index: -1;
}

.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* ==================== 布局容器 ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding-top: 80px;
}

/* ==================== 导航栏 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.navbar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
    box-shadow: var(--shadow-glow);
}

.navbar-title {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.navbar-link {
    position: relative;
    font-size: 15px;
    color: var(--text-secondary);
    padding: var(--space-2) 0;
    transition: color var(--duration-fast) var(--ease-out);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    transition: width var(--duration-normal) var(--ease-out);
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--text-primary);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* ==================== 用户菜单 ==================== */
.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.user-menu-trigger:hover {
    background: var(--bg-glass);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.user-dropdown-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    transition: transform var(--duration-fast) var(--ease-out);
}

.user-menu.open .user-dropdown-icon {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-fast) var(--ease-out);
}

.user-menu.open .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.user-dropdown-item:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.user-dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: var(--space-2) 0;
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-out);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.btn-primary:active {
    transform: translateY(0);
}

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

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--text-muted);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--error), #dc2626);
    color: white;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 16px;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== 表单组件 ==================== */
.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: var(--space-4);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

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

.form-input:hover {
    border-color: var(--text-muted);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-input.error {
    border-color: var(--error);
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-input-icon {
    position: absolute;
    left: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

.form-input.has-icon {
    padding-left: calc(var(--space-4) + 18px + var(--space-3));
}

.form-error {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: 13px;
    color: var(--error);
    opacity: 0;
    transform: translateY(-5px);
    transition: all var(--duration-fast) var(--ease-out);
}

.form-error.show {
    opacity: 1;
    transform: translateY(0);
}

.form-hint {
    margin-top: var(--space-2);
    font-size: 13px;
    color: var(--text-muted);
}

/* 密码强度指示器 */
.password-strength {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.password-strength-item {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out);
}

.password-strength-item.active {
    background: var(--error);
}

.password-strength-item.active.medium {
    background: var(--warning);
}

.password-strength-item.active.strong {
    background: var(--success);
}

/* ==================== 卡片组件 ==================== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-md);
}

.card-glass {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==================== 认证页面布局 ==================== */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 968px) {
    .auth-page {
        grid-template-columns: 1fr;
    }
}

.auth-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-16);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    position: relative;
    overflow: hidden;
}

@media (max-width: 968px) {
    .auth-hero {
        display: none;
    }
}

.auth-hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.2), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.15), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.1), transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

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

.auth-hero-content {
    position: relative;
    z-index: 1;
}

.auth-hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 400px;
}

.auth-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--space-16);
    background: var(--bg-primary);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.auth-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.auth-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

.auth-form {
    margin-bottom: var(--space-6);
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 500;
}

/* ── 注册页版本选择器 ─────────────────────────────────────── */
.user-type-selector {
    gap: 12px;
}

.user-type-card {
    position: relative;
    padding: 16px 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
    background: var(--bg-glass);
}

.user-type-card:hover {
    border-color: var(--primary-color);
    background: rgba(34, 211, 238, 0.05);
    transform: translateY(-1px);
}

.user-type-card.selected {
    border-color: var(--primary-color);
    background: rgba(34, 211, 238, 0.08);
    box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2);
}

.user-type-icon {
    font-size: 28px;
    margin-bottom: 8px;
    line-height: 1;
}

.user-type-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.user-type-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.auth-footer a:hover {
    color: var(--primary-light);
}

/* ==================== 首页 ==================== */
.hero {
    position: relative;
    padding: var(--space-16) 0;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

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

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

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.hero-title-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }
    .hero-actions {
        flex-direction: column;
    }
}

/* 特性展示 */
.features {
    padding: var(--space-16) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
    font-size: 24px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==================== 个人中心 ==================== */
.profile-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
    padding: var(--space-8) 0;
}

@media (max-width: 968px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

.profile-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    height: fit-content;
    position: sticky;
    top: 100px;
}

@media (max-width: 968px) {
    .profile-sidebar {
        position: static;
    }
}

.profile-user {
    text-align: center;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-6);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: white;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.profile-email {
    font-size: 14px;
    color: var(--text-muted);
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.profile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
}

.profile-nav-item:hover {
    background: var(--bg-glass);
    color: var(--text-primary);
}

.profile-nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.1));
    color: var(--primary);
}

.profile-nav-icon {
    width: 18px;
    height: 18px;
}

.profile-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.profile-section {
    margin-bottom: var(--space-8);
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-light);
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (max-width: 640px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }
}

.profile-info-item {
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.profile-info-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
}

.profile-info-value {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==================== 通知提示 ==================== */
.toast-container {
    position: fixed;
    top: 100px;
    right: var(--space-6);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 320px;
    max-width: 420px;
    animation: slideIn 0.3s var(--ease-out);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.hide {
    animation: slideOut 0.3s var(--ease-out) forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--success); }
.toast.error .toast-icon { color: var(--error); }
.toast.warning .toast-icon { color: var(--warning); }
.toast.info .toast-icon { color: var(--info); }

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.warning { border-left: 3px solid var(--warning); }
.toast.info { border-left: 3px solid var(--info); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-close {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--duration-fast);
}

.toast-close:hover {
    color: var(--text-primary);
}

/* ==================== 页脚 ==================== */
.footer {
    padding: var(--space-8) 0;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

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

@media (max-width: 640px) {
    .footer-inner {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

.footer-text {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
}

.footer-link {
    font-size: 14px;
    color: var(--text-muted);
}

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

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none !important; }
.visible { visibility: visible; }
.invisible { visibility: hidden; }

/* ==================== 加载动画 ==================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ==================== 响应式 ==================== */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .container {
        padding: 0 var(--space-4);
    }
    
    .card {
        padding: var(--space-6);
    }
}

/* ==================== 头像上传 ==================== */
.avatar-upload {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.avatar-preview:hover {
    border-color: var(--primary);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-preview-placeholder {
    font-size: 32px;
    color: var(--text-muted);
}

.avatar-upload-info h4 {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.avatar-upload-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==================== 电商采集官网首页（ec-home） ==================== */
body.ec-home .bg-gradient {
    background:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(34, 211, 238, 0.12), transparent),
        radial-gradient(ellipse 50% 40% at 95% 20%, rgba(245, 215, 66, 0.08), transparent),
        radial-gradient(ellipse 45% 35% at 5% 85%, rgba(59, 130, 246, 0.1), transparent),
        linear-gradient(180deg, #050810 0%, #0a0f1a 45%, #060912 100%);
}

.navbar-logo-ec {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(245, 215, 66, 0.2));
    border: 1px solid rgba(34, 211, 238, 0.45);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
    color: #f5d742;
    font-weight: 800;
}

.ec-landing {
    padding-top: 72px;
}

.ec-hero {
    position: relative;
    padding: 72px 0 88px;
    overflow: hidden;
}

.ec-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
    pointer-events: none;
}

.ec-hero-inner {
    position: relative;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.ec-hero-deco {
    position: absolute;
    width: 100%;
    left: 0;
    top: -10px;
    height: 80px;
    pointer-events: none;
    opacity: 0.85;
}

.ec-coin {
    position: absolute;
    font-size: 22px;
    color: #f5d742;
    text-shadow: 0 0 12px rgba(245, 215, 66, 0.6);
    left: 8%;
    top: 10px;
    animation: ec-float 4s ease-in-out infinite;
}

.ec-coin--2 {
    left: auto;
    right: 10%;
    top: 24px;
    animation-delay: -1.5s;
}

.ec-chart {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 140px;
    height: 56px;
    opacity: 0.9;
}

@keyframes ec-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.ec-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 20px;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.1);
}

.ec-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
}

.ec-hero-subbar {
    display: inline-block;
    padding: 6px 20px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(248, 250, 252, 0.85);
    background: rgba(8, 20, 40, 0.65);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: var(--radius-md);
    letter-spacing: 0.08em;
}

.ec-hero-title {
    font-size: clamp(1.5rem, 4.2vw, 2.35rem);
    font-weight: 800;
    line-height: 1.35;
    color: #f5d742;
    text-shadow:
        0 0 24px rgba(245, 215, 66, 0.35),
        0 0 48px rgba(34, 211, 238, 0.15);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.ec-hero-slogan {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: #fde047;
    margin-bottom: 24px;
    text-shadow: 0 0 20px rgba(253, 224, 71, 0.25);
}

.ec-hero-lead {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

.ec-section {
    padding: 72px 0;
}

.ec-section--alt {
    background: linear-gradient(180deg, rgba(8, 14, 28, 0.5) 0%, rgba(10, 10, 18, 0.3) 100%);
    border-top: 1px solid rgba(34, 211, 238, 0.08);
    border-bottom: 1px solid rgba(34, 211, 238, 0.06);
}

.ec-section-head {
    text-align: center;
    margin-bottom: 40px;
}

.ec-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ec-section-desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

.ec-platform-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-bottom: 28px;
}

.ec-platform-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 17px;
    border: 1px solid rgba(34, 211, 238, 0.35);
    box-shadow:
        0 0 20px rgba(34, 211, 238, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    background: rgba(6, 12, 28, 0.75);
}

.ec-platform-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 16px;
}

.ec-platform-pill--tb .ec-platform-mark {
    background: linear-gradient(135deg, #ff6a00, #ff4400);
    color: #fff;
}

.ec-platform-pill--pdd .ec-platform-mark {
    background: linear-gradient(135deg, #e02e24, #c41e16);
    color: #fff;
}

.ec-platform-pill--jd .ec-platform-mark {
    background: linear-gradient(135deg, #e3393c, #b71c1c);
    color: #fff;
}

.ec-panel {
    border-radius: var(--radius-xl);
    padding: 28px 32px;
    background: rgba(6, 12, 28, 0.72);
    border: 1px solid rgba(34, 211, 238, 0.28);
    box-shadow:
        0 0 32px rgba(34, 211, 238, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.ec-panel--wide {
    max-width: 900px;
    margin: 0 auto;
}

.ec-panel--lift {
    transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.ec-panel--lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

.ec-panel-text {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.ec-panel-text strong {
    color: #a5f3fc;
}

.ec-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 992px) {
    .ec-cards {
        grid-template-columns: 1fr;
    }
}

.ec-card {
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    background: rgba(5, 10, 24, 0.85);
    border: 1px solid rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.06);
    transition: border-color var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}

.ec-card:hover {
    border-color: rgba(245, 215, 66, 0.35);
    box-shadow: 0 0 36px rgba(245, 215, 66, 0.1);
}

.ec-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}

.ec-card-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: #fff;
}

.ec-card-logo--pdd {
    background: linear-gradient(135deg, #e02e24, #9a1810);
}

.ec-card-logo--tb {
    background: linear-gradient(135deg, #ff6a00, #cc4400);
}

.ec-card-logo--jd {
    background: linear-gradient(135deg, #e3393c, #8b1518);
}

.ec-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.ec-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ec-card-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.ec-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

.ec-card-list li strong {
    color: #fef08a;
}

.ec-pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .ec-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.ec-panel--accent {
    border-color: rgba(245, 215, 66, 0.35);
    box-shadow: 0 0 32px rgba(245, 215, 66, 0.08);
}

.ec-block-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.ec-block-body {
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-secondary);
}

.ec-gold {
    color: #f5d742;
}

.ec-price-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ec-price-row {
    padding: 18px 0;
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
}

.ec-price-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ec-price-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 8px;
}

.ec-price-label {
    font-weight: 600;
    color: #a5f3fc;
    font-size: 16px;
    min-width: 3em;
}

.ec-price-num {
    font-size: 32px;
    font-weight: 800;
    color: #f5d742;
    text-shadow: 0 0 16px rgba(245, 215, 66, 0.25);
    line-height: 1;
}

.ec-price-currency {
    font-size: 0.55em;
    font-weight: 700;
    margin-right: 2px;
    opacity: 0.9;
}

.ec-price-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.ec-tech-tag {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.2);
}

/* ═══════════════════════════════════════════════════════════════
   动效系统
═══════════════════════════════════════════════════════════════ */

/* ── 基础：入场动画 ──────────────────────────────────────────── */
.ec-reveal {
    opacity: 0;
    transition:
        opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.ec-reveal--fade {
    opacity: 0;
}

.ec-reveal--fade.is-visible {
    opacity: 1;
}

.ec-reveal--slide-up {
    opacity: 0;
    transform: translateY(28px);
}

.ec-reveal--slide-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ec-reveal--slide-left {
    opacity: 0;
    transform: translateX(-36px);
}

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

.ec-reveal--slide-right {
    opacity: 0;
    transform: translateX(36px);
}

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

.ec-reveal--zoom {
    opacity: 0;
    transform: scale(0.88);
}

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

/* 无动画偏好时直接展示，避免依赖 JS 才可见 */
@media (prefers-reduced-motion: reduce) {
    .ec-reveal,
    .ec-reveal.is-visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ── Hero 扫描线 ─────────────────────────────────────────────── */
.ec-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.9), transparent);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.6);
    animation: ec-scan 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes ec-scan {
    0%   { top: 0; opacity: 1; }
    80%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ── 装饰光圈 ───────────────────────────────────────────────── */
.ec-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
    animation: ec-pulse-orb 6s ease-in-out infinite;
}

.ec-glow-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.12) 0%, transparent 70%);
    top: -120px;
    left: -100px;
    animation-duration: 7s;
}

.ec-glow-orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(245, 215, 66, 0.08) 0%, transparent 70%);
    bottom: 0;
    right: -80px;
    animation-duration: 9s;
    animation-delay: -3s;
}

@keyframes ec-pulse-orb {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50%       { transform: scale(1.15); opacity: 1; }
}

/* ── Hero 浮动金币 ──────────────────────────────────────────── */
.ec-coin {
    position: absolute;
    font-size: 24px;
    color: #f5d742;
    text-shadow: 0 0 16px rgba(245, 215, 66, 0.7);
    animation: ec-float-coin 3.5s ease-in-out infinite;
    user-select: none;
}

.ec-coin--1 {
    left: 6%;
    top: 8px;
    animation-delay: 0s;
}

.ec-coin--2 {
    right: 8%;
    top: 28px;
    animation-delay: -1.4s;
}

@keyframes ec-float-coin {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%       { transform: translateY(-10px) rotate(5deg); }
    75%       { transform: translateY(-5px) rotate(-3deg); }
}

/* ── Hero 折线动画 ───────────────────────────────────────────── */
.ec-chart {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
    width: 150px;
    height: 56px;
}

/* ── 打字机光标 ─────────────────────────────────────────────── */
.typewriter-cursor {
    display: inline-block;
    color: #22d3ee;
    font-weight: 300;
    animation: ec-blink-cursor 0.85s step-end infinite;
    margin-left: 2px;
}

@keyframes ec-blink-cursor {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ── 平台标签脉冲（定时自动，JS 控制）─────────────────────── */
.ec-platform-pill {
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.5s ease;
}

/* ── 福利卡片流光边框 ──────────────────────────────────────── */
.ec-benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 880px;
    margin: 0 auto;
}

@media (max-width: 700px) {
    .ec-benefit-grid {
        grid-template-columns: 1fr;
    }
}

.ec-benefit-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 44px 32px;
    background: rgba(6, 12, 28, 0.8);
    border: 1px solid rgba(34, 211, 238, 0.28);
    text-align: center;
    transition:
        transform 0.4s var(--ease-spring),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    cursor: default;
}

.ec-benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(34, 211, 238, 0.4) 0%,
        transparent 40%,
        transparent 60%,
        rgba(245, 215, 66, 0.3) 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ec-benefit-card:hover::before {
    opacity: 1;
}

.ec-benefit-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(245, 215, 66, 0.5);
    box-shadow:
        0 0 40px rgba(245, 215, 66, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.4);
}

.ec-benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 20px;
    background: rgba(34, 211, 238, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s var(--ease-spring), background 0.3s ease;
}

.ec-benefit-card:nth-child(2) .ec-benefit-icon {
    background: rgba(245, 215, 66, 0.08);
}

.ec-benefit-card:hover .ec-benefit-icon {
    transform: scale(1.12) rotate(-5deg);
}

.ec-benefit-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ec-benefit-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.ec-benefit-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ec-benefit-card:hover .ec-benefit-glow {
    opacity: 1;
    animation: ec-glow-pulse 2s ease-in-out infinite;
}

.ec-benefit-glow--orange {
    background: radial-gradient(circle, rgba(255, 106, 0, 0.15) 0%, transparent 70%);
}

.ec-benefit-glow--cyan {
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
}

@keyframes ec-glow-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%       { transform: translate(-50%, -50%) scale(1.25); }
}

/* ── 福利卡片粒子 ──────────────────────────────────────────── */
.ec-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ec-particle-fly 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
}

@keyframes ec-particle-fly {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0); opacity: 0; }
}

/* ── 数字计数器（JS 驱动）────────────────────────────────── */
.ec-counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

/* ── 价格行悬停 ────────────────────────────────────────────── */
.ec-price-row--hover {
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    margin: -18px -16px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.ec-price-row--hover:hover {
    background: rgba(34, 211, 238, 0.04);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.06);
}

/* ── 技术标签入场（错位 stagger）──────────────────────────── */
.ec-tech-tags {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ec-tech-tags .ec-tech-tag {
    opacity: 0;
    animation: ec-tag-pop 0.5s var(--ease-spring) forwards;
}

.ec-tech-tags .ec-tech-tag:nth-child(1) { animation-delay: 0.1s; }
.ec-tech-tags .ec-tech-tag:nth-child(2) { animation-delay: 0.2s; }
.ec-tech-tags .ec-tech-tag:nth-child(3) { animation-delay: 0.3s; }
.ec-tech-tags .ec-tech-tag:nth-child(4) { animation-delay: 0.4s; }

/* ── 首页资源下载 ───────────────────────────────────────────── */
.ec-download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.ec-download-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 28px 16px;
    font-size: 15px;
}

.ec-download-card {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    border: 1px solid rgba(34, 211, 238, 0.2);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.ec-download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.1);
}

.ec-download-icon {
    font-size: 36px;
    line-height: 1;
    margin-bottom: 14px;
}

.ec-download-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.ec-download-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.ec-download-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.ec-download-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.ec-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
}

@media (max-width: 480px) {
    .ec-download-foot {
        flex-direction: column;
        align-items: stretch;
    }
    .ec-download-actions {
        justify-content: stretch;
    }
    .ec-download-actions .btn {
        flex: 1;
        text-align: center;
    }
}

@keyframes ec-tag-pop {
    0%   { opacity: 0; transform: scale(0.6); }
    100% { opacity: 1; transform: scale(1); }
}

/* ── 滚动条进度提示（右上角 mini 指示器）─────────────────── */
.ec-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, #22d3ee, #f5d742);
    z-index: 9999;
    transition: width 0.1s linear;
}
