/* ====================================
   主题变量系统 - Neumorphism设计
   ==================================== */

:root {
    /* ========== 浅色主题 ========== */
    --theme-light-bg-primary: #f0f0f3;
    --theme-light-bg-secondary: #ffffff;
    --theme-light-bg-card: #f0f0f3;
    --theme-light-shadow-light: #ffffff;
    --theme-light-shadow-dark: #d1d9e6;
    --theme-light-text-primary: #2d3748;
    --theme-light-text-secondary: #718096;
    --theme-light-text-muted: #a0aec0;

    /* ========== 深色主题 ========== */
    --theme-dark-bg-primary: #2d3748;
    --theme-dark-bg-secondary: #1a202c;
    --theme-dark-bg-card: #2d3748;
    --theme-dark-shadow-light: #4a5568;
    --theme-dark-shadow-dark: #171923;
    --theme-dark-text-primary: #f7fafc;
    --theme-dark-text-secondary: #a0aec0;
    --theme-dark-text-muted: #718096;

    /* ========== 主题色系 ========== */
    --primary-color: #ff9000;
    --primary-hover: #e67e22;
    --primary-light: #ffb84d;
    --primary-dark: #cc7400;

    /* ========== 背景渐变（可被主题覆盖） ========== */
    --bg-gradient-start: #84fab0;
    --bg-gradient-end: #8fd3f4;

    /* ========== 功能色彩 ========== */
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --error-color: #f56565;
    --info-color: #4299e1;

    /* ========== 默认使用深色主题 ========== */
    --bg-primary: var(--theme-dark-bg-primary);
    --bg-secondary: var(--theme-dark-bg-secondary);
    --bg-card: var(--theme-dark-bg-card);
    --shadow-light: var(--theme-dark-shadow-light);
    --shadow-dark: var(--theme-dark-shadow-dark);
    --text-primary: var(--theme-dark-text-primary);
    --text-secondary: var(--theme-dark-text-secondary);
    --text-muted: var(--theme-dark-text-muted);

    /* ========== Neumorphism变量 ========== */
    --neuro-distance: 20px;
    --neuro-intensity: 0.15;
    --neuro-blur: 30px;
    --neuro-radius: 20px;

    /* ========== 过渡动画 ========== */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* ========== 间距系统 ========== */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
}

/* ========== 浅色主题切换 ========== */
[data-theme="light"] {
    --bg-primary: var(--theme-light-bg-primary);
    --bg-secondary: var(--theme-light-bg-secondary);
    --bg-card: var(--theme-light-bg-card);
    --shadow-light: var(--theme-light-shadow-light);
    --shadow-dark: var(--theme-light-shadow-dark);
    --text-primary: var(--theme-light-text-primary);
    --text-secondary: var(--theme-light-text-secondary);
    --text-muted: var(--theme-light-text-muted);
}

/* ========== 深色主题切换 ========== */
[data-theme="dark"] {
    --bg-primary: var(--theme-dark-bg-primary);
    --bg-secondary: var(--theme-dark-bg-secondary);
    --bg-card: var(--theme-dark-bg-card);
    --shadow-light: var(--theme-dark-shadow-light);
    --shadow-dark: var(--theme-dark-shadow-dark);
    --text-primary: var(--theme-dark-text-primary);
    --text-secondary: var(--theme-dark-text-secondary);
    --text-muted: var(--theme-dark-text-muted);
}

/* ========== 系统主题检测 ========== */
@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg-primary: var(--theme-light-bg-primary);
        --bg-secondary: var(--theme-light-bg-secondary);
        --bg-card: var(--theme-light-bg-card);
        --shadow-light: var(--theme-light-shadow-light);
        --shadow-dark: var(--theme-light-shadow-dark);
        --text-primary: var(--theme-light-text-primary);
        --text-secondary: var(--theme-light-text-secondary);
        --text-muted: var(--theme-light-text-muted);
    }
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg-primary: var(--theme-dark-bg-primary);
        --bg-secondary: var(--theme-dark-bg-secondary);
        --bg-card: var(--theme-dark-bg-card);
        --shadow-light: var(--theme-dark-shadow-light);
        --shadow-dark: var(--theme-dark-shadow-dark);
        --text-primary: var(--theme-dark-text-primary);
        --text-secondary: var(--theme-dark-text-secondary);
        --text-muted: var(--theme-dark-text-muted);
    }
}

/* 主容器渐变背景：全站统一线性渐变（固定、无重复） */
.min-h-screen, body {
    background-image: linear-gradient(120deg, #84fab0 0%, #8fd3f4 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 浮动链接样式：文字悬浮于背景上（无卡片背景） */
.floating-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 1200;
    text-shadow: 0 6px 20px rgba(0,0,0,0.35);
    transition: transform var(--transition-fast), color var(--transition-fast), text-shadow var(--transition-fast);
}

.floating-link i {
    font-size: 1.6rem;
    color: var(--primary-color);
}

.floating-link .floating-title {
    font-size: 0.95rem;
    line-height: 1.1;
}

.floating-link:hover {
    transform: translateY(-6px);
    color: var(--primary-color);
    text-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

/* 容器内让链接保持居中与间距 */
.link-grid {
    display: grid;
    grid-template-columns: repeat( auto-fit, minmax(18rem, 1fr) );
    gap: 1.2rem;
    justify-items: center;
    align-items: center;
}

/* 标题面板：移除卡片背景并让标题文字悬浮于背景上 */
header.neuro-panel {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding-top: var(--space-lg);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
}

header.neuro-panel h1 {
    color: var(--primary-color);
    text-shadow: 0 8px 26px rgba(0,0,0,0.35);
    margin: 0;
}

header.neuro-panel p {
    color: var(--text-secondary);
    text-shadow: 0 6px 18px rgba(0,0,0,0.28);
}