﻿:root {
    --bg: #030712;
    --bg-elevated: #0b1120;
    --surface: rgba(15, 23, 42, 0.65);
    --surface-solid: #0f172a;
    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --text-dim: #64748b;
    --border: rgba(56, 189, 248, 0.18);
    --border-strong: rgba(56, 189, 248, 0.35);
    --cyan: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.4);
    --purple: #a855f7;
    --purple-glow: rgba(168, 85, 247, 0.4);
    --magenta: #ec4899;
    --magenta-glow: rgba(236, 72, 153, 0.35);
    --accent: #facc15;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 0 20px rgba(0, 240, 255, 0.08);
    --shadow-md: 0 0 40px rgba(0, 240, 255, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 35%),
        radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.06) 0%, transparent 45%),
        linear-gradient(180deg, #030712 0%, #0a0f1d 50%, #030712 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(50px); }
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--magenta);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

.neon-text {
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px var(--cyan-glow));
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.6);
    color: var(--cyan);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.08);
}

.btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.15));
    color: #fff;
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--cyan-glow);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(168, 85, 247, 0.25));
}

.btn-danger {
    background: rgba(220, 38, 38, 0.08);
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.35);
}

.btn-danger:hover {
    background: rgba(220, 38, 38, 0.18);
    box-shadow: 0 0 18px rgba(248, 113, 113, 0.3);
    color: #fff;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* Login page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    padding: 44px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md), inset 0 0 30px rgba(0, 240, 255, 0.05);
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), var(--magenta), transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.login-card .subtitle {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: rgba(2, 6, 23, 0.6);
    color: var(--text);
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.form-group textarea#field-content,
.form-group textarea#field-prompt_text {
    min-height: 220px;
}

.error-msg {
    color: #f87171;
    font-size: 14px;
    min-height: 20px;
    margin-top: 8px;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

.hint {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 18px;
}

/* Site header */
.site-header {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand .logo-img {
    width: auto;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    display: block;
    box-shadow: 0 0 15px var(--cyan-glow);
}

.brand-text {
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.main-nav a {
    padding: 9px 20px;
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.25s;
    border: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.08);
    border-color: var(--border-strong);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.12);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.admin-link {
    padding: 7px 16px;
    border: 1px solid var(--border-strong);
    border-radius: 20px;
    font-size: 14px;
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.05);
    transition: all 0.2s;
}

.admin-link:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 16px var(--cyan-glow);
    color: #fff;
}

/* Hero */
.hero {
    padding: 80px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px var(--cyan-glow));
    background-size: 200% auto;
    animation: textShine 5s linear infinite;
}

@keyframes textShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero p {
    margin: 0 0 36px;
    color: #c7d2fe;
    font-size: 18px;
}

.hero-search {
    display: flex;
    max-width: 660px;
    margin: 0 auto;
    gap: 12px;
    background: rgba(15, 23, 42, 0.6);
    padding: 8px;
    border-radius: 40px;
    border: 1px solid var(--border);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(12px);
}

.hero-search:focus-within {
    border-color: var(--cyan);
    box-shadow: 0 0 40px var(--cyan-glow);
}

.hero-search input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 40px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: var(--text);
}

.hero-search button {
    padding: 14px 32px;
    border: none;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #000;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 0 24px var(--cyan-glow);
    transition: all 0.2s;
}

.hero-search button:hover {
    box-shadow: 0 0 36px var(--cyan-glow);
    transform: scale(1.02);
}

/* Main content */
main.container {
    padding-top: 36px;
    padding-bottom: 56px;
}

.content-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.content-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.content-tab.active,
.content-tab:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.12);
}

.content-tab .icon {
    font-size: 18px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.panel-intro {
    text-align: center;
    margin-bottom: 28px;
}

.panel-intro h2 {
    margin: 0 0 6px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 20px var(--cyan-glow);
}

.panel-intro p {
    margin: 0;
    color: var(--text-secondary);
}

/* Explore layout */
.explore-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    align-items: start;
}

/* æ–°é—»åˆ—è¡¨é¡µåŽ»æŽ‰ä¾§è¾¹æ åŽæ•´å®½å±•ç¤º */
.news-full-width {
    grid-template-columns: 1fr;
}

.explore-sidebar {
    position: sticky;
    top: 90px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.explore-sidebar h3 {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-categories button,
.sidebar-categories a.cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    transition: all 0.2s;
}

.sidebar-categories button:hover,
.sidebar-categories a.cat-link:hover {
    background: rgba(0, 240, 255, 0.06);
    color: var(--text);
}

.sidebar-categories button.active,
.sidebar-categories a.cat-link.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    border-color: var(--accent-border);
}

.sidebar-categories button .cat-count,
.sidebar-categories a.cat-link small {
    font-size: 12px;
    color: var(--text-dim);
}

.sidebar-categories button.active .cat-count,
.sidebar-categories a.cat-link.active small {
    color: var(--cyan);
}

/* News list (one per row) */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: start;
    gap: 22px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s;
}

.news-list-item:hover {
    border-color: var(--cyan);
    box-shadow: var(--shadow);
    transform: translateY(-2px) scale(1.015);
}

.news-list-item .news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

.news-list-item .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-list-body {
    padding: 18px 18px 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-list-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.news-list-body h3 a {
    color: var(--text);
}

.news-list-body h3 a:hover {
    color: var(--cyan);
}

.news-list-body p {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.news-list-meta .news-time {
    color: var(--text-dim);
    margin-left: auto;
}



/* Homepage */
.home-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.stat-block {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    transition: all 0.25s;
}

.stat-block:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px);
}

.stat-block .stat-value {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-block .stat-label {
    display: block;
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

.home-section {
    margin-bottom: 48px;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.home-section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.home-section-header h2 .icon {
    color: var(--accent);
    margin-right: 8px;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.view-all {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.view-all:hover {
    color: var(--cyan);
}

.home-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Category filter */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

.category-filter button {
    padding: 7px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s;
}

.category-filter button:hover,
.category-filter button.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.15));
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* Content sections */
.content-section {
    margin-bottom: 44px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    letter-spacing: 0.5px;
}

.section-title .icon {
    color: var(--accent);
    margin-right: 8px;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.5);
}

.view-more {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.view-more:hover {
    color: var(--cyan);
}

.featured-section .card,
.featured-section .news-card,
.featured-section .prompt-card {
    border-color: rgba(250, 204, 21, 0.35);
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.08);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.6;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: var(--shadow-md);
}

.card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.card h3 a {
    color: var(--text);
}

.card h3 a:hover {
    color: var(--cyan);
}

.card p {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 13px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.tag-source {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple);
    border-color: rgba(168, 85, 247, 0.25);
}

.tag-featured {
    background: rgba(250, 204, 21, 0.12);
    color: var(--accent);
    border-color: rgba(250, 204, 21, 0.35);
}

.tag-hot {
    background: rgba(236, 72, 153, 0.12);
    color: var(--magenta);
    border-color: rgba(236, 72, 153, 0.25);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 14px;
    font-size: 13px;
}

.card-footer a {
    color: var(--cyan);
    font-weight: 600;
}

.card-footer .date {
    color: var(--text-dim);
}

/* ===== Tool Cards (ai-bot style) ===== */
.tool-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tool-card {
    padding: 12px 14px;
    min-height: 72px;
}

.tool-card::before {
    display: none;
}

.tool-card:hover {
    transform: translateY(-2px);
}

.tool-card-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.tool-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border);
}

.tool-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--cyan);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.15));
}

.tool-info {
    flex: 1;
    min-width: 0;
}

.tool-info h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.section-icon {
    margin-right: 8px;
    font-size: 22px;
}

.section-title {
    gap: 4px;
}

.view-more-link {
    margin-left: auto;
    font-size: 13px;
    font-weight: 400;
    color: var(--primary, #00f0ff);
    text-decoration: none;
    transition: opacity 0.15s;
}
.view-more-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .tool-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
    .tool-grid { grid-template-columns: repeat(2, 1fr); }
    .tool-icon { width: 32px; height: 32px; }
    .tool-info h3 { font-size: 13px; }
}

/* News cards (blog style) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
}

.news-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
}

.news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--cyan), transparent, var(--purple));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    pointer-events: none;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    box-shadow: var(--shadow-md);
}

.news-card:hover::after {
    opacity: 0.8;
}

.news-card-link {
    display: block;
    color: inherit;
}

.news-card-link:hover {
    text-decoration: none;
}

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f1f5f9;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .news-image img {
    transform: scale(1.04);
}

.news-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(168, 85, 247, 0.2));
}

.news-image.placeholder span {
    font-size: 52px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    text-shadow: 0 0 24px var(--cyan-glow);
}

.news-card-body {
    padding: 18px;
}

.news-card-body h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-body p {
    margin: 0 0 16px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.news-time {
    color: var(--text-dim);
    margin-left: auto;
}

.empty {
    color: var(--text-dim);
    text-align: center;
    padding: 48px 0;
}

/* Prompt cards gallery */
/* Prompt gallery (list page only images) - masonry layout */
.prompt-grid {
    column-count: 4;
    column-gap: 16px;
}

.prompts-full-list {
    padding: 20px 0;
}

.prompts-full-list .prompt-grid {
    column-count: 4;
}

.prompt-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 16px;
}

.prompt-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--magenta), var(--purple));
    opacity: 0.6;
    z-index: 2;
}

.prompt-card:hover {
    transform: translateY(-4px);
    border-color: var(--magenta);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.12);
}

.prompt-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: var(--bg-elevated);
}

.prompt-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s;
    display: block;
}

.prompt-card:hover .prompt-image img {
    transform: scale(1.02);
}

.prompt-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
}

.prompt-image.placeholder span {
    font-size: 52px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 24px var(--magenta-glow);
}

.prompt-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.9) 0%, rgba(3, 7, 18, 0.4) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.prompt-card:hover .prompt-card-overlay,
.prompt-card:focus-visible .prompt-card-overlay {
    opacity: 1;
}

.prompt-card-overlay h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prompt detail modal */
.prompt-modal .modal-content {
    max-width: 900px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.prompt-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 85vh;
    overflow: hidden;
}

.prompt-modal-image {
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: auto;
}

.prompt-modal-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

.prompt-modal-image.placeholder {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
}

.prompt-modal-image.placeholder span {
    font-size: 96px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 32px var(--magenta-glow);
}

.prompt-modal-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.prompt-modal-info h2 {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--text);
    line-height: 1.35;
    flex-shrink: 0;
}

.prompt-modal-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding-right: 8px;
}

.prompt-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.prompt-modal-text {
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
}

.prompt-modal-text pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: "SFMono-Regular", Consolas, "Noto Sans SC", monospace;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.prompt-modal-desc {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.prompt-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.btn-copy {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border: none;
    color: white;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.4);
}

@media (max-width: 1024px) {
    .prompt-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .prompt-grid {
        column-count: 2;
    }
    .prompt-modal-body {
        grid-template-columns: 1fr;
        max-height: 90vh;
    }
    .prompt-modal-image {
        min-height: auto;
    }
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--cyan);
    color: var(--cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

.page-btn.active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    border-color: var(--cyan);
    color: #000;
    font-weight: 700;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-ellipsis {
    color: var(--text-light);
    padding: 0 6px;
}

.page-info {
    color: var(--text-light);
    font-size: 14px;
    margin-left: 12px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 48px;
    padding: 28px 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    background: rgba(15, 23, 42, 0.4);
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--cyan);
}

.site-footer .footer-contact {
    margin: 10px 0 0;
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.site-footer .footer-contact a {
    color: var(--cyan);
}

/* å³ä¸‹è§’æ‚¬æµ®å·¥å…·ç®± */
.float-toolbox {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.float-item {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.18));
    color: var(--cyan);
    border: 1px solid var(--border);
    box-shadow: 0 8px 30px rgba(0, 240, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: all .25s ease;
    user-select: none;
}

.float-item:hover {
    color: #fff;
    border-color: rgba(0, 240, 255, 0.55);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.35), rgba(168, 85, 247, 0.35));
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(0, 240, 255, 0.25);
}

.float-item .float-label {
    font-size: 11px;
    line-height: 1;
    margin-top: 2px;
    color: inherit;
    font-weight: 600;
}

#float-top {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, background .25s ease, border-color .25s ease;
}

#float-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.qr-pop {
    position: absolute;
    right: calc(100% + 14px);
    bottom: 0;
    width: 230px;
    padding: 14px 14px 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
    text-align: center;
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.float-item:hover .qr-pop,
#float-qr.is-open .qr-pop {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.qr-pop::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: 18px;
    width: 12px;
    height: 12px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transform: rotate(-45deg);
}

.qr-pop img {
    width: 180px;
    height: 180px;
    margin: 8px auto 0;
    display: block;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.qr-pop-title {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.qr-pop-sub {
    margin: 8px 0 2px;
    font-size: 11.5px;
    color: var(--text-dim);
}

/* mobile */
@media (max-width: 720px) {
    .float-toolbox { right: 14px; bottom: 16px; gap: 8px; }
    .float-item { width: 44px; height: 44px; border-radius: 12px; }
    .float-item .float-label { display: none; }
    .qr-pop {
        right: 50%;
        transform: translateX(50%) translateY(10px);
        bottom: calc(100% + 10px);
    }
    .qr-pop::after {
        right: auto; left: 50%;
        transform: translateX(-50%) rotate(45deg);
        bottom: -7px;
        border: none;
        border-top: 1px solid var(--border);
        border-left: 1px solid var(--border);
    }
    .float-item:hover .qr-pop, #float-qr.is-open .qr-pop {
        transform: translateX(50%) translateY(0);
    }
}

/* Admin */
.admin-header {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.admin-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
}

.admin-header h1 span {
    color: var(--text-secondary);
    font-weight: 400;
}

.admin-nav {
    display: flex;
    gap: 16px;
}

.admin-main {
    padding-top: 32px;
    padding-bottom: 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.stat-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-number {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-active {
    font-size: 13px;
    color: var(--text-dim);
}

.admin-section {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.collection-progress {
    margin-bottom: 22px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.progress-info {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.progress-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transition: width 0.2s;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.tabs {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.tab.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.15));
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.15);
}

.section-actions {
    display: flex;
    gap: 12px;
}

.section-actions input {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    min-width: 220px;
    background: rgba(2, 6, 23, 0.5);
    color: var(--text);
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th,
.data-table td {
    padding: 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.data-table th {
    background: rgba(0, 240, 255, 0.06);
    font-weight: 600;
    color: var(--cyan);
}

.data-table tr:hover td {
    background: rgba(0, 240, 255, 0.04);
}

.data-table .actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 8px currentColor;
}

.status-dot.active {
    background: #22c55e;
    color: #22c55e;
}

.status-dot.inactive {
    background: #64748b;
    color: #64748b;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.85);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface-solid);
    border-radius: var(--radius);
    border: 1px solid var(--border-strong);
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--text);
}

.modal-close {
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-dim);
}

.modal-close:hover {
    color: var(--cyan);
}

#edit-form {
    padding: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.form-grid .form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* Custom scrollbar */
::-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(--cyan);
}

/* Detail page */
.detail-page .site-header {
    /* è¯¦æƒ…é¡µé¡¶éƒ¨å¯¼èˆªä¿æŒ sticky å›ºå®šï¼Œä¸éšå†…å®¹æ»šåŠ¨ */
    position: sticky;
    top: 0;
    z-index: 100;
}

.detail-main {
    padding-top: 36px;
    padding-bottom: 56px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.detail-content {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.detail-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--purple), var(--magenta));
}

.detail-hero {
    margin-bottom: 28px;
}

.detail-image {
    width: 100%;
    height: 320px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-content h1 {
    margin: 0 0 16px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Compact favorite button inside detail-meta */
.detail-meta .detail-meta-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.detail-meta .btn-favorite {
    padding: 4px 12px;
    font-size: 13px;
}
.detail-meta .btn-favorite.favorited {
    background: rgba(236, 72, 153, 0.08);
}

.detail-summary {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-secondary);
    padding: 20px;
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--cyan);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 0 0 28px;
}

.detail-body {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.85;
}

.detail-body h2,
.detail-body h3,
.detail-body h4 {
    color: var(--text);
    margin-top: 32px;
    margin-bottom: 14px;
    font-weight: 700;
}

.detail-body h2 {
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.detail-body h3 {
    font-size: 18px;
    color: var(--cyan);
}

.detail-body p {
    margin: 0 0 18px;
}

.detail-body img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin: 20px 0;
    display: block;
}

/* news article images centered */
.detail-body img:nth-of-type(odd) {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 78% !important;
}

.detail-body img:nth-of-type(even) {
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 78% !important;
}

/* 连续多张图片之间增加间距 */
.detail-body img + br + img,
.detail-body img + img,
.detail-body p + img,
.detail-body img + p {
    margin-top: 28px;
}

/* 如果是正文末尾连续出现多张图片，用特殊边框区分 */
.detail-body img:last-of-type {
    margin-bottom: 32px;
}

.detail-body ul,
.detail-body ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.detail-body li {
    margin-bottom: 8px;
}

.detail-body blockquote {
    margin: 20px 0;
    padding: 16px 20px;
    background: rgba(250, 204, 21, 0.06);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
}

.detail-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.detail-body th,
.detail-body td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.detail-body th {
    background: rgba(0, 240, 255, 0.08);
    color: var(--cyan);
    font-weight: 600;
}

.detail-body code {
    background: rgba(0, 240, 255, 0.1);
    color: var(--cyan);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
}

.detail-body pre {
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    margin: 20px 0;
}

.detail-body pre code {
    background: transparent;
    padding: 0;
}

.detail-source {
    margin: 32px 0 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.back-link {
    margin-top: 16px;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.sidebar-card h3 {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 800;
    font-size: 18px;
}

.author-name {
    color: var(--text-secondary);
    font-size: 14px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-item {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: var(--radius-sm);
    background: rgba(0, 240, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.related-item:hover {
    border-color: var(--border-strong);
    background: rgba(0, 240, 255, 0.06);
}

.related-thumb {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-text h4 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-text span {
    font-size: 12px;
    color: var(--text-dim);
}

@media (max-width: 900px) {
    .sticky-search {
        top: var(--sticky-top, 110px); /* ç§»åŠ¨ç«¯headerå˜åŒè¡Œé«˜ï¼Œstickyæ ä¸‹ç§»ä¸é®æŒ¡ */
    }

    .explore-sidebar {
        position: static;
    }

    .sidebar-categories {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: 44px;   /* é»˜è®¤åªæ˜¾ç¤ºä¸€è¡Œ */
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .sidebar-categories.expanded {
        max-height: 3000px; /* å±•å¼€å…¨éƒ¨ */
    }

    .sidebar-categories button {
        width: auto;
    }

    /* ç§»åŠ¨ç«¯â€œå±•å¼€å…¨éƒ¨â€åˆ‡æ¢æŒ‰é’® */
    .cat-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        margin-top: 10px;
        padding: 6px 14px;
        font-size: 13px;
        color: var(--cyan);
        background: rgba(0, 240, 255, 0.08);
        border: 1px solid var(--accent-border);
        border-radius: var(--radius-sm);
        cursor: pointer;
        width: 100%;
    }

    .cat-toggle::after {
        content: "â–¼";
        font-size: 10px;
        transition: transform 0.3s;
        display: inline-block;
    }

    .cat-toggle.expanded::after {
        transform: rotate(180deg);
    }

    .header-inner {
        flex-wrap: nowrap;
        flex-direction: column;
        height: auto;
        padding: 14px 16px;
        gap: 10px;
        align-items: stretch;
        position: relative;
    }

    .brand {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .brand .logo-img {
        height: 36px;
    }

    .brand-text {
        font-size: 18px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding: 4px 0;
        gap: 6px;
        border: none;
    }

    .main-nav a {
        padding: 7px 14px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .header-actions {
        position: absolute;
        top: 14px;
        right: 16px;
    }

    .admin-link {
        padding: 5px 12px;
        font-size: 13px;
    }

    .explore-layout {
        grid-template-columns: 1fr;
    }

    .news-list-item {
        grid-template-columns: 220px 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 260px;
    }
}

@media (max-width: 768px) {
    .sticky-search {
        top: var(--sticky-top, 100px);
    }

    .header-inner {
        padding: 10px 14px;
        gap: 8px;
        position: relative;
    }

    .brand .logo-img {
        width: 24px;
        height: 24px;
    }

    .brand-text {
        font-size: 16px;
    }

    .main-nav {
        gap: 4px;
        padding: 2px 0;
        justify-content: center;
    }

    .main-nav a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .header-actions {
        top: 10px;
        right: 14px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: var(--radius);
    }

    .hero-search input,
    .hero-search button {
        border-radius: var(--radius-sm);
    }

    .admin-header .container,
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .tool-grid {
        grid-template-columns: 1fr !important;
    }

    .prompt-grid {
        column-count: 2;
    }

    .news-list-item {
        grid-template-columns: 1fr;
    }

    .news-list-item .news-image {
        height: 200px;
    }

    .news-list-body {
        padding: 16px;
    }
}

@media (max-width: 500px) {
    .sticky-search {
        top: var(--sticky-top, 94px);
    }

    .header-inner {
        padding: 8px 12px;
        gap: 8px;
    }

    .brand .logo-img {
        width: 22px;
        height: 22px;
    }

    .brand-text {
        font-size: 15px;
    }

    .main-nav {
        gap: 3px;
    }

    .main-nav a {
        padding: 5px 10px;
        font-size: 12px;
    }

    .header-actions {
        top: 8px;
        right: 12px;
    }

    .admin-link {
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* ===== AI ä¸»é¢˜æµ®åŠ¨å…ƒç´ èƒŒæ™¯ ===== */
.tech-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* --- ç¥žç»ç½‘ç»œèŠ‚ç‚¹ï¼ˆSVGï¼‰--- */
.tech-particles .neural-node {
    position: absolute;
    filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.4));
    animation: neuralPulse 6s ease-in-out infinite;
}

.tech-particles .nn-1 { width: 140px; left: 6%;  top: 15%; animation-delay: 0s; }
.tech-particles .nn-2 { width: 100px; right: 8%; top: 30%; animation-delay: 2s; }
.tech-particles .nn-3 { width: 160px; left: 55%; top: 65%; animation-delay: 4s; }

@keyframes neuralPulse {
    0%, 100% { opacity: 0.3; transform: translateY(0) scale(1); }
    50%      { opacity: 0.6; transform: translateY(-15px) scale(1.08); }
}

/* --- äºŒè¿›åˆ¶æ•°å­— --- */
.tech-particles .binary-digit {
    position: absolute;
    font-family: "Courier New", monospace;
    font-size: 16px;
    font-weight: 700;
    color: rgba(0, 240, 255, 0.35);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
    animation: binaryFall 18s linear infinite;
}

.tech-particles .bn-1 { left: 12%; animation-delay: 0s;   animation-duration: 16s; }
.tech-particles .bn-2 { left: 28%; animation-delay: 3s;   animation-duration: 20s; color: rgba(168, 85, 247, 0.35); text-shadow: 0 0 8px rgba(168, 85, 247, 0.5); }
.tech-particles .bn-3 { left: 40%; animation-delay: 6s;   animation-duration: 14s; }
.tech-particles .bn-4 { left: 52%; animation-delay: 1.5s; animation-duration: 22s; color: rgba(236, 72, 153, 0.35); text-shadow: 0 0 8px rgba(236, 72, 153, 0.5); }
.tech-particles .bn-5 { left: 65%; animation-delay: 4.5s; animation-duration: 17s; }
.tech-particles .bn-6 { left: 75%; animation-delay: 7s;   animation-duration: 19s; color: rgba(168, 85, 247, 0.35); text-shadow: 0 0 8px rgba(168, 85, 247, 0.5); }
.tech-particles .bn-7 { left: 85%; animation-delay: 2s;   animation-duration: 15s; }
.tech-particles .bn-8 { left: 92%; animation-delay: 5s;   animation-duration: 21s; color: rgba(236, 72, 153, 0.35); text-shadow: 0 0 8px rgba(236, 72, 153, 0.5); }

@keyframes binaryFall {
    0%   { top: -5%;  opacity: 0; }
    10%  { opacity: 0.8; }
    90%  { opacity: 0.4; }
    100% { top: 105%; opacity: 0; }
}

/* --- ç”µè·¯èµ°çº¿ï¼ˆL å½¢è·¯å¾„åŠ¨ç”»ï¼‰--- */
.tech-particles .circuit-trace {
    position: absolute;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0, 240, 255, 0.4), transparent);
    animation: tracePulse 4s ease-in-out infinite;
}

.tech-particles .circuit-trace::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.8);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.tech-particles .ct-1 { left: 20%;  top: 10%; height: 200px; animation-delay: 0s; }
.tech-particles .ct-2 { right: 15%; top: 25%; height: 250px; animation-delay: 1.5s; }
.tech-particles .ct-2::after { background: rgba(168, 85, 247, 0.8); box-shadow: 0 0 10px rgba(168, 85, 247, 0.8); }
.tech-particles .ct-2 { background: linear-gradient(to bottom, transparent, rgba(168, 85, 247, 0.4), transparent); }
.tech-particles .ct-3 { left: 70%;  top: 5%;  height: 180px; animation-delay: 2.5s; }
.tech-particles .ct-3::after { background: rgba(236, 72, 153, 0.8); box-shadow: 0 0 10px rgba(236, 72, 153, 0.8); }
.tech-particles .ct-3 { background: linear-gradient(to bottom, transparent, rgba(236, 72, 153, 0.4), transparent); }

@keyframes tracePulse {
    0%, 100% { opacity: 0.2; }
    50%      { opacity: 0.7; }
}

/* --- å‘å…‰ç²’å­ --- */
.tech-particles .particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s ease-in-out infinite;
}

.tech-particles .p-cyan {
    background: radial-gradient(circle, rgba(0, 240, 255, 1) 0%, rgba(0, 240, 255, 0.2) 50%, transparent 70%);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.8), 0 0 24px rgba(0, 240, 255, 0.4);
}

.tech-particles .p-purple {
    background: radial-gradient(circle, rgba(168, 85, 247, 1) 0%, rgba(168, 85, 247, 0.2) 50%, transparent 70%);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.8), 0 0 24px rgba(168, 85, 247, 0.4);
}

.tech-particles .p-magenta {
    background: radial-gradient(circle, rgba(236, 72, 153, 1) 0%, rgba(236, 72, 153, 0.2) 50%, transparent 70%);
    box-shadow: 0 0 12px rgba(236, 72, 153, 0.8), 0 0 24px rgba(236, 72, 153, 0.4);
}

.tech-particles .particle:nth-child(17) { width: 10px; height: 10px; left: 8%;  top: 18%; animation-delay: 0s;   animation-duration: 16s; }
.tech-particles .particle:nth-child(18) { width: 14px; height: 14px; left: 22%; top: 58%; animation-delay: 2s;   animation-duration: 20s; }
.tech-particles .particle:nth-child(19) { width: 8px;  height: 8px;  left: 42%; top: 28%; animation-delay: 4s;   animation-duration: 14s; }
.tech-particles .particle:nth-child(20) { width: 16px; height: 16px; left: 63%; top: 68%; animation-delay: 1s;   animation-duration: 18s; }
.tech-particles .particle:nth-child(21) { width: 9px;  height: 9px;  left: 78%; top: 22%; animation-delay: 3s;   animation-duration: 17s; }
.tech-particles .particle:nth-child(22) { width: 12px; height: 12px; left: 12%; top: 78%; animation-delay: 5s;   animation-duration: 22s; }

@keyframes particleFloat {
    0%   { transform: translateY(0) translateX(0) scale(0.4); opacity: 0; }
    8%   { opacity: 0.9; }
    50%  { transform: translateY(-140px) translateX(50px) scale(1.4); opacity: 0.5; }
    92%  { opacity: 0.7; }
    100% { transform: translateY(-320px) translateX(-40px) scale(0.2); opacity: 0; }
}

/* ===== æ»šåŠ¨ç½®é¡¶æœç´¢æ  ===== */
.sticky-search {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(11, 17, 32, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
    pointer-events: none;
}

.sticky-search.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sticky-search-inner {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    max-width: 660px;
}

.sticky-search-inner input {
    flex: 1;
    padding: 9px 18px;
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    background: rgba(15, 23, 42, 0.6);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sticky-search-inner input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 16px var(--cyan-glow);
}

.sticky-search-inner button {
    padding: 9px 24px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #000;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 0 20px var(--cyan-glow);
    transition: all 0.2s;
    white-space: nowrap;
}

.sticky-search-inner button:hover {
    box-shadow: 0 0 30px var(--cyan-glow);
    transform: scale(1.03);
}

@media (max-width: 600px) {
    .sticky-search {
        top: 60px;
    }

    .sticky-search-inner {
        padding: 28px 14px;
    }

    .sticky-search-inner input {
        font-size: 13px;
        padding: 7px 14px;
    }

    .sticky-search-inner button {
        padding: 7px 16px;
        font-size: 13px;
    }
}

/* News detail enrichment */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--cyan);
}

.breadcrumb span:last-child {
    color: var(--text-dim);
}

.detail-image {
    height: 420px;
}

.detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.detail-tags-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.source-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0;
    padding: 22px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.source-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
}

.source-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 800;
    font-size: 20px;
}

.source-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.source-url {
    font-size: 13px;
    color: var(--text-dim);
    word-break: break-all;
}

.detail-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.more-news-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.more-news-section h2 {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.more-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.more-news-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    transition: all 0.2s;
}

.more-news-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.more-news-thumb {
    height: 120px;
    overflow: hidden;
}

.more-news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.more-news-card:hover .more-news-thumb img {
    transform: scale(1.05);
}

.more-news-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #000;
    font-size: 28px;
    font-weight: 800;
}

.more-news-body {
    padding: 14px;
}

.more-news-body h4 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-news-body p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-news-date {
    font-size: 12px;
    color: var(--text-dim);
}

@media (max-width: 900px) {
    .more-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .more-news-grid {
        grid-template-columns: 1fr;
    }

    .source-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-image {
        height: 240px;
    }
}

/* ==========================================================================
   Retention & Monetization UI Components
   ========================================================================== */

/* Favorite Button */
.btn-favorite {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.btn-favorite:hover {
    border-color: var(--magenta);
    color: var(--magenta);
    box-shadow: 0 0 12px var(--magenta-glow);
}
.btn-favorite.favorited {
    border-color: var(--magenta);
    color: var(--magenta);
    background: rgba(236, 72, 153, 0.08);
}

/* Favorite button inside cards (auto-injected by retention.js) */
.btn-favorite-card {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.85);
    color: #999;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}
.btn-favorite-card:hover {
    background: #fff;
    border-color: var(--magenta);
    color: var(--magenta);
    box-shadow: 0 0 8px var(--magenta-glow);
    transform: scale(1.1);
}
.btn-favorite-card.favorited {
    background: rgba(236, 72, 153, 0.1);
    border-color: var(--magenta);
    color: var(--magenta);
}
.card .btn-favorite-card,
.tool-card .btn-favorite-card,
.model-card .btn-favorite-card {
    top: 10px;
    right: 10px;
}
.news-card .btn-favorite-card {
    top: 10px;
    right: 10px;
}
.prompt-card .btn-favorite-card {
    top: 10px;
    right: 10px;
}
@media (max-width: 768px) {
    .btn-favorite-card {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Subscribe Floating Button & Modal */
#float-subscribe svg { stroke: var(--cyan); }
.subscribe-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.subscribe-modal-overlay.active { display: flex; }
.subscribe-modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    padding: 28px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    position: relative;
    animation: modalIn .3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92) translateY(10px); }
    to   { opacity: 1; transform: scale(1)   translateY(0); }
}
.subscribe-modal h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: var(--text-primary);
}
.subscribe-modal .modal-desc {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.subscribe-modal input[type="email"] {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    margin-bottom: 14px;
    box-sizing: border-box;
}
.subscribe-modal input[type="email"]:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 10px var(--cyan-glow);
}
.subscribe-modal .btn-subscribe {
    width: 100%;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}
.subscribe-modal .btn-subscribe:hover {
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-1px);
}
.subscribe-modal .subscribe-msg {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    text-align: center;
    min-height: 18px;
}
.subscribe-modal .modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 0;
}
.subscribe-modal .modal-close:hover { color: var(--text-primary); }
.subscribe-modal .privacy-hint {
    margin-top: 14px;
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
}
@media (max-width: 640px) {
    .subscribe-modal { padding: 22px 18px; max-width: 340px; }
    .subscribe-modal h3 { font-size: 16px; }
}

/* WeChatå¯¼æµå¡ç‰‡ï¼ˆä¾§è¾¹æ ï¼‰ */
.wechat-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}
.wechat-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: var(--text);
}
.wechat-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 10px;
}
.wechat-card img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    margin-bottom: 8px;
}
.wechat-card .wechat-name {
    font-size: 14px;
    color: var(--cyan);
    font-weight: 600;
}

/* Affiliate Tag */
.affiliate-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-dim);
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
}
.affiliate-tag::before {
    content: "â˜…";
    color: var(--accent);
}

/* =========================================================================
   User System Styles
   ========================================================================= */
.user-slot { display: flex; align-items: center; margin-left: auto; }
.btn-login {
    padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500;
    background: linear-gradient(135deg, var(--accent), #6366f1);
    color: #fff !important; cursor: pointer; transition: opacity .2s, transform .2s;
    white-space: nowrap; text-decoration: none; line-height: 1.5;
}
.btn-login:hover { opacity: .88; transform: translateY(-1px); }
.user-dropdown { position: relative; }
.user-trigger {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    text-decoration: none; padding: 4px 8px; border-radius: 20px; transition: background .2s;
}
.user-trigger:hover { background: rgba(255,255,255,.08); }
.user-avatar-img, .user-avatar-text {
    width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: flex;
    align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--accent), #6366f1); flex-shrink: 0;
}
.user-name { color: var(--text-main); font-size: 13px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu {
    position: absolute; top: 100%; right: 0; min-width: 160px; background: var(--bg-card, #1e2335);
    border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: all .2s; z-index: 1000;
}
.user-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu a { display: block; padding: 8px 16px; color: var(--text-main); font-size: 13px; text-decoration: none; transition: background .15s; }
.user-menu a:hover { background: rgba(255,255,255,.06); }
.auth-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; transition: opacity .2s; }
.auth-modal-overlay.active { opacity: 1; }
.auth-modal { background: var(--bg-card, #1e2335); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 28px; width: 380px; max-width: 92vw; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(.95); transition: transform .2s; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.auth-modal-overlay.active .auth-modal { transform: scale(1); }
.auth-modal .modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 22px; color: var(--text-dim); cursor: pointer; line-height: 1; }
.auth-modal .modal-close:hover { color: var(--text-main); }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.auth-tab { flex: 1; padding: 10px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-dim); font-size: 15px; font-weight: 500; cursor: pointer; transition: all .2s; }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-form input, .auth-form select, .auth-form textarea { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.2); color: var(--text-main); font-size: 14px; margin-bottom: 12px; transition: border-color .2s; box-sizing: border-box; }
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus { outline: none; border-color: var(--accent); }
.auth-form input::placeholder, .auth-form textarea::placeholder { color: var(--text-dim); }
.auth-form label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 4px; margin-top: 8px; }
.auth-form label:first-child { margin-top: 0; }
.auth-form .req { color: #f5a623; }
.auth-form textarea { resize: vertical; font-family: inherit; }
.btn-auth { width: 100%; padding: 12px; border-radius: 8px; border: none; font-size: 15px; font-weight: 600; background: linear-gradient(135deg, var(--accent), #6366f1); color: #fff; cursor: pointer; transition: opacity .2s; margin-top: 4px; }
.btn-auth:hover { opacity: .9; }
.btn-auth:disabled { opacity: .5; cursor: not-allowed; }
.auth-msg { display: block; text-align: center; font-size: 13px; min-height: 18px; margin-top: 8px; }
.hidden { display: none !important; }
.publish-modal { width: 460px; }
.publish-title { font-size: 18px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.publish-hint { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }
.mycontent-modal { width: 500px; }
.mycontent-body { max-height: 60vh; overflow-y: auto; }
.mc-section { margin-bottom: 16px; }
.mc-section h4 { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mc-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.mc-item a { flex: 1; color: var(--text-main); font-size: 13px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-item a:hover { color: var(--accent); }
.mc-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.st-approved { background: rgba(0,212,160,.15); color: #00d4a0; }
.st-pending { background: rgba(245,166,35,.15); color: #f5a623; }
.st-rejected { background: rgba(239,68,68,.15); color: #ef4444; }
.mc-date { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.mc-publish-btn { margin-top: 16px; }
.loading-hint { text-align: center; color: var(--text-dim); padding: 20px 0; font-size: 14px; }
#comments-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.comments-header h3 { font-size: 16px; color: var(--text-main); margin-bottom: 16px; }
.comments-header span { color: var(--text-dim); font-size: 14px; font-weight: 400; }
.comment-input-area { margin-bottom: 20px; }
.comment-input-area textarea { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.2); color: var(--text-main); font-size: 14px; resize: vertical; box-sizing: border-box; font-family: inherit; }
.comment-input-area textarea:focus { outline: none; border-color: var(--accent); }
.btn-comment-submit { margin-top: 8px; padding: 8px 20px; border-radius: 8px; border: none; font-size: 13px; font-weight: 500; background: var(--accent); color: #fff; cursor: pointer; transition: opacity .2s; }
.btn-comment-submit:hover { opacity: .88; }
.comment-login-hint { padding: 16px; text-align: center; background: rgba(255,255,255,.03); border-radius: 8px; color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.comment-login-hint a { color: var(--accent); text-decoration: none; font-weight: 500; }
.comments-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item { display: block; gap: 12px; }
.c-avatar-img, .c-avatar-text { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent), #6366f1); }
.c-body { flex: 1; min-width: 0; }
.c-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.c-name { font-size: 13px; font-weight: 500; color: var(--text-main); }
.c-date { font-size: 12px; color: var(--text-dim); }
.c-text { font-size: 14px; color: var(--text-main); line-height: 1.6; word-wrap: break-word; }
.no-comments { text-align: center; color: var(--text-dim); padding: 24px 0; font-size: 14px; }
.view-count-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-dim); }
@media (max-width: 768px) {
    .auth-modal { width: 92vw; padding: 20px; }
    .publish-modal, .mycontent-modal { width: 92vw; }
    .user-name { display: none; }
    .user-menu { right: -8px; }
}

/* User System Styles */
.user-slot { display: flex; align-items: center; margin-left: auto; }
.btn-login { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; background: linear-gradient(135deg, var(--accent), #6366f1); color: #fff !important; cursor: pointer; transition: opacity .2s, transform .2s; white-space: nowrap; text-decoration: none; line-height: 1.5; }
.btn-login:hover { opacity: .88; transform: translateY(-1px); }
.user-dropdown { position: relative; }
.user-trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; padding: 4px 8px; border-radius: 20px; transition: background .2s; }
.user-trigger:hover { background: rgba(255,255,255,.08); }
.user-avatar-img, .user-avatar-text { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent), #6366f1); flex-shrink: 0; }
.user-name { color: var(--text-main); font-size: 13px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { position: absolute; top: 100%; right: 0; min-width: 160px; background: var(--bg-card, #1e2335); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 6px 0; box-shadow: 0 8px 24px rgba(0,0,0,.3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .2s; z-index: 1000; }
.user-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.user-menu a { display: block; padding: 8px 16px; color: var(--text-main); font-size: 13px; text-decoration: none; transition: background .15s; }
.user-menu a:hover { background: rgba(255,255,255,.06); }
.auth-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 10000; opacity: 0; transition: opacity .2s; }
.auth-modal-overlay.active { opacity: 1; }
.auth-modal { background: var(--bg-card, #1e2335); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 28px; width: 380px; max-width: 92vw; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(.95); transition: transform .2s; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.auth-modal-overlay.active .auth-modal { transform: scale(1); }
.auth-modal .modal-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 22px; color: var(--text-dim); cursor: pointer; line-height: 1; }
.auth-modal .modal-close:hover { color: var(--text-main); }
.auth-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.auth-tab { flex: 1; padding: 10px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-dim); font-size: 15px; font-weight: 500; cursor: pointer; transition: all .2s; }
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-form input, .auth-form select, .auth-form textarea { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.2); color: var(--text-main); font-size: 14px; margin-bottom: 12px; transition: border-color .2s; box-sizing: border-box; }
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus { outline: none; border-color: var(--accent); }
.auth-form input::placeholder, .auth-form textarea::placeholder { color: var(--text-dim); }
.auth-form label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 4px; margin-top: 8px; }
.auth-form label:first-child { margin-top: 0; }
.auth-form .req { color: #f5a623; }
.auth-form textarea { resize: vertical; font-family: inherit; }
.btn-auth { width: 100%; padding: 12px; border-radius: 8px; border: none; font-size: 15px; font-weight: 600; background: linear-gradient(135deg, var(--accent), #6366f1); color: #fff; cursor: pointer; transition: opacity .2s; margin-top: 4px; }
.btn-auth:hover { opacity: .9; }
.btn-auth:disabled { opacity: .5; cursor: not-allowed; }
.auth-msg { display: block; text-align: center; font-size: 13px; min-height: 18px; margin-top: 8px; }
.hidden { display: none !important; }
.publish-modal { width: 460px; }
.publish-title { font-size: 18px; font-weight: 600; color: var(--text-main); margin-bottom: 4px; }
.publish-hint { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; }
.mycontent-modal { width: 500px; }
.mycontent-body { max-height: 60vh; overflow-y: auto; }
.mc-section { margin-bottom: 16px; }
.mc-section h4 { font-size: 14px; color: var(--text-dim); margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.mc-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.mc-item a { flex: 1; color: var(--text-main); font-size: 13px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-item a:hover { color: var(--accent); }
.mc-status { font-size: 11px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.st-approved { background: rgba(0,212,160,.15); color: #00d4a0; }
.st-pending { background: rgba(245,166,35,.15); color: #f5a623; }
.st-rejected { background: rgba(239,68,68,.15); color: #ef4444; }
.mc-date { font-size: 11px; color: var(--text-dim); white-space: nowrap; }
.mc-publish-btn { margin-top: 16px; }
.loading-hint { text-align: center; color: var(--text-dim); padding: 20px 0; font-size: 14px; }
#comments-section { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.comments-header h3 { font-size: 16px; color: var(--text-main); margin-bottom: 16px; }
.comments-header span { color: var(--text-dim); font-size: 14px; font-weight: 400; }
.comment-input-area { margin-bottom: 20px; }
.comment-input-area textarea { width: 100%; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.2); color: var(--text-main); font-size: 14px; resize: vertical; box-sizing: border-box; font-family: inherit; }
.comment-input-area textarea:focus { outline: none; border-color: var(--accent); }
.btn-comment-submit { margin-top: 8px; padding: 8px 20px; border-radius: 8px; border: none; font-size: 13px; font-weight: 500; background: var(--accent); color: #fff; cursor: pointer; transition: opacity .2s; }
.btn-comment-submit:hover { opacity: .88; }
.comment-login-hint { padding: 16px; text-align: center; background: rgba(255,255,255,.03); border-radius: 8px; color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.comment-login-hint a { color: var(--accent); text-decoration: none; font-weight: 500; }
.comments-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item { display: block; gap: 12px; }
.c-avatar-img, .c-avatar-text { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(135deg, var(--accent), #6366f1); }
.c-body { flex: 1; min-width: 0; }
.c-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.c-name { font-size: 13px; font-weight: 500; color: var(--text-main); }
.c-date { font-size: 12px; color: var(--text-dim); }
.c-text { font-size: 14px; color: var(--text-main); line-height: 1.6; word-wrap: break-word; }
.no-comments { text-align: center; color: var(--text-dim); padding: 24px 0; font-size: 14px; }
.view-count-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-dim); }
@media (max-width: 768px) {
    .auth-modal { width: 92vw; padding: 20px; }
    .publish-modal, .mycontent-modal { width: 92vw; }
    .user-name { display: none; }
    .user-menu { right: -8px; }
}

/* ===== 发布按钮独立展示 ===== */
.btn-publish-header {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-right: 10px;
    transition: opacity .2s;
}
.btn-publish-header:hover {
    opacity: .85;
}

/* ===== Admin tab groups ===== */
.tab-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.tab-group-main {
    margin-bottom: 8px;
}
.tab-group-system .tab {
    font-size: 12px;
    padding: 6px 12px;
    opacity: .75;
}
.tab-group-system .tab:hover {
    opacity: 1;
}
.tab-group-system .tab.active {
    opacity: 1;
}

/* ===== Review comments ===== */
.review-comment-text {
    max-width: 300px;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== Publish page ===== */
.publish-page {
    background: var(--bg-main);
}
.publish-main {
    max-width: 760px;
    padding: 40px 20px 80px;
}
.publish-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 2px 24px rgba(0,0,0,.06);
    overflow: hidden;
}
.publish-header {
    padding: 32px 32px 0;
    text-align: center;
}
.publish-header h1 {
    font-size: 28px;
    margin: 0 0 8px;
    color: var(--text-primary);
}
.publish-hint {
    font-size: 14px;
    color: var(--text-tertiary);
    margin: 0;
}
.publish-tabs {
    display: flex;
    gap: 8px;
    padding: 24px 32px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
}
.publish-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all .2s;
}
.publish-tab .icon {
    font-size: 18px;
}
.publish-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.publish-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.publish-form {
    padding: 24px 32px 32px;
}
.publish-form .form-group {
    margin-bottom: 18px;
}
.publish-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.publish-form .req {
    color: #e74c3c;
}
.publish-form input[type="text"],
.publish-form input[type="url"],
.publish-form select,
.publish-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color .2s;
}
.publish-form input:focus,
.publish-form select:focus,
.publish-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 99,102,241), .1);
}
.publish-form textarea {
    resize: vertical;
    font-family: inherit;
}
.field-group.hidden {
    display: none;
}
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}
.error-msg {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 8px;
    min-height: 20px;
}

/* ===== Profile page ===== */
.profile-page {
    background: var(--bg-main);
}
.profile-main {
    display: flex;
    gap: 24px;
    padding: 40px 20px 80px;
    max-width: 1100px;
}
.profile-sidebar {
    flex: 0 0 240px;
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.04);
    height: fit-content;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.profile-username {
    font-size: 20px;
    margin: 0 0 4px;
    color: var(--text-primary);
}
.profile-joined {
    font-size: 13px;
    color: var(--text-tertiary);
    margin: 0 0 20px;
}
.btn-block {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.profile-content {
    flex: 1;
    min-width: 0;
}
.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border);
}
.profile-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .2s;
}
.profile-tab:hover {
    color: var(--accent);
}
.profile-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}
.profile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.profile-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 1px 6px rgba(0,0,0,.03);
    transition: box-shadow .2s;
}
.profile-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.profile-item-info {
    flex: 1;
    min-width: 0;
}
.profile-item-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.profile-item-title a {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}
.profile-item-title a:hover {
    color: var(--accent);
}
.badge {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.badge-approved {
    background: #e8f5e9;
    color: #2e7d32;
}
.badge-pending {
    background: #fff3e0;
    color: #e65100;
}
.badge-rejected {
    background: #fce4ec;
    color: #c62828;
}
.profile-item-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}
.type-tag {
    background: var(--bg-tag, #f0f0f0);
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.profile-item-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 6px;
    word-break: break-all;
}

/* Favorite item styles */
.favorite-item {
    position: relative;
    padding-right: 48px;
}

.profile-item-img {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 16px;
    background: var(--bg-card);
}

.profile-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-unfavorite {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-dim);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-unfavorite:hover {
    background: #fff0f0;
    color: #e74c3c;
    border-color: #e74c3c;
}
.empty-state,
.loading,
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}
.empty-state .btn {
    margin-top: 16px;
}
@media (max-width: 768px) {
    .profile-main {
        flex-direction: column;
        padding: 20px 16px 60px;
    }
    .profile-sidebar {
        flex: none;
    }
    .profile-item-img {
        width: 60px;
        height: 45px;
    }
    .btn-unfavorite {
        width: 28px;
        height: 28px;
        font-size: 12px;
        right: 8px;
    }
    .favorite-item {
        padding-right: 40px;
    }
    .publish-main {
        padding: 20px 16px 60px;
    }
    .publish-tabs {
        padding: 16px;
    }
    .publish-form {
        padding: 16px 16px 24px;
    }
    .publish-header {
        padding: 24px 16px 0;
    }
}
