/* 前台专题展示页面 - 样式文件 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 30px 20px;
    padding-bottom: 80px;
}

.header {
    max-width: 1000px;
    margin: 0 auto 24px;
    text-align: center;
    padding: 40px 30px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    overflow: hidden;
    position: relative;
}

/* 顶部闪烁线条 */
.header .shine-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #00ffff, #0000ff, #8b00ff, #ff0000);
    background-size: 200% 100%;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo {
    font-size: 2.4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 40px rgba(255,215,0,0.4);
    letter-spacing: 4px;
    animation: logoPulse 2s ease-in-out infinite;
}

.logo span { color: #ffd700; }

@keyframes logoPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(255,215,0,0.8), 0 0 40px rgba(255,215,0,0.4); }
    50% { text-shadow: 0 0 30px rgba(255,215,0,1), 0 0 60px rgba(255,215,0,0.6); }
}

.line {
    width: 2px;
    height: 50px;
    background: linear-gradient(180deg, transparent, #fff, transparent);
    animation: linePulse 1.5s ease-in-out infinite;
}

@keyframes linePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 8px;
    text-shadow: 0 0 15px rgba(255,255,255,0.6);
    animation: subtitleGlow 2s ease-in-out infinite alternate;
}

@keyframes subtitleGlow {
    from { text-shadow: 0 0 10px rgba(255,255,255,0.5); }
    to { text-shadow: 0 0 25px rgba(255,255,255,0.9), 0 0 40px rgba(255,255,255,0.4); }
}

.desc {
    margin-top: 15px;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    letter-spacing: 2px;
}

/* 专题卡片 */
.topic-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.topic-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease;
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 彩色头部区域 */
.topic-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.topic-icon {
    font-size: 2rem;
}

.topic-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(255,255,255,0.95);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #333;
}

/* 白色内容区域 */
.topic-body {
    padding: 10px 12px;
    background: #fff;
}

.topic-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-bottom: 6px;
}

.topic-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.topic-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #999;
}

.topic-hot {
    color: #ff6b6b;
    font-weight: 600;
}

/* 分页 */
.pagination {
    max-width: 1000px;
    margin: 30px auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 42px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    text-decoration: none;
}

.page-btn:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.page-btn.current {
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 100%);
    border-color: #ffd700;
    color: #333;
    box-shadow: 0 4px 15px rgba(255,215,0,0.4);
}

.page-btn.disabled,
.page-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    border-color: rgba(255,255,255,0.15);
}

.page-info {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 12px;
    background: rgba(0,0,0,0.2);
    padding: 8px 16px;
    border-radius: 20px;
}

/* 底部版权 */
.footer {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.footer .brand { color: #ffd700; font-weight: 600; }
.footer .divider { margin: 0 10px; opacity: 0.5; }

/* 响应式 */
@media (max-width: 768px) {
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .title-row { flex-direction: column; gap: 10px; }
    .line { width: 60px; height: 2px; }
    .logo { font-size: 1.8rem; }
    .subtitle { font-size: 1.4rem; letter-spacing: 4px; }
    .page-btn { width: 35px; height: 35px; font-size: 0.9rem; }
}
