/* 首页专用样式 */

/* 防止滚动条抖动 */
html {
    overflow-y: scroll; /* 始终显示垂直滚动条 */
}

/* 防止页面闪动的平滑过渡 */
body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* 主要内容区域最小高度，防止布局跳动 */
.main-content {
    min-height: 600px;
    transition: opacity 0.3s ease-in-out;
}

/* 首页特定样式 */
.hero {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: #1e293b;
    padding: 60px 0;
    text-align: center;
    backdrop-filter: blur(10px);
    border-radius: 0;
    margin: 0;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #64748b;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats {
    padding: 40px 0;
    background: white;
    margin: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 36px;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.content-section {
    padding: 60px 0;
}

/* 统计增长率样式 */
.stat-item {
    position: relative;
}

.growth {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
}

.growth.positive {
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.growth.negative {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* 专栏状态样式 */
.column-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
}

.status.completed {
    background: #d4edda;
    color: #155724;
}

.status.updating {
    background: #fff3cd;
    color: #856404;
}

.status.draft {
    background: #f8d7da;
    color: #721c24;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 0 20px 20px 20px;
    text-align: center;
}

.qrcode-container img {
    border: 1px solid #eee;
    border-radius: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}