/* ============================================
   玻璃博客 - 玻璃液态效果样式
   Glass Blog - Glassmorphism Style
   ============================================ */

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

:root {
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-bg-hover: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-light: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --glass-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --accent: #7c3aed;
    --accent-light: #8b5cf6;
    --accent-soft: rgba(124, 58, 237, 0.1);
    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* 动态光斑背景 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    animation: floatBg 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatBg {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-2%, 2%) rotate(1deg); }
    66% { transform: translate(2%, -1%) rotate(-1deg); }
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========== 导航栏 ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border-light);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

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

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: all 0.25s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-username {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
}

.nav-btn {
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s ease;
}

.nav-btn:hover {
    background: var(--glass-bg-hover);
}

.nav-btn.primary {
    background: var(--accent-gradient);
    border: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* ========== 头部英雄区 ========== */
.hero-section {
    padding: 60px 0 40px;
    text-align: center;
}

.hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border: 3px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1f2937 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 25px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-badge {
    padding: 6px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

/* ========== 区块标题 ========== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0 20px;
}

.section-title h2 {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title .icon {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.section-title .more-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-light);
    transition: all 0.25s ease;
}

.section-title .more-link:hover {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
}

/* ========== 玻璃卡片 ========== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-hover);
}

/* ========== 文章卡片 ========== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-card {
    padding: 24px;
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.article-card h3 {
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    transition: color 0.25s ease;
}

.article-card:hover h3 {
    color: var(--accent-light);
}

.article-card .date {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
    margin-left: 15px;
    padding-top: 4px;
}

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

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 3px 10px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 12px;
    font-size: 12px;
    color: #7c3aed;
    text-decoration: none;
    transition: all 0.25s ease;
}

.tag:hover {
    background: rgba(124, 58, 237, 0.18);
}

.article-meta-info {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 12px;
}

.article-meta-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== 资源卡片 ========== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.resource-card {
    padding: 20px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.resource-card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.resource-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

.resource-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--glass-border-light);
}

.resource-meta {
    display: flex;
    gap: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.resource-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.resource-badge.public {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.resource-badge.login {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ========== 详情页 ========== */
.detail-header {
    padding: 40px 0 20px;
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.detail-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-content {
    padding: 30px;
    margin-bottom: 20px;
}

.detail-content p {
    margin-bottom: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.detail-content h2 {
    font-size: 20px;
    margin: 30px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border-light);
}

.detail-content h3 {
    font-size: 17px;
    margin: 24px 0 12px;
}

.detail-content ul,
.detail-content ol {
    margin: 16px 0;
    padding-left: 24px;
    color: var(--text-secondary);
}

.detail-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.detail-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 16px 0;
}

.detail-content a {
    color: var(--accent-light);
    text-decoration: none;
}

.detail-content blockquote {
    padding: 15px 20px;
    background: rgba(124, 58, 237, 0.06);
    border-left: 4px solid var(--accent);
    margin: 16px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}

.detail-content pre {
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 18px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.6;
}

.detail-content code {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #7c3aed;
}

.detail-content pre code {
    background: none;
    padding: 0;
}

/* 代码高亮 */
pre code .php-keyword { color: #7c3aed; font-weight: 500; }
pre code .php-string { color: #059669; }
pre code .php-comment { color: #9ca3af; font-style: italic; }
pre code .php-function { color: #2563eb; }
pre code .php-number { color: #d97706; }

/* ========== 资源详情 ========== */
.resource-detail-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.resource-detail-preview {
    aspect-ratio: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    overflow: hidden;
}

.resource-detail-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resource-detail-info h1 {
    font-size: 24px;
    margin-bottom: 12px;
}

.resource-detail-info .summary {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.resource-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.resource-meta-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-light);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
}

.resource-meta-item .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.resource-meta-item .value {
    font-size: 14px;
    font-weight: 500;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.download-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.action-btns {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.action-btn:hover {
    background: var(--glass-bg-hover);
}

.action-btn.active {
    background: rgba(236, 72, 153, 0.1);
    border-color: rgba(236, 72, 153, 0.2);
    color: #db2777;
}

/* ========== 评论区 ========== */
.comments-section {
    padding: 25px;
    margin-top: 25px;
}

.comments-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: all 0.25s ease;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-light);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-form input {
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.25s ease;
}

.comment-form input:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-form .submit-row {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-list {
    margin-top: 25px;
}

.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border-light);
}

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

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.comment-user {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-user img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-user .name {
    font-weight: 500;
    font-size: 14px;
}

.comment-user .time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.comment-content {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    padding-left: 48px;
}

/* ========== 按钮 ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-outline {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: var(--glass-bg-hover);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

/* ========== 提示框 ========== */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #d97706;
}

.alert-info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #2563eb;
}

/* ========== 分页 ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
}

/* ========== 搜索框 ========== */
.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.search-box input {
    flex: 1;
    padding: 12px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-light);
}

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

.search-box button {
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.25s ease;
}

/* ========== 幻灯片轮播 ========== */
.slider {
    position: relative;
    margin: 25px 0 10px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(20px);
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    aspect-ratio: 16 / 7;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.slide:nth-child(1) {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.12) 100%);
}

.slide:nth-child(2) {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.12) 100%);
}

.slide:nth-child(3) {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(59, 130, 246, 0.12) 100%);
}

.slide:nth-child(4) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(236, 72, 153, 0.12) 100%);
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.4) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    padding: 40px 60px;
    max-width: 700px;
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.slide-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.slide-btn {
    display: inline-block;
    padding: 10px 28px;
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.slider-arrow:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-arrow.prev {
    left: 20px;
}

.slider-arrow.next {
    right: 20px;
}

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

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 28px;
    border-radius: 5px;
    background: var(--accent);
}

@media (max-width: 640px) {
    .slide {
        aspect-ratio: 4 / 3;
    }
    
    .slide-content {
        padding: 20px 30px;
    }
    
    .slide-title {
        font-size: 22px;
    }
    
    .slide-subtitle {
        font-size: 13px;
    }
    
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .slider-arrow.prev { left: 10px; }
    .slider-arrow.next { right: 10px; }
}

/* ========== 侧边栏 ========== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 25px;
    padding: 30px 0;
}

.main-area {
    min-width: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-widget {
    padding: 20px;
}

.sidebar-widget h4 {
    font-size: 15px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border-light);
}

/* 侧边栏 - 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* 侧边栏 - 最新评论 */
.recent-comments li {
    list-style: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border-light);
    display: flex;
    gap: 10px;
}

.recent-comments li:last-child {
    border-bottom: none;
}

.recent-comments img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.recent-comment-content {
    flex: 1;
    min-width: 0;
}

.recent-comment-content .name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.recent-comment-content .text {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========== 底部 ========== */
.footer {
    text-align: center;
    padding: 40px 0 30px;
    color: var(--text-muted);
    font-size: 13px;
    border-top: 1px solid var(--glass-border-light);
    margin-top: 50px;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--text-secondary);
}

/* ========== 表单通用 ========== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

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

/* ========== 登录/注册页 ========== */
.auth-page {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 35px;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 22px;
}

.auth-card .btn {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-light);
    text-decoration: none;
}

/* ========== 用户中心 ========== */
.profile-header {
    padding: 40px 0 20px;
    text-align: center;
}

.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 3px solid var(--glass-border);
    object-fit: cover;
}

.profile-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
}

.profile-sign {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.profile-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 25px;
    background: var(--glass-bg);
    padding: 5px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border-light);
    backdrop-filter: blur(10px);
}

.profile-tab {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
}

.profile-tab:hover,
.profile-tab.active {
    background: var(--accent-gradient);
    color: #fff;
}

/* ========== 后台管理 ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 220px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border-light);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--glass-border-light);
    margin-bottom: 15px;
}

.admin-menu {
    list-style: none;
}

.admin-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.25s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent);
    border-left: 3px solid var(--accent);
}

.admin-main {
    flex: 1;
    margin-left: 220px;
    padding: 25px 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border-light);
}

.admin-header h1 {
    font-size: 22px;
}

/* 后台统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 25px;
}

.stat-card {
    padding: 20px;
}

.stat-card .number {
    font-size: 28px;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-card .label {
    color: var(--text-muted);
    font-size: 13px;
}

/* 后台表格 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.admin-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: #f8fafc;
    border-bottom: 1px solid var(--glass-border-light);
}

.admin-table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--glass-border-light);
    color: var(--text-secondary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: var(--glass-bg-hover);
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.publish,
.status-badge.approved,
.status-badge.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-badge.draft,
.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.status-badge.rejected,
.status-badge.banned {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

/* 操作链接 */
.action-links {
    display: flex;
    gap: 12px;
}

.action-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.25s ease;
}

.action-links a:hover {
    color: var(--text-primary);
}

.action-links a.delete {
    color: #dc2626;
}

/* 后台表单 */
.admin-form {
    padding: 25px;
}

.admin-form h3 {
    margin: 25px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border-light);
    font-size: 17px;
}

.admin-form h3:first-child {
    margin-top: 0;
}

/* ========== 关于页 ========== */
.about-content {
    padding: 30px;
    margin-bottom: 20px;
}

.about-content h2 {
    margin: 25px 0 15px;
}

.about-content p {
    margin-bottom: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ========== 公告横幅 ========== */
.announcement-bar {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border-light);
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .resource-detail-header {
        grid-template-columns: 1fr;
    }
    
    .resource-detail-preview {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .admin-sidebar {
        width: 60px;
    }
    
    .admin-sidebar .logo span,
    .admin-menu a .menu-text {
        display: none;
    }
    
    .admin-menu a {
        justify-content: center;
        padding: 12px 0;
    }
    
    .admin-menu a .icon {
        font-size: 18px;
    }
    
    .admin-main {
        margin-left: 60px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 15px;
        gap: 5px;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-section {
        padding: 40px 0 20px;
    }
    
    .resource-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .resource-meta-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .detail-title {
        font-size: 22px;
    }
    
    .detail-content {
        padding: 20px;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-tabs {
        overflow-x: auto;
        justify-content: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
    
    .admin-main {
        padding: 15px;
        margin-left: 50px;
    }
    
    .admin-sidebar {
        width: 50px;
    }
    
    .admin-header h1 {
        font-size: 18px;
    }
    
    .admin-form h3 {
        font-size: 15px;
    }
    
    .navbar .nav-user .nav-username {
        display: none;
    }
}
