/* ===== style.css - 完整样式文件 ===== */
/* 最后更新：2026-02-27 */

/* ===== 基础变量 ===== */
:root {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f172a;
        --surface-color: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #334155;
        --accent-color: #3b82f6;
        --accent-hover: #2563eb;
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
        --hero-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    }
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border-color: #e2e8f0;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --hero-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="dark"] {
    --bg-color: #0f172a;
    --surface-color: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border-color: #334155;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --hero-bg: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

/* ===== 头图 ===== */
.hero {
    background: var(--hero-bg);
    color: white;
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
    animation: heroGlow 8s infinite alternate;
}

@keyframes heroGlow {
    0% { box-shadow: inset 0 0 30px rgba(255,255,255,0.1); }
    100% { box-shadow: inset 0 0 60px rgba(255,255,255,0.3); }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== 导航栏 ===== */
.navbar {
    background: var(--surface-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(var(--surface-color-rgb), 0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: none;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

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

.navbar a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.2s;
}

.navbar a:hover::after {
    width: 100%;
}

.username {
    color: var(--accent-color);
    font-weight: 500;
}

.theme-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 5px 10px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
}

.theme-btn:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* ===== 卡片通用 ===== */
.card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

/* ===== 帖子列表 ===== */
.post-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.sort-tabs {
    display: flex;
    gap: 5px;
    background: var(--surface-color);
    border-radius: 30px;
    padding: 5px;
    border: 1px solid var(--border-color);
}

.sort-tabs a {
    padding: 5px 15px;
    border-radius: 30px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.sort-tabs a.active {
    background: var(--accent-color);
    color: white;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--surface-color);
    color: var(--text-primary);
    min-width: 200px;
}

.search-form button {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-form button:hover {
    background: var(--accent-hover);
}

.post {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.post:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.post.featured {
    border-left: 4px solid gold;
}

.post h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post h3 a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.3rem;
}

.post h3 a:hover {
    color: var(--accent-color);
}

.post-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

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

.post-meta i {
    font-style: normal;
    color: var(--accent-color);
}

.post-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 6px 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--accent-hover);
}

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

.btn-outline:hover {
    background: var(--surface-color);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

/* 收藏按钮 */
.favorite-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.favorite-btn.favorited {
    background: gold;
    border-color: gold;
    color: #000;
}

/* 帖子详情页 */
.post-detail .post-content {
    background: var(--surface-color);
    border-radius: var(--radius);
    padding: 30px;
    margin: 20px 0;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    font-size: 1.1rem;
    line-height: 1.8;
}

.comment {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 15px;
    margin: 10px 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.comment-content {
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 10px;
}

/* 分类标签 */
.category-tag {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-right: 10px;
}

/* 称号 */
.user-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-left: 5px;
}

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

.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* 页脚 */
.footer {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
}

.acknowledgment {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 { font-size: 2rem; }
    .nav-container { flex-direction: column; gap: 10px; }
    .post-meta { flex-direction: column; gap: 5px; }
    .search-form { width: 100%; }
    .search-form input { flex: 1; }
}

/* ===== 认证卡片 ===== */
.auth-card {
    max-width: 400px;
    margin: 40px auto;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.auth-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--bg-color);
    color: var(--text-primary);
    transition: border-color 0.2s;
}

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

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

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

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== 报名卡片 ===== */
.signup-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    margin: 30px 0;
    box-shadow: var(--shadow);
}

.signup-card h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.signup-form .form-group {
    margin-bottom: 15px;
}

.signup-form label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.signup-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background: var(--bg-color);
    color: var(--text-primary);
}

.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
}

.signed-message {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #28a745;
}

.login-prompt {
    text-align: center;
    font-size: 1rem;
}

.login-prompt a {
    color: var(--accent-color);
    font-weight: 500;
}

/* ===== 欢迎横幅 (保留以备将来使用) ===== */
.welcome-banner {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: white;
    padding: 40px 20px;
    border-radius: var(--radius);
    text-align: center;
    margin-bottom: 30px;
}

.welcome-banner h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.welcome-banner p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.welcome-banner .btn {
    background: white;
    color: var(--accent-color);
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
}

.welcome-banner .btn:hover {
    background: #f0f0f0;
}

/* ===== 分类按钮样式 ===== */
.category-filter {
    margin: 20px 0;
}

.category-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-buttons .btn {
    padding: 6px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: 1px solid var(--accent-color);
}

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

/* ===== 首页专属样式 ===== */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius);
    margin-bottom: 40px;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 10px auto;
}

/* 动画类 */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.5s ease forwards;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.5s ease forwards;
}

.slide-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.5s ease forwards;
}

@keyframes slideInLeft {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInUp {
    to { opacity: 1; transform: translateY(0); }
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: background 0.2s;
}

.feature-card:hover .card-btn {
    background: var(--accent-hover);
}

/* 预览区域 */
.preview-section {
    margin-top: 60px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-primary);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.preview-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.preview-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.preview-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.preview-list {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}

.preview-list li {
    margin-bottom: 12px;
}

.preview-list a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.preview-list .title {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
    transition: color 0.2s;
}

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

.preview-list .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.empty {
    color: var(--text-muted);
    text-align: center;
    padding: 15px;
}

.more-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}

.more-link:hover {
    transform: translateX(4px);
    text-decoration: underline;
}

/* 淡入动画 */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .card-grid { grid-template-columns: 1fr; }
    .preview-grid { grid-template-columns: 1fr; }
}

/* ===== 科技感首页样式 ===== */
.tech-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 50%, #0a0f1f, #030614);
    color: white;
    padding: 2rem;
}

.tech-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
}

/* 故障艺术标题 */
.glitch {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.05em -0.025em 0 rgba(0, 255, 255, 0.75);
    animation: glitch 500ms infinite;
    margin-bottom: 1rem;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-anim-1 0.3s infinite linear alternate-reverse;
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
}

.glitch::after {
    animation: glitch-anim-2 0.4s infinite linear alternate-reverse;
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
}

@keyframes glitch {
    0% { transform: skew(0deg); }
    20% { transform: skew(2deg); }
    40% { transform: skew(-2deg); }
    60% { transform: skew(1deg); }
    80% { transform: skew(-1deg); }
    100% { transform: skew(0deg); }
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 70px, 0); }
    20% { clip: rect(85px, 9999px, 95px, 0); }
    40% { clip: rect(12px, 9999px, 33px, 0); }
    60% { clip: rect(43px, 9999px, 58px, 0); }
    80% { clip: rect(71px, 9999px, 89px, 0); }
    100% { clip: rect(34px, 9999px, 52px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 89px, 0); }
    20% { clip: rect(42px, 9999px, 57px, 0); }
    40% { clip: rect(94px, 9999px, 100px, 0); }
    60% { clip: rect(23px, 9999px, 40px, 0); }
    80% { clip: rect(79px, 9999px, 93px, 0); }
    100% { clip: rect(51px, 9999px, 66px, 0); }
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 按钮组 */
.button-group {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.tech-btn {
    position: relative;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
}

.tech-btn.primary {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    color: white;
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.5);
}

.tech-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(0, 198, 255, 0.8);
    backdrop-filter: blur(5px);
}

.tech-btn .btn-text {
    position: relative;
    z-index: 2;
}

.tech-btn .btn-glow {
    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;
    z-index: 1;
}

.tech-btn:hover .btn-glow {
    left: 100%;
}

.tech-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 198, 255, 0.6);
}

.tech-btn.primary:hover {
    background: linear-gradient(45deg, #0072ff, #00c6ff);
}

.tech-btn.secondary:hover {
    background: rgba(0, 198, 255, 0.1);
    border-color: #00c6ff;
}

/* 背景网格线 */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
}

/* 浮动形状 */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 10s infinite;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -150px;
    right: -100px;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(5%, 5%) scale(1.1); }
    50% { transform: translate(-5%, -5%) scale(0.9); }
    75% { transform: translate(-5%, 5%) scale(1.05); }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .button-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tech-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .glitch {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
}

/* ===== 补充样式（模块专用）===== */

/* about 页面 */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--surface-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.about-container h1 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}
.about-container ul {
    margin: 1.5rem 0;
    padding-left: 2rem;
}
.about-container li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* 管理员按钮混合样式 */
.btn.admin {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 6px 16px;
    text-decoration: none;
    font-size: 0.9rem;
}
.btn.admin:hover {
    background: var(--accent-hover);
}

/* EFB 卡片 */
.metar-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: var(--shadow);
}
.metar-label {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.metar-raw {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: var(--radius);
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* 活动模块 */
.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--surface-color);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}
.meta p {
    margin: 0;
    color: var(--text-secondary);
}
.meta strong {
    color: var(--accent-color);
    margin-right: 0.3rem;
}
.event-desc {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 1.5rem 0;
    white-space: pre-wrap;
}
.event-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}
.event-item h3 a {
    color: var(--text-primary);
    text-decoration: none;
}
.event-item h3 a:hover {
    color: var(--accent-color);
}

/* 文件列表响应式容器 */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}
.table-responsive table {
    width: 100%;
    border-collapse: collapse;
}
.table-responsive th,
.table-responsive td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.table-responsive th {
    background: var(--surface-color);
    color: var(--text-secondary);
    font-weight: 600;
}

/* 帖子详情页补充 */
.post-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}
.featured-badge {
    display: inline-block;
    background: gold;
    color: #000;
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.post-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* 小按钮样式 */
.btn-small {
    padding: 4px 12px;
    font-size: 0.8rem;
}

/* 表单美化（通用） */
form label {
    display: block;
    margin: 1rem 0 0.3rem;
    color: var(--text-secondary);
    font-weight: 500;
}
form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="datetime-local"],
form input[type="number"],
form textarea,
form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
}
form input:focus,
form textarea:focus,
form select:focus {
    border-color: var(--accent-color);
    outline: none;
}
form textarea {
    resize: vertical;
    min-height: 120px;
}
form button[type="submit"] {
    margin-top: 1.5rem;
}