/*
Theme Name: ACG Card Theme
Theme URI: https://sndow.com/themes/acg-card
Author: Sndow Team
Author URI: https://sndow.com
Description: 一款卡片式二次元博客主题，支持幻灯片、站长联盟、CMS图文模块。
Version: 1.0.0
License: MIT
Tags: acg, anime, card, blog, responsive
*/

/* ========== 基础重置 & 变量 ========== */
:root {
    --primary: #ff6ac1;
    --secondary: #4deeea;
    --accent: #b026ff;
    --bg-dark: #0a0a12;
    --bg-card: rgba(20, 20, 35, 0.75);
    --bg-card-hover: rgba(30, 30, 50, 0.85);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --text: #e8e8f0;
    --text-muted: rgba(255, 255, 255, 0.45);
    --text-dark: rgba(255, 255, 255, 0.25);
    --radius: 20px;
    --radius-sm: 14px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 106, 193, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    font-size: 15px;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(77, 238, 234, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 106, 193, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
}

a { color: var(--primary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }

/* ========== 布局 ========== */
.site-wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-main { display: grid; grid-template-columns: 1fr 320px; gap: 28px; margin-top: 28px; }
@media (max-width: 992px) { .site-main { grid-template-columns: 1fr; } }

/* ========== 头部 ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    margin-bottom: 28px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 106, 193, 0.4);
    font-weight: 700;
}

.site-brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.site-brand span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 导航 */
.navbar-nav { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.navbar-nav li a {
    display: block;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}
.navbar-nav li a:hover,
.navbar-nav li.active a {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(255, 106, 193, 0.1);
}

.header-search { position: relative; }
.header-search input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 14px 8px 36px;
    color: #fff;
    font-size: 0.85rem;
    width: 200px;
    outline: none;
    transition: all 0.3s;
}
.header-search input:focus { width: 260px; border-color: var(--secondary); box-shadow: 0 0 15px rgba(77, 238, 234, 0.1); }
.header-search input::placeholder { color: var(--text-dark); }
.header-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dark);
    font-size: 0.85rem;
    font-style: normal;
}

.mobile-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; }

@media (max-width: 768px) {
    .navbar-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,10,18,0.95); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid var(--border); }
    .navbar-nav.active { display: flex; }
    .header-search { display: none; }
    .mobile-toggle { display: block; }
}

/* ========== 幻灯片 ========== */
.hero-slider {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-height: 380px;
}

.slider-item {
    display: none;
    position: relative;
    width: 100%;
    min-height: 380px;
}
.slider-item.active { display: flex; }

.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.5s;
}
.slider-item:hover .slider-img { opacity: 0.75; }

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,18,0.95) 0%, rgba(10,10,18,0.4) 50%, transparent 100%);
}

.slider-content {
    position: relative;
    z-index: 2;
    padding: 40px 48px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 380px;
}

.slider-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-title {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    font-weight: 700;
}

.slider-title a { color: #fff; }
.slider-title a:hover { color: var(--secondary); }

.slider-excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-dark);
}
.slider-meta span { display: flex; align-items: center; gap: 5px; }

/* 幻灯片控制 */
.slider-controls {
    position: absolute;
    bottom: 24px;
    right: 28px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}
.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 106, 193, 0.4);
}

.slider-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s;
}
.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--primary);
    box-shadow: 0 0 10px rgba(255, 106, 193, 0.5);
}

/* ========== 卡片通用 ========== */
.card-section { margin-bottom: 32px; }

.section-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
}
.section-title .icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,106,193,0.2), rgba(77,238,234,0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary);
    border: 1px solid rgba(255,106,193,0.2);
    font-style: normal;
}

/* ========== 文章卡片网格 ========== */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.post-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.post-card:hover {
    transform: translateY(-6px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.post-card .thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.post-card .thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    border-radius: 0;
}
.post-card:hover .thumb-wrap img { transform: scale(1.08); }

.post-card .thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,18,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.post-card:hover .thumb-overlay { opacity: 1; }

.post-card .cat-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(77,238,234,0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-card .card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.post-card .card-title {
    font-size: 1.05rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
}
.post-card .card-title a { color: #fff; }
.post-card .card-title a:hover { color: var(--primary); }

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

.post-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-dark);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.post-card .card-meta .left { display: flex; align-items: center; gap: 10px; }
.post-card .card-meta .author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

/* ========== 站长联盟 ========== */
.alliance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
@media (max-width: 768px) { .alliance-grid { grid-template-columns: repeat(2, 1fr); } }

.alliance-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    transition: all 0.35s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.alliance-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
    transition: left 0.6s;
}
.alliance-card:hover::after { left: 100%; }
.alliance-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 106, 193, 0.25);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 15px rgba(255, 106, 193, 0.08);
}

.alliance-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 2px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.alliance-card:hover img {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 106, 193, 0.3);
}

.alliance-card .name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.alliance-card .desc {
    font-size: 0.7rem;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== CMS图文 ========== */
.cms-list { display: flex; flex-direction: column; gap: 14px; }

.cms-item {
    display: flex;
    gap: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.cms-item:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.cms-item .thumb {
    width: 100px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.cms-item .info { flex: 1; min-width: 0; }
.cms-item .info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cms-item .info h4 a { color: #fff; }
.cms-item .info h4 a:hover { color: var(--primary); }
.cms-item .info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 侧边栏 ========== */
.sidebar .widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s;
}
.sidebar .widget:hover { border-color: var(--border-hover); }

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 700;
}
.widget-title i { color: var(--primary); font-size: 0.9rem; font-style: normal; }

/* 热门文章 */
.hot-list { display: flex; flex-direction: column; gap: 12px; }
.hot-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.hot-item:last-child { border-bottom: none; padding-bottom: 0; }
.hot-item .num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.hot-item:nth-child(1) .num { background: rgba(255,50,50,0.15); color: #ff4444; }
.hot-item:nth-child(2) .num { background: rgba(255,150,0,0.15); color: #ff9600; }
.hot-item:nth-child(3) .num { background: rgba(255,200,0,0.15); color: #ffc800; }
.hot-item .title {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hot-item .title:hover { color: var(--primary); }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.3s;
}
.tag-cloud a:hover {
    background: rgba(255, 106, 193, 0.15);
    border-color: rgba(255, 106, 193, 0.3);
    color: var(--primary);
    transform: scale(1.05);
}

/* 分类 */
.cat-list { display: flex; flex-direction: column; gap: 6px; }
.cat-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s;
}
.cat-list a:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border);
    color: #fff;
    padding-left: 20px;
}
.cat-list a .count {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.06);
    padding: 2px 8px;
    border-radius: 10px;
    color: var(--text-dark);
}

/* ========== 分页 ========== */
.pagination-wrap { margin: 32px 0; }
.pagination-wrap nav { display: flex; justify-content: center; }
.pagination-wrap ul {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.pagination-wrap li a,
.pagination-wrap li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}
.pagination-wrap li a:hover {
    background: rgba(255, 106, 193, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 106, 193, 0.15);
}
.pagination-wrap li.active span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 106, 193, 0.3);
}
.pagination-wrap li.disabled span { opacity: 0.3; cursor: not-allowed; }

/* ========== 文章详情页 ========== */
.article-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.article-header .post-thumb {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    border: 1px solid var(--border);
}
.article-header h1 {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #fff;
    font-weight: 700;
}
.article-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.article-header .post-meta span { display: flex; align-items: center; gap: 5px; }
.article-header .post-meta .avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.article-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text);
}
.article-content h2,
.article-content h3,
.article-content h4 { color: #fff; margin: 28px 0 14px; font-weight: 700; }
.article-content h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.article-content h3 { font-size: 1.2rem; }
.article-content p { margin-bottom: 16px; }
.article-content img { border-radius: var(--radius-sm); border: 1px solid var(--border); margin: 16px 0; }
.article-content blockquote {
    border-left: 3px solid var(--primary);
    background: rgba(255, 106, 193, 0.05);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 20px 0;
    color: var(--text-muted);
}
.article-content code {
    background: rgba(255,255,255,0.06);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.9em;
    color: var(--secondary);
    font-family: monospace;
}
.article-content pre {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}
.article-content pre code { background: none; padding: 0; color: #c9d1d9; }
.article-content a { color: var(--secondary); border-bottom: 1px dashed rgba(77,238,234,0.3); }
.article-content a:hover { border-bottom-style: solid; }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.article-content th, .article-content td { padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.article-content th { background: rgba(255,255,255,0.03); font-weight: 600; color: #fff; }

/* 相关文章 */
.related-section { margin-top: 28px; }
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

.related-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: all 0.3s;
}
.related-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.related-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 0; }
.related-card .info { padding: 14px; }
.related-card .info h4 { font-size: 0.9rem; color: #fff; line-height: 1.5; font-weight: 600; }
.related-card .info h4 a { color: #fff; }
.related-card .info h4 a:hover { color: var(--primary); }

/* 评论 */
.comments-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    margin-top: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.comments-section h3 { font-size: 1.2rem; margin-bottom: 20px; color: #fff; font-weight: 700; }

.comment-form textarea {
    width: 100%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    color: #fff;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: all 0.3s;
    font-family: inherit;
}
.comment-form textarea:focus { border-color: var(--secondary); box-shadow: 0 0 15px rgba(77,238,234,0.1); }
.comment-form textarea::placeholder { color: var(--text-dark); }

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0;
}
@media (max-width: 480px) { .comment-form .form-row { grid-template-columns: 1fr; } }

.comment-form input[type="text"],
.comment-form input[type="email"] {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
    width: 100%;
}
.comment-form input:focus { border-color: var(--secondary); }
.comment-form input::placeholder { color: var(--text-dark); }

.comment-form button[type="submit"] {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 28px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}
.comment-form button[type="submit"]:hover {
    box-shadow: 0 4px 20px rgba(255, 106, 193, 0.4);
    transform: translateY(-2px);
}

.comment-list { margin-top: 24px; }
.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.comment-item:last-child { border-bottom: none; }
.comment-item .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.comment-item .comment-body { flex: 1; }
.comment-item .comment-author {
    font-weight: 600;
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.comment-item .comment-date {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.comment-item .comment-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.comment-item .comment-reply {
    margin-top: 8px;
    font-size: 0.8rem;
}
.comment-item .comment-reply a { color: var(--text-dark); }
.comment-item .comment-reply a:hover { color: var(--primary); }

/* ========== 页脚 ========== */
.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--border);
    background: rgba(10, 10, 18, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 0 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-col h4 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 16px;
    font-weight: 700;
}
.footer-col p,
.footer-col a {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 2;
    display: block;
}
.footer-col a:hover { color: var(--primary); padding-left: 4px; }

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-dark);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* ========== 独立页面 ========== */
.page-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.page-content h1 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
}

/* ========== 搜索/归档页 ========== */
.archive-header {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.archive-header h1 {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 700;
}
.archive-header .archive-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .slider-content { padding: 28px; min-height: 320px; }
    .slider-title { font-size: 1.4rem; }
    .hero-slider { min-height: 320px; }
}

@media (max-width: 640px) {
    .slider-content { padding: 20px; min-height: 280px; }
    .slider-title { font-size: 1.2rem; }
    .slider-excerpt { -webkit-line-clamp: 2; font-size: 0.85rem; }
    .hero-slider { min-height: 280px; }
    .post-grid { grid-template-columns: 1fr; }
    .alliance-grid { grid-template-columns: repeat(2, 1fr); }
    .article-header, .article-content, .comments-section, .page-content { padding: 20px; }
    .article-header h1 { font-size: 1.4rem; }
    .related-grid { grid-template-columns: 1fr; }
}

/* ========== 动画 ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.post-card, .cms-item, .alliance-card, .widget {
    animation: fadeInUp 0.5s ease forwards;
}
