/* =========================================
   博客网站样式 - 简约流畅设计
   ========================================= */

/* CSS 变量 - 高级配色方案 */
:root {
    --primary: #0c0c14;
    --secondary: #12121c;
    --accent: #c9a86c;
    --accent-light: #e6c88a;
    --text-primary: #f5f5f5;
    --text-secondary: #9ca3af;
    --bg-dark: #08080e;
    --bg-card: #101018;
    --border-color: #1e1e2a;
    --success: #6ee7b7;
    --warning: #fcd34d;
    --gradient-1: linear-gradient(135deg, #c9a86c 0%, #8b7355 100%);
    --gradient-2: linear-gradient(135deg, #2d2d3a 0%, #1a1a24 100%);
    --gradient-3: linear-gradient(135deg, #c9a86c 0%, #d4af37 100%);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 50px rgba(201, 168, 108, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 20px;
}

/* 亮色主题 */
[data-theme="light"] {
    --primary: #f8f9fa;
    --secondary: #ffffff;
    --accent: #8b6914;
    --accent-light: #c9a86c;
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --bg-dark: #f0f2f5;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --gradient-1: linear-gradient(135deg, #8b6914 0%, #c9a86c 100%);
    --gradient-2: linear-gradient(135deg, #f8f9fa 0%, #e2e8f0 100%);
    --gradient-3: linear-gradient(135deg, #8b6914 0%, #b8860b 100%);
    --shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 50px rgba(139, 105, 20, 0.15);
}

[data-theme="light"] body::before {
    background: 
        radial-gradient(ellipse at 10% 10%, rgba(139, 105, 20, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 20%, rgba(201, 168, 108, 0.06) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 80%, rgba(139, 105, 20, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #f0f2f5 0%, #f8f9fa 50%, #f0f2f5 100%);
}

[data-theme="light"] body::after {
    opacity: 0.03;
}

[data-theme="light"] .navbar {
    background: rgba(248, 249, 250, 0.9);
    border-bottom: 1px solid rgba(139, 105, 20, 0.1);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 249, 250, 0.98);
}

[data-theme="light"] .card,
[data-theme="light"] .guestbook-form,
[data-theme="light"] .guestbook-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="light"] input,
[data-theme="light"] textarea {
    background: var(--bg-dark);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="light"] .footer {
    background: var(--secondary);
    border-top: 1px solid var(--border-color);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 背景装饰 - 高级深邃感 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 10% 10%, rgba(201, 168, 108, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 20%, rgba(139, 115, 85, 0.04) 0%, transparent 35%),
        radial-gradient(ellipse at 50% 80%, rgba(201, 168, 108, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, rgba(8, 8, 14, 1) 0%, rgba(12, 12, 20, 1) 50%, rgba(8, 8, 14, 1) 100%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: -1;
}

/* =========================================
   导航栏
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(8, 8, 14, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 108, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    height: 60px;
    background: rgba(8, 8, 14, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.3rem;
}

.logo-icon {
    font-size: 1.8rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    display: block;
    padding: 10px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(233, 69, 96, 0.1);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 60%;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* =========================================
   主内容区域
   ========================================= */
.main-content {
    padding-top: 70px;
    min-height: calc(100vh - 70px);
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.section.active {
    display: block;
}

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

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
}

/* =========================================
   Hero 区域
   ========================================= */
.hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 1;
    animation: slideUp 0.8s ease-out;
}

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

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f5f5f5 0%, #c9a86c 50%, #8b7355 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
    letter-spacing: 0.05em;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: slideUp 0.8s ease-out 0.4s both;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 浮动装饰 */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    filter: blur(60px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #c9a86c 0%, transparent 70%);
    top: 5%;
    left: 5%;
    animation: float 12s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #8b7355 0%, transparent 70%);
    top: 50%;
    right: 10%;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #d4af37 0%, transparent 70%);
    bottom: 15%;
    left: 20%;
    animation: float 14s ease-in-out infinite 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(5deg); }
    50% { transform: translate(-10px, 20px) rotate(-5deg); }
    75% { transform: translate(15px, 10px) rotate(3deg); }
}

/* =========================================
   标题样式
   ========================================= */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    padding-left: 20px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
}

/* =========================================
   内容网格
   ========================================= */
.content-grid,
.articles-grid,
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* =========================================
   卡片样式
   ========================================= */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: cardAppear 0.5s ease-out backwards;
}

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

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-image-wrapper {
    overflow: hidden;
    position: relative;
}

.card-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8));
}

.card-content {
    padding: 24px;
}

.card-type {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 12px;
}

.card-type.article {
    background: rgba(201, 168, 108, 0.15);
    color: #c9a86c;
}

.card-type.software {
    background: rgba(110, 231, 183, 0.15);
    color: #6ee7b7;
}

.card-type.image {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.card-title a:hover {
    color: var(--accent);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(233, 69, 96, 0.2);
    color: var(--accent);
}

/* 软件卡片特殊样式 */
.software-card .card-content {
    display: flex;
    flex-direction: column;
}

.software-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.software-version {
    font-size: 0.8rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.software-platforms {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.platform-tag {
    padding: 4px 8px;
    background: rgba(110, 231, 183, 0.1);
    border-radius: 4px;
    font-size: 0.7rem;
    color: #6ee7b7;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-1);
    color: #0c0c14;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 16px;
    transition: var(--transition);
}

.download-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(201, 168, 108, 0.4);
}

/* 图片卡片 */
.gallery-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

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

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

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.gallery-card-desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}

/* =========================================
   发布页面样式
   ========================================= */
.publish-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 6px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    width: fit-content;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

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

.tab-btn.active {
    background: var(--accent);
    color: #fff;
}

.publish-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: 800px;
    animation: fadeIn 0.3s ease-out;
}

.publish-form.hidden {
    display: none;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    resize: vertical;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.checkbox-item:hover {
    border-color: var(--accent);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

/* 上传区域 */
.upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}

.upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.upload-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

#image-preview {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 8px;
}

/* 提交按钮 */
.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gradient-1);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.submit-btn .btn-icon {
    transition: var(--transition);
}

.submit-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* =========================================
   文章详情页
   ========================================= */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 30px;
}

.back-btn:hover {
    background: rgba(233, 69, 96, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.article-detail-content {
    background: var(--bg-card);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.article-detail-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-detail-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-detail-body h2 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
    color: var(--text-primary);
}

.article-detail-body h3 {
    font-size: 1.25rem;
    margin: 30px 0 15px;
    color: var(--text-primary);
}

.article-detail-body p {
    margin-bottom: 20px;
}

.article-detail-body code {
    background: rgba(233, 69, 96, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    color: var(--accent);
}

.article-detail-body pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-detail-body pre code {
    background: none;
    padding: 0;
    color: var(--text-primary);
}

.article-detail-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.article-detail-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-detail-body ul,
.article-detail-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-detail-body li {
    margin-bottom: 10px;
}

/* =========================================
   页脚
   ========================================= */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =========================================
   图片查看器
   ========================================= */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.9);
    transition: var(--transition);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background: var(--accent);
    transform: rotate(90deg);
}

/* =========================================
   验证弹窗
   ========================================= */
.verify-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.verify-modal.active {
    opacity: 1;
    visibility: visible;
}

.verify-modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition);
    position: relative;
}

.verify-modal.active .verify-modal-content {
    transform: scale(1) translateY(0);
}

.verify-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.verify-modal-close:hover {
    background: var(--accent);
    color: #fff;
}

.verify-modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.verify-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    transition: var(--transition);
}

.verify-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.1);
}

.verify-error {
    color: #f87171;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.verify-error.hidden {
    display: none;
}

.verify-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--gradient-1);
    border: none;
    border-radius: 8px;
    color: #0c0c14;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.verify-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 168, 108, 0.3);
}

/* 权限徽章 */
.access-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.access-badge.password {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.access-badge.keys {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

/* =========================================
   留言板
   ========================================= */
.guestbook-wrapper {
    max-width: 800px;
}

.guestbook-form {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.guestbook-form .form-group {
    margin-bottom: 20px;
}

.guestbook-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.1);
}

.guestbook-form textarea {
    resize: vertical;
    min-height: 100px;
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 6px;
}

/* 留言列表 */
.guestbook-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guestbook-item {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: fadeIn 0.4s ease-out;
}

.guestbook-item:hover {
    border-color: rgba(201, 168, 108, 0.3);
}

.guestbook-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.guestbook-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    color: #0c0c14;
}

.guestbook-info {
    flex: 1;
}

.guestbook-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.guestbook-time {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.guestbook-content {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 0.95rem;
    word-break: break-word;
}

/* 留言板管理员回复 */
.guestbook-reply {
    margin-top: 16px;
    padding: 16px;
    background: rgba(201, 168, 108, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
}

.guestbook-reply-label {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.guestbook-reply-content {
    color: var(--text-primary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* 被封禁提示 */
.banned-notice {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    color: #f87171;
}

.banned-notice h3 {
    margin-bottom: 10px;
}

.banned-notice p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================================
   提示消息
   ========================================= */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    z-index: 3000;
    opacity: 0;
    transition: var(--transition);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: var(--success);
    background: rgba(74, 222, 128, 0.1);
}

.toast.error {
    border-color: var(--accent);
    background: rgba(233, 69, 96, 0.1);
}

/* =========================================
   空状态
   ========================================= */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.1rem;
}

/* =========================================
   响应式设计
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(15, 15, 35, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .hero {
        min-height: 50vh;
        padding: 40px 20px;
    }

    .hero-stats {
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .content-grid,
    .articles-grid,
    .software-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .container {
        padding: 30px 16px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .publish-tabs {
        width: 100%;
        overflow-x: auto;
    }

    .tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .publish-form {
        padding: 24px;
    }

    .article-detail-content {
        padding: 24px;
    }

    .article-detail-content h1 {
        font-size: 1.6rem;
    }

    .article-detail-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .checkbox-group {
        flex-direction: column;
    }

    .upload-area {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .floating-shape {
        display: none;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

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

/* =========================================
   加载动画
   ========================================= */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 延迟动画 */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* =========================================
   搜索框
   ========================================= */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0 8px 0 16px;
    margin: 0 20px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.1);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    padding: 8px 0;
    width: 180px;
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    font-size: 1rem;
    opacity: 0.7;
    transition: var(--transition);
}

.search-btn:hover {
    opacity: 1;
}

/* 搜索结果 */
.search-results {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 1001;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.search-results.hidden {
    display: none;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.search-results-header h3 {
    color: var(--text-primary);
    font-size: 1rem;
}

.search-results-header button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: var(--transition);
}

.search-results-header button:hover {
    color: var(--accent);
}

.search-results-list {
    max-height: calc(70vh - 60px);
    overflow-y: auto;
}

.search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    background: rgba(201, 168, 108, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.search-result-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 6px;
}

.search-result-item mark {
    background: rgba(201, 168, 108, 0.3);
    color: var(--accent);
    padding: 0 2px;
    border-radius: 2px;
}

.search-result-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.search-no-result {
    padding: 40px;
    text-align: center;
    color: var(--text-secondary);
}

/* =========================================
   主题切换和导航右侧
   ========================================= */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: rgba(201, 168, 108, 0.1);
}

.theme-icon {
    font-size: 1.2rem;
}

/* =========================================
   回到顶部按钮
   ========================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-1);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* =========================================
   页脚增强
   ========================================= */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* =========================================
   图片懒加载
   ========================================= */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img.loaded {
    opacity: 1;
}

/* =========================================
   响应式补充
   ========================================= */
@media (max-width: 768px) {
    .search-box {
        display: none;
    }
    
    .nav-right {
        position: absolute;
        right: 60px;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================
   备份管理样式
   ========================================= */
.create-backup-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--gradient-1);
    color: var(--primary);
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.create-backup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 108, 0.3);
}

.backup-info {
    padding: 16px;
    background: rgba(201, 168, 108, 0.05);
    border: 1px solid rgba(201, 168, 108, 0.1);
    border-radius: var(--radius);
    margin-bottom: 16px;
}

.backup-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.backup-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: var(--transition);
}

.backup-item:hover {
    border-color: var(--accent);
}

.backup-item h4 {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.action-btn.restore {
    background: rgba(110, 231, 183, 0.1);
    color: var(--success);
}

.action-btn.restore:hover {
    background: rgba(110, 231, 183, 0.2);
}

.action-btn.download {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.action-btn.download:hover {
    background: rgba(96, 165, 250, 0.2);
}

/* =========================================
   阅读进度条
   ========================================= */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-1);
    z-index: 2000;
    transition: width 0.1s ease;
}

/* =========================================
   文章目录 TOC
   ========================================= */
.article-toc {
    position: fixed;
    right: 30px;
    top: 100px;
    width: 220px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: var(--transition);
}

.article-toc.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.article-toc-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.article-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-toc-list li {
    margin-bottom: 8px;
}

.article-toc-list a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 6px 0;
    padding-left: 0;
    border-left: 2px solid transparent;
    transition: var(--transition);
}

.article-toc-list a:hover,
.article-toc-list a.active {
    color: var(--accent);
    border-left-color: var(--accent);
    padding-left: 12px;
}

.article-toc-list .toc-h3 {
    padding-left: 16px;
    font-size: 0.8rem;
}

.article-toc-list .toc-h3:hover,
.article-toc-list .toc-h3.active {
    padding-left: 28px;
}

/* =========================================
   代码高亮
   ========================================= */
.article-detail-body pre {
    position: relative;
    background: #1e1e2e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin: 24px 0;
}

.article-detail-body pre code {
    display: block;
    padding: 20px;
    overflow-x: auto;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cdd6f4;
}

.code-lang-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0 var(--radius) 0 var(--radius);
}

.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 60px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition);
}

.article-detail-body pre:hover .copy-code-btn {
    opacity: 1;
}

.copy-code-btn:hover {
    background: var(--accent);
    color: var(--primary);
}

/* 代码语法高亮 */
.hljs-keyword { color: #cba6f7; }
.hljs-string { color: #a6e3a1; }
.hljs-number { color: #fab387; }
.hljs-comment { color: #6c7086; font-style: italic; }
.hljs-function { color: #89b4fa; }
.hljs-class { color: #f9e2af; }
.hljs-variable { color: #f38ba8; }
.hljs-operator { color: #89dceb; }
.hljs-punctuation { color: #9399b2; }
.hljs-property { color: #74c7ec; }
.hljs-attr { color: #f9e2af; }
.hljs-tag { color: #cba6f7; }
.hljs-attribute { color: #89b4fa; }
.hljs-built_in { color: #f38ba8; }
.hljs-params { color: #fab387; }
.hljs-type { color: #f9e2af; }
.hljs-title { color: #89b4fa; }

/* =========================================
   社交分享
   ========================================= */
.social-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.social-share-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.share-btn.wechat {
    background: rgba(7, 193, 96, 0.15);
    color: #07c160;
}

.share-btn.weibo {
    background: rgba(230, 22, 45, 0.15);
    color: #e6162d;
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.15);
    color: #1da1f2;
}

.share-btn.copy-link {
    background: rgba(201, 168, 108, 0.15);
    color: var(--accent);
}

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

.share-btn.wechat:hover { background: #07c160; color: #fff; }
.share-btn.weibo:hover { background: #e6162d; color: #fff; }
.share-btn.twitter:hover { background: #1da1f2; color: #fff; }
.share-btn.copy-link:hover { background: var(--accent); color: var(--primary); }

/* =========================================
   点赞功能
   ========================================= */
.like-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: rgba(201, 168, 108, 0.05);
    border-radius: var(--radius);
}

.like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 40px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.like-btn:hover {
    border-color: var(--accent);
    background: rgba(201, 168, 108, 0.1);
}

.like-btn.liked {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.like-btn .like-icon {
    font-size: 2rem;
    transition: var(--transition);
}

.like-btn:hover .like-icon {
    transform: scale(1.2);
}

.like-btn.liked .like-icon {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

.like-btn .like-count {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.like-btn .like-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* =========================================
   打赏功能
   ========================================= */
.tip-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.tip-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.tip-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.tip-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tip-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
}

.tip-qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.tip-qr-modal.active {
    opacity: 1;
    visibility: visible;
}

.tip-qr-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.tip-qr-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tip-qr-tab {
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.tip-qr-tab.wechat {
    background: rgba(7, 193, 96, 0.15);
    color: #07c160;
}

.tip-qr-tab.alipay {
    background: rgba(0, 167, 225, 0.15);
    color: #00a7e1;
}

.tip-qr-tab.active.wechat {
    background: #07c160;
    color: #fff;
}

.tip-qr-tab.active.alipay {
    background: #00a7e1;
    color: #fff;
}

.tip-qr-image {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: var(--radius);
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #666;
}

.tip-qr-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =========================================
   标签云
   ========================================= */
.tag-cloud {
    margin: 40px 0;
}

.tag-cloud-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.tag-cloud-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud-item {
    padding: 8px 16px;
    background: rgba(201, 168, 108, 0.1);
    border: 1px solid rgba(201, 168, 108, 0.2);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.tag-cloud-item:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-2px);
}

.tag-cloud-item .tag-count {
    margin-left: 6px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    font-size: 0.75rem;
}

/* =========================================
   文章置顶标记
   ========================================= */
.pinned-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.card.pinned {
    border: 2px solid var(--accent);
    position: relative;
}

.card.pinned::before {
    content: '📌 置顶';
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    z-index: 1;
}

/* =========================================
   访问密码弹窗
   ========================================= */
.password-protect-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.password-protect-content {
    background: var(--bg-card);
    padding: 50px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.password-protect-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.password-protect-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.password-protect-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.password-protect-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 16px;
}

.password-protect-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* =========================================
   访客地图
   ========================================= */
.visitor-map {
    width: 100%;
    height: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.visitor-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.visitor-map-placeholder .map-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* =========================================
   草稿箱
   ========================================= */
.draft-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    margin-left: 8px;
}

.draft-list {
    margin-top: 20px;
}

.draft-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(251, 191, 36, 0.05);
    border: 1px dashed rgba(251, 191, 36, 0.3);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.draft-item:hover {
    border-color: #fbbf24;
}

.draft-info h4 {
    color: var(--text-primary);
    margin-bottom: 6px;
}

.draft-info span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* =========================================
   Markdown编辑器增强
   ========================================= */
.markdown-editor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.markdown-editor-container .editor-side,
.markdown-editor-container .preview-side {
    display: flex;
    flex-direction: column;
}

.editor-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.editor-toolbar button {
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.editor-toolbar button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.markdown-preview {
    flex: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow-y: auto;
    min-height: 300px;
}

.markdown-preview h1 { font-size: 1.8rem; margin: 16px 0; }
.markdown-preview h2 { font-size: 1.5rem; margin: 14px 0; }
.markdown-preview h3 { font-size: 1.2rem; margin: 12px 0; }
.markdown-preview p { margin: 12px 0; line-height: 1.8; }
.markdown-preview code { 
    background: rgba(201, 168, 108, 0.1); 
    padding: 2px 6px; 
    border-radius: 4px;
    color: var(--accent);
}
.markdown-preview pre code {
    background: #1e1e2e;
    display: block;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    color: #cdd6f4;
}

@media (max-width: 900px) {
    .markdown-editor-container {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   响应式补充 - 高级功能
   ========================================= */
@media (max-width: 1200px) {
    .article-toc {
        display: none;
    }
}

@media (max-width: 768px) {
    .social-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .like-section {
        flex-direction: column;
    }
    
    .tip-qr-content {
        padding: 30px 20px;
    }
}
