/**
 * JefCounts MVP统计系统 - 首页样式
 * 参考 Plausible.io 设计风格：简洁、专业、现代
 */

/* ===== 引入Bootstrap Icons ===== */
@import url('/assets/css/bootstrap-icons.css');

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #ffffff;
    color: #1e293b;
    line-height: 1.6;
    font-size: 14px;
}

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

/* ===== 英雄区域 ===== */
.hero {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-align: center;
    padding: 80px 40px;
    margin: 0 40px 80px 40px;
    border-radius: 0 0 20px 20px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.btn-hero {
    display: inline-block;
    padding: 16px 32px;
    background: white;
    color: #3b82f6;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===== 功能特点网格 ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 40px 80px 40px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0f172a;
}

.feature-desc {
    color: #64748b;
    line-height: 1.6;
    font-size: 15px;
}

/* ===== 统计演示 ===== */
.stats-demo {
    background: #f8fafc;
    padding: 60px 40px;
    margin: 80px 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.stats-demo h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.demo-stat {
    background: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.demo-stat:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.demo-number {
    font-size: 36px;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 8px;
}

.demo-label {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* ===== 内容区域 ===== */
.home-content {
    padding: 0 40px 80px;
}

.home-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.home-card h2 {
    margin-bottom: 24px;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
}

.home-card h4 {
    color: #374151;
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
}

.home-card ul {
    color: #64748b;
    line-height: 1.8;
    padding-left: 20px;
}

.home-card li {
    margin-bottom: 4px;
}

.feature-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

/* ===== 使用说明 ===== */
.usage-guide {
    background: #f8fafc;
    padding: 32px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.usage-guide h4 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
}

.usage-guide p {
    margin-bottom: 12px;
    color: #475569;
    line-height: 1.6;
}

.code-block {
    display: block;
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0 24px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 13px;
    color: #475569;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
}

.credentials {
    background: #dbeafe;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #93c5fd;
    margin-top: 16px;
}

.credentials strong {
    color: #1e40af;
}

/* ===== 页脚 ===== */
.home-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    color: #64748b;
    font-size: 14px;
    border-top: 1px solid #e2e8f0;
    margin-top: 60px;
}

.footer-left p,
.footer-right p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.footer-left {
    flex: 1;
}

.footer-right {
    flex: 1;
    text-align: right;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px;
        margin: 0 20px 60px 20px;
        border-radius: 0 0 16px 16px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 20px 60px 20px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-icon {
        font-size: 40px;
        margin-bottom: 20px;
    }
    
    .feature-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .feature-desc {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .home-content {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .stats-demo {
        padding: 40px 20px;
        margin: 60px 20px;
    }
    
    .home-card {
        padding: 24px;
    }
    
    .feature-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-columns > div {
        padding: 20px;
        background: #f8fafc;
        border-radius: 8px;
        border: 1px solid #e2e8f0;
    }
    
    .home-footer {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 24px 20px;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
    }
}

/* ===== 平板端适配 ===== */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero {
        margin: 0 30px 70px 30px;
        padding: 70px 30px;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 0 30px 70px 30px;
    }
}

/* ===== 打印样式 ===== */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .hero {
        background: #3b82f6 !important;
        -webkit-print-color-adjust: exact;
    }
    
    .home-card {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}
