/* ============================================
   NexBlog - Modern Blog Theme
   Inspired by nexbox.top design language
   ============================================ */

/* ========== CSS Variables ========== */
:root {
    /* Light Theme */
    --bg: #f8f9fc;
    --bg-card: #ffffff;
    --bg-hover: #f1f3f9;
    --bg-code: #f0f2f8;
    --text: #1a1b2e;
    --text-secondary: #5c5d6e;
    --text-muted: #9495a8;
    --border: #e8eaf2;
    --border-strong: #d1d4e0;
    --accent: #5b6ef5;
    --accent-light: #7c8cf7;
    --accent-dark: #4754d4;
    --accent-bg: rgba(91, 110, 245, 0.08);
    --accent-grad: linear-gradient(135deg, #5b6ef5 0%, #8b5cf6 100%);
    --accent-grad-hover: linear-gradient(135deg, #4754d4 0%, #7c3aed 100%);
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-accent: 0 8px 24px rgba(91,110,245,0.25);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --max-width: 1140px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
}

[data-theme="dark"] {
    --bg: #0f1117;
    --bg-card: #1a1d28;
    --bg-hover: #232634;
    --bg-code: #232634;
    --text: #e4e6ed;
    --text-secondary: #a0a3b1;
    --text-muted: #6b6e7c;
    --border: #2a2d3a;
    --border-strong: #3a3d4a;
    --accent: #7c8cf7;
    --accent-light: #9da8f9;
    --accent-dark: #5b6ef5;
    --accent-bg: rgba(124, 140, 247, 0.12);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
    --shadow-accent: 0 8px 24px rgba(124,140,247,0.2);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--transition), color var(--transition);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ========== Layout ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.main-content {
    min-height: calc(100vh - 200px);
    padding: 32px 0 64px;
}

/* ========== Navbar ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), border-color var(--transition), box-shadow 0.2s ease;
    animation: navSlideDown 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
[data-theme="dark"] .navbar {
    background: rgba(15,17,23,0.8);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--text);
    flex-shrink: 0;
}
.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    box-shadow: var(--shadow-accent);
    animation: logoPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    transition: transform 0.2s ease;
}
.logo:hover .logo-icon {
    transform: rotate(360deg) scale(1.1);
}
.logo-text { letter-spacing: -0.5px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition);
    position: relative;
    animation: navLinkIn 0.2s ease both;
}
.nav-link:nth-child(1) { animation-delay: 0s; }
.nav-link:nth-child(2) { animation-delay: 0s; }
.nav-link:nth-child(3) { animation-delay: 0s; }
.nav-link:nth-child(4) { animation-delay: 0s; }
.nav-link:nth-child(5) { animation-delay: 0s; }
.nav-link:nth-child(6) { animation-delay: 0s; }
.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link.active { color: var(--accent); background: var(--accent-bg); }
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    animation: dotPulse 1.5s ease-in-out infinite;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: navLinkIn 0.2s ease 0s both;
}
.theme-toggle:hover { background: var(--accent-bg); color: var(--accent); transform: rotate(180deg) scale(1.1); }
.theme-toggle svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.search-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: navLinkIn 0.2s ease 0s both;
}
.search-btn:hover { background: var(--accent-bg); color: var(--accent); transform: scale(1.1); }
.search-btn:hover svg { transform: scale(1.1); }
.search-btn svg { width: 20px; height: 20px; transition: transform 0.2s ease; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--text);
}
.menu-toggle svg { width: 24px; height: 24px; }

/* ========== Hero Section ========== */
.hero {
    position: relative;
    padding: 80px 0 48px;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
    pointer-events: none;
    animation: orbFloat1 8s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
    pointer-events: none;
    animation: orbFloat2 10s ease-in-out infinite;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--accent-bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    animation: badgeSlideDown 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0s both;
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
    background: var(--accent-grad);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroTitleIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) 0s both, gradientShift 4s ease-in-out infinite 1s;
}

.hero p {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 32px;
    animation: fadeInUp 0.2s ease 0s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
}
.hero-stat {
    text-align: center;
    animation: statPopIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.hero-stat:nth-child(1) { animation-delay: 0s; }
.hero-stat:nth-child(2) { animation-delay: 0s; }
.hero-stat:nth-child(3) { animation-delay: 0s; }
.hero-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    transition: color 0.2s ease;
}
.hero-stat:hover .hero-stat-num {
    color: var(--accent);
}
.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== Section Title ========== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.section-title {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.section-title-icon svg { width: 18px; height: 18px; }

/* ========== Featured Cards ========== */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.featured-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}
.featured-card-banner {
    height: 8px;
    background: var(--accent-grad);
    background-size: 200% 100%;
    transition: background-position 0.2s ease;
}
.featured-card:hover .featured-card-banner {
    background-position: 100% 0;
    animation: bannerShimmer 1.5s linear infinite;
}
.featured-card-body {
    padding: 24px;
}
.featured-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}
.featured-card h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== Article Grid ========== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}
.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-grad);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}
.article-card:hover::before {
    transform: scaleX(1);
}

.article-card-cover {
    width: 100%;
    height: 180px;
    background: var(--accent-grad);
    position: relative;
    overflow: hidden;
}
.article-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-card:hover .article-card-cover img {
    transform: scale(1.08);
}
.article-card-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 48px;
    font-weight: 800;
    transition: transform 0.2s ease;
}
.article-card:hover .article-card-cover-placeholder {
    transform: scale(1.1);
}

.article-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.article-card-category svg { width: 14px; height: 14px; }

.article-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card h3 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}
.article-card:hover h3 { color: var(--accent); }

.article-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.article-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.article-card-tag {
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-hover);
    color: var(--text-muted);
    font-size: 12px;
    transition: all 0.2s ease;
}
.article-card:hover .article-card-tag {
    background: var(--accent-bg);
    color: var(--accent);
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.article-card-views {
    display: flex;
    align-items: center;
    gap: 4px;
}
.article-card-views svg { width: 14px; height: 14px; }

/* ========== Category Grid ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0;
    background: var(--accent-grad);
    opacity: 0.05;
    transition: height 0.2s ease;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}
.category-card:hover::after {
    height: 100%;
}
.category-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--accent);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.category-card:hover .category-card-icon {
    transform: rotate(360deg) scale(1.15);
    background: var(--accent-grad);
    color: #fff;
    box-shadow: var(--shadow-accent);
}
.category-card-icon svg { width: 24px; height: 24px; }
.category-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.category-card p {
    font-size: 13px;
    color: var(--text-muted);
}
.category-card-count {
    display: inline-block;
    margin-top: 12px;
    padding: 2px 12px;
    border-radius: 100px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
}

/* ========== Tags Cloud ========== */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}
.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.tag-item:hover {
    background: var(--accent-grad);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-accent);
}
.tag-item:hover .tag-count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.tag-count {
    padding: 1px 8px;
    border-radius: 100px;
    background: var(--bg-hover);
    font-size: 12px;
    color: var(--text-muted);
}

/* ========== Article Detail ========== */
.article-detail {
    max-width: 760px;
    margin: 0 auto;
}
.article-detail-header {
    margin-bottom: 32px;
    animation: fadeInUp 0.2s ease both;
}
.article-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 100px;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}
.article-detail-category svg { width: 14px; height: 14px; }
.article-detail h1 {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}
.article-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-detail-meta-item svg { width: 16px; height: 16px; }

.article-detail-cover {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 40px;
    background: var(--accent-grad);
    animation: coverZoomIn 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
    animation-delay: 0s;
}
.article-detail-cover img { width: 100%; height: 100%; object-fit: cover; }

.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    animation: fadeInUp 0.2s ease 0s both;
}
.article-content h1, .article-content h2, .article-content h3,
.article-content h4, .article-content h5, .article-content h6 {
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.4;
    position: relative;
}
.article-content h1 { font-size: 28px; }
.article-content h2 {
    font-size: 24px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border);
}
.article-content h2::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent-grad);
    animation: headingUnderline 0.2s ease 0s both;
}
.article-content h3 { font-size: 20px; }
.article-content h4 { font-size: 17px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 0 0 16px 20px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote {
    border-left: 4px solid var(--accent);
    background: var(--accent-bg);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 16px 0;
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    animation: blockquoteSlide 0.2s ease both;
}
.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 60px;
    color: var(--accent);
    opacity: 0.15;
    font-family: Georgia, serif;
}
.article-content .code-block {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 16px 0;
    position: relative;
    animation: codeBlockSlide 0.2s ease both;
    transition: border-color 0.2s ease, box-shadow 0s ease;
}
.article-content .code-block:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(91,110,245,0.1);
}
.article-content .code-block::before {
    content: attr(data-lang);
    position: absolute;
    top: 0;
    right: 0;
    padding: 2px 10px;
    background: var(--border-strong);
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-mono);
    border-radius: 0 var(--radius-sm) 0 var(--radius-sm);
}
.article-content .code-block code {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    white-space: pre;
}
.article-content .inline-code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-code);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}
.article-content hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 32px 0;
}
.article-content img {
    border-radius: var(--radius-sm);
    margin: 16px 0;
}
.article-content a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-color: var(--accent-bg);
    text-underline-offset: 2px;
}
.article-content strong { font-weight: 700; }

.article-detail-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.2s ease 0s both;
}
.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.article-detail-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}
.article-detail-nav a {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.article-detail-nav a:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}
.article-detail-nav a:last-child:hover {
    transform: translateX(-4px);
}
.article-detail-nav-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.article-detail-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== About Page ========== */
.about-content {
    max-width: 760px;
    margin: 0 auto;
}
.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    animation: cardFadeIn 0.2s ease both;
}
.about-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-grad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: var(--shadow-accent);
    animation: avatarPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both, avatarFloat 3s ease-in-out 1s infinite;
    overflow: hidden;
    flex-shrink: 0;
}
.about-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}
.about-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.about-header .about-avatar {
    margin-bottom: 0;
}
.about-author-name {
    font-size: 24px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}
.about-author-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}
@media (max-width: 480px) {
    .about-header { gap: 14px; }
    .about-header .about-avatar { width: 60px; height: 60px; font-size: 24px; }
    .about-author-name { font-size: 20px; }
}
.about-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.about-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: socialPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.about-social a:nth-child(1) { animation-delay: 0s; }
.about-social a:nth-child(2) { animation-delay: 0s; }
.about-social a:nth-child(3) { animation-delay: 0s; }
.about-social a:nth-child(4) { animation-delay: 0s; }
.about-social a:hover {
    background: var(--accent-grad);
    color: #fff;
    transform: translateY(-4px) scale(1.15);
    box-shadow: var(--shadow-accent);
}
.about-social svg { width: 20px; height: 20px; }

/* ========== Search Overlay ========== */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
}
.search-overlay.active { display: flex; animation: overlayFadeIn 0.2s ease; }
.search-box {
    width: 90%;
    max-width: 560px;
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: searchBoxIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.search-input-wrap {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.search-input-wrap svg { width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0; }
.search-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    color: var(--text);
    margin-left: 12px;
}
.search-input::placeholder { color: var(--text-muted); }
.search-close {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-hover);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}
.search-results {
    max-height: 400px;
    overflow-y: auto;
}
.search-result-item {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
    animation: resultSlideIn 0.2s ease both;
}
.search-result-item:hover { background: var(--bg-hover); padding-left: 24px; }
.search-result-item:last-child { border-bottom: none; }
.search-result-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.search-result-excerpt {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}
.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 0 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.pagination .active {
    background: var(--accent-grad);
    color: #fff;
    border-color: transparent;
    animation: pageActivePulse 2s ease-in-out infinite;
}

/* ========== Empty State ========== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.3; }
.empty-state h3 { font-size: 18px; color: var(--text-secondary); margin-bottom: 8px; }

/* ========== Footer ========== */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 40px 0 24px;
    margin-top: auto;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand {
    flex: 0 0 auto;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; color: var(--text-muted); max-width: 300px; }
.footer-links {
    display: flex;
    gap: 48px;
}
.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: all 0.2s ease; }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 50;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--accent-grad);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px) rotate(360deg);
    box-shadow: var(--shadow-accent);
}
.back-to-top svg { width: 22px; height: 22px; }

/* ========== Animations ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.2s ease forwards; opacity: 0; }
.fade-in-up:nth-child(1) { animation-delay: 0s; }
.fade-in-up:nth-child(2) { animation-delay: 0s; }
.fade-in-up:nth-child(3) { animation-delay: 0s; }
.fade-in-up:nth-child(4) { animation-delay: 0s; }
.fade-in-up:nth-child(5) { animation-delay: 0s; }
.fade-in-up:nth-child(6) { animation-delay: 0s; }
.fade-in-up:nth-child(7) { animation-delay: 0s; }
.fade-in-up:nth-child(8) { animation-delay: 0s; }
.fade-in-up:nth-child(9) { animation-delay: 0s; }

/* Navbar slide down */
@keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* Logo pop in */
@keyframes logoPop {
    0% { opacity: 0; transform: scale(0) rotate(-180deg); }
    60% { opacity: 1; transform: scale(1.1) rotate(10deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* Nav link fade in */
@keyframes navLinkIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Active nav dot pulse */
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.5; transform: translateX(-50%) scale(1.5); }
}

/* Hero floating orbs */
@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25px, 20px) scale(0.95); }
    66% { transform: translate(20px, -15px) scale(1.05); }
}

/* Hero badge slide down */
@keyframes badgeSlideDown {
    from { opacity: 0; transform: translateY(-15px) scale(0.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero title entrance */
@keyframes heroTitleIn {
    from { opacity: 0; transform: translateY(30px); filter: blur(8px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Gradient text shift */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Stat pop in */
@keyframes statPopIn {
    from { opacity: 0; transform: scale(0.5) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Featured card banner shimmer */
@keyframes bannerShimmer {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

/* Article detail cover zoom in */
@keyframes coverZoomIn {
    from { opacity: 0; transform: scale(1.1); }
    to { opacity: 1; transform: scale(1); }
}

/* Blockquote slide in */
@keyframes blockquoteSlide {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Code block slide in */
@keyframes codeBlockSlide {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Heading underline expand */
@keyframes headingUnderline {
    from { width: 0; }
    to { width: 60px; }
}

/* About card fade in */
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* About avatar pop */
@keyframes avatarPop {
    from { opacity: 0; transform: scale(0) rotate(-180deg); }
    60% { transform: scale(1.15) rotate(10deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

/* About avatar floating */
@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Social icon pop in */
@keyframes socialPop {
    from { opacity: 0; transform: scale(0) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Search overlay fade in */
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Search box scale in */
@keyframes searchBoxIn {
    from { opacity: 0; transform: scale(0.85) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Search result slide in */
@keyframes resultSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Pagination active pulse */
@keyframes pageActivePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91,110,245,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(91,110,245,0); }
}

/* Section header reveal */
@keyframes sectionReveal {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
.section-header { animation: sectionReveal 0.2s ease both; }

/* Scroll reveal base */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0s cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--accent-grad);
    z-index: 300;
    width: 0%;
    transition: width 0.2s ease;
    box-shadow: 0 0 8px rgba(91,110,245,0.4);
}

/* Card shimmer effect on hover */
.article-card, .featured-card, .category-card {
    position: relative;
}
.article-card::after, .featured-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transition: left 0.2s ease;
    pointer-events: none;
    z-index: 2;
}
.article-card:hover::after, .featured-card:hover::after {
    left: 100%;
}

/* Footer entrance */
.footer {
    animation: fadeInUp 0.2s ease both;
    animation-delay: 0s;
}

/* Tag count pop */
@keyframes tagCountPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
.tag-item:hover .tag-count {
    animation: tagCountPop 0.2s ease;
}

/* Empty state fade */
@keyframes emptyFade {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.empty-state {
    animation: emptyFade 0.2s ease both;
}
.empty-state svg {
    animation: logoPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0s;
}

/* Article content paragraph stagger */
.article-content p {
    animation: fadeInUp 0.2s ease both;
}
.article-content p:nth-child(1) { animation-delay: 0s; }
.article-content p:nth-child(2) { animation-delay: 0s; }
.article-content p:nth-child(3) { animation-delay: 0s; }
.article-content p:nth-child(4) { animation-delay: 0s; }
.article-content p:nth-child(5) { animation-delay: 0s; }
.article-content p:nth-child(6) { animation-delay: 0s; }

/* Article detail meta items */
.article-detail-meta-item {
    animation: navLinkIn 0.2s ease both;
}
.article-detail-meta-item:nth-child(1) { animation-delay: 0s; }
.article-detail-meta-item:nth-child(2) { animation-delay: 0s; }
.article-detail-meta-item:nth-child(3) { animation-delay: 0s; }

/* Featured card entrance */
.featured-card {
    animation: fadeInUp 0.2s ease both;
}
.featured-card:nth-child(1) { animation-delay: 0s; }
.featured-card:nth-child(2) { animation-delay: 0s; }
.featured-card:nth-child(3) { animation-delay: 0s; }

/* Category card entrance */
.category-card {
    animation: fadeInUp 0.2s ease both;
}
.category-card:nth-child(1) { animation-delay: 0s; }
.category-card:nth-child(2) { animation-delay: 0s; }
.category-card:nth-child(3) { animation-delay: 0s; }
.category-card:nth-child(4) { animation-delay: 0s; }
.category-card:nth-child(5) { animation-delay: 0s; }
.category-card:nth-child(6) { animation-delay: 0s; }

/* Tag cloud entrance */
.tag-item {
    animation: socialPop 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.tag-item:nth-child(1) { animation-delay: 0s; }
.tag-item:nth-child(2) { animation-delay: 0s; }
.tag-item:nth-child(3) { animation-delay: 0s; }
.tag-item:nth-child(4) { animation-delay: 0s; }
.tag-item:nth-child(5) { animation-delay: 0s; }
.tag-item:nth-child(6) { animation-delay: 0s; }
.tag-item:nth-child(7) { animation-delay: 0s; }
.tag-item:nth-child(8) { animation-delay: 0s; }
.tag-item:nth-child(n+9) { animation-delay: 0s; }

/* Pagination entrance */
.pagination {
    animation: fadeInUp 0.2s ease 0s both;
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .hero::before, .hero::after,
    .about-avatar { animation: none !important; }
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
    .featured-grid { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; }
    .footer-links { gap: 32px; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
    }
    .nav-links.show { display: flex; }
    .menu-toggle { display: flex; }
    .hero { padding: 48px 0 32px; }
    .hero-stats { gap: 24px; }
    .article-grid { grid-template-columns: 1fr; }
    .article-detail-cover { height: 240px; }
    .about-card { padding: 24px; }
    .back-to-top { bottom: 20px; right: 20px; }
    .nav-login-btn span { display: none; }
    .nav-login-btn { width: 40px; height: 40px; border-radius: 50%; padding: 0; justify-content: center; }
    .nav-user-name { display: none; }
    .nav-user-btn { padding: 0; width: 40px; height: 40px; justify-content: center; }
    .nav-user-btn svg { display: none; }
    .auth-modal { width: 92%; max-width: 400px; }
}

/* ========== Navbar Login Button ========== */
.nav-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    background: var(--accent-grad);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-accent);
    animation: navLinkIn 0.2s ease 0s both;
}
.nav-login-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(91,110,245,0.35); }
.nav-login-btn:active { transform: translateY(0); }
.nav-login-btn svg { width: 16px; height: 16px; }

/* ========== Navbar User (logged in) ========== */
.nav-user { position: relative; animation: navLinkIn 0.2s ease 0s both; }
.nav-user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    transition: all var(--transition);
}
.nav-user-btn:hover { border-color: var(--accent); background: var(--accent-bg); }
.nav-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-grad);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}
.nav-user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-user-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 264px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 100;
    animation: userMenuIn 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
    transform-origin: top right;
}
.nav-user-menu.show { display: block; }
@keyframes userMenuIn { from { opacity: 0; transform: translateY(-6px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
/* 渐变 Hero 头部 */
.nav-user-menu-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px 20px;
    background: var(--accent-grad);
    color: #fff;
}
.nav-user-menu-hero::before { content: ''; position: absolute; width: 110px; height: 110px; border-radius: 50%; right: -30px; top: -45px; background: rgba(255,255,255,0.13); pointer-events: none; }
.nav-user-menu-hero::after { content: ''; position: absolute; width: 60px; height: 60px; border-radius: 50%; left: -18px; bottom: -28px; background: rgba(255,255,255,0.09); pointer-events: none; }
.nav-user-menu-hero .nav-user-menu-avatar {
    width: 48px; height: 48px; font-size: 19px;
    border: 2px solid rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.22);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative; z-index: 1;
}
.nav-user-menu-hero-info { position: relative; z-index: 1; min-width: 0; }
.nav-user-menu-name {
    font-size: 15px; font-weight: 700; color: #fff;
    max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user-menu-points {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 5px; padding: 3px 10px; border-radius: 999px;
    background: rgba(255,255,255,0.2);
    font-size: 12px; font-weight: 600; color: #fff;
}
.nav-user-menu-points svg { width: 12px; height: 12px; }
/* 菜单项 */
.nav-user-menu-body { padding: 8px; }
.nav-user-menu-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}
.nav-user-menu-item > svg:first-child { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-muted); transition: color 0.2s ease; }
.nav-user-menu-arrow { width: 14px; height: 14px; margin-left: auto; color: var(--text-muted); opacity: 0; transform: translateX(-4px); transition: all 0.2s ease; }
.nav-user-menu-item:hover { background: var(--accent-bg); color: var(--accent); transform: translateX(2px); }
.nav-user-menu-item:hover > svg:first-child { color: var(--accent); }
.nav-user-menu-item:hover .nav-user-menu-arrow { opacity: 1; transform: translateX(0); color: var(--accent); }
.nav-user-menu-divider { height: 1px; margin: 2px 12px; background: var(--border); }
.nav-user-logout { color: var(--danger); margin: 4px 8px 8px; width: calc(100% - 16px); }
.nav-user-logout > svg:first-child { color: var(--danger); }
.nav-user-logout:hover { background: rgba(239,68,68,0.08); color: var(--danger); transform: none; }
.nav-user-logout:hover > svg:first-child { color: var(--danger); }
.nav-user-logout .nav-user-menu-arrow { display: none; }

/* ========== Auth Modal (v11 redesign) ========== */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13,15,24,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
.auth-overlay.active { display: flex; animation: overlayFadeIn 0.2s ease; }
.auth-modal {
    width: 100%;
    max-width: 440px;
    margin: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    animation: authModalIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes authModalIn { from { opacity: 0; transform: scale(0.94) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* 顶部渐变头：品牌 + 动态标题（登录/注册文案随标签切换） */
.auth-hero {
    position: relative;
    padding: 26px 32px 22px;
    background: var(--accent-grad);
    color: #fff;
    overflow: hidden;
}
.auth-hero::before {
    content: '';
    position: absolute;
    right: -70px; top: -90px;
    width: 210px; height: 210px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    pointer-events: none;
}
.auth-hero::after {
    content: '';
    position: absolute;
    left: -50px; bottom: -100px;
    width: 170px; height: 170px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.auth-brand-mark {
    width: 28px; height: 28px;
    border-radius: 9px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.38);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800;
    flex-shrink: 0;
}
.auth-brand-name { font-size: 13px; font-weight: 600; letter-spacing: 0.2px; opacity: 0.95; }
.auth-hero-title { font-size: 22px; font-weight: 800; line-height: 1.3; }
.auth-hero-sub { font-size: 13px; opacity: 0.88; margin-top: 3px; }

/* 关闭按钮（基础样式供注销/赞助/投稿等弹窗共用，渐变头内单独覆盖） */
.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}
.auth-close:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }
.auth-close svg { width: 18px; height: 18px; }
.auth-hero .auth-close,
.auth-page-header .auth-close {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}
.auth-hero .auth-close:hover,
.auth-page-header .auth-close:hover { background: rgba(255,255,255,0.34); color: #fff; }
.auth-hero .auth-close svg,
.auth-page-header .auth-close svg { width: 16px; height: 16px; }
/* 分段式切换标签（带滑块） */
.auth-tabs {
    position: relative;
    display: flex;
    gap: 4px;
    margin: 18px 32px 0;
    padding: 4px;
    background: var(--bg-hover);
    border-radius: 12px;
}
.auth-tabs-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 6px);
    height: calc(100% - 8px);
    border-radius: 9px;
    background: var(--bg-card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.auth-tabs[data-active="register"] .auth-tabs-thumb { transform: translateX(calc(100% + 4px)); }
.auth-tab {
    position: relative;
    z-index: 1;
    flex: 1;
    padding: 9px 12px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 9px;
    transition: color 0.2s ease;
}
.auth-tab:hover { color: var(--text-secondary); }
.auth-tab.active { color: var(--accent); }
.auth-body { display: block; }
.auth-form { display: none; padding: 22px 32px 30px; }
.auth-form.active { display: block; animation: authFormIn 0.2s ease; }
@keyframes authFormIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.auth-form-group { margin-bottom: 15px; }
.auth-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; letter-spacing: 0.2px; }
/* 用户名 / 邮箱并排（窄屏自动单列） */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.auth-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--text);
    background: var(--bg);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}
.auth-input:hover { border-color: var(--border-strong); }
.auth-input:focus { border-color: var(--accent); background: var(--bg-card); box-shadow: 0 0 0 4px var(--accent-bg); }
.auth-input::placeholder { color: var(--text-muted); }
/* 验证码输入：等宽居中 */
.auth-input-code { letter-spacing: 6px; text-align: center; font-weight: 700; }
.auth-error {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border-radius: 11px;
    background: rgba(239,68,68,0.09);
    border: 1px solid rgba(239,68,68,0.22);
    color: var(--danger);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
}
.auth-error.show { display: flex; animation: authErrorIn 0.2s ease; }
@keyframes authErrorIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.auth-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: var(--accent-grad);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    box-shadow: var(--shadow-accent);
}
.auth-submit svg { width: 17px; height: 17px; }
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(91,110,245,0.35); }
.auth-submit:active { transform: translateY(0); }
.auth-submit:disabled { opacity: 0.72; cursor: not-allowed; transform: none; box-shadow: none; }
.auth-spinner {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.38);
    border-top-color: #fff;
    animation: authSpin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes authSpin { to { transform: rotate(360deg); } }
.auth-switch {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 16px;
}
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ========== Auth Form Enhancements ========== */
.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.auth-checkbox input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.auth-forgot {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.auth-forgot:hover { text-decoration: underline; }

.auth-input-wrap {
    position: relative;
}
/* 输入框左侧图标：聚焦时随主题色高亮 */
.auth-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}
.auth-field-icon svg { width: 17px; height: 17px; }
.auth-input-wrap .auth-input { padding-left: 42px; }
.auth-input-wrap:focus-within .auth-field-icon { color: var(--accent); }
.auth-input-wrap .auth-input { padding-right: 44px; }
.auth-pwd-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s ease, background 0.2s ease;
}
.auth-pwd-toggle:hover { color: var(--accent); background: var(--accent-bg); }
.auth-pwd-toggle.on { color: var(--accent); }
.auth-pwd-toggle svg { width: 17px; height: 17px; }

/* 注册邮箱验证码 */
.auth-code-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
.auth-code-row .auth-input { flex: 1; min-width: 0; }
.auth-code-btn {
    flex-shrink: 0;
    padding: 0 16px;
    border: 1.5px solid var(--accent);
    border-radius: 12px;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}
.auth-code-btn:hover:not(:disabled) { background: var(--accent); color: #fff; }
.auth-code-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.auth-form-hint {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Password Strength Meter（四段式） */
.pwd-strength {
    display: none;
    margin-top: 9px;
}
.pwd-strength.show { display: block; }
.pwd-strength-bars { display: flex; gap: 4px; }
.pwd-strength-seg {
    flex: 1;
    height: 4px;
    border-radius: 3px;
    background: var(--border);
    transition: background 0.2s ease;
}
.pwd-strength-label {
    font-size: 11px;
    margin-top: 5px;
    color: var(--text-muted);
}

/* ========== Standalone Auth Page ========== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-bg) 0%, transparent 70%);
    pointer-events: none;
}
.auth-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.auth-page-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
    animation: authModalIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* 头部：与弹窗同款渐变 hero（居中版） */
.auth-page-header {
    position: relative;
    text-align: center;
    padding: 30px 32px 24px;
    background: var(--accent-grad);
    color: #fff;
    overflow: hidden;
}
.auth-page-header::before {
    content: '';
    position: absolute;
    right: -70px; top: -90px;
    width: 210px; height: 210px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    pointer-events: none;
}
.auth-page-header::after {
    content: '';
    position: absolute;
    left: -50px; bottom: -100px;
    width: 170px; height: 170px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    pointer-events: none;
}
.auth-page-header > * { position: relative; z-index: 1; }
.auth-page-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.38);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 14px;
}
.auth-page-logo svg { width: 22px; height: 22px; }
.auth-page-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
}
.auth-page-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
}
.auth-page-card .auth-tabs { margin-top: 20px; }
.auth-page-card .auth-form { padding-bottom: 32px; }
.auth-page-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    transition: color 0.2s ease;
}
.auth-page-back:hover { color: var(--accent); }
.auth-page-back svg { width: 16px; height: 16px; }

/* 登录/注册响应式：小屏收紧内边距、注册字段改单列、输入框字号防 iOS 缩放 */
@media (max-width: 520px) {
    .auth-overlay { padding: 12px; }
    .auth-modal { border-radius: 20px; }
    .auth-hero { padding: 22px 22px 18px; }
    .auth-hero-title { font-size: 20px; }
    .auth-tabs { margin: 16px 20px 0; }
    .auth-form { padding: 18px 20px 24px; }
    .auth-grid { grid-template-columns: 1fr; gap: 0; }
    .auth-input { font-size: 16px; }
    .auth-page { padding: 24px 14px; }
    .auth-page-header { padding: 26px 22px 20px; }
    .auth-page-card .auth-tabs { margin: 18px 20px 0; }
    .auth-page-card .auth-form { padding-left: 20px; padding-right: 20px; }
}

/* Forgot password page specific */
.auth-success-box {
    padding: 20px;
    border-radius: var(--radius-sm);
    background: rgba(34,197,94,0.1);
    border: 1px solid rgba(34,197,94,0.3);
    color: #16a34a;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 20px;
}
.auth-success-box svg { width: 40px; height: 40px; margin-bottom: 12px; }
[data-theme="dark"] .auth-success-box { color: #4ade80; }

/* ========== Toast Notifications ========== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    min-width: 280px;
    max-width: 400px;
    pointer-events: auto;
    animation: toastIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}
.toast.removing { animation: toastOut 0.2s ease forwards; }
.toast-icon { flex-shrink: 0; width: 20px; height: 20px; }
.toast-content { flex: 1; }
.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.toast-close:hover { background: var(--bg-hover); color: var(--text); }
.toast-close svg { width: 14px; height: 14px; }
.toast-success { border-left: 3px solid var(--success); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-error .toast-icon { color: var(--danger); }
.toast-info { border-left: 3px solid var(--accent); }
.toast-info .toast-icon { color: var(--accent); }
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    width: 100%;
    transform-origin: left;
    animation: toastProgress 3s linear forwards;
}
.toast-success::after { background: var(--success); }
.toast-error::after { background: var(--danger); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(100%) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}
@keyframes toastProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}
@media (max-width: 768px) {
    .toast-container { top: 72px; right: 12px; left: 12px; }
    .toast { min-width: auto; max-width: none; }
}

/* ========== Profile Page ========== */
.profile-page { max-width: 720px; margin: 0 auto; padding: 32px 0; }
.profile-hero {
    position: relative;
    overflow: hidden;
    background: var(--accent-grad);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: -46px;
    color: #fff;
    box-shadow: var(--shadow-accent);
}
.profile-hero::before,
.profile-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.profile-hero::before { width: 240px; height: 240px; right: -70px; top: -90px; background: rgba(255,255,255,0.12); }
.profile-hero::after { width: 150px; height: 150px; left: -50px; bottom: -70px; background: rgba(255,255,255,0.08); }
.profile-hero-top {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 22px;
    padding-bottom: 34px;
}
.profile-avatar-lg {
    width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: rgba(255,255,255,0.25); border: 3px solid rgba(255,255,255,0.55);
    color: #fff; font-size: 38px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-info { flex: 1; min-width: 0; }
.profile-name {
    font-size: 24px; font-weight: 800; margin: 0 0 6px; color: #fff;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.profile-status-chip {
    font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
    background: rgba(255,255,255,0.22); color: #fff;
}
.profile-status-chip-off { background: rgba(239,68,68,0.85); }
.profile-email { font-size: 14px; color: rgba(255,255,255,0.85); margin: 0 0 6px; word-break: break-all; }
.profile-joined { font-size: 13px; color: rgba(255,255,255,0.75); margin: 0; }
.profile-joined svg { width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-right: 4px; }
.profile-edit-wrap { flex-shrink: 0; }
.profile-edit-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 18px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.16); color: #fff;
    backdrop-filter: blur(6px);
    font-size: 13.5px; font-weight: 600; cursor: pointer;
    transition: all var(--transition);
}
.profile-edit-btn:hover { background: #fff; color: var(--accent); border-color: #fff; transform: translateY(-1px); }
.profile-edit-btn svg { width: 15px; height: 15px; }
.profile-stats {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px; padding: 0 16px;
}
.profile-stat-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 16px; padding: 14px 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s;
}
.profile-stat-card:hover { transform: translateY(-2px); }
.profile-stat-icon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.profile-stat-icon svg { width: 20px; height: 20px; }
.profile-stat-meta { min-width: 0; }
.profile-stat-value { font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.2; word-break: break-all; }
.profile-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.profile-entries { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.profile-entries .ck-entry { margin-top: 0; }
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.profile-action-btn {
    flex: 1; min-width: 160px; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer;
    border: 1px solid var(--border); background: var(--card-bg); color: var(--text);
    text-decoration: none; transition: all 0.2s;
}
.profile-action-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.profile-action-logout:hover { border-color: #ef4444; color: #ef4444; }
.profile-action-btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
    .profile-hero { padding: 26px 20px; }
    .profile-hero-top { flex-direction: column; text-align: center; padding-bottom: 40px; }
    .profile-name { justify-content: center; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); padding: 0 8px; }
}

/* ========== Ban Notification Modal ========== */
.ban-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ban-overlay.active {
    display: flex;
    animation: overlayFadeIn 0.2s ease;
}
.ban-modal {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    text-align: center;
    padding: 40px 32px 32px;
    animation: banModalIn 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes banModalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.ban-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: banIconPulse 2s ease-in-out infinite;
}
.ban-icon svg { width: 36px; height: 36px; }
@keyframes banIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
}
.ban-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px;
}
.ban-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 16px;
}
.ban-reason-box {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-left: 3px solid #ef4444;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin: 0 0 20px;
    text-align: left;
    word-break: break-word;
}
.ban-info {
    background: var(--bg-hover);
    border-radius: 10px;
    padding: 12px 18px;
    margin: 0 0 16px;
    text-align: left;
}
.ban-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.ban-info-row + .ban-info-row {
    border-top: 1px solid var(--border);
}
.ban-info-label {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}
.ban-info-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 600;
    text-align: right;
}
.ban-permanent { color: #ef4444; }
.ban-notice {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 24px;
}
.ban-confirm-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ban-confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.3);
}
.ban-confirm-btn:active {
    transform: translateY(0);
}
@media (max-width: 480px) {
    .ban-modal { padding: 32px 24px 24px; }
    .ban-icon { width: 60px; height: 60px; }
    .ban-icon svg { width: 30px; height: 30px; }
    .ban-title { font-size: 20px; }
}

/* ========== 文章附件下载 ========== */
.article-downloads {
    margin: 28px 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius, 14px);
    background: var(--bg-card, var(--bg));
    overflow: hidden;
}
.article-downloads-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 15px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
    border-bottom: 1px solid var(--border);
}
.article-downloads-header svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}
.article-downloads-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
}
.article-downloads-list {
    display: flex;
    flex-direction: column;
}
.download-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.download-card:last-child { border-bottom: none; }
.download-card:hover { background: var(--bg-hover, rgba(0,0,0,0.02)); }
.download-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.12));
    color: var(--accent);
}
.download-card-icon svg { width: 20px; height: 20px; }
.download-card-info { flex: 1; min-width: 0; }
.download-card-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.download-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.download-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}
.download-badge {
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 11px;
    background: rgba(16,185,129,0.12);
    color: #059669;
    font-weight: 600;
}
.download-badge-points {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.15));
    color: #d97706;
}
.download-badge-owned {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.15));
    color: var(--accent);
}
.download-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s;
}
.download-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(99,102,241,0.35);
    color: #fff;
}
.download-card-btn svg { width: 14px; height: 14px; }
.article-downloads-hint {
    padding: 10px 18px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px dashed var(--border);
}
@media (max-width: 640px) {
    .download-card { padding: 12px 14px; gap: 10px; }
    .download-card-icon { width: 36px; height: 36px; }
    .download-card-btn { padding: 7px 12px; font-size: 12px; }
}


/* ========== 音乐播放器（悬浮小部件） ========== */
body.has-music { padding-bottom: 20px; }

/* 左下角固定容器：抽屉(上) + 卡片(中) + 入口按钮(下) */
.mp-widget {
    position: fixed;
    left: 20px; bottom: 20px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

/* 入口按钮：深色圆形 + 白色音波竖条 */
.mp-fab {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.2s, box-shadow 0s;
}
.mp-fab:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(0,0,0,0.35); }
.mp-fab .mp-wave { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.mp-fab .mp-wave span {
    width: 4px; border-radius: 2px; background: #fff;
    animation: mpFabWave 1s ease-in-out infinite;
}
.mp-fab .mp-wave span:nth-child(2) { animation-delay: 0s; }
.mp-fab .mp-wave span:nth-child(3) { animation-delay: 0s; }
#musicPlayer:not(.playing) .mp-fab .mp-wave span { animation-play-state: paused; height: 8px; }
@keyframes mpFabWave { 0%,100% { height: 6px; } 50% { height: 18px; } }

/* 卡片播放器：hover 入口按钮/卡片时展开 */
.mp-card {
    width: 380px;
    max-width: calc(100vw - 40px);
    background: var(--bg-nav, var(--card-bg));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 12px 40px var(--shadow, rgba(0,0,0,0.15));
    border: 1px solid var(--border);
    padding: 18px;
    opacity: 0;
    visibility: hidden;   /* opacity:0 不影响 backdrop-filter，需一并隐藏避免残影 */
    transform: translateY(10px) scale(0.96);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
    transform-origin: bottom left;
}
.mp-widget:hover .mp-card { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }

.mp-card-inner { display: flex; gap: 16px; }
.mp-card-cover { flex-shrink: 0; }
.mp-card-cover .mp-cover {
    width: 100px; height: 100px;
    border-radius: 14px;
    background: var(--accent-bg, rgba(91,110,245,0.1));
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.mp-card-cover .mp-cover svg { width: 32px; height: 32px; }
.mp-card-cover .mp-cover img { width: 100%; height: 100%; object-fit: cover; }
#musicPlayer.playing .mp-card-cover .mp-cover img { animation: mpCoverSpin 20s linear infinite; }
#musicPlayer.playing .mp-card-cover .mp-cover { animation: mpCoverPulse 2s ease-in-out infinite; }
@keyframes mpCoverSpin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes mpCoverPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(91,110,245,0.35); } 50% { box-shadow: 0 0 0 6px rgba(91,110,245,0); } }

.mp-card-body { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.mp-card-info { overflow: hidden; }
.mp-card-info .mp-title {
    font-size: 14px; font-weight: 600; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-card-info .mp-artist {
    font-size: 12px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.mp-controls { display: flex; align-items: center; justify-content: center; gap: 4px; flex-shrink: 0; }
.mp-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border: none; border-radius: 50%;
    background: transparent; color: var(--text-secondary);
    cursor: pointer; transition: all 0.2s;
}
.mp-btn:hover { background: var(--accent-bg, rgba(91,110,245,0.1)); color: var(--accent); }
.mp-btn svg { width: 16px; height: 16px; }
.mp-btn-sm { width: 30px; height: 30px; }
.mp-btn-sm.active { color: var(--accent); background: var(--accent-bg, rgba(91,110,245,0.1)); }
.mp-btn-main {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2, #8b5cf6));
    color: #fff;
    box-shadow: 0 4px 12px rgba(91,110,245,0.35);
}
.mp-btn-main:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2, #8b5cf6)); color: #fff; transform: scale(1.06); }
.mp-btn-main svg { width: 17px; height: 17px; }

.mp-progress-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.mp-time { font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.mp-progress {
    flex: 1; height: 4px;
    border-radius: 2px;
    background: var(--border);
    cursor: pointer;
    position: relative;
    transition: height 0.2s;
}
.mp-progress:hover { height: 6px; }
.mp-progress-filled {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2, #8b5cf6));
    width: 0%;
    position: relative;
}
.mp-progress-filled::after {
    content: '';
    position: absolute;
    right: -5px; top: 50%;
    transform: translateY(-50%) scale(0);
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform 0.2s;
}
.mp-progress:hover .mp-progress-filled::after { transform: translateY(-50%) scale(1); }

.mp-extras { display: flex; align-items: center; justify-content: center; gap: 2px; flex-shrink: 0; }
.mp-volume { display: flex; align-items: center; gap: 6px; margin-left: 6px; color: var(--text-secondary); }
.mp-volume svg { width: 16px; height: 16px; flex-shrink: 0; }
.mp-volume input[type="range"] {
    width: 70px; height: 3px;
    -webkit-appearance: none; appearance: none;
    background: var(--border);
    border-radius: 2px;
    outline: none; cursor: pointer;
}
.mp-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

/* 抽屉（歌词 / 播放列表）：在卡片上方展开 */
.mp-drawer {
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 0;
    overflow: hidden;
    visibility: hidden;   /* 收起时整体隐藏：height:0 但 border 仍会画出 2px 灰线 */
    background: var(--bg-nav, var(--card-bg));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 20px var(--shadow, rgba(0,0,0,0.06));
    transition: height 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}
.mp-drawer.open { height: 300px; visibility: visible; }
.mp-lrc-panel, .mp-list-panel { display: none; height: 100%; }
.mp-list-panel, .mp-lrc-panel { flex-direction: column; }

/* ---- 歌词面板（重设计 v10）---- */
.mp-lrc-song {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.mp-lrc-lines {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 28px 16%;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    /* 上下渐隐遮罩：滚动到边缘时歌词淡出，视觉更柔和 */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
}
.mp-lrc-lines::-webkit-scrollbar { width: 0; }
.mp-lrc-line {
    padding: 8px 14px;
    margin: 1px auto;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    border-radius: 10px;
    cursor: pointer;
    width: fit-content;
    max-width: 100%;
    transition: color 0.2s, background 0.2s, transform 0.2s;
}
.mp-lrc-line:hover {
    color: var(--text-primary);
    background: var(--accent-bg, rgba(91,110,245,0.08));
}
.mp-lrc-line.active {
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
    transform: scale(1.02);
}
.mp-lrc-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---- 播放列表（重设计 v9）---- */
.mp-list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.mp-list-title { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.mp-list-count {
    font-size: 11px;
    color: var(--accent);
    background: var(--accent-bg, rgba(91,110,245,0.1));
    padding: 2px 9px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}
.mp-list-close { margin-left: auto; }

.mp-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 8px 10px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.mp-list::-webkit-scrollbar { width: 6px; }
.mp-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.mp-list::-webkit-scrollbar-track { background: transparent; }

.mp-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    margin: 2px 4px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s, transform 0.2s;
}
.mp-item:hover { background: var(--accent-bg, rgba(91,110,245,0.08)); transform: translateX(3px); }
.mp-item.active { background: var(--accent-bg, rgba(91,110,245,0.12)); }
.mp-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 22%; bottom: 22%;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2, #8b5cf6));
}
.mp-item-cover {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-bg, rgba(91,110,245,0.14)), rgba(139,92,246,0.12));
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--shadow, rgba(0,0,0,0.08));
}
.mp-item-cover svg { width: 18px; height: 18px; }
.mp-item-cover img { width: 100%; height: 100%; object-fit: cover; }
.mp-item.active .mp-item-cover { box-shadow: 0 0 0 2px var(--accent); }
.mp-item-text { flex: 1; overflow: hidden; }
.mp-item-title {
    font-size: 13px; font-weight: 600; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-item.active .mp-item-title { color: var(--accent); }
.mp-item-artist {
    font-size: 11px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mp-item-num {
    min-width: 20px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    transition: color 0.2s;
}
.mp-item:hover .mp-item-num { color: var(--accent); }

/* 播放中的音波动画 */
.mp-item-playing { display: flex; align-items: flex-end; gap: 2px; height: 14px; min-width: 20px; justify-content: center; flex-shrink: 0; }
.mp-item-playing span {
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
    animation: mpWave 0.9s ease-in-out infinite;
}
.mp-item-playing span:nth-child(2) { animation-delay: 0s; }
.mp-item-playing span:nth-child(3) { animation-delay: 0s; }
@keyframes mpWave { 0%, 100% { height: 4px; } 50% { height: 14px; } }

/* 响应式 */
@media (max-width: 768px) {
    .mp-widget { left: 12px; bottom: 12px; gap: 8px; }
    .mp-fab { width: 48px; height: 48px; }
    .mp-fab .mp-wave { height: 18px; }
    .mp-fab .mp-wave span { width: 3px; }
    .mp-card { width: calc(100vw - 24px); padding: 14px; border-radius: 16px; }
    .mp-card-inner { gap: 12px; }
    .mp-card-cover .mp-cover { width: 80px; height: 80px; border-radius: 12px; }
    .mp-card-cover .mp-cover svg { width: 26px; height: 26px; }
    .mp-card-body { gap: 8px; }
    body.has-music { padding-bottom: 12px; }
    .mp-drawer { width: calc(100vw - 24px); border-radius: 12px 12px 0 0; }
    .mp-drawer.open { height: 260px; }
    .mp-item-cover { width: 38px; height: 38px; }
    .mp-item-num { min-width: 16px; }
    .mp-volume { display: none; }
    .mp-lrc-lines { padding: 20px 8%; }
}

@media (max-width: 480px) {
    .mp-card-info .mp-title { font-size: 13px; }
    .mp-card-info .mp-artist { font-size: 11px; }
    .mp-progress-wrap { min-width: 0; }
    .mp-btn { width: 30px; height: 30px; }
    .mp-btn-main { width: 36px; height: 36px; }
}

/* 刷新续播被浏览器拦截时的轻量提示条（由 JS 动态创建 #mpToast） */
.mp-toast {
    position: fixed;
    bottom: 92px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: rgba(20, 22, 34, 0.82);
    color: #fff;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0s;
    z-index: 9999;
    max-width: calc(100vw - 40px);
    text-align: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.mp-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (max-width: 768px) {
    .mp-toast { bottom: 72px; font-size: 12px; padding: 8px 14px; }
}

/* ========== 赞助渠道 Sponsor Modal ========== */
.sp-overlay {
    position: fixed; inset: 0; z-index: 7000; background: rgba(10,12,20,0.55);
    backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0s;
}
.sp-overlay.active { opacity: 1; visibility: visible; }
.sp-modal {
    position: relative; width: 100%; max-width: 400px; max-height: 90vh; overflow-y: auto;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
    padding: 30px 26px 26px; box-shadow: 0 20px 60px rgba(0,0,0,0.28);
    transform: scale(0.95); transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.sp-overlay.active .sp-modal { transform: scale(1); }
.sp-step { display: none; text-align: center; }
.sp-step.active { display: block; animation: spFadeIn 0.2s ease; }
@keyframes spFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sp-heart {
    width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(135deg, #f43f5e, #f97316); box-shadow: 0 8px 20px rgba(244,63,94,0.3);
}
.sp-heart svg { width: 26px; height: 26px; }
.sp-heart-done { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 8px 20px rgba(34,197,94,0.3); }
.sp-title { font-size: 20px; font-weight: 800; color: var(--text); margin: 0 0 6px; }
.sp-amount-show { color: var(--accent); }
.sp-note { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin: 0 0 14px; }
.sp-alert {
    font-size: 13px; color: #ef4444; background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25); border-radius: 10px; padding: 12px 14px; margin: 6px 0 4px;
}
.sp-amounts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0 12px; }
.sp-amount-chip {
    min-width: 72px; padding: 10px 14px; border-radius: 12px; cursor: pointer;
    border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text);
    font-size: 15px; font-weight: 700; transition: all 0.2s;
}
.sp-amount-chip:hover { border-color: var(--accent); color: var(--accent); }
.sp-amount-chip.active {
    border-color: var(--accent); color: var(--accent); background: var(--accent-bg, rgba(91,110,245,0.1));
    box-shadow: 0 0 0 3px rgba(91,110,245,0.12);
}
.sp-custom-row { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.sp-custom-row .sp-custom-unit { font-size: 14px; color: var(--text-muted); flex-shrink: 0; }
.sp-input {
    width: 100%; box-sizing: border-box; padding: 11px 14px; border-radius: 12px;
    border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
    font-size: 14px; outline: none; transition: border-color 0.2s;
}
.sp-input:focus { border-color: var(--accent); }
.sp-form-row { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
.sp-submit {
    width: 100%; padding: 13px 16px; margin-top: 6px; border: none; border-radius: 12px;
    cursor: pointer; font-size: 15px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #f43f5e, #f97316); transition: opacity 0.2s, transform 0s;
}
.sp-submit:hover:not(:disabled) { transform: translateY(-1px); }
.sp-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.sp-back-link { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--text-muted); text-decoration: none; }
.sp-back-link:hover { color: var(--accent); }
.sp-qrcode-box {
    display: inline-block; padding: 10px; background: #fff; border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12); margin: 8px 0 4px;
}
.sp-qrcode-box img { display: block; width: 210px; height: 210px; object-fit: contain; }
.sp-hint { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin: 8px 0 2px; }
.sp-error {
    display: none; margin-top: 12px; font-size: 13px; color: #ef4444;
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25);
    border-radius: 10px; padding: 10px 14px; text-align: center;
}
/* 导航栏赞助入口高亮 */
.nav-sponsor-link { color: var(--accent); font-weight: 600; }

/* 支付方式选择按钮（赞助弹窗第 2 步） */
.sp-pay-btns { display: flex; gap: 12px; justify-content: center; margin: 18px 0 8px; flex-wrap: wrap; }
.sp-pay-btn {
    flex: 1; min-width: 130px; max-width: 170px; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer;
    background: var(--bg-card); color: var(--text); font-size: 15px; font-weight: 700; transition: all 0.2s;
}
.sp-pay-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.sp-pay-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
.sp-pay-wechat { color: #07c160; border-color: rgba(7,193,96,0.35); background: rgba(7,193,96,0.06); }
.sp-pay-wechat:hover { border-color: #07c160; box-shadow: 0 6px 16px rgba(7,193,96,0.18); }
.sp-pay-alipay { color: #1677ff; border-color: rgba(22,119,255,0.35); background: rgba(22,119,255,0.06); }
.sp-pay-alipay:hover { border-color: #1677ff; box-shadow: 0 6px 16px rgba(22,119,255,0.18); }

/* ===== 网站公告弹窗（复用 sp-overlay / sp-modal 骨架）===== */
.ann-modal { max-width: 420px; }
.ann-icon {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(135deg, #5b6ef5, #a55ef5);
    box-shadow: 0 10px 24px rgba(91,110,245,0.35);
}
.ann-icon svg { width: 28px; height: 28px; }
.ann-title { margin-bottom: 6px !important; }
.ann-content {
    text-align: left; font-size: 14.5px; line-height: 1.9; color: var(--text-secondary);
    background: rgba(91,110,245,0.05); border: 1px solid rgba(91,110,245,0.12);
    border-radius: 14px; padding: 16px 18px; margin: 14px 0 20px;
    max-height: 46vh; overflow-y: auto; word-break: break-word; white-space: pre-wrap;
}
.ann-close-btn { width: 100%; }

/* ===== 影视推荐弹窗（复用 sp-overlay / sp-modal 骨架）===== */
.tv-modal { max-width: 700px; padding: 0; overflow: hidden; }
.tv-hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 26px 24px 22px;
    background: linear-gradient(135deg, #3b2f7e 0%, #5b6ef5 55%, #a55ef5 100%);
    color: #fff;
}
.tv-hero::before { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -55px; top: -70px; background: rgba(255,255,255,0.1); }
.tv-hero::after { content: ''; position: absolute; width: 110px; height: 110px; border-radius: 50%; left: -35px; bottom: -50px; background: rgba(255,255,255,0.08); }
.tv-hero-badge {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
    font-size: 12px; font-weight: 700; letter-spacing: 1px;
}
.tv-hero-badge svg { width: 13px; height: 13px; }
.tv-hero-title { position: relative; z-index: 1; font-size: 21px; font-weight: 800; margin: 12px 0 4px; color: #fff; }
.tv-hero-sub { position: relative; z-index: 1; font-size: 13px; color: rgba(255,255,255,0.78); margin: 0; }
.tv-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
    gap: 14px; padding: 18px 20px 6px;
    max-height: 52vh; overflow-y: auto;
}
.tv-card {
    display: flex; flex-direction: column;
    background: var(--bg); border: 1px solid var(--border); border-radius: 14px;
    overflow: hidden; text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(91,110,245,0.45); }
.tv-card-cover {
    position: relative; aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(91,110,245,0.12), rgba(165,94,245,0.12));
}
.tv-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-card-fallback {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: rgba(91,110,245,0.45);
}
.tv-card-fallback svg { width: 34px; height: 34px; }
.tv-card-rating {
    position: absolute; left: 8px; top: 8px;
    display: inline-flex; align-items: center; gap: 3px;
    padding: 3px 8px; border-radius: 999px;
    background: rgba(0,0,0,0.62); backdrop-filter: blur(4px);
    color: #fbbf24; font-size: 12px; font-weight: 800;
}
.tv-card-rating svg { width: 11px; height: 11px; }
.tv-card-platform {
    position: absolute; right: 8px; top: 8px;
    padding: 3px 8px; border-radius: 999px;
    background: rgba(0,0,0,0.62); backdrop-filter: blur(4px);
    color: #fff; font-size: 11px; font-weight: 600;
}
.tv-card-body { padding: 10px 12px 12px; flex: 1; }
.tv-card-title {
    font-size: 14.5px; font-weight: 700; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tv-card-desc {
    margin-top: 4px; font-size: 12.5px; line-height: 1.55; color: var(--text-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 0;
}
.tv-card-go {
    display: inline-flex; align-items: center; gap: 3px;
    margin: 0 12px 12px; align-self: flex-start;
    font-size: 12.5px; font-weight: 700; color: var(--accent);
    transition: gap 0.2s ease;
}
.tv-card-go svg { width: 13px; height: 13px; }
.tv-card:hover .tv-card-go { gap: 7px; }
.tv-close-btn { width: calc(100% - 40px); margin: 12px 20px 20px; }
@media (max-width: 560px) {
    .tv-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px 14px 4px; }
    .tv-hero { padding: 20px 16px 16px; }
    .tv-hero-title { font-size: 18px; }
    .tv-close-btn { width: calc(100% - 28px); margin: 10px 14px 14px; }
}

/* ===== 追剧推荐悬浮按钮 ===== */
.tv-fab {
    position: fixed;
    bottom: 92px;
    right: 26px;
    z-index: 6000;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 18px 8px 9px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #5b6ef5 0%, #a55ef5 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(91,110,245,0.4), inset 0 1px 0 rgba(255,255,255,0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: tvFabIn 0.2s ease;
}
@keyframes tvFabIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.tv-fab:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(91,110,245,0.5), inset 0 1px 0 rgba(255,255,255,0.18);
}
.tv-fab:active { transform: translateY(-1px) scale(0.97); }
.tv-fab-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tv-fab-icon svg { width: 17px; height: 17px; }
.tv-fab-text { letter-spacing: 0.5px; }
/* 呼吸红点：提示有新推荐 */
.tv-fab-dot {
    position: absolute;
    top: -2px;
    right: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f43f5e;
    box-shadow: 0 0 0 2.5px rgba(255,255,255,0.9);
    animation: tvFabPulse 2s ease-in-out infinite;
}
@keyframes tvFabPulse {
    0%, 100% { box-shadow: 0 0 0 2.5px rgba(255,255,255,0.9), 0 0 0 0 rgba(244,63,94,0.45); }
    50% { box-shadow: 0 0 0 2.5px rgba(255,255,255,0.9), 0 0 0 6px rgba(244,63,94,0); }
}
@media (max-width: 640px) {
    .tv-fab { bottom: 84px; right: 16px; padding: 10px; }
    .tv-fab-text { display: none; }
    .tv-fab-icon { width: 24px; height: 24px; }
    .tv-fab-icon svg { width: 14px; height: 14px; }
    .tv-fab-dot { top: -1px; right: -1px; width: 8px; height: 8px; }
}

/* ===== 签到中心 ===== */
.ck-page { max-width: 1000px; margin: 0 auto; }
.ck-head { text-align: center; margin-bottom: 24px; }
.ck-head-title {
    font-size: 28px; font-weight: 800; margin-bottom: 8px;
    background: linear-gradient(90deg, #5b6ef5, #a55ef5);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ck-head-desc { font-size: 14px; color: var(--text-secondary); }

/* 主卡 */
.ck-hero {
    position: relative; overflow: hidden; border-radius: 22px; padding: 26px 28px 22px;
    background: var(--bg-card); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.ck-hero-done { border-color: rgba(34,197,94,.35); }
.ck-hero-glow {
    position: absolute; width: 320px; height: 320px; border-radius: 50%;
    background: radial-gradient(circle, rgba(91,110,245,.22), transparent 68%);
    top: -170px; right: -90px; pointer-events: none;
}
.ck-hero-done .ck-hero-glow { background: radial-gradient(circle, rgba(34,197,94,.2), transparent 68%); }
.ck-hero-inner { position: relative; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ck-hero-icon {
    width: 60px; height: 60px; border-radius: 18px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(135deg, #5b6ef5, #a55ef5);
    box-shadow: 0 10px 24px rgba(91,110,245,.32);
}
.ck-hero-done .ck-hero-icon { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 10px 24px rgba(34,197,94,.3); }
.ck-hero-icon svg { width: 30px; height: 30px; }
.ck-hero-text { flex: 1; min-width: 200px; }
.ck-hero-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.ck-hero-streak { font-size: 15px; color: var(--text-secondary); }
.ck-hero-streak b { font-size: 30px; font-weight: 800; color: #5b6ef5; font-variant-numeric: tabular-nums; }
.ck-hero-done .ck-hero-streak b { color: #22c55e; }
.ck-hero-date { font-size: 12.5px; color: var(--text-secondary); opacity: .8; margin-top: 4px; }
.ck-hero-action { flex-shrink: 0; }
.ck-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 150px; padding: 13px 26px; border: none; border-radius: 14px;
    font-size: 15px; font-weight: 700; color: #fff; cursor: pointer;
    background: linear-gradient(135deg, #5b6ef5, #7b5ef5);
    box-shadow: 0 8px 22px rgba(91,110,245,.32);
    transition: transform 0.2s, box-shadow 0s, opacity 0s;
    font-family: inherit;
}
.ck-btn svg { width: 18px; height: 18px; }
.ck-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(91,110,245,.42); }
.ck-btn-primary:active { transform: translateY(0); }
.ck-btn-done { background: rgba(34,197,94,.12); color: #16a34a; box-shadow: none; border: 1px solid rgba(34,197,94,.35); cursor: default; }
.ck-progress { position: relative; margin-top: 20px; }
.ck-progress-text { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 8px; }
.ck-progress-text b { color: #5b6ef5; }
.ck-progress-bar { height: 8px; border-radius: 999px; background: rgba(120,124,140,.15); overflow: hidden; }
.ck-progress-bar span {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #5b6ef5, #a55ef5);
    transition: width 0.2s cubic-bezier(.34,1.2,.64,1);
}

/* 统计 */
.ck-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.ck-stat {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 18px 14px; text-align: center; transition: transform 0.2s, box-shadow 0s;
}
.ck-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ck-stat-icon {
    width: 38px; height: 38px; margin: 0 auto 10px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.ck-stat-icon svg { width: 20px; height: 20px; }
.ck-stat-value { font-size: 22px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ck-stat-label { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; }

/* 两栏 */
.ck-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.ck-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); }
.ck-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ck-card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.ck-card-sub { font-size: 12px; color: var(--text-secondary); }

/* 日历 */
.ck-cal-nav { display: flex; align-items: center; gap: 6px; }
.ck-cal-btn {
    width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); border: 1px solid var(--border); background: transparent; transition: all 0.2s;
}
.ck-cal-btn svg { width: 15px; height: 15px; }
.ck-cal-btn:hover { color: #5b6ef5; border-color: rgba(91,110,245,.4); background: rgba(91,110,245,.06); }
.ck-cal-btn-disabled { opacity: .35; pointer-events: none; }
.ck-cal-ym { font-size: 13.5px; font-weight: 600; color: var(--text-primary); min-width: 84px; text-align: center; }
.ck-cal-today { font-size: 12px; color: #5b6ef5; margin-left: 4px; }
.ck-cal-week, .ck-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.ck-cal-week { margin-bottom: 6px; }
.ck-cal-week span { text-align: center; font-size: 11.5px; color: var(--text-secondary); opacity: .75; padding: 4px 0; }
.ck-day {
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; font-size: 13px; color: var(--text-secondary);
    background: rgba(120,124,140,.06); font-variant-numeric: tabular-nums;
    transition: all 0.2s;
}
.ck-day-on { background: linear-gradient(135deg, #5b6ef5, #7b5ef5); color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(91,110,245,.26); }
.ck-day-on svg { width: 15px; height: 15px; }
.ck-day-today { outline: 2px solid #f59e0b; outline-offset: 1px; }
.ck-day-future { opacity: .35; background: transparent; }
.ck-day-empty { background: transparent; }
.ck-cal-legend { display: flex; align-items: center; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--text-secondary); flex-wrap: wrap; }
.ck-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ck-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ck-dot-on { background: linear-gradient(135deg, #5b6ef5, #7b5ef5); }
.ck-dot-today { border: 2px solid #f59e0b; }
.ck-cal-sum { margin-left: auto; }

/* 记录 */
.ck-logs { max-height: 420px; overflow-y: auto; padding-right: 4px; }
.ck-log { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 10px; }
.ck-log-today { background: rgba(91,110,245,.06); }
.ck-log-badge {
    width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(91,110,245,.1); color: #5b6ef5;
}
.ck-log-badge svg { width: 15px; height: 15px; }
.ck-log-date { font-size: 13.5px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ck-log-date span { font-size: 11.5px; font-weight: 400; color: var(--text-secondary); margin-left: 4px; }
.ck-log-time { font-size: 11.5px; color: var(--text-secondary); margin-top: 2px; }
.ck-log-gap { text-align: center; font-size: 12px; color: var(--text-secondary); opacity: .5; padding: 4px 0; letter-spacing: 2px; }
.ck-empty { text-align: center; padding: 36px 12px; color: var(--text-secondary); }
.ck-empty svg { width: 44px; height: 44px; opacity: .35; margin-bottom: 10px; }
.ck-empty p { font-size: 13px; }
.ck-foot { text-align: center; margin-top: 22px; }
.ck-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-secondary); transition: color 0.2s; }
.ck-back svg { width: 15px; height: 15px; }
.ck-back:hover { color: #5b6ef5; }

/* 个人中心入口卡 */
.ck-entry {
    display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 20px 22px;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
    box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0s, border-color 0s;
}
.ck-entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(91,110,245,.4); }
.ck-entry-icon {
    width: 50px; height: 50px; border-radius: 15px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(135deg, #5b6ef5, #a55ef5);
    box-shadow: 0 8px 20px rgba(91,110,245,.28);
}
.ck-entry-done .ck-entry-icon { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 8px 20px rgba(34,197,94,.26); }
.ck-entry-icon svg { width: 26px; height: 26px; }
.ck-entry-main { flex: 1; min-width: 0; }
.ck-entry-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.ck-entry-sub { font-size: 13px; color: var(--text-secondary); }
.ck-entry-sub b { color: #5b6ef5; }
.ck-entry-action { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ck-entry-badge {
    font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
    background: rgba(34,197,94,.12); color: #16a34a; border: 1px solid rgba(34,197,94,.3);
}
.ck-entry-badge-todo { background: rgba(91,110,245,.1); color: #4353d9; border-color: rgba(91,110,245,.32); }
.ck-entry-arrow { width: 18px; height: 18px; color: var(--text-secondary); }

@media (max-width: 860px) {
    .ck-stats { grid-template-columns: repeat(2, 1fr); }
    .ck-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ck-hero-inner { flex-direction: column; align-items: flex-start; }
    .ck-hero-action { width: 100%; }
    .ck-btn { width: 100%; }
    .ck-entry { flex-wrap: wrap; }
    .ck-entry-action { width: 100%; justify-content: flex-end; }
    .ck-day { font-size: 12px; border-radius: 8px; }
}

/* ===== 滑动拼图验证（签到） ===== */
.ckp-overlay {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(10,12,24,.55);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s ease;
}
.ckp-overlay.active { opacity: 1; visibility: visible; }
.ckp-modal {
    width: 372px; max-width: 100%; box-sizing: border-box;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
    padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.3);
    transform: translateY(12px) scale(.97); transition: transform 0.2s cubic-bezier(.2,.9,.3,1.2);
}
.ckp-overlay.active .ckp-modal { transform: none; }
.ckp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.ckp-title { display: flex; align-items: center; gap: 7px; font-size: 15.5px; font-weight: 700; color: var(--text-primary); }
.ckp-title svg { width: 18px; height: 18px; color: #5b6ef5; }
.ckp-close {
    width: 30px; height: 30px; border-radius: 9px; border: none; background: transparent;
    color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0s;
}
.ckp-close:hover { background: rgba(120,124,140,.14); color: var(--text-primary); }
.ckp-close svg { width: 17px; height: 17px; }
.ckp-desc { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.6; }

.ckp-stage {
    position: relative; width: 320px; height: 160px; flex-shrink: 0;
    border-radius: 14px; overflow: hidden; user-select: none;
    background-color: #5b6ef5;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
    transition: box-shadow 0.2s;
}
.ckp-stage.ckp-ok { box-shadow: inset 0 0 0 2px rgba(34,197,94,.75); }
.ckp-stage, .ckp-piece { background-repeat: no-repeat; background-size: 320px 160px; }
.ckp-stage.ckp-shake { animation: ckpShake 0.2s cubic-bezier(.36,.07,.19,.97); }
@keyframes ckpShake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-7px); }
    40%, 60% { transform: translateX(7px); }
}
.ckp-hole {
    position: absolute; display: block;
    background: rgba(12,16,32,.55);
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.42);
    clip-path: path('M0,0 L50,0 L50,16 C58,16 58,34 50,34 L50,50 L0,50 Z');
    transition: background 0.2s, box-shadow 0s;
}
.ckp-hole.ckp-near { background: rgba(34,197,94,.42); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.85); }
.ckp-piece {
    position: absolute; display: block; left: 0;
    clip-path: path('M0,0 L50,0 L50,16 C58,16 58,34 50,34 L50,50 L0,50 Z');
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.ckp-ok .ckp-piece { filter: drop-shadow(0 0 8px rgba(34,197,94,.85)); }

/* 底板配色（assets/img/captcha/ 目录为空时的回落方案；有自备图片时走内联 background-image） */
/* 注意：stage 与 piece 必须共用同一 background-size，拼图块才能与缺口严丝合缝 */
.ckp-bg-0 { background-image: radial-gradient(circle at 18% 26%, rgba(255,255,255,.4), transparent 42%), radial-gradient(circle at 78% 70%, rgba(255,214,102,.9), transparent 48%), linear-gradient(135deg, #5b6ef5, #7b5ef5 52%, #22d3ee); }
.ckp-bg-1 { background-image: radial-gradient(circle at 72% 22%, rgba(255,255,255,.34), transparent 40%), radial-gradient(circle at 24% 74%, rgba(255,138,128,.85), transparent 46%), linear-gradient(135deg, #f97316, #ec4899 55%, #8b5cf6); }
.ckp-bg-2 { background-image: radial-gradient(circle at 30% 72%, rgba(255,255,255,.34), transparent 44%), radial-gradient(circle at 80% 26%, rgba(125,211,252,.9), transparent 46%), linear-gradient(135deg, #0ea5e9, #14b8a6 55%, #22c55e); }
.ckp-bg-3 { background-image: radial-gradient(circle at 76% 74%, rgba(255,255,255,.3), transparent 42%), radial-gradient(circle at 22% 30%, rgba(253,224,71,.85), transparent 46%), linear-gradient(135deg, #111827, #374151 50%, #6b7280); }
.ckp-bg-4 { background-image: radial-gradient(circle at 24% 24%, rgba(255,255,255,.36), transparent 42%), radial-gradient(circle at 74% 68%, rgba(196,181,253,.9), transparent 48%), linear-gradient(135deg, #8b5cf6, #d946ef 52%, #fb7185); }
.ckp-bg-5 { background-image: radial-gradient(circle at 68% 30%, rgba(255,255,255,.32), transparent 40%), radial-gradient(circle at 26% 78%, rgba(74,222,128,.85), transparent 46%), linear-gradient(135deg, #065f46, #0d9488 52%, #84cc16); }

.ckp-track {
    position: relative; width: 320px; max-width: 100%; height: 50px; margin-top: 14px;
    border-radius: 999px; background: rgba(120,124,140,.16); overflow: hidden;
    border: 1px solid var(--border);
}
.ckp-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: linear-gradient(90deg, rgba(91,110,245,.18), rgba(91,110,245,.44));
    transition: width 0.2s linear;
}
.ckp-ok .ckp-fill { background: linear-gradient(90deg, rgba(34,197,94,.2), rgba(34,197,94,.45)); }
.ckp-handle {
    position: absolute; left: 0; top: 0; bottom: 0; width: 58px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #5b6ef5, #7b5ef5); color: #fff;
    border-radius: 999px; cursor: grab; touch-action: none; user-select: none;
    box-shadow: 0 4px 14px rgba(91,110,245,.42);
    transition: background 0.2s, box-shadow 0s;
}
.ckp-handle:active { cursor: grabbing; }
.ckp-handle svg { width: 18px; height: 18px; }
.ckp-ok .ckp-handle { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 4px 14px rgba(34,197,94,.45); }

.ckp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; min-height: 22px; }
.ckp-msg { font-size: 12.5px; color: var(--text-secondary); }
.ckp-msg-err { color: #e11d48; }
.ckp-msg-ok { color: #16a34a; font-weight: 600; }
.ckp-refresh {
    width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; cursor: pointer;
    border: 1px solid var(--border); background: transparent; color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.ckp-refresh:hover { color: #5b6ef5; border-color: rgba(91,110,245,.45); background: rgba(91,110,245,.07); }
.ckp-refresh svg { width: 15px; height: 15px; }

@media (max-width: 400px) {
    .ckp-overlay { padding: 4px; }
    .ckp-modal { padding: 12px; }
}

/* ===== 抽奖中心 ===== */
.lt-page { max-width: 1080px; margin: 0 auto; }

/* 次数卡 */
.lt-balance {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    margin-top: 22px; padding: 22px 24px; border-radius: 20px;
    background: linear-gradient(120deg, #5b6ef5, #8b5cf6 55%, #d946ef);
    color: #fff; box-shadow: 0 16px 38px rgba(91,110,245,.28);
}
.lt-balance-glow {
    position: absolute; width: 240px; height: 240px; right: -70px; top: -110px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.34), transparent 70%); pointer-events: none;
}
.lt-balance-left { position: relative; flex: 1; min-width: 180px; }
.lt-balance-label { font-size: 13px; opacity: .88; letter-spacing: .5px; }
.lt-balance-num { font-size: 44px; font-weight: 800; line-height: 1.1; margin: 2px 0 4px; text-shadow: 0 3px 12px rgba(0,0,0,.16); }
.lt-balance-sub { font-size: 12.5px; opacity: .9; }
.lt-balance-btn {
    position: relative; display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
    padding: 11px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
    background: rgba(255,255,255,.96); color: #4353d9; text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.16); transition: transform 0.2s, box-shadow 0s;
}
.lt-balance-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.lt-balance-btn svg { width: 16px; height: 16px; }
.lt-balance-right { position: relative; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }
.lt-points-chip {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 8px 18px; border-radius: 14px; text-align: center;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.32);
}
.lt-points-label { font-size: 11.5px; opacity: .92; letter-spacing: .5px; }
.lt-points-num { font-size: 22px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }

/* 九宫格 */
.lt-stage { display: flex; flex-direction: column; align-items: center; margin-top: 26px; }
.lt-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    width: min(380px, 100%); padding: 16px; border-radius: 24px;
    background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.lt-cell {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    aspect-ratio: 1 / 1; padding: 8px 6px; border-radius: 16px; text-align: center;
    background: var(--bg-hover); border: 1.5px solid transparent; overflow: hidden;
    transition: transform 0.2s, background 0s, border-color 0s, box-shadow 0s;
}
.lt-cell-icon { font-size: 28px; line-height: 1; }
.lt-cell-name { font-size: 11.5px; color: var(--text-secondary); line-height: 1.3; word-break: break-word; }
.lt-cell.lt-active {
    background: linear-gradient(135deg, rgba(91,110,245,.2), rgba(139,92,246,.24));
    border-color: rgba(91,110,245,.7);
    box-shadow: 0 6px 18px rgba(91,110,245,.28);
    transform: scale(1.05);
}
.lt-cell.lt-active .lt-cell-name { color: #4353d9; font-weight: 700; }
.lt-cell.lt-win {
    background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(16,163,74,.26));
    border-color: rgba(34,197,94,.75);
    box-shadow: 0 0 0 4px rgba(34,197,94,.16), 0 8px 22px rgba(34,197,94,.3);
    animation: ltWinPulse 0.2s ease;
}
@keyframes ltWinPulse {
    0% { transform: scale(1); }
    45% { transform: scale(1.12); }
    100% { transform: scale(1); }
}
.lt-center { display: flex; align-items: center; justify-content: center; }
.lt-draw-btn {
    width: 100%; height: 100%; border: none; border-radius: 16px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: linear-gradient(135deg, #f97316, #ef4444 60%, #d946ef); color: #fff;
    box-shadow: 0 10px 24px rgba(239,68,68,.32);
    transition: transform 0.2s, box-shadow 0s, filter 0s;
    font-family: inherit;
}
.lt-draw-btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px rgba(239,68,68,.4); }
.lt-draw-btn:active:not(:disabled) { transform: scale(.98); }
.lt-draw-btn:disabled { filter: grayscale(.55) opacity(.7); cursor: not-allowed; }
.lt-draw-main { font-size: 20px; font-weight: 800; letter-spacing: 2px; }
.lt-draw-sub { font-size: 10.5px; opacity: .9; }
.lt-msg { min-height: 20px; margin-top: 12px; font-size: 13px; color: var(--text-secondary); }
.lt-msg-err { color: #e11d48; }
.lt-msg-ok { color: #16a34a; font-weight: 600; }

/* 签到页的抽奖入口卡 */
.lt-entry {
    position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px;
    margin-top: 20px; padding: 20px 22px; border-radius: 18px; text-decoration: none;
    background: linear-gradient(120deg, rgba(249,115,22,.1), rgba(217,70,239,.12));
    border: 1px solid rgba(239,68,68,.28);
    transition: transform 0.2s, box-shadow 0s, border-color 0s;
}
.lt-entry:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(239,68,68,.16); border-color: rgba(239,68,68,.5); }
.lt-entry-glow {
    position: absolute; width: 180px; height: 180px; right: -50px; top: -90px; border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,.28), transparent 70%); pointer-events: none;
}
.lt-entry-icon {
    position: relative; width: 50px; height: 50px; border-radius: 15px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(135deg, #f97316, #d946ef);
    box-shadow: 0 8px 20px rgba(239,68,68,.28);
}
.lt-entry-icon svg { width: 26px; height: 26px; }
.lt-entry-main { position: relative; flex: 1; min-width: 0; }
.lt-entry-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.lt-entry-sub { font-size: 13px; color: var(--text-secondary); }
.lt-entry-sub b { color: #ef4444; }
.lt-entry-action { position: relative; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lt-entry-badge {
    font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #d946ef); color: #fff;
    box-shadow: 0 5px 14px rgba(239,68,68,.3);
}
.lt-entry-arrow { width: 18px; height: 18px; color: var(--text-secondary); }
.ck-entry-lottery .ck-entry-icon { background: linear-gradient(135deg, #f97316, #d946ef); box-shadow: 0 8px 20px rgba(239,68,68,.28); }
.ck-entry-lottery:hover { border-color: rgba(239,68,68,.45); }
.ck-entry-lottery .ck-entry-sub b { color: #ef4444; }

/* 记录 */
.lt-logs { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.lt-log {
    display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 13px;
    background: var(--bg-hover); border: 1px solid transparent;
}
.lt-log-win { background: linear-gradient(120deg, rgba(245,158,11,.12), rgba(239,68,68,.1)); border-color: rgba(245,158,11,.3); }
.lt-log-icon { font-size: 22px; width: 34px; height: 34px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--bg-card); }
.lt-log-main { flex: 1; min-width: 0; }
.lt-log-name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lt-log-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(34,197,94,.14); color: #16a34a; }
.lt-log-tag-points { background: rgba(245,158,11,.16); color: #b45309; }
.lt-log-time { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.lt-log-state { font-size: 12px; font-weight: 600; color: var(--text-muted); flex-shrink: 0; }
.lt-log-win .lt-log-state { color: #d97706; }

/* 规则 */
.lt-rules { margin-bottom: 14px; }
.lt-rule-note { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 12px; }
.lt-rule-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.lt-rule-list li { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.lt-rule-list b { color: #ef4444; }
.lt-rule-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.lt-rule-item {
    display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 11px;
    background: var(--bg-hover); font-size: 12.5px; color: var(--text-secondary);
}
.lt-rule-icon { font-size: 16px; }
.lt-rule-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-rule-weight { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.lt-rule-tag-points {
    font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px;
    background: rgba(245,158,11,.16); color: #b45309; flex-shrink: 0;
}
[data-theme="dark"] .lt-log-tag-points,
[data-theme="dark"] .lt-rule-tag-points { color: #fbbf24; }

/* 结果弹窗 */
.lt-modal-overlay {
    position: fixed; inset: 0; z-index: 1150; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(10,12,24,.58);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0s ease;
}
.lt-modal-overlay.active { opacity: 1; visibility: visible; }
.lt-modal {
    position: relative; overflow: hidden; width: 330px; max-width: 100%; box-sizing: border-box;
    padding: 30px 24px 24px; text-align: center; border-radius: 22px;
    background: var(--bg-card); border: 1px solid var(--border);
    box-shadow: 0 26px 64px rgba(0,0,0,.32);
    transform: translateY(14px) scale(.95); transition: transform 0.2s cubic-bezier(.2,.9,.3,1.25);
}
.lt-modal-overlay.active .lt-modal { transform: none; }
.lt-modal-glow {
    position: absolute; width: 260px; height: 260px; left: 50%; top: -150px; transform: translateX(-50%);
    border-radius: 50%; background: radial-gradient(circle, rgba(245,158,11,.28), transparent 70%); pointer-events: none;
}
.lt-modal-win .lt-modal-glow { background: radial-gradient(circle, rgba(239,68,68,.3), transparent 70%); }
.lt-modal-icon { position: relative; font-size: 58px; line-height: 1; margin-bottom: 12px; animation: ltPop 0.2s cubic-bezier(.2,.9,.3,1.4); }
@keyframes ltPop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lt-modal-title { position: relative; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.lt-modal-name { position: relative; font-size: 22px; font-weight: 800; color: var(--text-primary); margin-bottom: 10px; }
.lt-modal-extra { position: relative; font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.lt-modal-btn {
    position: relative; width: 100%; padding: 12px; border: none; border-radius: 13px; cursor: pointer;
    font-size: 14px; font-weight: 700; color: #fff; font-family: inherit;
    background: linear-gradient(135deg, #5b6ef5, #8b5cf6);
    box-shadow: 0 8px 20px rgba(91,110,245,.3); transition: transform 0.2s, box-shadow 0s;
}
.lt-modal-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(91,110,245,.36); }

@media (max-width: 560px) {
    .lt-balance { padding: 18px; }
    .lt-balance-num { font-size: 36px; }
    .lt-balance-btn { width: 100%; justify-content: center; }
    .lt-grid { gap: 9px; padding: 12px; border-radius: 20px; }
    .lt-cell-icon { font-size: 23px; }
    .lt-cell-name { font-size: 10.5px; }
    .lt-entry { flex-wrap: wrap; }
    .lt-entry-action { width: 100%; justify-content: flex-end; }
}

/* ========== 用户头像图片（导航 + 个人中心） ========== */
.nav-user-avatar img, .nav-user-menu-avatar img, .profile-avatar-lg img {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}

/* 注销冷静期提示条 */
.pf-grace-banner {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px; padding: 12px 16px; border-radius: 12px;
    background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3);
    color: #b45309; font-size: 13.5px; line-height: 1.6;
}
[data-theme="dark"] .pf-grace-banner { color: #fbbf24; }

/* ========== 修改信息弹窗 ========== */
.pf-overlay {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(15,23,42,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.pf-overlay.active { opacity: 1; pointer-events: auto; }
.pf-modal {
    width: 480px; max-width: 100%; max-height: calc(100vh - 60px); overflow-y: auto;
    background: var(--bg-card, #fff); border: 1px solid var(--border);
    border-radius: 20px; padding: 26px 24px 22px; position: relative;
    transform: translateY(14px) scale(.97); transition: transform 0.2s;
}
.pf-overlay.active .pf-modal { transform: translateY(0) scale(1); }
.pf-title { font-size: 19px; font-weight: 700; margin: 0 0 18px; color: var(--text); }
.pf-section { padding: 16px 0; border-top: 1px solid var(--border); }
.pf-section:first-of-type { border-top: 0; padding-top: 0; }
.pf-section-label { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin-bottom: 10px; }
.pf-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.pf-avatar-row { display: flex; align-items: center; gap: 16px; }
.pf-avatar-preview {
    width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: linear-gradient(135deg, #5b6ef5, #8b5cf6);
    color: #fff; font-size: 32px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.pf-avatar-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-avatar-ops { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pf-inline-row { display: flex; gap: 8px; }
.pf-inline-row .pf-input { flex: 1; }
.pf-input {
    width: 100%; padding: 10px 12px; border-radius: 10px;
    border: 1.5px solid var(--border); background: var(--bg-input, transparent);
    color: var(--text); font-size: 14px; outline: none; transition: border-color 0.2s;
    box-sizing: border-box;
}
.pf-input:focus { border-color: var(--accent); }
.pf-field { margin-bottom: 10px; }
.pf-field label { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 5px; }
.pf-btn {
    padding: 9px 16px; border-radius: 10px; border: none; cursor: pointer;
    font-size: 13.5px; font-weight: 600; transition: all 0.2s; white-space: nowrap;
}
.pf-btn:disabled { opacity: .55; cursor: not-allowed; }
.pf-btn-primary { background: var(--accent); color: #fff; }
.pf-btn-primary:hover:not(:disabled) { filter: brightness(1.1); }
.pf-btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.pf-btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.pf-btn-danger { background: #dc2626; color: #fff; }
.pf-btn-danger:hover:not(:disabled) { background: #b91c1c; }
.pf-error { display: none; margin-top: 8px; font-size: 13px; color: #dc2626; }
.pf-danger-zone { background: rgba(220,38,38,.04); border: 1px solid rgba(220,38,38,.18) !important; border-radius: 12px; padding: 14px 16px !important; }
.pf-danger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }

/* 注销协议 */
.pf-agree-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.pf-agree-box {
    background: var(--bg-hover, rgba(0,0,0,.03)); border: 1px solid var(--border);
    border-radius: 12px; padding: 14px 16px; max-height: 260px; overflow-y: auto;
}
.pf-agree-box p { font-size: 13px; color: var(--text-secondary); line-height: 1.8; margin: 0 0 8px; }
.pf-agree-box p:last-child { margin-bottom: 0; }
.pf-agree-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

/* ========== 注销冷静期登录确认弹窗 ========== */
.dp-modal { width: 400px; max-width: calc(100vw - 40px); text-align: center; }
.dp-icon {
    width: 56px; height: 56px; margin: 4px auto 14px; border-radius: 50%;
    background: rgba(245,158,11,.12); color: #f59e0b;
    display: flex; align-items: center; justify-content: center;
}
.dp-icon svg { width: 28px; height: 28px; }
.dp-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; color: var(--text); }
.dp-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.8; margin: 0 0 18px; }
.dp-actions { display: flex; gap: 10px; }
.dp-btn {
    flex: 1; padding: 11px 0; border-radius: 12px; border: none;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.dp-btn-cancel { background: var(--bg-hover, rgba(0,0,0,.05)); color: var(--text-secondary); }
.dp-btn-cancel:hover { background: var(--border); }
.dp-btn-ok { background: var(--accent); color: #fff; }
.dp-btn-ok:hover { filter: brightness(1.1); }

/* ============================================================
   评论区（文章详情页）
   ============================================================ */
.comments-section {
    margin-top: 32px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px 26px 22px;
}
.comments-header {
    display: flex; align-items: center; gap: 9px;
    font-size: 18px; font-weight: 700; color: var(--text);
    margin-bottom: 20px;
}
.comments-header svg { width: 20px; height: 20px; color: var(--accent); }
.comments-count {
    font-size: 12.5px; font-weight: 600; color: var(--accent);
    background: var(--accent-bg, rgba(91,110,245,.1));
    border-radius: 20px; padding: 2px 10px;
}
/* 发表评论 */
.comment-form { margin-bottom: 22px; }
.comment-form textarea {
    width: 100%; box-sizing: border-box; resize: vertical;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg, transparent); color: var(--text);
    padding: 12px 14px; font-size: 14px; font-family: inherit;
    line-height: 1.6; transition: border-color 0.2s, box-shadow 0s;
}
.comment-form textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-bg, rgba(91,110,245,.12));
}
.comment-form-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px;
}
.comment-char-count { font-size: 12px; color: var(--text-muted); }
.comment-submit-btn {
    border: none; cursor: pointer; transition: all 0.2s;
    background: var(--accent-grad, linear-gradient(135deg, #5b6ef5, #8b5cf6));
    color: #fff; font-size: 13.5px; font-weight: 600;
    border-radius: 12px; padding: 9px 22px;
}
.comment-submit-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.comment-submit-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
/* 未登录提示 */
.comment-login-hint {
    text-align: center; padding: 22px 16px; margin-bottom: 20px;
    background: var(--bg-hover, rgba(0,0,0,.03));
    border: 1px dashed var(--border); border-radius: 14px;
}
.comment-login-hint p { margin: 0 0 12px; font-size: 13.5px; color: var(--text-secondary); }
.comment-login-btn {
    border: none; cursor: pointer; transition: all 0.2s;
    background: var(--accent-grad, linear-gradient(135deg, #5b6ef5, #8b5cf6));
    color: #fff; font-size: 13.5px; font-weight: 600;
    border-radius: 12px; padding: 9px 24px;
}
.comment-login-btn:hover { filter: brightness(1.08); }
/* 评论列表 */
.comments-empty { text-align: center; padding: 26px 0 14px; color: var(--text-muted); font-size: 13.5px; }
.comment-item {
    display: flex; gap: 12px; padding: 16px 0;
    border-top: 1px solid var(--border);
}
.comment-item:first-child { border-top: none; }
.comment-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}
.comment-avatar-text {
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-grad, linear-gradient(135deg, #5b6ef5, #8b5cf6));
    color: #fff; font-weight: 700; font-size: 15px; user-select: none;
}
.comment-main { flex: 1; min-width: 0; }
.comment-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.comment-author { font-size: 13.5px; font-weight: 700; color: var(--text); }
.comment-badge {
    font-size: 10.5px; font-weight: 700; color: #fff;
    background: var(--accent-grad, linear-gradient(135deg, #5b6ef5, #8b5cf6));
    border-radius: 8px; padding: 1px 7px;
}
.comment-time { font-size: 12px; color: var(--text-muted); }
.comment-content {
    font-size: 14px; color: var(--text-secondary); line-height: 1.7;
    word-break: break-word; overflow-wrap: anywhere;
}
.comment-actions { margin-top: 6px; }
.comment-report-btn {
    border: none; background: none; cursor: pointer;
    font-size: 12px; color: var(--text-muted); padding: 2px 0;
    transition: color 0.2s;
}
.comment-report-btn:hover { color: var(--danger, #ef4444); }

/* ============================================================
   举报弹窗（文章页全局）
   ============================================================ */
.rp-overlay {
    position: fixed; inset: 0; z-index: 1300;
    background: rgba(15,23,42,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.rp-overlay.active { opacity: 1; pointer-events: auto; }
.rp-modal {
    width: 420px; max-width: 100%; max-height: calc(100vh - 60px); overflow-y: auto;
    background: var(--bg-card, #fff); border: 1px solid var(--border);
    border-radius: 20px; padding: 26px 24px 22px; position: relative;
    transform: translateY(14px) scale(.97); transition: transform 0.2s;
}
.rp-overlay.active .rp-modal { transform: translateY(0) scale(1); }
.rp-title { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.rp-target { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.rp-target b { color: var(--text); }
.rp-label { font-size: 13px; font-weight: 600; color: var(--text); margin: 14px 0 10px; }
.rp-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-reason {
    border: 1px solid var(--border); background: var(--bg, transparent);
    color: var(--text-secondary); font-size: 13px; cursor: pointer;
    border-radius: 20px; padding: 7px 15px; transition: all 0.2s;
}
.rp-reason:hover { border-color: var(--accent); color: var(--accent); }
.rp-reason.active {
    border-color: var(--accent); color: var(--accent); font-weight: 600;
    background: var(--accent-bg, rgba(91,110,245,.1));
}
.rp-modal textarea {
    width: 100%; box-sizing: border-box; resize: vertical;
    border: 1px solid var(--border); border-radius: 12px;
    background: var(--bg, transparent); color: var(--text);
    padding: 11px 13px; font-size: 13.5px; font-family: inherit; line-height: 1.6;
}
.rp-modal textarea:focus { outline: none; border-color: var(--accent); }
.rp-error {
    margin-top: 10px; font-size: 13px; color: var(--danger, #ef4444);
    background: var(--danger-bg, rgba(239,68,68,.1));
    border-radius: 10px; padding: 9px 12px;
}
.rp-actions { display: flex; gap: 10px; margin-top: 18px; }
.rp-btn {
    flex: 1; padding: 11px 0; border-radius: 12px; border: none;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.rp-btn-cancel { background: var(--bg-hover, rgba(0,0,0,.05)); color: var(--text-secondary); }
.rp-btn-cancel:hover { background: var(--border); }
.rp-btn-submit { background: var(--accent-grad, linear-gradient(135deg, #5b6ef5, #8b5cf6)); color: #fff; }
.rp-btn-submit:hover { filter: brightness(1.1); }
.rp-btn-submit:disabled { opacity: .55; cursor: not-allowed; }

@media (max-width: 640px) {
    .comments-section { padding: 20px 16px 18px; }
    .rp-modal { width: 100%; }
}

/* ============================================================
   文章阅读积分锁定卡片（unlock-*）
   ============================================================ */
.unlock-card {
    margin: 32px 0;
    padding: 40px 28px;
    text-align: center;
    background: var(--bg-card, var(--card-bg, #fff));
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.04);
}
.unlock-icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(91,110,245,.14), rgba(139,92,246,.14));
    color: var(--accent);
}
.unlock-icon svg { width: 30px; height: 30px; }
.unlock-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 14px;
}
.unlock-excerpt {
    max-width: 560px;
    margin: 0 auto 16px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-secondary);
    padding: 14px 18px;
    border-radius: 10px;
    background: var(--bg-hover, rgba(0,0,0,.03));
    border-left: 3px solid var(--accent);
    text-align: left;
}
.unlock-tip {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.unlock-balance {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}
.unlock-balance strong { color: var(--accent); font-size: 17px; }
.unlock-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #5b6ef5, #8b5cf6);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0s ease, opacity 0s ease;
    box-shadow: 0 6px 18px rgba(91,110,245,.28);
}
.unlock-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(91,110,245,.34); }
.unlock-btn:active { transform: translateY(0); }
.unlock-btn[disabled], .unlock-btn-disabled {
    background: var(--border);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.unlock-sub {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-muted);
}
.unlock-sub a { color: var(--accent); font-weight: 600; }

/* 移动端 */
@media (max-width: 640px) {
    .unlock-card { padding: 30px 18px; margin: 24px 0; }
    .unlock-title { font-size: 17px; }
    .unlock-btn { width: 100%; padding: 12px 16px; font-size: 14px; }
    .unlock-icon { width: 54px; height: 54px; }
    .unlock-icon svg { width: 26px; height: 26px; }
}

/* ============================================================
   投稿弹窗（ct-*）：导航「投稿」→ 表单提交 → 管理员审核
   ============================================================ */
.ct-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(10, 12, 24, .55);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: none; align-items: flex-start; justify-content: center;
    padding: 48px 16px;
    overflow-y: auto;
}
.ct-overlay.active { display: flex; animation: ctFadeIn 0.2s ease; }
@keyframes ctFadeIn { from { opacity: 0; } to { opacity: 1; } }
.ct-modal {
    width: 100%; max-width: 640px;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 26px;
    position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.18);
    animation: ctSlideUp 0.2s ease;
}
@keyframes ctSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.ct-title { font-size: 20px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.ct-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.ct-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ct-form-row .ct-form-group { flex: 1 1 160px; }
.ct-form-row .ct-grow { flex: 2 1 260px; }
.ct-form-group { margin-bottom: 14px; }
.ct-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.ct-req { color: #e5484d; }
.ct-input {
    width: 100%; box-sizing: border-box;
    padding: 10px 12px;
    font-size: 14px; font-family: inherit;
    color: var(--text-primary);
    background: var(--bg-hover, rgba(0,0,0,.03));
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0s ease;
}
.ct-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,110,245,.14); }
.ct-textarea { resize: vertical; min-height: 160px; line-height: 1.7; }
.ct-hint { font-size: 12px; color: var(--text-muted); text-align: right; margin-top: 4px; }
.ct-error {
    margin-bottom: 12px; padding: 10px 12px;
    font-size: 13px; color: #c0353a;
    background: rgba(229,72,77,.08);
    border: 1px solid rgba(229,72,77,.25);
    border-radius: 8px;
}
.ct-success {
    margin-bottom: 12px; padding: 10px 12px;
    font-size: 13px; color: #1a7f37;
    background: rgba(52,199,89,.1);
    border: 1px solid rgba(52,199,89,.3);
    border-radius: 8px;
}
.ct-submit {
    width: 100%; padding: 12px;
    font-size: 15px; font-weight: 700;
    color: #fff; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #5b6ef5, #8b5cf6);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0s ease, opacity 0s ease;
    box-shadow: 0 6px 18px rgba(91,110,245,.28);
}
.ct-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(91,110,245,.34); }
.ct-submit[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
/* 投稿封面：上传按钮 */
.ct-cover-btn {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px; font-weight: 600;
    color: var(--accent);
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0s ease;
}
.ct-cover-btn:hover { border-color: var(--accent); background: var(--accent-bg); }
.ct-my { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--border); }
.ct-my-head { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; }
.ct-my-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.ct-my-item {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px;
    background: var(--bg-hover, rgba(0,0,0,.03));
    border: 1px solid var(--border);
    border-radius: 10px;
}
.ct-my-item-main { min-width: 0; }
.ct-my-title { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-my-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ct-my-reason { font-size: 12px; color: #c0353a; margin-top: 4px; }
.ct-my-view { font-size: 12px; color: var(--accent); text-decoration: none; font-weight: 600; display: inline-block; margin-top: 4px; }
.ct-badge { flex-shrink: 0; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.ct-badge-pending { color: #9a6700; background: rgba(255,193,7,.15); }
.ct-badge-published { color: #1a7f37; background: rgba(52,199,89,.14); }
.ct-badge-rejected { color: #c0353a; background: rgba(229,72,77,.12); }
.ct-my-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 14px 0; }
@media (max-width: 640px) {
    .ct-overlay { padding: 16px 10px; }
    .ct-modal { padding: 20px 16px; }
    .ct-form-row { flex-direction: column; gap: 0; }
}

/* ========== 文章图片点击放大（Lightbox：点击开图 + 滚轮/双击/拖拽缩放平移） ========== */
.article-content img,
.article-detail-cover img {
    cursor: zoom-in;
}

.lb-overlay {
    display: none;
    position: fixed;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, .92);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.2s ease;
    overflow: hidden;
}
.lb-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lb-img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    cursor: zoom-in;
}
.lb-img.zoomed { cursor: grab; }
.lb-img.dragging { cursor: grabbing; }

.lb-counter {
    position: absolute;
    top: 20px; left: 24px;
    color: rgba(255, 255, 255, .85);
    font-size: 14px;
    letter-spacing: 1px;
    user-select: none;
    z-index: 3;
}

.lb-tools {
    position: absolute;
    top: 14px; right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}
.lb-tool {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
}
.lb-tool:hover { background: rgba(255, 255, 255, .28); }
.lb-zoom-reset { font-size: 13px; letter-spacing: .5px; }
.lb-close { font-size: 24px; }

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}
.lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }

.lb-hint {
    position: absolute;
    left: 50%;
    bottom: 88px;
    transform: translateX(-50%);
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .8);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 3;
}
.lb-hint.show { opacity: 1; }

.lb-thumbs {
    position: absolute;
    bottom: 22px; left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    max-width: 80vw;
    overflow-x: auto;
    padding: 6px;
    z-index: 3;
}
.lb-thumbs img {
    width: 72px; height: 48px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: .45;
    border: 2px solid transparent;
    transition: opacity 0.2s ease, border-color 0s ease;
    flex-shrink: 0;
}
.lb-thumbs img:hover { opacity: .8; }
.lb-thumbs img.active {
    opacity: 1;
    border-color: var(--primary, #5b6ef5);
}

@media (max-width: 640px) {
    .lb-nav { width: 36px; height: 36px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lb-img { max-width: 94vw; max-height: 72vh; }
    .lb-thumbs { bottom: 12px; }
    .lb-hint { bottom: 74px; font-size: 11px; }
    .lb-tool { min-width: 34px; height: 34px; font-size: 15px; }
    .lb-zoom-reset { font-size: 12px; }
    .lb-tools { top: 10px; right: 10px; gap: 6px; }
}

/* ============ 文章分享 ============ */
.article-share {
    margin: 24px 0 8px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.article-share-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
}
.article-share-header svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}
.article-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.share-wechat:hover { color: #07c160; border-color: #07c160; background: rgba(7, 193, 96, 0.06); }
.share-qq:hover     { color: #12b7f5; border-color: #12b7f5; background: rgba(18, 183, 245, 0.06); }
.share-qzone:hover  { color: #fbbc0e; border-color: #fbbc0e; background: rgba(251, 188, 14, 0.08); }
.share-weibo:hover  { color: #e6162d; border-color: #e6162d; background: rgba(230, 22, 45, 0.05); }
.share-copy:hover   { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }

/* 微信扫码弹窗 */
.share-qr-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 12, 24, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.share-qr-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.share-qr-modal {
    position: relative;
    width: 100%;
    max-width: 320px;
    padding: 32px 28px 28px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: translateY(14px) scale(0.97);
    transition: transform 0.2s ease;
}
.share-qr-overlay.active .share-qr-modal {
    transform: translateY(0) scale(1);
}
.share-qr-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: var(--bg-hover);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-qr-close:hover { color: var(--text); background: var(--bg-code); }
.share-qr-close svg { width: 16px; height: 16px; }
.share-qr-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(7, 193, 96, 0.1);
    color: #07c160;
}
.share-qr-icon svg { width: 30px; height: 30px; }
.share-qr-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}
.share-qr-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 208px;
    margin-bottom: 14px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.share-qr-body svg { width: 188px; height: 188px; display: block; }
.share-qr-loading,
.share-qr-error {
    font-size: 13px;
    color: var(--text-muted);
}
.share-qr-error { color: var(--warning); padding: 0 12px; }
.share-qr-tip {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.share-qr-copy {
    width: 100%;
    padding: 11px 16px;
    border: none;
    border-radius: 999px;
    background: var(--accent-grad);
    background-size: 150% 150%;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-qr-copy:hover {
    background: var(--accent-grad-hover);
    box-shadow: var(--shadow-accent);
}

@media (max-width: 640px) {
    .article-share { padding: 14px 16px; }
    .article-share-btns { gap: 8px; }
    .share-btn { padding: 7px 13px; font-size: 12.5px; }
    .share-qr-modal { max-width: 290px; padding: 28px 22px 22px; }
}

/* ============ 分享弹窗（统一分享入口） ============ */
.article-share-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13.5px;
}
.article-share-hint svg {
    width: 17px;
    height: 17px;
    color: var(--accent);
    flex-shrink: 0;
}
.share-open-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 26px;
    border: none;
    border-radius: 999px;
    background: var(--accent-grad);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-accent);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.share-open-btn svg { width: 17px; height: 17px; }
.share-open-btn:hover {
    background: var(--accent-grad-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.35);
}
.share-open-btn:active { transform: translateY(0); }

.share-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(10, 12, 24, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.share-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.share-modal {
    position: relative;
    width: 100%;
    max-width: 360px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transform: translateY(18px) scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.share-modal-overlay.active .share-modal {
    transform: translateY(0) scale(1);
}
.share-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-modal-close:hover { background: rgba(255, 255, 255, 0.34); }
.share-modal-close svg { width: 16px; height: 16px; }
.share-modal-hero {
    padding: 26px 28px 18px;
    background: var(--accent-grad);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    color: #fff;
}
.share-modal-hero-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
}
.share-modal-hero-icon svg { width: 24px; height: 24px; }
.share-modal-hero-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.share-modal-hero-sub {
    margin-top: 6px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.share-modal-qr { padding: 18px 24px 4px; }
.share-modal-qr .share-qr-body { min-height: 178px; margin-bottom: 8px; }
.share-modal-qr .share-qr-body svg { width: 158px; height: 158px; }
.share-modal-qr-tip {
    font-size: 12.5px;
    color: var(--text-muted);
}
.share-modal-platforms {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 14px 20px 6px;
}
.share-plat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    padding: 4px;
    cursor: pointer;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
}
.share-plat-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.share-plat:hover .share-plat-icon { transform: translateY(-3px); }
.share-plat-qq .share-plat-icon    { background: #12b7f5; box-shadow: 0 6px 14px rgba(18, 183, 245, 0.3); }
.share-plat-qzone .share-plat-icon { background: #fbbc0e; box-shadow: 0 6px 14px rgba(251, 188, 14, 0.3); }
.share-plat-weibo .share-plat-icon { background: #e6162d; box-shadow: 0 6px 14px rgba(230, 22, 45, 0.3); }
.share-plat-copy .share-plat-icon  { background: var(--accent-grad); box-shadow: var(--shadow-accent); }
.share-plat-icon svg { width: 20px; height: 20px; }
.share-plat-name {
    font-size: 12px;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}
.share-plat:hover .share-plat-name { color: var(--text); }
.share-modal-copyrow {
    display: flex;
    gap: 8px;
    padding: 12px 20px 22px;
}
.share-modal-url {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-hover);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-family: inherit;
}
.share-modal-url:focus { outline: none; border-color: var(--accent); }
.share-modal-copy-btn {
    flex-shrink: 0;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    background: var(--accent-grad);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-modal-copy-btn:hover {
    background: var(--accent-grad-hover);
    box-shadow: var(--shadow-accent);
}

@media (max-width: 640px) {
    .article-share { padding: 14px 16px; }
    .article-share-hint { font-size: 12.5px; }
    .share-open-btn { width: 100%; justify-content: center; }
    .share-modal { max-width: 330px; }
    .share-modal-platforms { gap: 14px; }
    .share-modal-hero { padding: 22px 22px 16px; }
}

/* ============================================================
   全站统一：音乐区块风格层（v14 mp-style theme）
   把音乐播放器卡片的视觉语言推广到全站组件：
   毛玻璃 blur(20px) / 20px 大圆角 / 深柔投影 / 胶囊按钮 / 强调光效
   本层追加在文件末尾，同名属性按顺序覆盖旧值，不影响其余规则
   ============================================================ */

/* ---- 1. 玻璃与投影 token ---- */
:root {
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-bg-strong: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.6);
    --mp-shadow: 0 12px 40px rgba(29, 33, 60, 0.10);
    --mp-shadow-hover: 0 16px 44px rgba(91, 110, 245, 0.22);
    --mp-spring: 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
}
[data-theme="dark"] {
    --glass-bg: rgba(26, 29, 40, 0.62);
    --glass-bg-strong: rgba(26, 29, 40, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --mp-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --mp-shadow-hover: 0 16px 44px rgba(124, 140, 247, 0.28);
}

/* ---- 2. 主要卡片玻璃化（毛玻璃 + 20px 圆角 + 深投影） ---- */
.featured-card,
.article-card,
.category-card,
.about-card,
.ck-hero,
.ck-card,
.lt-balance,
.search-box,
.empty-state,
.comments-section,
.article-share,
.unlock-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-radius: 20px;
    box-shadow: var(--mp-shadow);
    border-color: var(--glass-border);
}
/* 浅色主题下玻璃卡片描边过淡时兜底 */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .featured-card,
    :root:not([data-theme="dark"]) .article-card,
    :root:not([data-theme="dark"]) .category-card,
    :root:not([data-theme="dark"]) .about-card,
    :root:not([data-theme="dark"]) .ck-hero,
    :root:not([data-theme="dark"]) .search-box,
    :root:not([data-theme="dark"]) .empty-state {
        border-color: rgba(91, 110, 245, 0.14);
    }
}

/* 签到完成状态绿色描边不被玻璃边框覆盖 */
.ck-hero.ck-hero-done {
    border-color: rgba(34, 197, 94, 0.35);
}

/* 卡片悬浮：音乐区块同款弹性上浮 + 强调色光晕 */
.featured-card:hover,
.article-card:hover,
.category-card:hover,
.about-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--mp-shadow-hover);
    border-color: rgba(91, 110, 245, 0.4);
    transition: transform var(--mp-spring), box-shadow var(--mp-spring), border-color var(--mp-spring);
}

/* 内层小卡：实底避免玻璃叠玻璃，统一 16px 圆角 */
.lt-logs > .lt-log {
    border-radius: 14px;
}

/* ---- 3. 标题：音乐区块同款渐变文字 ---- */
.section-title {
    background: linear-gradient(90deg, #5b6ef5, #a55ef5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- 4. 按钮胶囊化 ---- */
.ck-btn,
.unlock-btn,
.comment-submit-btn,
.lt-modal-btn,
.share-qr-copy {
    border-radius: 999px;
}
/* 按钮主色光晕（对齐 mp-play 按钮光效） */
.ck-btn,
.unlock-btn,
.comment-submit-btn {
    box-shadow: 0 8px 22px rgba(91, 110, 245, 0.32);
}
.ck-btn:hover,
.unlock-btn:hover,
.comment-submit-btn:hover {
    box-shadow: 0 10px 28px rgba(91, 110, 245, 0.42);
    transform: translateY(-2px);
}

/* ---- 5. 输入框：圆角 + 聚焦光效 ---- */
.comment-form textarea,
.rp-modal textarea,
.ct-modal input,
.ct-modal textarea,
.dp-modal input {
    border-radius: 14px;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.comment-form textarea:focus,
.rp-modal textarea:focus,
.ct-modal input:focus,
.ct-modal textarea:focus,
.dp-modal input:focus {
    box-shadow: 0 0 0 4px var(--accent-bg);
}
.search-box {
    border-radius: 20px;
}
.search-input-wrap {
    border-radius: 20px 20px 0 0;
}

/* ---- 6. 分页胶囊化 ---- */
.pagination a,
.pagination span {
    border-radius: 999px;
    background: var(--glass-bg);
}
.pagination .active {
    background: var(--accent-grad);
    box-shadow: var(--shadow-accent);
}

/* ---- 7. 页脚：毛玻璃 + 顶部渐变发丝线 ---- */
.footer {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border-top-color: transparent;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(91, 110, 245, 0.55), rgba(139, 92, 246, 0.55), transparent);
    pointer-events: none;
}

/* ---- 8. 弹窗统一 20px 圆角 + 深投影 ---- */
.sp-modal,
.ann-modal,
.ct-modal,
.dp-modal,
.ban-modal,
.lt-modal,
.rp-modal {
    border-radius: 20px;
    box-shadow: var(--mp-shadow);
}

/* ---- 9. 空状态卡片化 ---- */
.empty-state {
    padding: 48px 24px;
    text-align: center;
}

/* ---- 10. 回顶按钮：玻璃圆钮 ---- */
.back-to-top {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--mp-shadow);
}

/* ---- 11. 移动端微调 ---- */
@media (max-width: 640px) {
    .featured-card, .article-card, .category-card, .about-card,
    .ck-hero, .ck-card, .lt-balance, .search-box, .empty-state,
    .comments-section, .article-share, .unlock-card {
        border-radius: 18px;
    }
}

/* ============================================================
   全站 UI 重设计 v15：iOS Liquid Glass（液态玻璃）
   三要素：① 背景环境光斑（玻璃有东西可透）② 高模糊+高饱和玻璃
           ③ 内侧 1px 高光 + 发丝描边 + 连续大圆角
   本层追加在末尾，覆盖 v14 层的同名属性
   ============================================================ */

/* ---- 1. 背景环境光斑（iOS 壁纸式弥散色块） ---- */
body::before {
    content: '';
    position: fixed;
    inset: -12%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(36% 32% at 10% 6%,  rgba(91, 110, 245, 0.30), transparent 68%),
        radial-gradient(30% 28% at 90% 10%, rgba(168, 85, 247, 0.24), transparent 70%),
        radial-gradient(42% 36% at 82% 88%, rgba(56, 189, 248, 0.20), transparent 70%),
        radial-gradient(34% 30% at 14% 92%, rgba(244, 114, 182, 0.16), transparent 70%),
        radial-gradient(28% 26% at 50% 46%, rgba(139, 92, 246, 0.10), transparent 72%);
}
[data-theme="dark"] body::before {
    background:
        radial-gradient(36% 32% at 10% 6%,  rgba(91, 110, 245, 0.26), transparent 68%),
        radial-gradient(30% 28% at 90% 10%, rgba(168, 85, 247, 0.20), transparent 70%),
        radial-gradient(42% 36% at 82% 88%, rgba(56, 189, 248, 0.16), transparent 70%),
        radial-gradient(34% 30% at 14% 92%, rgba(244, 114, 182, 0.12), transparent 70%);
}

/* ---- 2. iOS 玻璃 token ---- */
:root {
    --ios-glass: rgba(255, 255, 255, 0.55);
    --ios-glass-2: rgba(255, 255, 255, 0.38);
    --ios-glass-strong: rgba(255, 255, 255, 0.76);
    --ios-stroke: rgba(255, 255, 255, 0.72);
    --ios-hairline: rgba(15, 23, 42, 0.08);
    --ios-hi: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --ios-shadow: 0 12px 32px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.05);
    --ios-shadow-lg: 0 26px 64px rgba(15, 23, 42, 0.18);
    --ios-radius: 22px;
    --ios-blur: saturate(180%) blur(30px);
    --ios-blur-lg: saturate(190%) blur(40px);
    --ios-focus: 0 0 0 4px rgba(10, 132, 255, 0.20);
}
[data-theme="dark"] {
    --ios-glass: rgba(30, 32, 42, 0.52);
    --ios-glass-2: rgba(48, 51, 64, 0.40);
    --ios-glass-strong: rgba(22, 24, 32, 0.80);
    --ios-stroke: rgba(255, 255, 255, 0.10);
    --ios-hairline: rgba(255, 255, 255, 0.08);
    --ios-hi: inset 0 1px 0 rgba(255, 255, 255, 0.10);
    --ios-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
    --ios-shadow-lg: 0 26px 64px rgba(0, 0, 0, 0.62);
}

/* ---- 3. 导航栏：iOS 半透明工具条 ---- */
.navbar {
    background: var(--ios-glass-strong) !important;
    -webkit-backdrop-filter: var(--ios-blur-lg);
    backdrop-filter: var(--ios-blur-lg);
    border-bottom: 1px solid var(--ios-hairline);
    box-shadow: var(--ios-hi);
}
[data-theme="dark"] .navbar {
    background: var(--ios-glass-strong) !important;
}
.navbar.scrolled {
    box-shadow: var(--ios-hi), 0 6px 26px rgba(15, 23, 42, 0.10);
}
.nav-link {
    border-radius: 999px;
    transition: all var(--transition);
}
.nav-login-btn,
.nav-user-btn {
    border-radius: 999px;
}
.nav-user-btn {
    background: var(--ios-glass-2);
    -webkit-backdrop-filter: var(--ios-blur);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--ios-stroke);
    box-shadow: var(--ios-hi);
}
.nav-login-btn {
    box-shadow: var(--ios-hi), 0 8px 22px rgba(91, 110, 245, 0.32);
}
.logo-icon {
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(91, 110, 245, 0.35);
}

/* ---- 4. 卡片：液态玻璃（覆盖 v14 层） ---- */
.featured-card,
.article-card,
.category-card,
.about-card,
.ck-hero,
.ck-card,
.lt-balance,
.search-box,
.empty-state,
.comments-section,
.article-share,
.unlock-card,
.profile-stat-card,
.mp-card {
    background: var(--ios-glass);
    -webkit-backdrop-filter: var(--ios-blur);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--ios-stroke);
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-hi), var(--ios-shadow);
}
/* 悬浮：抬升 + 高光增强 */
.featured-card:hover,
.article-card:hover,
.category-card:hover,
.about-card:hover,
.profile-stat-card:hover,
.category-card:hover,
.ck-card:hover,
.lt-balance:hover {
    transform: translateY(-4px);
    box-shadow: var(--ios-hi), var(--ios-shadow-lg);
    border-color: rgba(10, 132, 255, 0.35);
}
/* 渐变 hero 卡（签到/个人中心/登录）：保留渐变，套 iOS 圆角与高光 */
.ck-hero,
.profile-hero,
.auth-hero,
.ck-hero.ck-hero-done {
    box-shadow: var(--ios-hi), var(--ios-shadow);
}
.auth-hero {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
/* 文章卡片封面圆角贴合 */
.article-card-cover {
    border-radius: var(--ios-radius) var(--ios-radius) 0 0;
}

/* ---- 5. 弹窗：iOS 玻璃面板 ---- */
.sp-modal,
.ann-modal,
.ct-modal,
.dp-modal,
.ban-modal,
.lt-modal,
.rp-modal,
.tv-modal,
.share-modal,
.auth-modal {
    background: var(--ios-glass-strong);
    -webkit-backdrop-filter: var(--ios-blur-lg);
    backdrop-filter: var(--ios-blur-lg);
    border: 1px solid var(--ios-stroke);
    border-radius: 24px;
    box-shadow: var(--ios-hi), var(--ios-shadow-lg);
}
.sp-overlay,
.ann-overlay,
.ct-overlay,
.dp-overlay,
.ban-overlay,
.lt-modal-overlay,
.rp-overlay,
.share-modal-overlay,
.auth-overlay,
.search-overlay {
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    backdrop-filter: saturate(180%) blur(22px);
}

/* ---- 6. 按钮与控件：iOS 胶囊 + 内侧高光 ---- */
.ck-btn,
.unlock-btn,
.comment-submit-btn,
.lt-modal-btn,
.share-open-btn,
.share-qr-copy,
.share-modal-copy-btn,
.nav-login-btn {
    border-radius: 999px;
    box-shadow: var(--ios-hi), 0 8px 22px rgba(91, 110, 245, 0.30);
}
/* 次要/描边控件：玻璃胶囊 */
.tag-item,
.pagination a,
.pagination span,
.search-close,
.back-to-top,
.tv-fab,
.mp-fab {
    background: var(--ios-glass-2);
    -webkit-backdrop-filter: var(--ios-blur);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--ios-stroke);
    box-shadow: var(--ios-hi), var(--ios-shadow);
}
.tag-item { border-radius: 999px; }
.pagination a:hover,
.pagination span:hover {
    border-color: rgba(10, 132, 255, 0.35);
    color: var(--accent);
}
.pagination .active {
    background: var(--accent-grad);
    border-color: transparent;
    box-shadow: var(--ios-hi), var(--shadow-accent);
    color: #fff;
}

/* ---- 7. 输入控件：iOS 填充式 + 聚焦光环 ---- */
.comment-form textarea,
.rp-modal textarea,
.ct-modal input,
.ct-modal textarea,
.dp-modal input,
.search-input-wrap {
    background: var(--ios-glass-2);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--ios-stroke);
    border-radius: 16px;
    box-shadow: var(--ios-hi);
}
.comment-form textarea:focus,
.rp-modal textarea:focus,
.ct-modal input:focus,
.ct-modal textarea:focus,
.dp-modal input:focus {
    border-color: rgba(10, 132, 255, 0.45);
    box-shadow: var(--ios-focus);
}
.search-box { border-radius: var(--ios-radius); }
.search-input-wrap { border-radius: var(--ios-radius) var(--ios-radius) 0 0; }

/* ---- 8. 页脚：iOS 玻璃底板 ---- */
.footer {
    background: var(--ios-glass-strong);
    -webkit-backdrop-filter: var(--ios-blur-lg);
    backdrop-filter: var(--ios-blur-lg);
}

/* ---- 9. 细节：滚动条 / 选中色 / 悬浮按钮 ---- */
/* 主按钮 hover 保留内侧高光（v14 的 hover 规则会覆盖 box-shadow） */
.ck-btn:hover,
.unlock-btn:hover,
.comment-submit-btn:hover,
.share-open-btn:hover,
.nav-login-btn:hover {
    box-shadow: var(--ios-hi), 0 12px 28px rgba(91, 110, 245, 0.42);
}
/* 影视/推荐卡：玻璃小卡 */
.tv-card,
.category-card-icon,
.section-title-icon {
    border-radius: 16px;
}
.tv-card {
    background: var(--ios-glass-2);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--ios-stroke);
    box-shadow: var(--ios-hi);
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
    background: rgba(120, 128, 150, 0.35);
    border: 2px solid transparent;
    background-clip: content-box;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(120, 128, 150, 0.6); background-clip: content-box; }
::selection { background: rgba(10, 132, 255, 0.28); color: inherit; }
.back-to-top { border-radius: 50%; }
.tv-fab, .mp-fab { border-radius: 999px; }

/* ---- 10. 移动端 ---- */
@media (max-width: 640px) {
    .featured-card, .article-card, .category-card, .about-card,
    .ck-hero, .ck-card, .lt-balance, .search-box, .empty-state,
    .comments-section, .article-share, .unlock-card, .profile-stat-card {
        border-radius: 20px;
    }
    .sp-modal, .ann-modal, .ct-modal, .dp-modal, .ban-modal,
    .lt-modal, .rp-modal, .tv-modal, .share-modal, .auth-modal {
        border-radius: 22px;
    }
}

/* ---- 11. 文章正文：iOS 玻璃阅读面板（保证长文可读性） ---- */
.article-content {
    background: var(--ios-glass);
    -webkit-backdrop-filter: var(--ios-blur);
    backdrop-filter: var(--ios-blur);
    border: 1px solid var(--ios-stroke);
    border-radius: var(--ios-radius);
    box-shadow: var(--ios-hi), var(--ios-shadow);
    padding: 30px 32px;
}
.article-detail-cover {
    border-radius: var(--ios-radius);
    overflow: hidden;
    box-shadow: var(--ios-hi), var(--ios-shadow);
}
/* 文章正文内代码块/引用在玻璃上更清晰 */
.article-content pre {
    border-radius: 14px;
}
@media (max-width: 640px) {
    .article-content { padding: 20px 18px; border-radius: 20px; }
}

/* ============================================================
   抽奖中心 · 2026 视觉重设计（星夜璀璨）
   说明：本段置于文件末尾，优先级最高，彻底绕开 iOS 玻璃层
   对旧 .lt-balance 的覆盖 bug；旧 .lt-* 规则在此被同名重定义覆盖。
   ============================================================ */
.lt-page { max-width: 980px; }

/* 头部徽章 */
.lt-head { margin-bottom: 22px; }
.lt-head-badge {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px;
    padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
    letter-spacing: .6px; color: #ffd07a;
    background: rgba(255, 194, 77, .12); border: 1px solid rgba(255, 194, 77, .32);
}

/* 顶部英雄卡 */
.lt-hero {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    margin-top: 6px; padding: 30px 34px; border-radius: 26px;
    background: linear-gradient(125deg, #15183a 0%, #34276e 50%, #5a2a9e 100%);
    box-shadow: 0 24px 60px rgba(52, 39, 110, .42), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.lt-hero-glow {
    position: absolute; width: 340px; height: 340px; right: -90px; top: -150px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 92, 255, .55), transparent 65%); pointer-events: none;
}
.lt-hero-spark { position: absolute; border-radius: 50%; background: #fff; pointer-events: none; box-shadow: 0 0 8px #fff; animation: ltTwinkle 3.2s ease-in-out infinite; }
.lt-hero-spark-1 { width: 5px; height: 5px; left: 16%; top: 26%; }
.lt-hero-spark-2 { width: 3px; height: 3px; left: 34%; top: 64%; animation-delay: .8s; }
.lt-hero-spark-3 { width: 4px; height: 4px; left: 60%; top: 30%; animation-delay: 1.6s; box-shadow: 0 0 7px #ffe; }
@keyframes ltTwinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: .9; transform: scale(1.2); } }
.lt-hero-main { position: relative; z-index: 1; flex: 1; min-width: 200px; }
.lt-hero-label { font-size: 13.5px; color: rgba(255, 255, 255, .8); letter-spacing: .6px; }
.lt-hero-num {
    font-size: 62px; font-weight: 900; line-height: 1; margin: 6px 0 14px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff, #ffd98a);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    text-shadow: 0 6px 26px rgba(255, 207, 107, .25);
}
.lt-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.lt-hero-tag {
    font-size: 12px; padding: 5px 11px; border-radius: 999px;
    color: rgba(255, 255, 255, .92); background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
}
.lt-hero-tag-gold {
    color: #3a2600; font-weight: 700; border-color: transparent;
    background: linear-gradient(135deg, #ffe39a, #ffc24d);
    box-shadow: 0 4px 14px rgba(255, 194, 77, .35);
}
.lt-hero-side { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }
.lt-points-chip {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 12px 22px; border-radius: 18px; text-align: center;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 207, 107, .35);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.lt-points-label { font-size: 11.5px; color: rgba(255, 255, 255, .82); letter-spacing: .5px; }
.lt-points-num { font-size: 24px; font-weight: 800; line-height: 1.2; color: #ffd98a; font-variant-numeric: tabular-nums; }
.lt-hero-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
    font-size: 13.5px; font-weight: 700; text-decoration: none; color: #3a2a72; background: #fff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25); transition: transform .2s, box-shadow .2s;
}
.lt-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .3); }
.lt-hero-btn svg { width: 17px; height: 17px; }

/* 九宫格舞台 */
.lt-stage { display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
.lt-board {
    position: relative; padding: 16px; border-radius: 30px;
    background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.lt-board-halo {
    position: absolute; inset: -1px; border-radius: 32px; padding: 2px; pointer-events: none; opacity: .55;
    background: conic-gradient(from 0deg, #7c5cff, #ff5fa2, #ffc24d, #7c5cff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
.lt-grid {
    position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    width: min(404px, 100%);
}
.lt-cell {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
    aspect-ratio: 1 / 1; padding: 10px 8px; border-radius: 18px; text-align: center;
    background: var(--bg-hover); border: 1.5px solid transparent;
    transition: transform .18s ease, background .15s, border-color .15s, box-shadow .15s;
}
.lt-cell-ring { position: absolute; inset: 0; border-radius: 18px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(124, 140, 247, .1); }
.lt-cell-icon { font-size: 30px; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .18)); }
.lt-cell-name { font-size: 12px; color: var(--text-secondary); line-height: 1.3; font-weight: 600; word-break: break-word; }
.lt-cell.lt-active {
    background: linear-gradient(135deg, rgba(124, 92, 255, .28), rgba(255, 95, 162, .26));
    border-color: rgba(124, 92, 255, .85);
    box-shadow: 0 8px 24px rgba(124, 92, 255, .4);
    transform: scale(1.06);
}
.lt-cell.lt-active .lt-cell-name { color: #7c5cff; font-weight: 800; }
.lt-cell.lt-win {
    background: linear-gradient(135deg, rgba(255, 194, 77, .32), rgba(255, 95, 162, .3));
    border-color: rgba(255, 194, 77, .9);
    box-shadow: 0 0 0 4px rgba(255, 194, 77, .2), 0 10px 28px rgba(255, 95, 162, .4);
    animation: ltWinPulse .25s ease;
}
@keyframes ltWinPulse { 0% { transform: scale(1); } 45% { transform: scale(1.13); } 100% { transform: scale(1); } }
.lt-center { display: flex; align-items: center; justify-content: center; }
.lt-draw-btn {
    position: relative; width: 100%; height: 100%; border: none; border-radius: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ff7a18, #ff2d76 58%, #a23bff); color: #fff;
    box-shadow: 0 12px 28px rgba(255, 45, 118, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
    transition: transform .2s, box-shadow .2s, filter .2s; font-family: inherit;
}
.lt-draw-ring {
    position: absolute; inset: 7px; border-radius: 14px; pointer-events: none;
    border: 2px dashed rgba(255, 255, 255, .55); animation: ltSpin 9s linear infinite;
}
@keyframes ltSpin { to { transform: rotate(360deg); } }
.lt-draw-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.lt-draw-btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 36px rgba(255, 45, 118, .5); }
.lt-draw-btn:active:not(:disabled) { transform: scale(.97); }
.lt-draw-btn:disabled { filter: grayscale(.5) opacity(.65); cursor: not-allowed; }
.lt-draw-main { font-size: 22px; font-weight: 900; letter-spacing: 3px; }
.lt-draw-sub { font-size: 10.5px; opacity: .92; }
.lt-msg { min-height: 20px; margin-top: 14px; font-size: 13px; color: var(--text-secondary); text-align: center; }
.lt-msg-err { color: #e11d48; }
.lt-msg-ok { color: #16a34a; font-weight: 600; }

/* 统计指标（仅作用于抽奖页，不影响签到页） */
.lt-page .ck-stats { margin-top: 30px; gap: 12px; }
.lt-page .ck-stat {
    border-radius: 16px; padding: 16px; transition: transform .2s, box-shadow .2s;
    border: 1px solid var(--border);
}
.lt-page .ck-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* 记录：左侧时间线色条 */
.lt-page .ck-card { border-radius: 20px; }
.lt-log { position: relative; overflow: hidden; padding-left: 16px; }
.lt-log::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px;
    background: var(--border-strong);
}
.lt-log-win::before { background: linear-gradient(180deg, #ffc24d, #ff5fa2); }
.lt-log-icon { background: var(--bg-card); border: 1px solid var(--border); }

/* 规则区奖品清单卡片化 */
.lt-rule-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.lt-rule-item {
    gap: 9px; padding: 10px 12px; border-radius: 14px; font-size: 12.5px;
    background: var(--bg-hover); border: 1px solid var(--border);
}
.lt-rule-icon { font-size: 18px; }
.lt-rule-weight { padding: 2px 7px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); }

/* 中奖弹窗：光芒 */
.lt-modal-rays {
    position: absolute; left: 50%; top: 38%; width: 360px; height: 360px; transform: translate(-50%, -50%);
    pointer-events: none; opacity: 0; transition: opacity .3s;
    background: repeating-conic-gradient(from 0deg, rgba(255, 207, 107, .32) 0deg 8deg, transparent 8deg 18deg);
    -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 62%); mask: radial-gradient(circle, #000 0 30%, transparent 62%);
}
.lt-modal-overlay.active .lt-modal-rays { opacity: 1; animation: ltRaySpin 14s linear infinite; }
@keyframes ltRaySpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.lt-modal-icon { font-size: 64px; margin-bottom: 10px; }
.lt-modal-win .lt-modal-icon { animation: ltPop .35s cubic-bezier(.2, .9, .3, 1.4), ltFloat 2.4s ease-in-out .35s infinite; }
@keyframes ltFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.lt-modal-btn {
    background: linear-gradient(135deg, #ff7a18, #ff2d76);
    box-shadow: 0 8px 20px rgba(255, 45, 118, .35);
}
.lt-modal-btn:hover { box-shadow: 0 12px 26px rgba(255, 45, 118, .42); }

/* 移动端 */
@media (max-width: 560px) {
    .lt-hero { padding: 22px 20px; gap: 16px; }
    .lt-hero-num { font-size: 48px; }
    .lt-hero-side { width: 100%; gap: 10px; }
    .lt-points-chip { flex-direction: row; align-items: baseline; gap: 7px; padding: 10px 16px; border-radius: 14px; }
    .lt-points-num { font-size: 20px; }
    .lt-hero-btn { flex: 1; justify-content: center; }
    .lt-board { padding: 12px; border-radius: 26px; }
    .lt-grid { gap: 9px; }
    .lt-cell-icon { font-size: 24px; }
    .lt-cell-name { font-size: 10.5px; }
    .lt-draw-main { font-size: 18px; letter-spacing: 2px; }
}

/* ============================================================
   签到中心 · 2026 视觉重设计（晨曦极光）
   说明：置于文件末尾优先级最高，彻底绕开 iOS 玻璃层对旧
   .ck-hero / .ck-card 的 background:var(--glass-bg) 覆盖 bug
   （白底压丢失底色 + 多余 backdrop-filter）；旧 .ck-* 规则
   在下方被同名重定义覆盖。
   ============================================================ */
.ck-page { max-width: 1000px; margin: 0 auto; }

/* 头部徽章 + 标题 */
.ck-head { text-align: center; margin-bottom: 22px; }
.ck-head-badge {
    display: inline-block; margin-bottom: 14px; padding: 6px 16px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: #a5b4fc;
    background: rgba(99, 102, 241, .12); border: 1px solid rgba(99, 102, 241, .3);
}
.ck-head-title {
    font-size: 30px; font-weight: 800; margin-bottom: 6px;
    background: linear-gradient(90deg, #6366f1, #22d3ee);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ck-head-desc { font-size: 14px; color: var(--text-secondary); }

/* 主卡（极光渐变 + 星点 + 光晕） */
.ck-hero {
    position: relative; overflow: hidden; border-radius: 26px; padding: 30px 32px 26px;
    color: #fff; border: 1px solid rgba(255, 255, 255, .18);
    background: linear-gradient(135deg, #4f46e5 0%, #2563eb 48%, #06b6d4 100%);
    box-shadow: 0 22px 50px rgba(37, 99, 235, .34); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.ck-hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 88% -12%, rgba(255, 255, 255, .24), transparent 46%);
}
.ck-hero-glow {
    position: absolute; width: 340px; height: 340px; border-radius: 50%; pointer-events: none;
    top: -190px; right: -100px;
    background: radial-gradient(circle, rgba(255, 255, 255, .3), transparent 68%);
}
.ck-hero-done {
    background: linear-gradient(135deg, #0f766e 0%, #16a34a 52%, #65a30d 100%);
    box-shadow: 0 22px 50px rgba(22, 163, 74, .3); border-color: rgba(255, 255, 255, .22);
}
.ck-hero-spark { position: absolute; border-radius: 50%; background: #fff; pointer-events: none; box-shadow: 0 0 8px #fff; animation: ckTwinkle 3.4s ease-in-out infinite; }
.ck-hero-spark-1 { width: 5px; height: 5px; left: 14%; top: 24%; }
.ck-hero-spark-2 { width: 3px; height: 3px; left: 32%; top: 64%; animation-delay: .9s; }
.ck-hero-spark-3 { width: 4px; height: 4px; left: 62%; top: 30%; animation-delay: 1.7s; box-shadow: 0 0 7px #dbeafe; }
@keyframes ckTwinkle { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.2); } }
.ck-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.ck-hero-icon {
    width: 64px; height: 64px; border-radius: 20px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .32);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.ck-hero-icon svg { width: 32px; height: 32px; }
.ck-hero-main { flex: 1; min-width: 200px; }
.ck-hero-label { font-size: 13px; opacity: .92; letter-spacing: .5px; margin-bottom: 6px; }
.ck-hero-streak { display: flex; align-items: baseline; gap: 8px; }
.ck-hero-streak b {
    font-size: 54px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #ffffff, #bae6fd);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 20px rgba(0, 0, 0, .18);
}
.ck-hero-unit { font-size: 15px; opacity: .95; }
.ck-hero-date { font-size: 12.5px; opacity: .85; margin-top: 6px; }
.ck-hero-action { flex-shrink: 0; }
.ck-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-width: 162px; padding: 14px 28px; border: none; border-radius: 16px;
    font-size: 15px; font-weight: 700; color: #fff; cursor: pointer; font-family: inherit;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 10px 26px rgba(249, 115, 22, .42);
    transition: transform .2s, box-shadow .2s, opacity .2s;
}
.ck-btn svg { width: 18px; height: 18px; }
.ck-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(249, 115, 22, .5); }
.ck-btn-primary:active { transform: translateY(0); }
.ck-btn-done { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: none; border: 1px solid rgba(255, 255, 255, .42); cursor: default; }
.ck-progress { position: relative; z-index: 1; margin-top: 22px; }
.ck-progress-text { font-size: 12.5px; opacity: .92; margin-bottom: 8px; }
.ck-progress-text b { color: #fde68a; font-weight: 700; }
.ck-progress-bar { height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.ck-progress-bar span {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, #fde68a, #f59e0b);
    box-shadow: 0 0 12px rgba(253, 230, 138, .6);
    transition: width .2s cubic-bezier(.34, 1.2, .64, 1);
}

/* 统计 */
.ck-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 20px 0; }
.ck-stat {
    position: relative; overflow: hidden; text-align: center;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
    padding: 20px 14px; transition: transform .2s, box-shadow .2s; backdrop-filter: none; -webkit-backdrop-filter: none;
}
.ck-stat::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #6366f1, #22d3ee); opacity: .85;
}
.ck-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ck-stat-icon {
    width: 38px; height: 38px; margin: 0 auto 10px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.ck-stat-icon svg { width: 20px; height: 20px; }
.ck-stat-value { font-size: 22px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ck-stat-label { font-size: 12.5px; color: var(--text-secondary); margin-top: 4px; }

/* 两栏卡片 */
.ck-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.ck-card {
    position: relative; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm);
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.ck-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.ck-card-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.ck-card-sub { font-size: 12px; color: var(--text-secondary); }

/* 日历 */
.ck-cal-nav { display: flex; align-items: center; gap: 6px; }
.ck-cal-btn {
    width: 28px; height: 28px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); border: 1px solid var(--border); background: transparent; transition: all .2s;
}
.ck-cal-btn svg { width: 15px; height: 15px; }
.ck-cal-btn:hover { color: #6366f1; border-color: rgba(99, 102, 241, .4); background: rgba(99, 102, 241, .08); }
.ck-cal-btn-disabled { opacity: .35; pointer-events: none; }
.ck-cal-ym { font-size: 13.5px; font-weight: 600; color: var(--text-primary); min-width: 84px; text-align: center; }
.ck-cal-today { font-size: 12px; color: #6366f1; margin-left: 4px; }
.ck-cal-week, .ck-cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ck-cal-week { margin-bottom: 6px; }
.ck-cal-week span { text-align: center; font-size: 11.5px; color: var(--text-secondary); opacity: .75; padding: 4px 0; }
.ck-day {
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    border-radius: 12px; font-size: 13px; color: var(--text-secondary);
    background: var(--bg-hover); font-variant-numeric: tabular-nums; border: 1px solid transparent;
    transition: transform .18s, background .15s, border-color .15s, box-shadow .15s;
}
.ck-day:hover { transform: translateY(-2px); border-color: rgba(99, 102, 241, .4); }
.ck-day-on {
    background: linear-gradient(135deg, #4f46e5, #06b6d4); color: #fff; font-weight: 700; border: none;
    box-shadow: 0 6px 14px rgba(37, 99, 235, .32); transform: scale(1.04);
}
.ck-day-on svg { width: 16px; height: 16px; }
.ck-day-today { box-shadow: 0 0 0 2px #f59e0b, 0 0 14px rgba(245, 158, 11, .5); }
.ck-day-future { opacity: .4; background: transparent; }
.ck-day-empty { background: transparent; }
.ck-cal-legend { display: flex; align-items: center; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--text-secondary); flex-wrap: wrap; }
.ck-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ck-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ck-dot-on { background: linear-gradient(135deg, #4f46e5, #06b6d4); }
.ck-dot-today { border: 2px solid #f59e0b; }
.ck-cal-sum { margin-left: auto; }

/* 记录：竖向时间线 */
.ck-logs { position: relative; max-height: 420px; overflow-y: auto; padding: 4px 4px 4px 2px; }
.ck-logs::before {
    content: ""; position: absolute; left: 15px; top: 12px; bottom: 12px; width: 2px; border-radius: 2px;
    background: linear-gradient(180deg, rgba(99, 102, 241, .5), rgba(34, 211, 238, .15));
}
.ck-log { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 8px 10px 4px; border-radius: 12px; }
.ck-log-today { background: rgba(99, 102, 241, .08); }
.ck-log-badge {
    position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    box-shadow: 0 4px 10px rgba(37, 99, 235, .3);
}
.ck-log-badge svg { width: 15px; height: 15px; }
.ck-log-date { font-size: 13.5px; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.ck-log-date span { font-size: 11.5px; font-weight: 400; color: var(--text-secondary); margin-left: 4px; }
.ck-log-time { font-size: 11.5px; color: var(--text-secondary); margin-top: 2px; }
.ck-log-gap { text-align: center; font-size: 12px; color: var(--text-secondary); opacity: .5; padding: 6px 0; letter-spacing: 2px; }
.ck-empty { text-align: center; padding: 36px 12px; color: var(--text-secondary); }
.ck-empty svg { width: 44px; height: 44px; opacity: .35; margin-bottom: 10px; }
.ck-empty p { font-size: 13px; }
.ck-foot { text-align: center; margin-top: 22px; }
.ck-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-secondary); transition: color .2s; }
.ck-back svg { width: 15px; height: 15px; }
.ck-back:hover { color: #6366f1; }

/* 移动端 */
@media (max-width: 860px) {
    .ck-stats { grid-template-columns: repeat(2, 1fr); }
    .ck-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .ck-head-title { font-size: 26px; }
    .ck-hero { padding: 24px 20px 22px; }
    .ck-hero-inner { flex-direction: column; align-items: flex-start; }
    .ck-hero-streak b { font-size: 46px; }
    .ck-hero-action { width: 100%; }
    .ck-btn { width: 100%; }
    .ck-entry { flex-wrap: wrap; }
    .ck-entry-action { width: 100%; justify-content: flex-end; }
    .ck-day { font-size: 12px; border-radius: 9px; }
}

/* ============================================================
   个人中心 · 2026 视觉重设计（暖色晚霞）
   与抽奖「星夜璀璨」、签到「晨曦极光」同属一套视觉语言，
   这里用 暖橙→玫瑰→紫 的晚霞渐变作为个人主页的专属基调，
   形成三色家族但彼此区分。仅在文件末尾重定义同名类以覆盖旧规则，
   PHP 逻辑与弹窗 JS 钩子（openPfModal 等）一行未动。
   ============================================================ */

/* ---- 0. 注销冷静期提示条（暖琥珀渐变） ---- */
.pf-grace-banner {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 16px; padding: 13px 16px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(245,158,11,.16), rgba(251,146,60,.12));
    border: 1px solid rgba(245,158,11,.35); color: #b45309; font-size: 13.5px; line-height: 1.6;
    box-shadow: 0 6px 18px rgba(245,158,11,.12);
}
[data-theme="dark"] .pf-grace-banner { color: #fbbf24; background: linear-gradient(135deg, rgba(245,158,11,.18), rgba(251,146,60,.10)); }

/* ---- 1. Hero 主卡 ---- */
.profile-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #fb923c 0%, #f472b6 46%, #a855f7 100%);
    border-radius: 26px; padding: 34px; margin-bottom: 28px;
    color: #fff; box-shadow: 0 22px 50px rgba(244,114,182,.32);
}
.profile-hero::before,
.profile-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.profile-hero::before { width: 240px; height: 240px; right: -70px; top: -90px; background: rgba(255,255,255,0.14); }
.profile-hero::after { width: 150px; height: 150px; left: -50px; bottom: -70px; background: rgba(255,255,255,0.10); }
.profile-hero-glow {
    position: absolute; width: 440px; height: 440px; right: -130px; top: -170px;
    background: radial-gradient(circle, rgba(255,255,255,.32), transparent 64%);
    pointer-events: none;
}
.profile-hero-stars {
    position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image:
        radial-gradient(2px 2px at 18% 30%, rgba(255,255,255,.95), transparent),
        radial-gradient(2px 2px at 72% 22%, rgba(255,255,255,.7), transparent),
        radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,.8), transparent),
        radial-gradient(1.5px 1.5px at 88% 60%, rgba(255,255,255,.6), transparent),
        radial-gradient(2px 2px at 60% 12%, rgba(255,255,255,.7), transparent),
        radial-gradient(1.5px 1.5px at 12% 82%, rgba(255,255,255,.6), transparent),
        radial-gradient(1.5px 1.5px at 54% 86%, rgba(255,255,255,.55), transparent);
}
.profile-hero-top {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 22px;
}
.profile-avatar-ring {
    flex-shrink: 0; padding: 4px; border-radius: 50%;
    background: rgba(255,255,255,.30);
    box-shadow: 0 0 0 4px rgba(255,255,255,.18), 0 12px 30px rgba(0,0,0,.22);
}
.profile-avatar-lg {
    width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: rgba(255,255,255,.28); color: #fff; font-size: 38px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.profile-avatar-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-info { flex: 1; min-width: 0; }
.profile-name {
    font-size: 25px; font-weight: 800; margin: 0 0 8px; color: #fff;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    text-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.profile-status-chip {
    font-size: 11.5px; font-weight: 600; padding: 3px 11px; border-radius: 999px;
    background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(4px);
}
.profile-status-chip-off { background: rgba(239,68,68,.92); }
.profile-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.profile-email,
.profile-joined { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: rgba(255,255,255,.92); }
.profile-email svg,
.profile-joined svg { width: 14px; height: 14px; flex-shrink: 0; }
.profile-edit-wrap { flex-shrink: 0; }
.profile-edit-btn {
    display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.5); background: rgba(255,255,255,.18); color: #fff;
    backdrop-filter: blur(6px); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.profile-edit-btn:hover { background: #fff; color: #db2777; border-color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.profile-edit-btn svg { width: 15px; height: 15px; }

/* ---- 2. 分区标题 ---- */
.profile-section-title {
    position: relative; z-index: 2; font-size: 15px; font-weight: 700; color: var(--text);
    margin: 30px 4px 14px; display: flex; align-items: center; gap: 9px;
}
.profile-section-title::before {
    content: ''; width: 4px; height: 15px; border-radius: 3px;
    background: linear-gradient(180deg, #fb923c, #a855f7);
}

/* ---- 3. 数据概览卡片 ---- */
.profile-stats {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px; padding: 0;
}
.profile-stat-card {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 13px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 18px; padding: 16px 18px;
    box-shadow: var(--shadow-md); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.profile-stat-card::before {
    content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #fb923c, #f472b6);
    opacity: .9;
}
.profile-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: rgba(244,114,182,.4); }
.profile-stat-icon {
    width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.profile-stat-icon svg { width: 21px; height: 21px; }
.profile-stat-meta { min-width: 0; }
.profile-stat-value { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.2; word-break: break-all; }
.profile-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---- 4. 快捷入口（复用 ck-entry 新样式，仅微调间距） ---- */
.profile-entries { display: flex; flex-direction: column; gap: 14px; margin-top: 0; }

/* ---- 5. 账户操作 ---- */
.profile-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 0; }
.profile-action-btn {
    flex: 1; min-width: 160px; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 20px; border-radius: 14px; font-size: 14px; font-weight: 600; cursor: pointer;
    border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
    text-decoration: none; transition: all .2s; box-shadow: var(--shadow-sm);
}
.profile-action-btn:hover { border-color: #db2777; color: #db2777; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.profile-action-logout:hover { border-color: #ef4444; color: #ef4444; }
.profile-action-btn svg { width: 18px; height: 18px; }

/* ---- 6. 修改信息弹窗：顶部晚霞描边 + 头像预览改为暖色渐变 ---- */
.pf-modal { box-shadow: var(--shadow-lg), inset 0 4px 0 0 #f472b6; }
.pf-avatar-preview { background: linear-gradient(135deg, #fb923c, #a855f7); }

/* ---- 7. 响应式 ---- */
@media (max-width: 640px) {
    .profile-hero { padding: 26px 20px; border-radius: 22px; }
    .profile-hero-top { flex-direction: column; text-align: center; gap: 16px; }
    .profile-name { justify-content: center; }
    .profile-meta { justify-content: center; }
    .profile-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ============================================================
   导航用户下拉菜单 · 2026 视觉重设计（暖色晚霞）
   与个人中心同基调：暖橙→玫瑰→紫。Hero 头加星光层 + 头像光环，
   菜单项改为分色图标胶囊（个人=蓝 / 签到=绿 / 抽奖=粉 / 积分=琥珀）。
   仅在末尾重定义同名类覆盖旧规则，结构与 JS（#navUserMenu/.show）不变。
   ============================================================ */

/* ---- 1. 面板容器 ---- */
.nav-user-menu {
    width: 278px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 22px 52px rgba(15,23,42,.18), 0 2px 8px rgba(15,23,42,.06);
}
[data-theme="dark"] .nav-user-menu {
    box-shadow: 0 22px 52px rgba(0,0,0,.55), 0 2px 8px rgba(0,0,0,.35);
}

/* ---- 2. Hero 头部 ---- */
.nav-user-menu-hero {
    background: linear-gradient(135deg, #fb923c 0%, #f472b6 48%, #a855f7 100%);
    padding: 18px 16px 20px;
}
.nav-user-menu-hero::before { width: 132px; height: 132px; right: -36px; top: -54px; background: rgba(255,255,255,.16); }
.nav-user-menu-hero::after { width: 72px; height: 72px; left: -24px; bottom: -32px; background: rgba(255,255,255,.10); }
.nav-user-menu-stars {
    position: absolute; inset: 0; pointer-events: none; opacity: .55;
    background-image:
        radial-gradient(1.6px 1.6px at 22% 26%, rgba(255,255,255,.95), transparent),
        radial-gradient(1.6px 1.6px at 78% 20%, rgba(255,255,255,.75), transparent),
        radial-gradient(1.4px 1.4px at 44% 74%, rgba(255,255,255,.85), transparent),
        radial-gradient(1.4px 1.4px at 88% 66%, rgba(255,255,255,.6), transparent),
        radial-gradient(1.3px 1.3px at 60% 12%, rgba(255,255,255,.7), transparent);
}
.nav-user-menu-hero .nav-user-menu-avatar {
    width: 48px; height: 48px; font-size: 19px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.62);
    box-shadow: 0 0 0 3px rgba(255,255,255,.22), 0 6px 16px rgba(0,0,0,.20);
    background: rgba(255,255,255,.22);
}
.nav-user-menu-name { text-shadow: 0 1px 6px rgba(0,0,0,.18); }
.nav-user-menu-points {
    background: rgba(255,255,255,.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.28);
}
.nav-user-menu-points svg { color: #fde68a; }

/* ---- 3. 菜单项（图标胶囊） ---- */
.nav-user-menu-body { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.nav-user-menu-item {
    padding: 8px 10px; gap: 11px; border-radius: 12px;
    color: var(--text-secondary);
}
.numi-ic {
    width: 32px; height: 32px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-hover, rgba(0,0,0,.04));
    transition: transform .2s ease, background .2s ease;
}
.numi-ic svg { width: 17px; height: 17px; }
.nav-user-menu-item-profile .numi-ic { background: rgba(91,110,245,.12);  color: #5b6ef5; }
.nav-user-menu-item-checkin .numi-ic { background: rgba(34,197,94,.12);   color: #16a34a; }
.nav-user-menu-item-lottery .numi-ic { background: rgba(244,114,182,.14); color: #db2777; }
.nav-user-menu-item-points  .numi-ic { background: rgba(245,158,11,.14);  color: #d97706; }

/* ---- 4. 悬浮态（按项分色） ---- */
.nav-user-menu-item:hover { transform: translateX(2px); }
.nav-user-menu-item:hover .numi-ic { transform: scale(1.06); }
.nav-user-menu-item-profile:hover { background: rgba(91,110,245,.08);  color: #4353d9; }
.nav-user-menu-item-checkin:hover { background: rgba(34,197,94,.09);   color: #15803d; }
.nav-user-menu-item-lottery:hover { background: rgba(244,114,182,.10); color: #be185d; }
.nav-user-menu-item-points:hover  { background: rgba(245,158,11,.10);  color: #b45309; }
.nav-user-menu-item:hover .nav-user-menu-arrow { opacity: 1; transform: translateX(0); }
.nav-user-menu-item-profile:hover .nav-user-menu-arrow { color: #4353d9; }
.nav-user-menu-item-checkin:hover .nav-user-menu-arrow { color: #15803d; }
.nav-user-menu-item-lottery:hover .nav-user-menu-arrow { color: #be185d; }
.nav-user-menu-item-points:hover  .nav-user-menu-arrow { color: #b45309; }

/* ---- 5. 分隔线 & 退出登录 ---- */
.nav-user-menu-divider { height: 1px; margin: 6px 12px; background: var(--border); }
.nav-user-logout { margin: 4px 8px 8px; width: calc(100% - 16px); border-radius: 12px; color: var(--danger); }
.nav-user-logout .numi-ic { background: rgba(239,68,68,.12); color: var(--danger); }
.nav-user-logout:hover { background: rgba(239,68,68,.09); color: var(--danger); transform: none; }
.nav-user-logout:hover .numi-ic { transform: none; background: rgba(239,68,68,.18); }

/* ---- 6. 响应式：窄屏防溢出 ---- */
@media (max-width: 400px) {
    .nav-user-menu { width: min(278px, calc(100vw - 24px)); }
}

/* ============================================================
   音乐播放器 · 2026 视觉重设计（星夜律动）
   位置：文件最末尾。用于覆盖
     ① 第 5032-5053 行 iOS 玻璃层对 .mp-card 的入侵（背景被改成 var(--ios-glass) 灰白）
     ② 各 .mp-* 旧规则
   DOM 由 assets/js/main.js 动态生成 —— 本块不改任何结构，
   所有 id / class / 状态类（#musicPlayer.playing、#mpDrawer.open、
   .mp-item.active、.mp-lrc-line.active、.mp-btn-sm.active）全部原样。
   ============================================================ */

:root {
    --mp-grad:       linear-gradient(135deg, #6366f1 0%, #a855f7 58%, #ec4899 100%);
    --mp-grad-soft:  linear-gradient(135deg, #6366f1, #a855f7);
    --mp-accent:     #7c5cff;
    --mp-accent-2:   #ec4899;
    --mp-surface:    rgba(253, 252, 255, 0.93);
    --mp-stroke:     rgba(255, 255, 255, 0.85);
    --mp-hairline:   rgba(15, 23, 42, 0.08);
    --mp-track:      rgba(15, 23, 42, 0.10);
    --mp-text:       #1c2033;
    --mp-text-dim:   #6b7280;
    --mp-shadow:     0 22px 54px rgba(76, 29, 149, 0.20), 0 4px 14px rgba(15, 23, 42, 0.07);
    --mp-glow:       0 8px 24px rgba(124, 92, 255, 0.42);
}
[data-theme="dark"] {
    --mp-surface:    rgba(30, 27, 52, 0.90);
    --mp-stroke:     rgba(255, 255, 255, 0.10);
    --mp-hairline:   rgba(255, 255, 255, 0.08);
    --mp-track:      rgba(255, 255, 255, 0.15);
    --mp-text:       #f1f2f8;
    --mp-text-dim:   #9aa0b5;
    --mp-shadow:     0 22px 54px rgba(0, 0, 0, 0.55), 0 4px 14px rgba(0, 0, 0, 0.34);
    --mp-glow:       0 8px 26px rgba(124, 92, 255, 0.5);
}

/* ---- 1. 入口按钮：渐变圆 + 播放时扩散环 ---- */
.mp-fab {
    background: var(--mp-grad);
    background-size: 160% 160%;
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.44), 0 2px 8px rgba(0, 0, 0, 0.16);
    position: relative;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s;
}
.mp-fab:hover {
    transform: scale(1.09);
    box-shadow: 0 14px 38px rgba(124, 58, 237, 0.52), 0 2px 10px rgba(0, 0, 0, 0.2);
}
.mp-fab::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.65);
    opacity: 0;
    pointer-events: none;
}
#musicPlayer.playing .mp-fab::after { animation: mpFabRing 2.2s ease-out infinite; }
@keyframes mpFabRing {
    0%   { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0;   transform: scale(1.8); }
}
.mp-fab .mp-wave span {
    background: #fff;
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.65);
}

/* ---- 2. 卡片主体 ---- */
.mp-card {
    width: 402px;
    max-width: calc(100vw - 40px);
    background: var(--mp-surface);
    -webkit-backdrop-filter: saturate(180%) blur(26px);
    backdrop-filter: saturate(180%) blur(26px);
    border: 1px solid var(--mp-stroke);
    border-radius: 22px;
    box-shadow: var(--mp-shadow);
    padding: 20px;
    overflow: hidden;
    position: relative;
}
/* 顶部渐变光带 */
.mp-card::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 3px;
    background: var(--mp-grad);
}
/* 右上角柔光 */
.mp-card::after {
    content: '';
    position: absolute;
    right: -60px; top: -80px;
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.34), transparent 68%);
    pointer-events: none;
}
.mp-card-inner { position: relative; z-index: 1; display: flex; gap: 16px; }

/* ---- 3. 封面 ---- */
.mp-card-cover .mp-cover {
    width: 104px; height: 104px;
    border-radius: 18px;
    background: var(--mp-grad);
    color: #fff;
    box-shadow: 0 12px 28px rgba(124, 58, 237, 0.38);
    position: relative;
}
.mp-card-cover .mp-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.42), transparent 44%);
    pointer-events: none;
}
.mp-card-cover .mp-cover svg { width: 34px; height: 34px; }
/* 播放时不旋转唱片，改为光晕脉冲（方形封面旋转观感差） */
#musicPlayer.playing .mp-card-cover .mp-cover img { animation: none; }
#musicPlayer.playing .mp-card-cover .mp-cover { animation: mpCoverGlow 2.4s ease-in-out infinite; }
@keyframes mpCoverGlow {
    0%, 100% { box-shadow: 0 12px 28px rgba(124, 58, 237, 0.38), 0 0 0 0 rgba(168, 85, 247, 0.48); }
    50%      { box-shadow: 0 12px 34px rgba(124, 58, 237, 0.5),  0 0 0 9px rgba(168, 85, 247, 0); }
}

/* ---- 4. 曲目信息 ---- */
.mp-card-info .mp-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--mp-text);
    letter-spacing: 0.2px;
}
.mp-card-info .mp-artist {
    font-size: 12px;
    color: var(--mp-text-dim);
    margin-top: 3px;
}
/* 专辑：可选，未填时元素为空不占位 */
.mp-card-info .mp-album {
    font-size: 11px;
    color: var(--mp-text-dim);
    opacity: 0.85;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mp-card-info .mp-album:empty { display: none; }

/* ---- 5. 控制按钮 ---- */
.mp-controls { gap: 8px; }
.mp-btn { color: var(--mp-text-dim); }
.mp-btn:hover { background: rgba(124, 92, 255, 0.12); color: var(--mp-accent); }
.mp-btn-main {
    width: 46px; height: 46px;
    background: var(--mp-grad);
    color: #fff;
    box-shadow: var(--mp-glow);
}
.mp-btn-main:hover {
    background: var(--mp-grad);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 11px 30px rgba(168, 85, 247, 0.5);
}
.mp-btn-main svg { width: 19px; height: 19px; }

/* ---- 6. 进度条 ---- */
.mp-progress { height: 5px; background: var(--mp-track); border-radius: 3px; }
.mp-progress:hover { height: 7px; }
.mp-progress-filled {
    background: var(--mp-grad);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.55);
}
.mp-progress-filled::after {
    right: -6px;
    width: 12px; height: 12px;
    background: #fff;
    border: 2px solid var(--mp-accent);
    box-shadow: 0 2px 9px rgba(124, 58, 237, 0.6);
}
.mp-time { font-size: 11px; color: var(--mp-text-dim); }

/* ---- 7. 工具栏（歌词 / 列表 / 音量） ---- */
.mp-extras { gap: 4px; }
.mp-btn-sm { width: 32px; height: 32px; border-radius: 10px; }
.mp-btn-sm.active {
    background: var(--mp-grad);
    color: #fff;
    box-shadow: 0 6px 17px rgba(124, 58, 237, 0.4);
}
.mp-volume { color: var(--mp-text-dim); }
.mp-volume input[type="range"] { background: var(--mp-track); height: 4px; }
.mp-volume input[type="range"]::-webkit-slider-thumb {
    width: 11px; height: 11px;
    background: var(--mp-accent);
    box-shadow: 0 0 8px rgba(124, 58, 237, 0.65);
}

/* ---- 8. 抽屉容器（歌词 / 播放列表共用） ---- */
.mp-drawer {
    width: 402px;
    max-width: calc(100vw - 40px);
    background: var(--mp-surface);
    -webkit-backdrop-filter: saturate(180%) blur(26px);
    backdrop-filter: saturate(180%) blur(26px);
    border: 1px solid var(--mp-stroke);
    border-bottom: none;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(76, 29, 149, 0.16);
}
.mp-drawer.open { height: 320px; }

/* ---- 9. 抽屉头部 ---- */
.mp-list-header {
    padding: 14px 18px 12px;
    border-bottom: 1px solid var(--mp-hairline);
    position: relative;
}
.mp-list-header::after {
    content: '';
    position: absolute;
    left: 18px; right: 18px; bottom: -1px;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.65), rgba(236, 72, 153, 0));
    border-radius: 2px;
}
.mp-list-title {
    position: relative;
    padding-left: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mp-text);
}
.mp-list-title::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 4px; height: 15px;
    border-radius: 2px;
    background: var(--mp-grad);
}
.mp-list-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--mp-accent);
    background: rgba(124, 92, 255, 0.13);
    padding: 3px 10px;
    border-radius: 999px;
}
.mp-lrc-song { color: var(--mp-text-dim); }
.mp-list-close { color: var(--mp-text-dim); }
.mp-list-close:hover { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

/* ---- 10. 歌词面板 ---- */
.mp-lrc-lines { padding: 30px 14%; }
.mp-lrc-line {
    padding: 9px 16px;
    font-size: 14.5px;
    color: var(--mp-text-dim);
    border-radius: 12px;
}
.mp-lrc-line:hover {
    color: var(--mp-text);
    background: rgba(124, 92, 255, 0.08);
}
/* 当前行：渐变文字 + 放大 + 光晕（写在 hover 之后，确保优先） */
.mp-lrc-line.active {
    font-size: 17px;
    font-weight: 700;
    background: var(--mp-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transform: scale(1.03);
    filter: drop-shadow(0 2px 10px rgba(168, 85, 247, 0.45));
}
.mp-lrc-empty { color: var(--mp-text-dim); font-size: 14px; }

/* ---- 11. 播放列表 ---- */
.mp-list { padding: 10px 12px 14px; }
.mp-list::-webkit-scrollbar-thumb { background: rgba(124, 92, 255, 0.28); }
.mp-item {
    padding: 9px 12px;
    margin: 3px 2px;
    border-radius: 14px;
    gap: 12px;
}
.mp-item:hover {
    background: rgba(124, 92, 255, 0.09);
    transform: translateX(3px);
}
.mp-item.active {
    background: linear-gradient(90deg, rgba(124, 92, 255, 0.16), rgba(236, 72, 153, 0.07));
}
.mp-item.active::before {
    top: 18%; bottom: 18%;
    width: 4px;
    border-radius: 3px;
    background: var(--mp-grad);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}
.mp-item-cover {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--mp-grad-soft);
    color: #fff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.15);
}
.mp-item.active .mp-item-cover {
    box-shadow: 0 0 0 2px var(--mp-accent), 0 4px 14px rgba(124, 58, 237, 0.42);
}
.mp-item-title { font-size: 13.5px; font-weight: 600; color: var(--mp-text); }
.mp-item.active .mp-item-title { color: var(--mp-accent); }
.mp-item-artist { font-size: 11px; color: var(--mp-text-dim); }
.mp-item-num { font-size: 11px; font-weight: 600; color: var(--mp-text-dim); }
.mp-item:hover .mp-item-num { color: var(--mp-accent); }
.mp-item-playing span {
    background: var(--mp-accent);
    box-shadow: 0 0 6px rgba(124, 92, 255, 0.7);
}

/* ---- 12. 响应式 ---- */
@media (max-width: 768px) {
    .mp-card { width: calc(100vw - 24px); padding: 16px; border-radius: 18px; }
    .mp-card-cover .mp-cover { width: 84px; height: 84px; border-radius: 15px; }
    .mp-card-cover .mp-cover svg { width: 28px; height: 28px; }
    .mp-drawer { width: calc(100vw - 24px); border-radius: 18px 18px 0 0; }
    .mp-drawer.open { height: 280px; }
    .mp-lrc-lines { padding: 24px 8%; }
    .mp-item-cover { width: 40px; height: 40px; }
}
@media (max-width: 480px) {
    .mp-btn-main { width: 42px; height: 42px; }
    .mp-btn-main svg { width: 18px; height: 18px; }
    .mp-card-info .mp-title { font-size: 14px; }
    .mp-lrc-line.active { font-size: 16px; }
}

/* ---- 13. 播放模式切换提示 ---- */
.mp-mode-toast {
    position: fixed;
    right: 24px;
    bottom: 132px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--mp-grad);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: 0 10px 28px rgba(99, 102, 241, 0.45);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 99999;
}
.mp-mode-toast.show { opacity: 1; transform: translateY(0); }
/* 切换时按钮轻微脉冲，强化反馈 */
#mpModeBtn.flash { animation: mpModeFlash .35s ease; }
@keyframes mpModeFlash {
    0% { transform: scale(1); }
    45% { transform: scale(1.18); }
    100% { transform: scale(1); }
}
@media (max-width: 480px) {
    .mp-mode-toast { right: 16px; bottom: 120px; font-size: 12px; padding: 8px 13px; }
}

/* ============================================================
   管理中心弹窗（管理后台弹窗化：前台 iframe 加载 admin 页面）
   ============================================================ */
:root {
    --ap-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 58%, #ec4899 100%);
    --ap-glass: rgba(255, 255, 255, 0.72);
    --ap-radius: 22px;
}
[data-theme="dark"] {
    --ap-glass: rgba(24, 27, 40, 0.78);
}

/* ---------- 导航栏齿轮入口 ---------- */
.admin-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: navLinkIn 0.2s ease 0s both;
}
.admin-nav-btn svg { width: 20px; height: 20px; transition: transform 0.2s ease; }
.admin-nav-btn:hover { background: var(--accent-bg); color: var(--accent); transform: scale(1.1) rotate(90deg); }

/* ---------- 遮罩 ---------- */
.admin-overlay {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3vh 2.5vw;
    background: rgba(10, 12, 20, 0.45);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}
.admin-overlay.active { opacity: 1; visibility: visible; }

/* ---------- 面板 ---------- */
.admin-panel {
    width: min(1280px, 100%);
    height: min(880px, 100%);
    display: flex;
    flex-direction: column;
    border-radius: var(--ap-radius);
    overflow: hidden;
    background: var(--ap-glass);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    backdrop-filter: saturate(180%) blur(30px);
    box-shadow: 0 32px 90px rgba(10, 12, 30, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transform: translateY(20px) scale(0.975);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.admin-overlay.active .admin-panel { transform: none; }

/* ---------- 标题栏 ---------- */
.admin-panel-head {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px 12px 18px;
    background: var(--ap-grad);
    color: #fff;
}
.admin-panel-head-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-panel-logo {
    flex: none;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 17px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}
.admin-panel-titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.admin-panel-eyebrow {
    font-size: 10.5px; letter-spacing: 0.16em;
    opacity: 0.85; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-panel-title {
    font-size: 16.5px; font-weight: 800;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-panel-close {
    flex: none;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
}
.admin-panel-close svg { width: 17px; height: 17px; }
.admin-panel-close:hover { background: rgba(255, 255, 255, 0.3); transform: rotate(90deg); }

/* ---------- 主体：菜单 + iframe ---------- */
.admin-panel-body { flex: 1; display: flex; min-height: 0; }

.admin-side {
    flex: none;
    width: 216px;
    display: flex;
    flex-direction: column;
    background: var(--glass-bg);
    border-right: 1px solid var(--border);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
}
.admin-side-scroll { flex: 1; overflow-y: auto; padding: 10px; }
.admin-side-section {
    font-size: 11px;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--text-muted);
    padding: 12px 12px 6px;
}
.admin-side-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin-bottom: 2px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.admin-side-item svg { width: 17px; height: 17px; flex: none; }
.admin-side-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-side-item:hover { background: var(--accent-bg); color: var(--text); }
.admin-side-item.active {
    background: var(--ap-grad);
    color: #fff;
    box-shadow: 0 6px 18px rgba(124, 92, 255, 0.35);
}
.admin-side-badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    flex: none;
}
.admin-side-badge.show { display: inline-flex; }
.admin-side-badge.danger { background: var(--danger); }
.admin-side-foot { flex: none; padding: 10px; border-top: 1px solid var(--border); }
.admin-side-logout { color: var(--danger); }
.admin-side-logout:hover { background: rgba(239, 68, 68, 0.1); color: var(--danger); }

.admin-frame-wrap { flex: 1; min-width: 0; background: var(--bg); }
.admin-frame { width: 100%; height: 100%; border: 0; display: block; background: transparent; }

/* ---------- 响应式：≤820px 全屏 + 顶部横滑菜单 ---------- */
@media (max-width: 820px) {
    .admin-overlay { padding: 0; }
    .admin-panel {
        width: 100vw; height: 100dvh;
        border-radius: 0; border: none;
    }
    .admin-panel-body { flex-direction: column; }
    .admin-side {
        width: 100%;
        flex: none;
        flex-direction: row;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid var(--border);
        overflow: hidden;
    }
    .admin-side-scroll {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .admin-side-scroll::-webkit-scrollbar { display: none; }
    .admin-side-section { display: none; }
    .admin-side-item {
        flex: none;
        padding: 7px 13px;
        border-radius: 999px;
        background: var(--bg-card);
        border: 1px solid var(--border);
        font-size: 13px;
        margin-bottom: 0;
    }
    .admin-side-item svg { width: 15px; height: 15px; }
    .admin-side-item.active { border-color: transparent; }
    .admin-side-badge { margin-left: 2px; }
    .admin-side-foot { border-top: none; padding: 8px 10px 8px 0; }
    .admin-frame-wrap { flex: 1; }
}
@media (max-width: 480px) {
    .admin-panel-eyebrow { display: none; }
    .admin-panel-title { font-size: 15px; }
}

/* ============================================================
   剧集播放网格：文章内容中的连续剧集/视频链接自动合并
   ============================================================ */
.article-content .ep-box { margin: 20px 0; }
.article-content .ep-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
}
.article-content .ep-player video { width: 100%; height: 100%; display: block; }
.article-content .ep-player-empty {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; gap: 10px;
    align-items: center; justify-content: center;
    color: rgba(255,255,255,.65); font-size: 14px; font-weight: 500;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(91,110,245,.14), rgba(139,92,246,.10));
}
.article-content .ep-player-empty svg { width: 42px; height: 42px; opacity: .6; }
.article-content .ep-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 10px;
}
.article-content .ep-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px; font-weight: 600;
    text-decoration: none;
    transition: all .18s ease;
    overflow: hidden;
}
.article-content .ep-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}
.article-content .ep-item.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.article-content .ep-item-num {
    flex-shrink: 0;
    width: 24px; height: 24px;
    border-radius: 8px;
    background: var(--accent-bg);
    color: var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
}
.article-content .ep-item.active .ep-item-num { background: rgba(255,255,255,.22); color: #fff; }
.article-content .ep-item-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-content video { width: 100%; border-radius: 16px; background: #000; }

/* ---- 外链视频（微博 / B站 / 腾讯 / 优酷 / 爱奇艺）---- */
.article-content .ep-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: none;
    background: #000;
}
.article-content .ep-player-loading {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: rgba(255,255,255,.85);
    font-size: 13px;
    font-weight: 600;
    background: rgba(10,12,24,.72);
    z-index: 3;
}
.article-content .ep-spinner {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.25);
    border-top-color: #fff;
    animation: epSpin .8s linear infinite;
}
@keyframes epSpin { to { transform: rotate(360deg); } }
/* 播放卡顿提示（缓冲中 / 自动重连）：只盖住顶部一条，不挡画面与进度条 */
.article-content .ep-hud {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    align-items: center;
    gap: 8px;
    max-width: 86%;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(10,12,24,.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255,255,255,.92);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
    z-index: 4;
    animation: epHudIn .18s ease-out;
}
@keyframes epHudIn { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }
.article-content .ep-player-empty.is-error {
    pointer-events: auto;
    text-align: center;
    padding: 0 24px;
}
.article-content .ep-error-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.9);
    line-height: 1.6;
}
.article-content .ep-error-link {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #9db4ff;
    text-decoration: none;
    border-bottom: 1px dashed rgba(157,180,255,.6);
    padding-bottom: 1px;
}
.article-content .ep-error-link:hover { color: #fff; border-bottom-color: #fff; }
.article-content .ep-grid-single { grid-template-columns: minmax(140px, 220px); }
/* 外链平台的卡片加一个播放小标识 */
.article-content .ep-item-weibo::after,
.article-content .ep-item-embed::after {
    content: "";
    flex-shrink: 0;
    margin-left: auto;
    width: 14px; height: 14px;
    background: currentColor;
    opacity: .55;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='10 8 16 12 10 16 10 8' fill='black' stroke='none'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolygon points='10 8 16 12 10 16 10 8' fill='black' stroke='none'/%3E%3C/svg%3E") center/contain no-repeat;
}
.article-content .ep-item.active::after { opacity: .9; }
