/* ========================================
   深色AI高科技风格 - Dark Tech Theme
   基于 Arwes 设计系统 - 高保真还原
   ======================================== */

/* 引入科幻字体 */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Orbitron:wght@400;500;600;700;900&family=Share+Tech+Mono&family=Titillium+Web:wght@300;400;600&display=swap');

/* 全局变量 - Arwes 配色系统 */
:root {
    /* Arwes 标准配色 */
    --arwes-primary: hsl(180deg 88.18% 56.86%);  /* 青色主色 */
    --arwes-secondary: hsl(60deg 100% 75%);       /* 黄色次色 */
    --arwes-tertiary: hsl(300deg 100% 50%);       /* 紫色第三色 */
    
    /* 背景色 */
    --bg-primary: hsl(180deg 50% 3%);             /* 深蓝黑 */
    --bg-secondary: hsla(180, 100%, 10%, 0.1);    /* 半透明蓝 */
    --bg-card: hsla(180, 100%, 10%, 0.1);         /* 卡片背景 */
    --bg-card-hover: hsla(180, 100%, 10%, 0.2);   /* 卡片悬停 */
    
    /* 强调色 */
    --accent-primary: hsl(180deg 88.18% 56.86%);
    --accent-secondary: hsl(60deg 100% 75%);
    --accent-tertiary: hsl(300deg 100% 50%);
    --accent-gradient: linear-gradient(135deg, 
        hsl(180deg 88.18% 56.86%) 0%, 
        hsl(60deg 100% 75%) 50%, 
        hsl(300deg 100% 50%) 100%
    );
    
    /* 文字色 */
    --text-primary: hsl(180deg 50% 90%);
    --text-secondary: hsla(180, 50%, 70%, 0.8);
    --text-muted: hsla(180, 50%, 50%, 0.5);
    
    /* 边框色 */
    --border-color: hsla(180, 33%, 25%, 0.5);
    --border-hover: hsla(180, 33%, 30%, 0.5);
    --border-glow: hsla(180, 100%, 50%, 0.3);
    
    /* 发光效果 */
    --glow-cyan: 0 0 20px hsla(180, 100%, 50%, 0.3);
    --glow-yellow: 0 0 20px hsla(60, 100%, 50%, 0.3);
    --glow-purple: 0 0 20px hsla(300, 100%, 50%, 0.3);
    
    /* 字体 */
    --font-primary: 'Titillium Web', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-tech: 'Orbitron', 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
    
    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-2xl: 60px;
    
    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 过渡 */
    --transition-fast: 0.1s ease-out;
    --transition-normal: 0.2s ease-out;
    --transition-slow: 0.4s ease-out;
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局链接样式 - 去除下划线 */
a {
    text-decoration: none;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    background-image: 
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 背景网格线效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(18, 24, 37, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-tech);
    font-size: 28px;
    font-weight: 700;
    background: var(--arwes-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
    text-transform: uppercase;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.hero {
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: var(--arwes-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero p {
    font-size: 20px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Entry Grid */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.entry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.entry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--arwes-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.entry-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 212, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.entry-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: var(--glow-cyan), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.entry-card:hover::before {
    opacity: 1;
}

.entry-card:hover::after {
    opacity: 1;
}

.entry-card.weibo:hover {
    border-color: #ec4899;
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.3), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.entry-card.community:hover {
    border-color: #7c3aed;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.entry-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.entry-card h2,
.entry-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.entry-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 15px;
}

/* Admin Entry */
.admin-entry {
    text-align: center;
    margin-top: 50px;
}

.admin-entry a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent-primary);
    border-radius: 30px;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.admin-entry a:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow: var(--glow-cyan);
}

.admin-entry img {
    width: 24px;
    height: 24px;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Invite Section */
.invite-section {
    text-align: center;
    padding: 30px 0;
}

.invite-section img {
    max-width: 280px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* Form Styles */
.form-container {
    max-width: 400px;
    margin: 60px auto;
    padding: 40px;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    background: var(--arwes-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px;
    color: var(--text-primary) !important;
    font-size: 16px;
    transition: all 0.3s;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary) !important;
    box-shadow: var(--glow-cyan);
}

.btn {
    width: 100%;
    padding: 15px;
    background: var(--arwes-primary);
    border: none;
    border-radius: 10px;
    color: var(--bg-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-cyan), 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--glow-cyan);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary) !important;
}

.form-footer a {
    color: var(--accent-primary) !important;
    text-decoration: none;
}

/* Weibo & Community Styles */
.module-header {
    padding: 40px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.module-header h1 {
    font-size: 36px;
    background: var(--arwes-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-card,
.thread-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.post-card:hover,
.thread-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--glow-cyan);
}

.post-content,
.thread-content {
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 15px;
}

.post-meta,
.thread-meta {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    gap: 20px;
}

/* Buttons */
.btn-like,
.btn-comment,
.btn-repost {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-like:hover,
.btn-comment:hover,
.btn-repost:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Board List */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.board-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.board-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
}

.board-card h3 {
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.board-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Admin Dashboard */
.admin-container {
    padding: 40px 0;
}

.admin-header {
    margin-bottom: 40px;
}

.admin-header h1 {
    font-size: 32px;
    background: var(--arwes-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.stat-card h3 {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 36px;
    font-weight: 700;
    background: var(--arwes-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
}

.admin-table th,
.admin-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-weight: 600;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .entry-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        margin: 20px;
        padding: 30px 20px;
    }
}


/* SVG 图标样式 */
.entry-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: block;
    transition: transform 0.3s ease;
}

.entry-card:hover .entry-icon {
    transform: scale(1.1);
}

/* 导航链接样式 */
nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

nav a:hover {
    color: var(--accent-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--arwes-primary);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Header 搜索框 */
.header-search {
    position: relative;
    margin-left: 16px;
    display: flex;
    align-items: center;
}

.header-search input {
    width: 160px;
    padding: 6px 30px 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 13px;
    transition: all 0.3s;
}

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

.header-search input:focus {
    outline: none;
    border-color: var(--arwes-primary);
    width: 200px;
}

.header-search svg {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

/* ==================== 高级文字特效 ==================== */

/* 科技感标题 */
.tech-title {
    font-family: var(--font-tech);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 渐变文字 */
.gradient-text {
    background: var(--arwes-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 发光文字 */
.glow-text {
    text-shadow: 
        0 0 10px rgba(0, 212, 255, 0.5),
        0 0 20px rgba(0, 212, 255, 0.3);
}

/* 霓虹文字 */
.neon-text {
    color: var(--accent-primary);
    text-shadow:
        0 0 5px var(--accent-primary),
        0 0 10px var(--accent-primary),
        0 0 20px var(--accent-primary),
        0 0 40px var(--accent-primary);
}

/* 等宽文字（代码风格） */
.mono-text {
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

/* ==================== 高级卡片效果 ==================== */

/* 玻璃态卡片 */
.glass-card {
    background: rgba(26, 34, 53, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 55, 72, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 全息卡片 */
.hologram-card {
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.1) 0%,
        rgba(124, 58, 237, 0.1) 50%,
        rgba(236, 72, 153, 0.1) 100%
    );
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.hologram-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 212, 255, 0.03) 2px,
        rgba(0, 212, 255, 0.03) 4px
    );
    pointer-events: none;
}

/* ==================== 高级按钮效果 ==================== */

/* 赛博朋克按钮 */
.cyber-btn {
    position: relative;
    overflow: hidden;
    background: var(--arwes-primary);
    border: none;
    padding: 15px 30px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

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

.cyber-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 霓虹按钮 */
.neon-btn {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.neon-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    box-shadow:
        0 0 10px var(--accent-primary),
        0 0 20px var(--accent-primary),
        0 0 30px var(--accent-primary);
}

/* ==================== 数据展示 ==================== */

/* 数据标签 */
.data-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 数据值 */
.data-value {
    font-family: var(--font-tech);
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* 状态指示器 */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-active {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
}

.status-active::before {
    background: var(--accent-primary);
}

.status-inactive {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-muted);
}

.status-inactive::before {
    background: var(--text-muted);
}

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

/* ==================== 加载状态 ==================== */

/* 骨架屏 */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 25%,
        var(--bg-card-hover) 50%,
        var(--bg-card) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==================== 滚动条样式 ==================== */

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* ==================== 选择文本样式 ==================== */

::selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(0, 212, 255, 0.3);
    color: var(--text-primary);
}

/* ==================== 工具提示 ==================== */

.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ==================== 分隔线 ==================== */

/* 科技感分隔线 */
.tech-divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-primary),
        transparent
    );
    margin: 40px 0;
}

/* 渐变分隔线 */
.gradient-divider {
    height: 2px;
    background: var(--arwes-primary);
    margin: 40px 0;
}

/* ==================== 徽章 ==================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.badge-secondary {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge-tertiary {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-tertiary);
    border: 1px solid rgba(236, 72, 153, 0.3);
}

/* ==================== 动画延迟类 ==================== */

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* ==================== 响应式优化 ==================== */

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 40px;
    }

    nav a {
        margin-left: 14px;
        font-size: 14px;
    }

    .header-search input {
        width: 120px;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .entry-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .logo {
        font-size: 24px;
    }

    nav a {
        margin-left: 10px;
        font-size: 13px;
    }

    .header-search {
        margin-left: 8px;
    }

    .header-search input {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .entry-card h2 {
        font-size: 24px;
    }
}

/* ==================== 打印样式 ==================== */

@media print {
    body {
        background: white;
        color: black;
    }
    
    .entry-card,
    .post-card,
    .thread-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
