/* =================================
   AI音乐生成平台 - 统一样式表
   合并自: design-system.css + components.css + index-new.css
   生成时间: 2026-08-21 03:34:56
   ================================= */

/* ========== Design System Tokens ========== */
/* =========================
   AI音乐生成平台 - 设计系统
   深色主题，现代流体设计
   ========================= */

:root {
    /* 字体族 - 通过变量引用 */
    --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Consolas', monospace;

    /* 表面层级 - 土豪金主题 */
    --surface-0: #fef7e7;
    --surface-1: #fdf4dc;
    --surface-2: #fffbf0;
    --surface-3: #f5e6c8;
    --surface-4: #e8d4a8;
    --surface-5: #d4b98a;

    /* 强调色 - 金色为主 */
    --accent-primary: #d4af37;
    --accent-primary-hover: #b8941f;
    --accent-primary-glow: rgba(212, 175, 55, 0.3);

    /* 辅助强调色 */
    --accent-warm: #E9A568;
    --accent-warm-hover: #F59E0B;
    --accent-success: #6EE7B7;
    --accent-danger: #F87171;
    --accent-warning: #FBBF24;

    /* 文字颜色 - 亮色模式 */
    --text-primary: rgba(17, 24, 39, 0.95);
    --text-secondary: rgba(75, 85, 99, 0.8);
    --text-muted: rgba(107, 114, 128, 0.6);
    --text-inverse: #0A0D12;

    /* 流体字号 - 响应式缩放 (优化后) */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(0.875rem, 0.85rem + 0.25vw, 1rem);
    --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-xl: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
    --text-2xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-3xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
    --text-4xl: clamp(1.875rem, 1.65rem + 1vw, 2.25rem);
    --text-display: clamp(2rem, 1.75rem + 1.25vw, 2.75rem);

    /* 行高 */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* 字重 */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* 间距系统 (优化后) */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 3rem;
    --space-20: 3.5rem;
    --space-24: 4rem;

    /* 圆角系统 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 999px;

    /* 阴影系统 - 亮色主题 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 30px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px var(--accent-primary-glow);
    --shadow-glow-strong: 0 0 40px var(--accent-primary-glow);

    /* 边框 */
    --border-1: 1px solid var(--surface-4);
    --border-2: 2px solid var(--surface-4);
    --border-accent: 1px solid var(--accent-primary);

    /* 过渡动画 */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

    /* 渐变 */
    --gradient-primary: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
    --gradient-warm: linear-gradient(135deg, #E9A568 0%, #F59E0B 100%);
    --gradient-success: linear-gradient(135deg, #6EE7B7 0%, #10B981 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(180deg, var(--surface-1) 0%, var(--surface-0) 100%);
}

/* 全局重置 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: #fef7e7 !important;
    overflow-x: hidden;
}

/* 标题字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

/* 链接 */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-primary-hover);
}

/* 按钮基础样式 */
button {
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition-base);
}

/* 输入框基础样式 */
input, textarea, select {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--surface-3);
    border: var(--border-1);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    transition: all var(--transition-base);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface-2);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-4);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--surface-5);
}

/* 选中文本 */
::selection {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

/* ========== Components ========== */
/* =========================
   组件库 - 基于设计系统
   ========================= */

/* 容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* 按钮组件 */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    white-space: nowrap;
    user-select: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

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

.btn-secondary {
    background: var(--surface-3);
    color: var(--text-primary);
    border: var(--border-accent);
}

.btn-secondary:hover {
    background: var(--surface-4);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: var(--border-accent);
}

.btn-outline:hover {
    background: var(--surface-3);
    box-shadow: var(--shadow-glow);
}

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

.btn-ghost:hover {
    color: var(--accent-primary);
    background: var(--surface-3);
}

.btn-danger {
    background: var(--accent-danger);
    color: white;
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

/* 按钮尺寸 */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

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

/* 卡片组件 */
.card {
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    border: var(--border-1);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

.card-body {
    color: var(--text-secondary);
}

.card-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: var(--border-1);
    display: flex;
    gap: var(--space-3);
}

/* 输入框组件 */
.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.input-label {
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
}

.input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--surface-3);
    border: var(--border-1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

.input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    background: var(--surface-4);
}

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

.textarea {
    min-height: 120px;
    resize: vertical;
    font-family: var(--font-body);
}

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2338BDF8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    background-size: 1.5rem;
    padding-right: var(--space-10);
}

/* 徽章 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: var(--accent-primary);
    color: var(--text-inverse);
}

.badge-success {
    background: var(--accent-success);
    color: var(--text-inverse);
}

.badge-warning {
    background: var(--accent-warning);
    color: var(--text-inverse);
}

.badge-danger {
    background: var(--accent-danger);
    color: white;
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* 标签 */
.tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: var(--surface-3);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.tag:hover {
    background: var(--surface-4);
    color: var(--accent-primary);
}

.tag.active {
    background: var(--accent-primary);
    color: white;
}

/* 分隔线 */
.divider {
    height: 1px;
    background: var(--surface-4);
    margin: var(--space-6) 0;
}

/* 加载动画 */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--surface-4);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 图标按钮 */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--surface-4);
    color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* 进度条 */
.progress {
    width: 100%;
    height: 8px;
    background: var(--surface-3);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* 通知提示 */
.toast {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    min-width: 300px;
    padding: var(--space-4);
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: var(--border-1);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    border-left: 4px solid var(--accent-success);
}

.toast-error {
    border-left: 4px solid var(--accent-danger);
}

.toast-warning {
    border-left: 4px solid var(--accent-warning);
}

.toast-info {
    border-left: 4px solid var(--accent-primary);
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--surface-2);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-2xl);
    border: var(--border-1);
    animation: slideInUp 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.modal-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--surface-4);
    color: var(--text-primary);
}

/* 工具提示 */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: var(--space-2) var(--space-3);
    background: var(--surface-5);
    color: var(--text-primary);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
    box-shadow: var(--shadow-lg);
}

.tooltip:hover::after {
    opacity: 1;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: var(--text-display);
    margin-bottom: var(--space-4);
    opacity: 0.3;
}

.empty-state-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

/* 网格布局 */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 响应式隐藏 */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ========== Shared Layout Components ========== */

/* 导航栏 - 所有页面共享 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface-2);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-1);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: var(--surface-2);
    box-shadow: var(--shadow-lg);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    font-family: var(--font-display);
}

.navbar-brand i {
    color: var(--accent-primary);
    font-size: var(--text-2xl);
}

.navbar-menu {
    display: flex;
    gap: var(--space-6);
}

.navbar-link {
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    transition: color var(--transition-fast);
    position: relative;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width var(--transition-base);
}

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

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

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

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

.user-credits {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--surface-3);
    border-radius: var(--radius-full);
    color: var(--accent-warm);
    font-weight: var(--font-semibold);
}

/* ========== Page-specific Styles ========== */
/* =========================
   首页专属样式
   ========================= */

.user-dropdown {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--accent-primary);
    transition: all var(--transition-fast);
}

.user-avatar:hover {
    box-shadow: var(--shadow-glow);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + var(--space-2));
    right: 0;
    min-width: 200px;
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: var(--border-1);
    padding: var(--space-2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all var(--transition-base);
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--surface-3);
    color: var(--accent-primary);
}

.mobile-menu-btn {
    display: none;
    font-size: var(--text-xl);
    color: var(--text-primary);
}

/* Hero 区域 */
.hero {
    position: relative;
    min-height: 75vh;
    display: grid;
    align-items: center;
    padding-top: 80px;
    padding-bottom: var(--space-8);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #0A0D12 100%);
    opacity: 0.9;
}

.hero-waves {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 300px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    animation: wave 8s ease-in-out infinite;
}

.wave:nth-child(2) {
    animation-delay: -2s;
    opacity: 0.7;
}

.wave:nth-child(3) {
    animation-delay: -4s;
    opacity: 0.5;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    50% {
        transform: translateX(-50%) translateY(-20px) scale(1.05);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: var(--text-4xl);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-4);
    color: white;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(135deg, #38BDF8 0%, #6EE7B7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-6);
}

.hero-buttons {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.hero-stats {
    display: flex;
    gap: var(--space-6);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--accent-primary);
    margin-bottom: var(--space-1);
}

.stat-label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.7);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.music-visualizer {
    display: flex;
    gap: var(--space-2);
    align-items: flex-end;
    height: 150px;
    padding: var(--space-6);
    background: rgba(15, 19, 28, 0.5);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.visualizer-bar {
    width: 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    animation: visualize 1.2s ease-in-out infinite;
}

.visualizer-bar:nth-child(1) { animation-delay: 0s; }
.visualizer-bar:nth-child(2) { animation-delay: 0.1s; }
.visualizer-bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer-bar:nth-child(4) { animation-delay: 0.3s; }
.visualizer-bar:nth-child(5) { animation-delay: 0.4s; }
.visualizer-bar:nth-child(6) { animation-delay: 0.5s; }
.visualizer-bar:nth-child(7) { animation-delay: 0.6s; }
.visualizer-bar:nth-child(8) { animation-delay: 0.7s; }

@keyframes visualize {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

/* 通用区域样式 */
section {
    padding: var(--space-16) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.section-subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 600px;
}

/* 特性区域 */
.features {
    background: transparent;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    padding: var(--space-6);
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    border: var(--border-1);
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-3);
    border-radius: var(--radius-lg);
    font-size: var(--text-2xl);
    color: var(--accent-primary);
    margin-bottom: var(--space-4);
}

.feature-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.feature-text {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* 创作区域 */
.create-section {
    background: var(--gradient-dark);
}

.create-workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}

.create-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.prompt-examples {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    margin-top: var(--space-3);
}

.example-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.advanced-toggle {
    margin-top: var(--space-4);
    text-align: center;
}

.advanced-panel {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: var(--border-1);
}

.result-panel {
    position: sticky;
    top: 100px;
    align-self: start;
}

.result-card {
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.loading-state {
    text-align: center;
    padding: var(--space-12);
}

.loading-animation {
    position: relative;
    height: 100px;
    margin-bottom: var(--space-6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-waves {
    display: flex;
    gap: var(--space-2);
    align-items: flex-end;
    height: 60px;
}

.wave-bar {
    width: 8px;
    background: var(--accent-primary);
    border-radius: var(--radius-sm);
    animation: waveLoad 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes waveLoad {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

.music-result {
    padding: var(--space-6);
}

.result-cover {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-4);
    aspect-ratio: 1;
}

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

.cover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.result-cover:hover .cover-overlay {
    opacity: 1;
}

.play-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    font-size: var(--text-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow-strong);
    transition: all var(--transition-base);
}

.play-btn:hover {
    transform: scale(1.1);
}

.result-info h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-2);
}

.result-meta {
    display: flex;
    gap: var(--space-4);
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.result-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* 探索区域 */
.filter-controls {
    display: flex;
    gap: var(--space-3);
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.music-card {
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--border-1);
    transition: all var(--transition-base);
    cursor: pointer;
}

.music-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.music-card-cover {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.music-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.music-card:hover .music-card-cover img {
    transform: scale(1.1);
}

.music-card-play {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.music-card:hover .music-card-play {
    opacity: 1;
}

.music-card-play button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: white;
    font-size: var(--text-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
}

.music-card-info {
    padding: var(--space-4);
}

.music-card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-card-meta {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.music-card-stats {
    display: flex;
    gap: var(--space-4);
    padding-top: var(--space-3);
    border-top: var(--border-1);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.load-more {
    text-align: center;
}

/* 音乐库 */
.library-tabs {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    border-bottom: var(--border-1);
}

.tab-btn {
    padding: var(--space-3) var(--space-6);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

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

.tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* 页脚 */
.footer {
    background: transparent;
    border-top: var(--border-1);
    padding: var(--space-12) 0 var(--space-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.footer-brand i {
    color: var(--accent-primary);
}

.footer-col h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-6);
    border-top: var(--border-1);
    color: var(--text-muted);
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .hero-visual {
        order: -1;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: var(--space-12);
    }

    .create-workspace {
        grid-template-columns: 1fr;
    }

    .result-panel {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        gap: var(--space-4);
    }

    .stat-number {
        font-size: var(--text-xl);
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: var(--space-4);
    }

    .filter-controls {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .music-visualizer {
        height: 120px;
        padding: var(--space-4);
    }

    .visualizer-bar {
        width: 12px;
    }
}

/* ========== Modal Footer Text ========== */
.modal-footer-text {
    text-align: center;
    margin-top: var(--space-4);
    color: var(--text-secondary);
}

.modal-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: var(--font-semibold);
}

.modal-link:hover {
    text-decoration: underline;
}

.modal-overlay {
    display: none;
}

.modal-overlay.active {
    display: flex;
}

/* ========== Utility Classes ========== */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

#toastContainer {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 10000;
}

/* ========== Advanced Panel ========== */
.advanced-panel {
    display: none;
}

.advanced-panel.active {
    display: block;
}

.loading-state {
    display: none;
}

.loading-state.active {
    display: block;
}

.music-result {
    display: none;
}

.music-result.active {
    display: block;
}

/* ========== Form Elements ========== */
.required-mark {
    color: var(--accent-danger);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
}

.checkbox-label .input-label {
    margin: 0;
}

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

.progress {
    margin-top: var(--space-4);
}

.progress-bar {
    width: 0%;
    transition: width 0.3s ease;
}

/* ========== Audio Player ========== */
audio {
    width: 100%;
    margin: var(--space-4) 0;
}

/* ========== Navbar 共享组件 ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface-2);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-1);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.navbar-brand:hover {
    opacity: 0.8;
}

.navbar-brand i {
    color: var(--accent-primary);
}

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

/* ========== Spacing Utilities ========== */
.mt-2 {
    margin-top: var(--space-2);
}

.mt-4 {
    margin-top: var(--space-4);
}

.w-full {
    width: 100%;
}

/* ========== 增强功能样式 ========== */

/* 播放进度条 */
.playback-progress {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: var(--border-1);
}

.playback-progress-bar {
    width: 100%;
    height: 4px;
    background: var(--surface-3);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-2);
    cursor: pointer;
}

.playback-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.1s linear;
}

.playback-time {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* 搜索框样式 */
.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: var(--space-3) var(--space-10) var(--space-3) var(--space-4);
    background: var(--surface-3);
    border: var(--border-1);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.search-icon {
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: var(--space-10);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    display: none;
}

.search-input:not(:placeholder-shown) ~ .search-clear-btn {
    display: block;
}

/* 提示词历史下拉 */
.prompt-history-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-2);
    border: var(--border-1);
    border-radius: var(--radius-lg);
    margin-top: var(--space-2);
    max-height: 300px;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    z-index: 100;
    display: none;
}

.prompt-history-dropdown.show {
    display: block;
}

.prompt-history-item {
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: var(--border-1);
}

.prompt-history-item:last-child {
    border-bottom: none;
}

.prompt-history-item:hover {
    background: var(--surface-3);
}

.prompt-text {
    color: var(--text-primary);
    margin-bottom: var(--space-1);
    font-size: var(--text-sm);
}

.prompt-date {
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* 分享对话框 */
.share-dialog {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.share-dialog.show {
    opacity: 1;
}

.share-dialog-content {
    background: var(--surface-2);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-2xl);
    border: var(--border-1);
}

.share-dialog-content h3 {
    margin-bottom: var(--space-4);
    font-size: var(--text-xl);
}

.share-url-container {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.share-url-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: var(--surface-3);
    border: var(--border-1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.close-dialog-btn {
    width: 100%;
}

/* 播放列表面板 */
.playlist-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: var(--surface-1);
    border-left: var(--border-1);
    box-shadow: var(--shadow-2xl);
    transition: right var(--transition-base);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.playlist-panel.show {
    right: 0;
}

.playlist-header {
    padding: var(--space-6);
    border-bottom: var(--border-1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.playlist-title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
}

.playlist-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
}

.queue-item {
    padding: var(--space-3);
    background: var(--surface-2);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.queue-item:hover {
    background: var(--surface-3);
    transform: translateX(4px);
}

.queue-item.active {
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.queue-item-info {
    display: flex;
    gap: var(--space-3);
    align-items: center;
    flex: 1;
}

.queue-number {
    color: var(--text-muted);
    font-size: var(--text-sm);
    min-width: 20px;
}

.queue-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

.queue-duration {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.queue-remove-btn {
    padding: var(--space-2);
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.queue-remove-btn:hover {
    color: var(--accent-danger);
}

/* 主题切换按钮 */
.theme-toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    color: var(--text-secondary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: var(--surface-4);
    color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

/* 浅色主题样式 */
/* 历史记录按钮 */
.history-toggle-btn {
    position: absolute;
    right: var(--space-3);
    top: var(--space-3);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--surface-3);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.history-toggle-btn:hover {
    background: var(--surface-4);
    color: var(--accent-primary);
}

/* 搜索结果高亮 */
mark {
    background: var(--accent-primary);
    color: var(--text-inverse);
    padding: 2px 4px;
    border-radius: 4px;
}

/* 键盘快捷键提示 */
.keyboard-shortcuts {
    position: fixed;
    bottom: var(--space-6);
    left: var(--space-6);
    background: var(--surface-2);
    border: var(--border-1);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    max-width: 300px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.keyboard-shortcuts.show {
    opacity: 1;
    pointer-events: all;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.shortcut-key {
    padding: 2px 8px;
    background: var(--surface-4);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}

/* 空消息样式 */
.empty-message {
    text-align: center;
    color: var(--text-muted);
    padding: var(--space-8);
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .playlist-panel {
        width: 100%;
        right: -100%;
    }

    .search-container {
        max-width: 100%;
    }

    .keyboard-shortcuts {
        display: none;
    }

    .filter-controls {
        flex-direction: column;
        width: 100%;
    }

    .filter-controls .search-container {
        order: -1;
        margin-bottom: var(--space-3);
    }
}

/* 修复 Font Awesome 图标 */
.fa-list-music:before {
    content: "\f0c9"; /* 使用列表图标作为替代 */
}

/* ========== 会员系统样式 ========== */

/* 会员徽章 */
.membership-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: white;
}

/* 升级对话框 */
.upgrade-modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.upgrade-reason {
    padding: var(--space-4);
    background: var(--surface-3);
    border-left: 4px solid var(--accent-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    color: var(--text-secondary);
}

/* 会员等级卡片网格 */
.membership-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.tier-card {
    position: relative;
    background: var(--surface-2);
    border: 2px solid var(--surface-4);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.tier-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.tier-card.current-tier {
    border-color: var(--accent-success);
    box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.2);
}

.tier-badge {
    position: absolute;
    top: -12px;
    right: var(--space-4);
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-md);
}

.tier-header {
    text-align: center;
    margin-bottom: var(--space-4);
}

.tier-header i {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2);
}

.tier-header h3 {
    font-size: var(--text-2xl);
    margin: 0;
}

.tier-price {
    text-align: center;
    margin-bottom: var(--space-2);
}

.price-amount {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--accent-primary);
}

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

.tier-yearly {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.save-badge {
    display: inline-block;
    background: var(--accent-success);
    color: var(--text-inverse);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    margin-left: var(--space-2);
}

.tier-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: var(--border-1);
}

.tier-features {
    list-style: none;
    margin-bottom: var(--space-4);
}

.tier-features li {
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.tier-features i {
    color: var(--accent-success);
}

.tier-card .btn {
    margin-top: var(--space-3);
}

.upgrade-footer {
    padding-top: var(--space-4);
    border-top: var(--border-1);
}

/* 使用限制指示器 */
.limit-indicator {
    padding: var(--space-4);
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    margin: var(--space-4) 0;
}

.limit-bar {
    width: 100%;
    height: 8px;
    background: var(--surface-3);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-2);
}

.limit-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.limit-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: center;
}

.text-danger {
    color: var(--accent-danger);
    font-weight: var(--font-semibold);
}

/* ========== 商用授权样式 ========== */

.license-modal-content {
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.license-info {
    padding: var(--space-4);
    background: var(--surface-3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-6);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.license-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.license-card {
    position: relative;
    background: var(--surface-2);
    border: 2px solid var(--surface-4);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--transition-base);
}

.license-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-primary);
}

.license-badge {
    position: absolute;
    top: -12px;
    right: var(--space-4);
    background: var(--gradient-warm);
    color: white;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-md);
}

.license-header {
    text-align: center;
    margin-bottom: var(--space-4);
}

.license-header i {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2);
}

.license-header h3 {
    font-size: var(--text-2xl);
    margin: 0;
}

.license-price {
    text-align: center;
    margin-bottom: var(--space-3);
}

.license-scope {
    text-align: center;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: var(--border-1);
}

.license-features,
.license-restrictions {
    margin-bottom: var(--space-4);
}

.license-features h4,
.license-restrictions h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.license-features ul,
.license-restrictions ul {
    list-style: none;
}

.license-features li,
.license-restrictions li {
    padding: var(--space-2) 0;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.license-features li i {
    color: var(--accent-success);
    margin-top: 4px;
}

.license-restrictions li i {
    color: var(--accent-danger);
    margin-top: 4px;
}

.license-footer {
    padding-top: var(--space-4);
    border-top: var(--border-1);
}

/* 授权列表 */
.licenses-list {
    max-height: 500px;
    overflow-y: auto;
}

.license-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--surface-2);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
    border: var(--border-1);
    transition: all var(--transition-fast);
}

.license-item:hover {
    background: var(--surface-3);
    transform: translateX(4px);
}

.license-item-info h4 {
    margin: 0 0 var(--space-2) 0;
    font-size: var(--text-lg);
}

.license-item-meta {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.license-type {
    display: inline-flex;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    color: white;
    font-weight: var(--font-semibold);
}

.license-date {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.license-item-actions {
    display: flex;
    gap: var(--space-2);
}

/* 会员功能按钮 */
.membership-actions {
    display: flex;
    gap: var(--space-3);
    margin: var(--space-4) 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .membership-tiers,
    .license-types {
        grid-template-columns: 1fr;
    }

    .tier-card,
    .license-card {
        margin-bottom: var(--space-4);
    }

    .license-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }

    .license-item-actions {
        width: 100%;
    }

    .license-item-actions .btn {
        flex: 1;
    }
}

/* 暗色主题 */
[data-theme="dark"] {
    /* 表面层级 - 深色渐变阶梯 */
    --surface-0: #05070C;
    --surface-1: #0A0D12;
    --surface-2: #0F131C;
    --surface-3: #161D2B;
    --surface-4: #1E2636;
    --surface-5: #2A3441;

    /* 文字颜色 */
    --text-primary: rgba(249, 250, 251, 0.95);
    --text-secondary: rgba(209, 213, 219, 0.7);
    --text-muted: rgba(156, 163, 175, 0.5);

    /* 阴影系统 - 深色主题加强 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.45);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.55);
    --shadow-2xl: 0 30px 60px rgba(0, 0, 0, 0.65);
}
