/* ============================================
   Fashion Navigation - Magazine Editorial CSS
   精确还原原始 Tailwind 设计系统
   ============================================ */

/* ── Design Tokens (from original Tailwind config) ── */
:root {
    --background: hsl(40, 22%, 96%);
    --foreground: hsl(20, 14%, 12%);
    --card: hsl(40, 25%, 98%);
    --primary: hsl(346, 58%, 30%);
    --primary-foreground: hsl(40, 30%, 97%);
    --secondary: hsl(38, 20%, 91%);
    --muted: hsl(38, 16%, 92%);
    --muted-foreground: hsl(24, 8%, 40%);
    --accent: hsl(38, 34%, 89%);
    --accent-foreground: hsl(346, 50%, 26%);
    --border: hsl(34, 14%, 84%);
    --radius: 0rem;

    /* 系统字体优先，免费商用字体作为备选（异步加载） */
    --font-serif: 'Noto Serif SC', 'Source Han Serif SC', 'LXGW WenKai', 'ZCOOL XiaoWei', 'STSong', 'SimSun', 'Songti SC', serif;
    --font-sans: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    --font-round: 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
    --max-w-6xl: 1152px;
    --max-w-1400: 1400px;
}

/* 字体异步加载优化 - 避免阻塞渲染 */
@font-face {
    font-family: 'Noto Serif SC';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@400&display=swap);
}
@font-face {
    font-family: 'Noto Serif SC';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(https://fonts.loli.net/css2?family=Noto+Serif+SC:wght@600&display=swap);
}
@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@400&display=swap);
}
@font-face {
    font-family: 'Noto Sans SC';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(https://fonts.loli.net/css2?family=Noto+Sans+SC:wght@500&display=swap);
}

/* ── Font Face ── */
/* Use system fonts to avoid remote loading delays */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-serif);
    background: var(--background);
    color: var(--foreground);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

/* ── Utility Classes ── */
.bg-background { background: var(--background); }
.min-h-screen { min-height: 100vh; }
.font-serif { font-family: var(--font-serif); }
.font-semibold { font-weight: 600; }
.text-foreground { color: var(--foreground); }
.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(245, 243, 240, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: var(--max-w-6xl);
    margin: 0 auto;
    padding: 0 16px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
}
@media (min-width: 768px) {
    .header-inner { padding: 0 32px; }
}

/* Logo + Brand */
.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.site-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.site-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.05em;
    line-height: 1.2;
}
.site-nav-label {
    display: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    padding: 2px 6px;
}
@media (min-width: 768px) {
    .site-nav-label { display: inline; }
}

/* Desktop Nav */
.header-nav {
    display: none;
    flex: 1;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
}
.header-nav::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
    .header-nav { display: flex; }
}
.nav-link {
    font-size: 13px;
    color: var(--muted-foreground);
    white-space: nowrap;
    transition: color 0.2s;
    padding: 4px 0;
}
.nav-link:hover {
    color: var(--foreground);
    text-decoration: underline;
}

.header-spacer { flex: 1; }
@media (min-width: 768px) {
    .header-spacer { display: none; }
}

/* Admin link */
.header-actions { flex-shrink: 0; }
.admin-link {
    font-size: 12px;
    color: var(--muted-foreground);
    border: 1px solid var(--border);
    padding: 6px 14px;
    transition: all 0.2s;
}
.admin-link:hover {
    color: var(--foreground);
    border-color: var(--foreground);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    padding: 6px;
}
@media (min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 644px;
    background: var(--background);
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid var(--border);
}
.mobile-menu.open {
    transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 18px;
}
.mobile-menu-close {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
}
.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}
.mobile-nav-link {
    padding: 12px 16px;
    font-size: 15px;
    color: var(--foreground);
    border-bottom: 1px solid hsl(34, 14%, 90%);
}
.mobile-nav-link:hover {
    background: var(--muted);
}

/* ══════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════ */
.hero-section {
    padding: 96px 0 48px;
}
@media (min-width: 768px) {
    .hero-section { padding: 128px 0 64px; }
}
.hero-inner {
    max-width: var(--max-w-1400);
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .hero-inner { padding: 0 32px; }
}

/* Meta bar */
.hero-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 40px;
}
@media (min-width: 768px) {
    .hero-meta { margin-bottom: 56px; }
}
.hero-vol {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--primary);
}
@media (min-width: 768px) {
    .hero-vol { font-size: 14px; }
}
.hero-date {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--muted-foreground);
}
@media (min-width: 768px) {
    .hero-date { font-size: 14px; }
}

/* Hero grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: end;
}
@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: 2fr 3fr;
        gap: 48px;
    }
}

/* Hero text */
.hero-text {
    max-width: 400px;
}
@media (min-width: 768px) {
    .hero-text { max-width: none; }
}
.hero-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 52px;
    line-height: 1.15;
    letter-spacing: 0.04em;
}
@media (min-width: 768px) {
    .hero-title { font-size: 72px; }
}
.hero-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px;
    color: var(--muted-foreground);
    margin-top: 16px;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .hero-tagline { font-size: 24px; margin-top: 24px; }
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    font-size: 15px;
    color: var(--muted-foreground);
}
@media (min-width: 768px) {
    .hero-stats { margin-top: 40px; }
}
.stat-number {
    font-family: var(--font-serif);
    font-size: 24px;
    color: var(--foreground);
    font-weight: 600;
}
@media (min-width: 768px) {
    .stat-number { font-size: 30px; }
}
.stat-label {
    font-size: 12px;
    margin-top: 4px;
}

/* Hero carousel */
.hero-carousel {
    position: relative;
    aspect-ratio: 4 / 3;
    width: 100%;
    overflow: hidden;
    background: var(--muted);
}
@media (min-width: 768px) {
    .hero-carousel { aspect-ratio: 16 / 9; }
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.carousel-slide.active {
    opacity: 1;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-slide-title {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    color: white;
    font-size: 13px;
    font-weight: 600;
}

/* Carousel arrows */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.85);
    border: 1px solid var(--border);
    z-index: 5;
    transition: background 0.2s;
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-prev:hover, .carousel-next:hover {
    background: white;
}
.carousel-prev svg, .carousel-next svg {
    width: 18px; height: 18px;
}

/* Carousel indicators */
.carousel-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}
.carousel-indicator {
    width: 24px;
    height: 3px;
    background: rgba(255,255,255,0.4);
    transition: background 0.3s;
    cursor: pointer;
    border: none;
    padding: 0;
}
.carousel-indicator.active {
    background: rgba(255,255,255,0.9);
}

/* Hero banner ad */
.hero-banner-ad {
    margin-top: 32px;
}
@media (min-width: 768px) {
    .hero-banner-ad { margin-top: 48px; }
}

/* ══════════════════════════════════════════════
   AD SLOT
   ══════════════════════════════════════════════ */
/* Banner ad (in hero or between sections) */
.ad-banner {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--muted);
}
.ad-banner img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
@media (min-width: 768px) {
    .ad-banner img { aspect-ratio: 21 / 6; }
}
.ad-banner-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: white;
}
.ad-banner-name {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
}
@media (min-width: 768px) {
    .ad-banner-name { font-size: 24px; }
}

/* Feed ad (between categories) */
.ad-feed {
    display: block;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    max-width: var(--max-w-6xl);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}
.ad-feed:hover {
    background: var(--card);
}
.ad-feed-inner {
    max-width: 100%;
    margin: 0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}
@media (min-width: 768px) {
    .ad-feed-inner {
        flex-direction: row;
        align-items: center;
        gap: 32px;
        padding: 24px 32px;
    }
}
.ad-feed-image {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .ad-feed-image {
        aspect-ratio: auto;
        width: 644px;
        height: 140px;
        max-width: 644px;
    }
}
.ad-feed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ad-feed-text {
    flex: 1;
}
.ad-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--muted-foreground);
    margin-bottom: 4px;
}
.ad-name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 18px;
    transition: color 0.2s;
}
.ad-feed:hover .ad-name {
    text-decoration: underline;
}
.ad-desc {
    font-size: 13px;
    color: var(--muted-foreground);
    margin-top: 4px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ══════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════ */
.content-section {
    scroll-margin-top: 80px;
    padding: 40px 0;
}
@media (min-width: 768px) {
    .content-section { padding: 64px 0; }
}
.section-container {
    max-width: var(--max-w-6xl);
    margin: 0 auto;
    padding: 0 16px;
}
@media (min-width: 768px) {
    .section-container { padding: 0 32px; }
}

/* Section header bar */
.section-header-bar {
    display: flex;
    align-items: baseline;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 8px;
}
@media (min-width: 768px) {
    .section-header-bar { margin-bottom: 16px; }
}
.section-number {
    font-family: var(--font-serif);
    font-size: 30px;
    color: hsla(346, 58%, 30%, 0.7);
}
@media (min-width: 768px) {
    .section-number { font-size: 52px; }
}
.section-heading {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 22px;
    letter-spacing: 0.04em;
}
@media (min-width: 768px) {
    .section-heading { font-size: 30px; }
}
.section-count {
    font-size: 12px;
    color: var(--muted-foreground);
    letter-spacing: 0.2em;
    margin-left: auto;
}

/* ══════════════════════════════════════════════
   LINKS LIST (2-column grid, list-style)
   ══════════════════════════════════════════════ */
.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}
@media (min-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 48px;
    }
}

/* Single link item */
.link-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid hsla(34, 14%, 84%, 0.6);
    transition: background 0.15s;
    position: relative;
}
.link-item:hover {
    background: var(--card);
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
}

/* Category link item index number */
.link-item-index {
    font-family: var(--font-serif);
    font-size: 12px;
    color: var(--muted-foreground);
    padding-top: 2px;
    min-width: 24px;
    flex-shrink: 0;
}

/* Link icon */
.link-icon-wrapper {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.link-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.link-icon-fallback {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 15px;
    color: white;
}

/* Link info */
.link-info {
    flex: 1;
    min-width: 0;
}
.link-name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.link-item:hover .link-name {
    text-decoration: underline;
}
.link-desc {
    font-size: 13px;
    color: var(--muted-foreground);
    margin-top: 4px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Link hover arrow */
.link-arrow {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.2s;
    margin-top: 4px;
    color: var(--muted-foreground);
}
.link-item:hover .link-arrow {
    opacity: 1;
}

/* Glow badge (hot/recommended) */
.glow-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    color: white;
    flex-shrink: 0;
}
.glow-badge.hot {
    background: #E8603C;
    box-shadow: 0 0 6px #E8603C66;
}
.glow-badge.rec {
    background: #3C7BE8;
    box-shadow: 0 0 6px #3C7BE866;
}

/* ══════════════════════════════════════════════
   EXPAND / COLLAPSE
   ══════════════════════════════════════════════ */
.link-item-wrapper {
    /* Used for hidden items in expand/collapse */
}
.link-item-hidden {
    display: none;
}
.link-item-visible {
    display: flex;
}
.expand-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 24px;
    padding: 12px;
    font-size: 13px;
    color: var(--muted-foreground);
    border: 1px dashed var(--border);
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
}
.expand-toggle:hover {
    color: var(--foreground);
    border-color: var(--foreground);
}
.expand-chevron {
    display: flex;
    transition: transform 0.3s;
}
.expand-chevron.expanded {
    transform: rotate(180deg);
}
.expand-text {
    font-size: 13px;
}

/* Category ad */
.category-ad {
    margin-top: 32px;
}
@media (min-width: 768px) {
    .category-ad { margin-top: 48px; }
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
    margin-top: 32px;
}
@media (min-width: 768px) {
    .site-footer { margin-top: 64px; }
}
.footer-ad-area {
    padding-bottom: 40px;
}
@media (min-width: 768px) {
    .footer-ad-area { padding-bottom: 56px; }
}
.footer-bottom {
    border-top: 1px solid var(--border);
}
.footer-inner {
    max-width: var(--max-w-6xl);
    margin: 0 auto;
    padding: 24px 16px;
}
@media (min-width: 768px) {
    .footer-inner { padding: 40px 32px; }
}
.footer-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-foreground);
    line-height: 1.8;
}
@media (max-width: 767px) {
    .footer-text {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        font-size: 12px;
        letter-spacing: 0.1em;
    }
    /* 移动端隐藏纯 · 分隔符 */
    .footer-text .dot-sep {
        display: none;
    }
}
@media (min-width: 768px) {
    .footer-text {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 16px;
        font-size: 12px;
        letter-spacing: 0.25em;
    }
}
.footer-brand {
    font-family: var(--font-serif);
    text-transform: none;
    letter-spacing: 0.05em;
    font-size: 15px;
    font-weight: 600;
    color: var(--foreground);
}
.footer-text a {
    color: var(--muted-foreground);
    transition: color 0.2s;
}
.footer-text a:hover {
    color: var(--foreground);
}

/* ══════════════════════════════════════════════
   FLOATING TOOLBAR
   ══════════════════════════════════════════════ */
.floating-toolbar {
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
@media (min-width: 768px) {
    .floating-toolbar { right: 24px; }
}
.floating-toolbar.floating-btn-visible {
    opacity: 1;
    pointer-events: auto;
}
.floating-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.floating-btn:hover {
    background: var(--foreground);
    color: var(--primary-foreground);
    border-color: var(--foreground);
}
.floating-btn svg {
    width: 18px;
    height: 18px;
}

/* ══════════════════════════════════════════════
   CONTACT MODAL
   ══════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: white;
    max-width: 380px;
    width: 90%;
    padding: 32px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: var(--muted-foreground);
    transition: color 0.2s;
}
.modal-close:hover {
    color: var(--foreground);
}
.modal-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
}
.modal-body {
    text-align: center;
}
.modal-qr {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 16px;
    border: 1px solid var(--border);
}
.modal-empty-text {
    font-size: 13px;
    color: var(--muted-foreground);
    padding: 40px 0;
    text-align: center;
}

/* ══════════════════════════════════════════════
   ADMIN PAGES (compact)
   ══════════════════════════════════════════════ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 220px;
    background: var(--card);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    flex-shrink: 0;
}
.admin-main {
    flex: 1;
    padding: 24px 32px;
    overflow-x: auto;
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.admin-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
}
.admin-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 24px;
    margin-bottom: 24px;
}
.admin-card h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}
.admin-table th,
.admin-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.admin-table th {
    font-weight: 600;
    color: var(--muted-foreground);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.admin-table tr:hover td {
    background: var(--muted);
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--foreground);
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: var(--background);
    font-size: 15px;
    transition: border-color 0.2s;
    border-radius: 0;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
}
textarea.form-control {
    min-height: 80px;
    resize: vertical;
}
select.form-control {
    appearance: auto;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 15px;
    border: 1px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border-radius: 0;
}
.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}
.btn-primary:hover {
    opacity: 0.9;
}
.btn-secondary {
    background: var(--background);
    color: var(--foreground);
}
.btn-secondary:hover {
    background: var(--muted);
}
.btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}
.btn-danger:hover {
    opacity: 0.9;
}
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}
.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    border: 1px solid;
}
.badge-success { color: #16a34a; border-color: #16a34a; }
.badge-danger { color: #dc3545; border-color: #dc3545; }
.badge-info { color: #0d6efd; border-color: #0d6efd; }
.flash {
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid;
    font-size: 15px;
}
.flash-success { background: #dcfce7; border-color: #16a34a; color: #166534; }
.flash-error { background: #fee2e2; border-color: #dc3545; color: #991b1b; }
.flash-info { background: #dbeafe; border-color: #0d6efd; color: #1e40af; }

/* Login page */
.login-container {
    max-width: 400px;
    margin: 120px auto;
    padding: 40px;
    background: var(--card);
    border: 1px solid var(--border);
}
.login-container h1 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 15px;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    border: 1px solid var(--border);
}
.pagination a:hover { background: var(--muted); }
.pagination .current {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

/* Sidebar nav */
.sidebar-nav {
    display: flex;
    flex-direction: column;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 18px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 15px;
    color: var(--muted-foreground);
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
    background: var(--background);
    color: var(--foreground);
    border-left-color: var(--primary);
}

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: var(--border); }
::-webkit-scrollbar-thumb:hover { background: var(--muted-foreground); }

/* ══════════════════════════════════════════════
   RESPONSIVE (mobile)
   ══════════════════════════════════════════════ */
@media (max-width: 767px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: 12px 0; }
    .sidebar-nav { flex-direction: row; overflow-x: auto; padding: 0 12px; }
    .sidebar-brand { display: none; }
    .sidebar-link { white-space: nowrap; border-left: none; border-bottom: 3px solid transparent; padding: 8px 12px; font-size: 13px; }
    .sidebar-link.active { border-left-color: transparent; border-bottom-color: var(--primary); }
    .admin-main { padding: 16px; }
    .login-container { margin: 60px 16px; padding: 24px; }
}

/* ══════════════════════════════════════════════
   UI ENHANCEMENTS - 美化优化
   ══════════════════════════════════════════════ */

/* Link icon rounded corners */
.link-icon {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Link item hover enhancement */
.link-item {
    border-radius: 8px;
    padding: 16px 12px;
    transition: all 0.2s ease;
}
.link-item:hover {
    background: var(--card);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transform: translateX(4px);
}

/* Section header enhancement */
.section-number {
    opacity: 0.6;
    transition: opacity 0.2s;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-foreground) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-header-bar:hover .section-number {
    opacity: 1;
}

/* Card enhancements */
.admin-card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}
.admin-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Badge enhancements */
.badge {
    border-radius: 4px;
    transition: all 0.2s;
}

/* Form input enhancements */
input[type="text"],
input[type="url"],
input[type="password"],
input[type="email"],
textarea,
select {
    border-radius: 6px;
    transition: all 0.2s;
}
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 3px rgba(122, 42, 59, 0.1);
}

/* Floating button enhancement */
.floating-btn {
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
}
.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.16);
}

/* Modal enhancement */
.modal-content {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

/* Link arrow animation */
.link-arrow {
    transform: translateX(0);
    transition: all 0.2s ease;
}
.link-item:hover .link-arrow {
    transform: translateX(4px);
}

/* Glow badge animation */
.glow-badge {
    animation: glow 2s ease-in-out infinite alternate;
}
@keyframes glow {
    from { box-shadow: 0 0 4px currentColor; }
    to { box-shadow: 0 0 8px currentColor; }
}

/* Footer link hover */
.footer-text a {
    position: relative;
    padding-bottom: 2px;
}
.footer-text a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--foreground);
    transition: width 0.2s;
}
.footer-text a:hover::after {
    width: 100%;
}

/* Mobile menu enhancement */
.mobile-menu {
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}
.mobile-nav-link {
    transition: all 0.2s;
}
.mobile-nav-link:hover {
    padding-left: 20px;
}

/* Pagination enhancement */
.pagination a, .pagination span {
    border-radius: 6px;
    transition: all 0.2s;
    min-width: 36px;
    text-align: center;
}
.pagination a:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.pagination .current {
    box-shadow: 0 2px 6px rgba(122, 42, 59, 0.2);
}

/* Sidebar link enhancement */
.sidebar-link {
    border-radius: 0 6px 6px 0;
    margin-right: 8px;
    transition: all 0.2s;
}
.sidebar-link:hover {
    padding-left: 28px;
}

/* Flash message enhancement */
.flash {
    border-radius: 8px;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Data table enhancement */
.admin-table {
    border-radius: 8px;
    overflow: hidden;
}
.admin-table thead {
    background: var(--secondary);
}
.admin-table tr:hover td {
    background: rgba(255,255,255,0.6);
}

/* Login container enhancement */
.login-container {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Button enhancement */
.btn {
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Header shadow on scroll */
.site-header.scrolled {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Smooth page transitions */
.site-main > * {
    animation: fadeIn 0.3s ease;
}

/* Admin sidebar brand enhancement */
.sidebar-brand {
    transition: all 0.2s;
}
.sidebar-brand:hover {
    opacity: 0.8;
}

/* Form group label enhancement */
.form-group label {
    position: relative;
    padding-left: 8px;
}
.form-group label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 12px;
    background: var(--primary);
    border-radius: 2px;
}

/* Scrollbar enhancement */
::-webkit-scrollbar-thumb {
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--muted-foreground);
}
