/* @J56789 统一主题 v6.7 · Aurora Indigo */

:root {
    /* 底色 */
    --bg-base: #eceef8;
    --bg: #e2e7f6;
    --bg-soft: #d6ddf0;
    --surface: rgba(255, 255, 255, 0.68);
    --surface-solid: #f8f9fd;
    --card: rgba(255, 255, 255, 0.52);
    --card-solid: #f3f5fb;
    --input-bg: rgba(255, 255, 255, 0.88);
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-bg-strong: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.88);
    --glass-blur: blur(20px) saturate(1.45);
    --glass-shadow: 0 8px 32px rgba(67, 56, 202, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);

    /* 边框 */
    --border: rgba(255, 255, 255, 0.82);
    --border-light: rgba(79, 70, 229, 0.1);

    /* 品牌主色 · 极光靛紫 */
    --accent: #4f46e5;
    --accent2: #6366f1;
    --accent-light: #818cf8;
    --accent-dark: #3730a3;
    --accent-glow: rgba(79, 70, 229, 0.14);
    --accent-ring: rgba(79, 70, 229, 0.24);
    --mesh-1: rgba(79, 70, 229, 0.2);
    --mesh-2: rgba(14, 165, 233, 0.16);
    --mesh-3: rgba(139, 92, 246, 0.12);
    --mesh-glow-a: rgba(79, 70, 229, 0.2);
    --mesh-glow-b: rgba(14, 165, 233, 0.15);
    --mesh-glow-c: rgba(167, 139, 250, 0.12);
    --mesh-glow-opacity: 0.44;
    --bg-dot: rgba(79, 70, 229, 0.06);
    --bg-dot-opacity: 0.5;
    --orb1: rgba(79, 70, 229, 0.3);
    --orb2: rgba(14, 165, 233, 0.22);
    --orb3: rgba(139, 92, 246, 0.18);

    /* 辅助色 · 青蓝 */
    --sky: #2b9fd6;
    --sky-light: #5eb8e8;
    --sky-glow: rgba(43, 159, 214, 0.1);

    /* 语义色 */
    --success: #0d9f6e;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #047857;
    --warning: #d97706;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #b45309;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --error-border: #fecaca;
    --error-text: #b91c1c;
    --info: #2563eb;
    --info-bg: #eff6ff;
    --info-border: #bfdbfe;
    --info-text: #1d4ed8;
    --purple: #7c3aed;
    --purple-bg: rgba(124, 58, 237, 0.08);
    --purple-border: #ddd6fe;
    --purple-text: #6d28d9;
    --amber: #e8a317;
    --coral: #ea580c;
    --green: var(--success);
    --red: var(--error);
    --orange: var(--warning);

    /* 频道标签 */
    --tag-dev-bg: var(--accent-glow);
    --tag-dev-fg: var(--accent-dark);
    --tag-mail-bg: var(--sky-glow);
    --tag-mail-fg: #0369a1;
    --tag-fb-bg: var(--purple-bg);
    --tag-fb-fg: var(--purple-text);
    --tag-apple-bg: rgba(234, 88, 12, 0.1);
    --tag-apple-fg: #c2410c;

    /* 文字 */
    --text: #1a2332;
    --muted: #5a6a7f;
    --dim: #8b97a8;

    /* 渐变 */
    --gradient: linear-gradient(135deg, #3730a3 0%, #4f46e5 42%, #0ea5e9 100%);
    --gradient-soft: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(14, 165, 233, 0.06) 100%);
    --gradient-warm: linear-gradient(135deg, #e8a317 0%, #ea580c 100%);
    --gradient-header: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 245, 251, 0.72) 100%);

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow: 0 8px 28px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
    --shadow-accent: 0 8px 28px rgba(79, 70, 229, 0.32);
    --shadow-glass: var(--glass-shadow);

    /* 圆角 & 布局 */
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --content-max: 1240px;
    --page-pad: 24px;
    --section-gap: 16px;
    --card-pad: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background:
        radial-gradient(ellipse 92% 72% at 8% -4%, var(--mesh-1) 0%, transparent 58%),
        radial-gradient(ellipse 74% 62% at 96% 12%, var(--mesh-2) 0%, transparent 54%),
        radial-gradient(ellipse 82% 52% at 48% 108%, var(--mesh-3) 0%, transparent 58%),
        linear-gradient(168deg, var(--bg-base) 0%, var(--bg) 46%, #d8e2f2 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.app-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(circle 480px at 80% 18%, var(--mesh-2) 0%, transparent 72%),
        radial-gradient(circle 400px at 10% 72%, var(--mesh-1) 0%, transparent 70%),
        radial-gradient(ellipse 55% 42% at 50% -8%, rgba(255, 255, 255, 0.55) 0%, transparent 72%);
    opacity: 0.94;
}

.app-bg::before {
    content: '';
    position: absolute;
    inset: -20%;
    background-image: radial-gradient(circle, var(--bg-dot) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: var(--bg-dot-opacity);
    mask-image: radial-gradient(ellipse 86% 76% at 50% 34%, #000 14%, transparent 74%);
    -webkit-mask-image: radial-gradient(ellipse 86% 76% at 50% 34%, #000 14%, transparent 74%);
    animation: appDotDrift 38s linear infinite;
}

.app-bg::after {
    content: '';
    position: absolute;
    width: min(74vmax, 960px);
    height: min(74vmax, 960px);
    top: 40%;
    left: 56%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--mesh-glow-a) 52deg,
        var(--mesh-glow-b) 118deg,
        transparent 198deg,
        var(--mesh-glow-c) 276deg,
        transparent 360deg
    );
    opacity: var(--mesh-glow-opacity);
    filter: blur(82px);
    animation: appGlowSpin 48s linear infinite;
}

.app-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
}

.app-orb-1 {
    width: 520px;
    height: 520px;
    top: -200px;
    right: -120px;
    background: var(--orb1);
    animation: appOrbFloat 24s ease-in-out infinite;
}

.app-orb-2 {
    width: 420px;
    height: 420px;
    bottom: -120px;
    left: -100px;
    background: var(--orb2);
    animation: appOrbFloat 30s ease-in-out infinite reverse;
}

.app-orb-3 {
    width: 280px;
    height: 280px;
    top: 42%;
    left: 38%;
    transform: translate(-50%, -50%);
    background: var(--orb3);
    animation: appOrbPulse 18s ease-in-out infinite;
}

body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(92px);
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 560px;
    height: 560px;
    top: -220px;
    right: -160px;
    background: var(--orb1);
}

body::after {
    width: 440px;
    height: 440px;
    bottom: -120px;
    left: -120px;
    background: var(--orb2);
}

@keyframes appDotDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(26px, 26px); }
}

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

@keyframes appOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50% { transform: translate(24px, -28px) scale(1.08); opacity: 1; }
}

@keyframes appOrbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.45; }
    50% { transform: translate(-50%, -50%) scale(1.12); opacity: 0.75; }
}

@media (prefers-reduced-motion: no-preference) {
    body::before { animation: appOrbFloat 22s ease-in-out infinite; }
    body::after { animation: appOrbFloat 28s ease-in-out infinite reverse; }
}

@media (prefers-reduced-motion: reduce) {
    .app-bg::before,
    .app-bg::after,
    .app-orb,
    body::before,
    body::after {
        animation: none !important;
    }
}

/* Brand Logo */
.brand-logo {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 14px rgba(79, 70, 229, 0.28));
}

.brand-logo svg { display: block; width: 100%; height: 100%; }

.brand-logo.lg {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 8px 22px rgba(79, 70, 229, 0.3));
}

.version-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.14) 0%, rgba(14, 165, 233, 0.1) 100%);
    color: var(--accent-dark);
    border: 1px solid var(--accent-ring);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* 统一内容区宽度 */
.content-wrap {
    max-width: var(--content-max);
    margin: 0 auto;
    width: 100%;
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
}

/* Font Awesome 图标 */
.card-icon i,
.login-icon i,
.feature-chip .ico i,
.info-box > strong i,
.card-title > i,
.next-times-title > i,
.preview-header h2 > i,
.footer-note > i,
.input-wrap > .icon i {
    line-height: 1;
}

.card-icon.indigo i { color: var(--accent); }
.card-icon.sky i { color: var(--sky); }
.card-icon.green i { color: var(--success); }
.card-icon.violet i { color: var(--purple); }
.login-icon i { color: var(--accent); font-size: 18px; }
.feature-chip .ico i { color: var(--accent); font-size: 16px; }

.menu-btn i,
.preview-menu-btn i,
.btn i,
.btn-scheduler i,
.btn-system i {
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.95;
}

.menu-btn i.fa-brands,
.preview-menu-btn i.fa-brands {
    font-size: 15px;
}

.status i { margin-right: 6px; }
