/* ============================================
   首页专属增强样式
   ============================================ */

/* --- 全局增强 --- */
:root {
    --gradient-hero: linear-gradient(160deg, #0D0D1A 0%, #1A1030 25%, #1A1A2E 50%, #16213E 75%, #0F1A30 100%);
    --gradient-warm: linear-gradient(135deg, #C41E3A, #E8405A);
    --gradient-gold: linear-gradient(135deg, #D4A843, #F0D078);
    --gradient-ocean: linear-gradient(135deg, #0F3460, #1A5276);
}

/* --- Hero 全屏大屏 --- */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-hero);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(196,30,58,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 20%, rgba(212,168,67,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(240,208,120,0.04) 0%, transparent 70%);
}
.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='40' y='48' font-size='32' text-anchor='middle' opacity='0.03' fill='white' font-family='serif'%3E粤%3C/text%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg width='120' height='120' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='60' y='72' font-size='40' text-anchor='middle' opacity='0.025' fill='white' font-family='serif'%3E語%3C/text%3E%3C/svg%3E");
    background-position: 0 0, 40px 40px;
    animation: heroBgDrift 30s linear infinite;
}
@keyframes heroBgDrift {
    0% { background-position: 0 0, 40px 40px; }
    100% { background-position: 80px 80px, 120px 120px; }
}
.hero-rings {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.04);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringPulse 8s ease-in-out infinite;
}
.hero-ring:nth-child(1) { width: 300px; height: 300px; animation-delay: 0s; }
.hero-ring:nth-child(2) { width: 500px; height: 500px; animation-delay: 2s; }
.hero-ring:nth-child(3) { width: 700px; height: 700px; animation-delay: 4s; }
@keyframes ringPulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 140px 24px 80px;
    max-width: 800px;
}
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 8px 24px;
    font-size: 0.9rem;
    color: var(--secondary-light);
    letter-spacing: 2px;
    margin-bottom: 28px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin-bottom: 10px;
    letter-spacing: 6px;
    line-height: 1.15;
}
.hero h1 .char-1 { color: #fff; }
.hero h1 .char-2 { color: #fff; }
.hero h1 .char-3 {
    color: var(--secondary-light);
    display: inline-block;
    animation: charGlow 2.5s ease-in-out infinite;
    position: relative;
}
.hero h1 .char-3::after {
    content: '';
    position: absolute;
    inset: -4px -8px;
    background: radial-gradient(ellipse, rgba(240,208,120,0.3) 0%, transparent 70%);
    border-radius: 8px;
    animation: charGlow 2.5s ease-in-out infinite;
}
@keyframes charGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(240,208,120,0.3); }
    50% { text-shadow: 0 0 50px rgba(240,208,120,0.7), 0 0 80px rgba(212,168,67,0.4); }
}
.hero h1 .char-4 { color: #fff; }
.hero-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 6px;
}
.hero-desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.55);
    max-width: 560px;
    margin: 0 auto 44px;
    line-height: 2;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounceDown 2s ease-in-out infinite;
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- 波浪分隔 --- */
.wave-divider {
    position: relative;
    height: 80px;
    overflow: hidden;
    margin-top: -1px;
}
.wave-divider svg {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80px;
}
.wave-divider.dark-to-light svg path { fill: var(--bg); }
.wave-divider.light-to-dark svg path { fill: var(--bg-dark); }

/* --- 数据看板 --- */
.stats-section {
    padding: 40px 0 70px;
    background: var(--bg);
}
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -60px;
    position: relative;
    z-index: 3;
}
.stat-panel {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.stat-panel:nth-child(1)::before { background: var(--gradient-warm); }
.stat-panel:nth-child(2)::before { background: var(--gradient-gold); }
.stat-panel:nth-child(3)::before { background: linear-gradient(135deg, #2E86AB, #45B7D1); }
.stat-panel:nth-child(4)::before { background: linear-gradient(135deg, #2A9D8F, #52B788); }
.stat-panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.stat-icon-lg {
    font-size: 2.2rem;
    margin-bottom: 8px;
}
.stat-num {
    font-size: 2.6rem;
    font-weight: 800;
    font-family: var(--font-display);
    letter-spacing: -1px;
    margin-bottom: 2px;
}
.stat-panel:nth-child(1) .stat-num { color: var(--primary); }
.stat-panel:nth-child(2) .stat-num { color: #B8860B; }
.stat-panel:nth-child(3) .stat-num { color: #2E86AB; }
.stat-panel:nth-child(4) .stat-num { color: #2A9D8F; }
.stat-sub {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- 分区标题增强 --- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
}
.section-title-lg {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 10px;
}
.section-desc {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
}

/* --- 栏目卡片升级 --- */
.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
}
.nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: var(--radius);
    padding: 32px 16px 24px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.nav-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 0;
    transition: height 0.35s ease;
    opacity: 0.06;
}
.nav-card:hover::after { height: 100%; }
.nav-card:nth-child(1):hover::after { background: #C41E3A; }
.nav-card:nth-child(2):hover::after { background: #D4A843; }
.nav-card:nth-child(3):hover::after { background: #2E86AB; }
.nav-card:nth-child(4):hover::after { background: #E76F51; }
.nav-card:nth-child(5):hover::after { background: #2A9D8F; }
.nav-card:nth-child(6):hover::after { background: #6C5CE7; }
.nav-card:nth-child(7):hover::after { background: #FD79A8; }
.nav-card:nth-child(8):hover::after { background: #00B894; }
.nav-card:nth-child(9):hover::after { background: #D63031; }
.nav-card:nth-child(10):hover::after { background: #0984E3; }
.nav-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.10);
    border-color: transparent;
}
.nav-card-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
}
.nav-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}
.nav-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* --- 三大精选 --- */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.featured-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.featured-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}
.featured-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.3));
}
.featured-img .emoji-bg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.featured-body {
    padding: 22px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.featured-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.4;
}
.featured-body p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    flex: 1;
}
.featured-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 600;
    align-self: flex-start;
}
.tag-red { background: rgba(196,30,58,0.1); color: #C41E3A; }
.tag-gold { background: rgba(212,168,67,0.15); color: #B8860B; }
.tag-blue { background: rgba(46,134,171,0.1); color: #2E86AB; }

/* --- 名言带装饰 --- */
.quote-decorated {
    text-align: center;
    padding: 60px 20px;
    position: relative;
}
.quote-decorated::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 10rem;
    color: rgba(255,255,255,0.04);
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    line-height: 1;
    pointer-events: none;
}
.quote-decorated blockquote {
    position: relative;
    z-index: 1;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 1.9;
    max-width: 700px;
    margin: 0 auto;
    font-style: italic;
    color: rgba(255,255,255,0.85);
}
.quote-decorated cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-size: 0.95rem;
    color: var(--secondary-light);
    letter-spacing: 2px;
}

/* --- CTA区域 --- */
.cta-section {
    background: linear-gradient(135deg, #C41E3A 0%, #9B1B30 50%, #6B0010 100%);
    color: #fff;
    padding: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(240,208,120,0.08) 0%, transparent 50%);
}
.cta-inner {
    position: relative;
    z-index: 1;
}
.cta-inner h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 12px;
}
.cta-inner p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
}
.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-white {
    background: #fff;
    color: var(--primary);
}
.btn-white:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-2px);
}

/* --- 论坛入口 --- */
.forum-entry {
    display: flex;
    align-items: center;
    gap: 28px;
    background: linear-gradient(135deg, var(--bg-dark), #2D1B4E);
    border-radius: var(--radius);
    padding: 36px 40px;
    color: #fff;
    margin-top: 28px;
}
.forum-entry-icon {
    font-size: 3rem;
    flex-shrink: 0;
}
.forum-entry-text h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}
.forum-entry-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0;
}
.forum-entry .btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .featured-grid .featured-card:last-child { grid-column: 1 / -1; max-width: 400px; justify-self: center; }
    .stats-dashboard { grid-template-columns: repeat(2, 1fr); margin-top: -40px; }
}
@media (max-width: 768px) {
    .hero h1 { letter-spacing: 3px; }
    .hero-subtitle { letter-spacing: 3px; }
    .hero-scroll { display: none; }
    .stats-dashboard { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: -30px; }
    .stat-panel { padding: 20px 12px; }
    .stat-num { font-size: 2rem; }
    .nav-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .nav-card { padding: 24px 12px 18px; }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-grid .featured-card:last-child { max-width: 100%; }
    .forum-entry { flex-direction: column; text-align: center; }
    .forum-entry .btn { margin-left: 0; }
}
@media (max-width: 480px) {
    .stats-dashboard { grid-template-columns: 1fr 1fr; }
    .nav-grid { grid-template-columns: 1fr 1fr; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
}
