/* ═══════════════════════════════════════════
   首页样式 - Modern Blog Homepage
   ═══════════════════════════════════════════ */

.container { padding-top: 0; }

/* ── Hero Section ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(30,159,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(95,184,120,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: float 15s infinite;
}

.hero-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 12s; }
.hero-particles span:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; animation-duration: 18s; }
.hero-particles span:nth-child(3) { left: 40%; top: 10%; animation-delay: 4s; animation-duration: 14s; }
.hero-particles span:nth-child(4) { left: 60%; top: 60%; animation-delay: 1s; animation-duration: 16s; }
.hero-particles span:nth-child(5) { left: 80%; top: 30%; animation-delay: 3s; animation-duration: 20s; }
.hero-particles span:nth-child(6) { left: 90%; top: 70%; animation-delay: 5s; animation-duration: 13s; }

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    50% { transform: translateY(-100px) translateX(30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 30px;
    max-width: 800px;
}

.hero-eyebrow {
    display: inline-block;
    font-family: "JetBrains Mono", "Fira Code", monospace;
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding: 6px 16px;
    border: 1px solid rgba(30,159,255,0.3);
    border-radius: 20px;
    background: rgba(30,159,255,0.08);
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.2s forwards;
}

.hero h1 {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 24px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.4s forwards;
}

.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--primary), #36d1dc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.6s forwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 0.8s forwards;
}

.hero-stat-num {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    display: block;
}

.hero-stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.3);
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0;
    animation: heroFadeUp 0.8s ease 1s forwards;
}

.hero-scroll i {
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(8px); }
    60% { transform: translateY(4px); }
}

/* ── About Section ── */
.about-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 0 30px;
}

.about-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.about-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 32px;
}

.about-content .btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(30,159,255,0.3);
}

.about-content .btn-explore:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,159,255,0.4);
}

/* ── Articles Section ── */
.articles-section {
    padding: 100px 0;
    background: var(--bg);
}

.articles-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.article-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}

.article-card-img {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card-img img {
    transform: scale(1.08);
}

.article-card-body {
    padding: 24px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-card-meta i {
    margin-right: 4px;
    font-size: 13px;
}

.article-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover .article-card-title {
    color: var(--primary);
}

.article-card-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.article-card-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.article-card-link {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.article-card-link i {
    font-size: 12px;
    transition: var(--transition);
}

.article-card:hover .article-card-link i {
    transform: translateX(4px);
}

/* ── Notices Section ── */
.notices-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.notices-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px;
}

.notice-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    transition: var(--transition);
}

.notice-card:hover {
    background: #eef2f7;
}

.notice-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.notice-card-content {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* ── Stats Section ── */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
}

.stats-grid {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 16px;
    display: block;
}

.stat-item h4 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.stat-item p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
    .articles-grid { grid-template-columns: 1fr; gap: 20px; }
    .hero h1 { font-size: 28px; }
    .hero-stats { gap: 30px; }
    .hero-stat-num { font-size: 28px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .articles-section, .about-section, .notices-section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
