/* ============================================
   红旗渠精神 · 三下乡社会实践网站样式
   ============================================ */

/* CSS Variables */
:root {
    --red-primary: #C41E3A;
    --red-dark: #8B0000;
    --red-light: #E74C3C;
    --green-primary: #2E8B57;
    --green-dark: #1B5E3B;
    --green-light: #2ECC71;
    --gold-primary: #D4A017;
    --gold-light: #F1C40F;
    --bg-dark: #0a0a0a;
    --bg-section: #111111;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: #333333;
    --font-serif: 'Noto Serif SC', serif;
    --font-sans: 'Noto Sans SC', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.5);
    --shadow-red: 0 8px 32px rgba(196, 30, 58, 0.3);
    --shadow-green: 0 8px 32px rgba(46, 139, 87, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
}

::selection {
    background: var(--red-primary);
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--red-primary);
    border-radius: 4px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-weight: 700;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 900;
}

.logo-text {
    font-size: 18px;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(196, 30, 58, 0.15);
    color: var(--red-light);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--red-primary);
    border-radius: 1px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0a0000 0%, #1a0505 30%, #0a0a0a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.35;
    z-index: 0;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(196, 30, 58, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(46, 139, 87, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(196, 30, 58, 0.05) 0%, transparent 40%);
    z-index: 2;
}

/* 星星背景 */
.hero-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    animation: starTwinkle var(--dur) ease-in-out infinite;
    opacity: 0;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.1; transform: scale(0.8); }
    50% { opacity: var(--max-opacity, 0.8); transform: scale(1.2); }
}

/* 红色旗帜 */
.hero-flags {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.flag-pole {
    position: absolute;
    bottom: 0;
    width: 3px;
    height: var(--pole-h, 120px);
    background: linear-gradient(to top, #8B4513, #A0522D, #6B3410);
    box-shadow: 1px 0 3px rgba(0,0,0,0.5);
}

.flag-pole::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #D4A017, #B8860B);
    border-radius: 50%;
}

.flag-cloth {
    position: absolute;
    top: 4px;
    left: 3px;
    width: var(--flag-w, 50px);
    height: var(--flag-h, 35px);
    background: linear-gradient(135deg, #C41E3A 0%, #8B0000 60%, #5C0000 100%);
    animation: flagWave 2.5s ease-in-out infinite;
    transform-origin: left center;
    clip-path: polygon(0 0, 100% 8%, 95% 50%, 100% 92%, 0 100%);
    box-shadow: 2px 2px 8px rgba(139, 0, 0, 0.5);
}

.flag-cloth::after {
    content: '★';
    position: absolute;
    top: 50%;
    left: 35%;
    transform: translate(-50%, -50%);
    color: #FFD700;
    font-size: var(--star-size, 14px);
    text-shadow: 0 0 4px rgba(255, 215, 0, 0.5);
}

@keyframes flagWave {
    0% { transform: perspective(200px) rotateY(0deg) skewY(0deg); }
    25% { transform: perspective(200px) rotateY(-8deg) skewY(2deg); }
    50% { transform: perspective(200px) rotateY(0deg) skewY(0deg); }
    75% { transform: perspective(200px) rotateY(8deg) skewY(-2deg); }
    100% { transform: perspective(200px) rotateY(0deg) skewY(0deg); }
}

/* 河流 */
.hero-river {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.river-wave {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: var(--wave-h, 60px);
    background: linear-gradient(180deg, transparent 0%, rgba(30, 100, 80, 0.15) 30%, rgba(20, 80, 60, 0.25) 60%, rgba(10, 60, 40, 0.35) 100%);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    animation: riverFlow var(--wave-dur, 6s) ease-in-out infinite;
}

.river-wave:nth-child(2) {
    --wave-h: 45px;
    --wave-dur: 8s;
    opacity: 0.6;
    bottom: 5px;
}

.river-wave:nth-child(3) {
    --wave-h: 30px;
    --wave-dur: 5s;
    opacity: 0.4;
    bottom: 10px;
    background: linear-gradient(180deg, transparent 0%, rgba(196, 30, 58, 0.08) 50%, rgba(196, 30, 58, 0.15) 100%);
}

.river-shimmer {
    position: absolute;
    bottom: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 20%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.06) 80%, transparent 100%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes riverFlow {
    0%, 100% { transform: translateX(0) scaleY(1); }
    30% { transform: translateX(2%) scaleY(1.08); }
    60% { transform: translateX(-1.5%) scaleY(0.95); }
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--red-light);
    margin-bottom: 32px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-family: var(--font-serif);
    margin-bottom: 24px;
    animation: fadeInUp 1s ease 0.2s both;
}

.title-line {
    display: block;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 4px;
}

.title-line.accent {
    background: linear-gradient(135deg, var(--green-light), var(--green-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 48px;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 48px;
    animation: fadeInUp 1s ease 0.6s both;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 100px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: var(--red-light);
    line-height: 1;
}

.stat-unit {
    font-size: 1rem;
    color: var(--red-primary);
    margin-left: 4px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 1px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    color: white;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: var(--transition);
    box-shadow: var(--shadow-red);
    animation: fadeInUp 1s ease 0.8s both;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.5);
}

.hero-cta svg {
    transition: var(--transition);
}

.hero-cta:hover svg {
    transform: translate(3px, -3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s ease 1s both;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

.scroll-indicator span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(8px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Section Styles
   ============================================ */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header.light .section-tag,
.section-header.light .section-title,
.section-header.light .section-desc {
    color: white;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--red-primary);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--green-primary));
    margin: 0 auto 16px;
    border-radius: 2px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.sub-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    letter-spacing: 2px;
}

.sub-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--red-primary);
    margin: 12px auto 0;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg-section);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 80px;
}

.about-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 36px 28px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--green-primary));
    opacity: 0;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 30, 58, 0.3);
    box-shadow: var(--shadow-md);
}

.about-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(196, 30, 58, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--red-primary);
}

.card-icon.red {
    background: rgba(196, 30, 58, 0.1);
}
.card-icon.red svg { stroke: var(--red-light); }

.card-icon.green {
    background: rgba(46, 139, 87, 0.1);
}
.card-icon.green svg { stroke: var(--green-light); }

.card-icon.gold {
    background: rgba(212, 160, 23, 0.1);
}
.card-icon.gold svg { stroke: var(--gold-primary); }

.about-card:hover .card-icon {
    transform: scale(1.1);
}

.about-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Timeline */
.timeline-section {
    margin-top: 20px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--red-primary), var(--green-primary));
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
    padding-left: 30px;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--red-primary);
    border: 3px solid var(--bg-section);
    box-shadow: 0 0 0 2px var(--red-primary);
}

.timeline-item:nth-child(even) .timeline-marker {
    background: var(--green-primary);
    box-shadow: 0 0 0 2px var(--green-primary);
}

.timeline-date {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(196, 30, 58, 0.15);
    border-radius: 20px;
    font-size: 12px;
    color: var(--red-light);
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.timeline-item:nth-child(even) .timeline-date {
    background: rgba(46, 139, 87, 0.15);
    color: var(--green-light);
}

.timeline-content h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   Spirit Section
   ============================================ */
.spirit {
    background:
        linear-gradient(135deg, rgba(139, 0, 0, 0.05) 0%, transparent 50%),
        var(--bg-dark);
    color: white;
    position: relative;
}

.spirit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/spirit-bg.jpg') center/cover no-repeat;
    opacity: 0.12;
    z-index: 0;
}

.spirit .container {
    position: relative;
    z-index: 1;
}

.history-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.history-text h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--red-light);
}

.history-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 2;
}

.history-text strong {
    color: var(--red-light);
}

.highlight-box {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    padding: 24px;
    background: rgba(196, 30, 58, 0.1);
    border-left: 4px solid var(--red-primary);
    border-radius: 0 12px 12px 0;
}

.highlight-number {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--red-light);
    line-height: 1;
}

.highlight-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Canal Diagram */
.canal-diagram {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.diagram-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.diagram-bar {
    width: 40px;
    height: var(--height, 50%);
    background: linear-gradient(to top, var(--red-dark), var(--red-light));
    border-radius: 6px 6px 0 0;
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-height: 20px;
}

.diagram-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 6px 6px 0 0;
}

.diagram-bar.green-bar {
    background: linear-gradient(to top, var(--green-dark), var(--green-light));
}

.diagram-bar.red-bar {
    background: linear-gradient(to top, #8B0000, #FF4444);
}

.diagram-bar.gold-bar {
    background: linear-gradient(to top, #8B6914, var(--gold-light));
}

.diagram-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.diagram-item strong {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: white;
}

/* Spirit Cards */
.spirit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.spirit-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.spirit-card:hover {
    background: rgba(196, 30, 58, 0.08);
    border-color: rgba(196, 30, 58, 0.3);
    transform: translateY(-8px);
    box-shadow: var(--shadow-red);
}

.spirit-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(196, 30, 58, 0.1);
    transition: var(--transition);
}

.spirit-card:hover .spirit-icon-wrapper {
    background: rgba(196, 30, 58, 0.2);
    transform: scale(1.1);
}

.spirit-icon {
    font-size: 2rem;
}

.spirit-card h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.spirit-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ============================================
   Green Section
   ============================================ */
.green {
    background:
        linear-gradient(135deg, rgba(46, 139, 87, 0.05) 0%, transparent 50%),
        var(--bg-section);
}

.green-hero {
    margin-bottom: 60px;
}

.green-quote {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.green-quote blockquote {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--green-light);
    line-height: 2;
    padding: 30px 40px;
    position: relative;
    background: rgba(46, 139, 87, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(46, 139, 87, 0.15);
}

.green-quote blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: rgba(46, 139, 87, 0.3);
    font-family: Georgia, serif;
}

/* Comparison */
.green-comparison {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.comparison-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    position: relative;
    transition: var(--transition);
}

.comparison-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.comparison-card h3 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.card-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 4px 16px;
    background: var(--red-primary);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
}

.card-badge.green {
    background: var(--green-primary);
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.95rem;
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list .negative {
    color: var(--text-secondary);
}

.comparison-list .positive {
    color: var(--green-light);
}

.comparison-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.comparison-arrow svg {
    width: 100px;
    stroke: var(--red-primary);
}

.comparison-arrow span {
    font-size: 12px;
    color: var(--red-primary);
    letter-spacing: 2px;
    font-weight: 600;
}

/* Eco Stats */
.eco-stats {
    margin-top: 40px;
}

.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
}

.eco-item {
    text-align: center;
}

.eco-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    position: relative;
}

.eco-ring svg {
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 8;
}

.ring-fill {
    fill: none;
    stroke: var(--green-primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: calc(314 - (314 * var(--percent) / 100));
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-fill.green-fill {
    stroke: var(--green-light);
}

.ring-fill.gold-fill {
    stroke: var(--gold-primary);
}

.eco-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 700;
}

.eco-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* ============================================
   Tourism Section
   ============================================ */
.tourism {
    background: var(--bg-dark);
}

.chart-section {
    margin-bottom: 60px;
}

.chart-container {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.chart-container.wide {
    max-width: 100%;
}

.industry-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.industry-info .info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.info-card:hover {
    border-color: rgba(196, 30, 58, 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-content h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.info-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.info-content strong {
    color: var(--red-light);
}

.employment-section {
    margin-top: 20px;
}

/* ============================================
   Survey / Gallery Section
   ============================================ */
.survey {
    background: var(--bg-section);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--red-primary);
    border-color: var(--red-primary);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
    margin-bottom: 60px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item.tall {
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.placeholder-content {
    text-align: center;
    color: white;
}

.placeholder-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 8px;
}

.placeholder-text {
    font-size: 0.85rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 2;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 2;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Survey Data */
.survey-data {
    margin-top: 20px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.data-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.data-card:hover {
    border-color: rgba(196, 30, 58, 0.3);
    transform: translateY(-5px);
    box-shadow: var(--shadow-red);
}

.data-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--red-light);
    line-height: 1;
}

.data-unit {
    font-size: 0.9rem;
    color: var(--red-primary);
    margin-left: 4px;
}

.data-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 8px;
    letter-spacing: 1px;
}

/* ============================================
   Data Visualization Section
   ============================================ */
.data-viz {
    background: var(--bg-dark);
}

.viz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.viz-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.viz-card:hover {
    border-color: rgba(196, 30, 58, 0.2);
    box-shadow: var(--shadow-sm);
}

/* Economy Section */
.economy-section {
    margin-top: 40px;
}

.economy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.economy-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 28px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.economy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(196, 30, 58, 0.3);
}

.economy-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.economy-trend.up {
    color: var(--green-light);
}

.economy-trend svg {
    width: 20px;
    height: 20px;
}

.economy-value {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.economy-value span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 4px;
}

.economy-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

/* ============================================
   Reflection Section
   ============================================ */
.reflection {
    background:
        linear-gradient(135deg, rgba(139, 0, 0, 0.03) 0%, transparent 50%),
        var(--bg-section);
    color: white;
}

.reflection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 60px;
}

.reflection-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    transition: var(--transition);
}

.reflection-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(196, 30, 58, 0.3);
    transform: translateY(-5px);
}

.reflection-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    font-family: var(--font-serif);
}

.reflection-content h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.reflection-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.9;
    font-style: italic;
}

/* Summary */
.summary-section {
    margin-top: 40px;
}

.summary-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: 20px;
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red-primary), var(--green-primary), var(--red-primary));
}

.summary-card h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.summary-card p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 28px;
    font-size: 1rem;
    line-height: 2;
}

.summary-keywords {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.keyword {
    padding: 8px 20px;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--red-light);
    letter-spacing: 1px;
    transition: var(--transition);
}

.keyword:hover {
    background: var(--red-primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: #050505;
    padding: 60px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: inline-flex;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: white;
    margin-bottom: 16px;
    font-family: var(--font-serif);
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--red-light);
    padding-left: 6px;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.footer-beian {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.footer-beian a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.footer-beian a:hover {
    color: #fff;
}

.gongan-badge {
    width: 16px;
    height: 16px;
}

/* ============================================
   Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--red-primary);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-red);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
}

/* ============================================
   Team Members
   ============================================ */
.team-section {
    margin-bottom: 48px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: var(--transition);
}

.team-member:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.team-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-serif);
    flex-shrink: 0;
}

.team-info h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.team-role {
    font-size: 0.75rem;
    color: var(--red-light);
    background: rgba(196,30,58,0.15);
    padding: 2px 10px;
    border-radius: 20px;
}

/* ============================================
   Animations
   ============================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays */
.about-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.about-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.about-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.about-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

.spirit-grid .animate-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.spirit-grid .animate-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.spirit-grid .animate-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.spirit-grid .animate-on-scroll:nth-child(4) { transition-delay: 0.4s; }

/* ============================================
   Login Modal (matches HTML structure)
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 420px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-section);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(196, 30, 58, 0.15);
    color: var(--red-light);
}

.modal-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--bg-section);
    color: var(--text-secondary);
    border: none;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.modal-tab:first-child {
    border-right: 1px solid var(--border-color);
}

.modal-tab.active,
.modal-tab:hover {
    background: var(--red-primary);
    color: #fff;
}

.modal-form {
    /* login/register form wrapper */
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.form-options label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.form-options a {
    color: var(--red-light);
    font-size: 0.85rem;
}

.form-options a:hover {
    text-decoration: underline;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--red-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 8px;
    font-family: var(--font-sans);
}

.form-submit:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.4);
}

.form-tip {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-tip a {
    color: var(--red-light);
    text-decoration: none;
    font-weight: 600;
}

.form-tip a:hover {
    text-decoration: underline;
}

.code-row {
    display: flex;
    gap: 10px;
}

.code-row input {
    flex: 1;
}

.code-btn {
    padding: 10px 16px;
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 10px;
    color: var(--red-light);
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.code-btn:hover {
    background: var(--red-primary);
    color: white;
}

/* ============================================
   Login Button
   ============================================ */
.login-btn {
    padding: 8px 20px;
    background: rgba(196, 30, 58, 0.15);
    border: 1px solid rgba(196, 30, 58, 0.4);
    border-radius: 8px;
    color: var(--red-light);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 1px;
    font-family: var(--font-sans);
}

.login-btn:hover {
    background: var(--red-primary);
    color: white;
    border-color: var(--red-primary);
    box-shadow: var(--shadow-red);
}

/* Nav user info (logged in) */
.nav-auth, .nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-user {
    margin-left: auto;
}
.user-greeting {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}
.logout-btn {
    padding: 6px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}
.logout-btn:hover {
    background: rgba(196,30,58,0.2);
    color: var(--red-light);
    border-color: rgba(196,30,58,0.4);
}

/* Auth divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.auth-divider span {
    padding: 0 12px;
}

/* Guest login button */
.guest-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px dashed rgba(46,139,87,0.5);
    background: rgba(46,139,87,0.08);
    color: #2ECC71;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}
.guest-btn:hover {
    background: rgba(46,139,87,0.2);
    border-color: #2ECC71;
    box-shadow: 0 4px 20px rgba(46,204,113,0.2);
}
.guest-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================
   Stories Section
   ============================================ */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.story-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
    display: block;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.12);
    border-color: rgba(196, 30, 58, 0.3);
}

.story-card-img {
    height: 180px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--red-primary);
}

.story-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.05) 100%);
}

.story-number {
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
    z-index: 1;
}

.story-tag {
    padding: 4px 14px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.story-card-body {
    padding: 20px;
}

.story-card-body h3 {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
}

.story-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-more {
    display: inline-block;
    color: var(--red-light);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.story-card:hover .story-more {
    color: var(--gold-primary);
    transform: translateX(4px);
}

/* ============================================
   Video Section
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.video-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.video-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-color: #1a1a1a;
}

.video-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

.play-btn {
    width: 60px;
    height: 60px;
    background: rgba(196, 30, 58, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: var(--transition);
    z-index: 2;
    color: white;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.play-btn:hover {
    background: var(--red-primary);
    transform: scale(1.15);
    box-shadow: 0 4px 30px rgba(196, 30, 58, 0.5);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    z-index: 2;
}

.video-info {
    padding: 18px;
}

.video-info h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.video-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .industry-section {
        grid-template-columns: 1fr;
    }
    .history-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 4px;
        transition: var(--transition);
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }

    .nav-menu.open {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
    }

    .gallery-item.wide {
        grid-column: span 2;
    }

    .reflection-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .viz-grid {
        grid-template-columns: 1fr;
    }

    .green-comparison {
        flex-direction: column;
    }

    .comparison-arrow {
        transform: rotate(90deg);
    }

    .industry-info .info-cards {
        grid-template-columns: 1fr;
    }

    .summary-card {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 180px;
    }

    .gallery-item.tall {
        grid-row: span 1;
    }

    .gallery-item.wide {
        grid-column: span 1;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .data-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .economy-grid {
        grid-template-columns: 1fr;
    }

    .login-btn {
        display: none;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .ribbon-cards {
        grid-template-columns: 1fr;
    }

    .run-steps {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   红飘带 Section
   ============================================ */
.ribbon-section {
    position: relative;
    background: var(--bg-section);
    padding: 0 0 80px;
    overflow: hidden;
}

.red-ribbon-wrapper {
    width: 100%;
    height: 200px;
    margin-bottom: 40px;
    position: relative;
}

.red-ribbon-svg {
    width: 100%;
    height: 100%;
}

.ribbon-path {
    animation: ribbonFlow 8s ease-in-out infinite;
}

.ribbon-path-1 {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: ribbonDraw 3s ease forwards, ribbonFlow 6s ease-in-out 3s infinite;
}

.ribbon-path-2 {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: ribbonDraw 3s ease 0.5s forwards, ribbonFlow 6s ease-in-out 3.5s infinite;
}

@keyframes ribbonDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes ribbonFlow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.ribbon-star {
    animation: starTwinkle 2s ease-in-out infinite;
}

.ribbon-star:nth-child(1) { animation-delay: 0s; }
.ribbon-star:nth-child(2) { animation-delay: 0.4s; }
.ribbon-star:nth-child(3) { animation-delay: 0.8s; }
.ribbon-star:nth-child(4) { animation-delay: 1.2s; }
.ribbon-star:nth-child(5) { animation-delay: 1.6s; }

@keyframes starTwinkle {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.ribbon-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.ribbon-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid rgba(196, 30, 58, 0.3);
    border-radius: 30px;
    color: var(--red-light);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.ribbon-badge-icon {
    font-size: 1.2rem;
}

.ribbon-title {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #C41E3A, #E74C3C, #F1C40F, #E74C3C, #C41E3A);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 4s linear infinite;
}

@keyframes goldShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.ribbon-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 48px;
}

.ribbon-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ribbon-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.ribbon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8B0000, #C41E3A, #E74C3C);
}

.ribbon-card:hover {
    transform: translateY(-8px);
    border-color: var(--red-primary);
    box-shadow: var(--shadow-red);
}

.ribbon-card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.ribbon-card h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.ribbon-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.ribbon-bottom-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

/* ============================================
   如何运行本站 Section
   ============================================ */
.run-guide-section {
    padding: 100px 0;
    background: var(--bg-dark);
}

.run-guide-section .section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 8px;
}

.title-accent {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--red-primary);
    vertical-align: middle;
    margin: 0 12px;
}

.run-guide-section .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 48px;
}

.run-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.run-step {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.run-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--red-primary), var(--red-dark));
}

.run-step:hover {
    border-color: var(--red-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-red);
}

.step-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 900;
    color: var(--red-primary);
    opacity: 0.6;
    flex-shrink: 0;
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 12px;
}

.step-code {
    background: rgba(196, 30, 58, 0.08);
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 0.85rem;
    line-height: 1.9;
}

.step-code code {
    color: var(--red-light);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.85rem;
}

.step-tree pre {
    color: var(--text-secondary);
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    margin: 0;
    white-space: pre;
}

.run-tips {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px 32px;
}

.run-tips h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.run-tips ul {
    list-style: none;
    padding: 0;
}

.run-tips li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.run-tips li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--red-primary);
    font-weight: bold;
}

.run-tips li:last-child {
    margin-bottom: 0;
}

.run-tips strong {
    color: var(--text-primary);
}

/* ============================================
   Section Background Decorations (Rivers, Flags, Ribbons)
   ============================================ */
.hero-bg-deco {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.deco-river {
    position: absolute;
    animation: decoFloat 15s ease-in-out infinite;
}
.deco-river-1 { left: 5%; top: 0; width: 35%; height: 100%; }
.deco-river-2 { right: 5%; top: 0; width: 30%; height: 100%; animation-delay: -5s; }

.deco-flag {
    position: absolute;
    animation: decoFlagSway 4s ease-in-out infinite;
}
.deco-flag-1 { left: 10%; top: 15%; width: 80px; height: 120px; }
.deco-flag-2 { right: 12%; top: 25%; width: 60px; height: 100px; animation-delay: -1.5s; }

.deco-ribbon {
    position: absolute;
    animation: decoRibbonFlow 20s ease-in-out infinite;
}
.deco-ribbon-1 { left: 15%; top: 0; width: 25%; height: 100%; }
.deco-ribbon-2 { right: 10%; top: 10%; width: 50%; height: 80%; animation-delay: -8s; }

@keyframes decoFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 1; }
    50% { transform: translateY(-15px) translateX(5px); opacity: 0.7; }
}
@keyframes decoFlagSway {
    0%, 100% { transform: rotate(0deg) skewY(0deg); }
    25% { transform: rotate(2deg) skewY(-1deg); }
    75% { transform: rotate(-2deg) skewY(1deg); }
}
@keyframes decoRibbonFlow {
    0%, 100% { transform: translateX(0) translateY(0); }
    33% { transform: translateX(20px) translateY(-10px); }
    66% { transform: translateX(-15px) translateY(5px); }
}

/* Section bg deco */
.section-bg-deco {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.deco-spirit-river {
    position: absolute;
    top: 10%; left: -5%;
    width: 60%; height: 80%;
    animation: decoFloat 18s ease-in-out infinite;
}
.deco-spirit-flag {
    position: absolute;
    top: 20%; right: 8%;
    width: 100px; height: 150px;
    animation: decoFlagSway 5s ease-in-out infinite;
}

.green-deco .deco-green-river {
    position: absolute;
    top: 5%; left: 0;
    width: 100%; height: 90%;
    animation: decoFloat 16s ease-in-out infinite;
}
.deco-green-leaf {
    position: absolute;
    animation: decoLeafSpin 25s linear infinite;
}
.deco-green-leaf-1 { top: 15%; right: 10%; width: 60px; height: 60px; }
.deco-green-leaf-2 { bottom: 20%; left: 8%; width: 40px; height: 40px; animation-delay: -10s; }

@keyframes decoLeafSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tourism-deco .deco-tourism-ribbon {
    position: absolute;
    top: 0; left: 8%;
    width: 200px; height: 100%;
    animation: decoRibbonFlow 15s ease-in-out infinite;
}
.deco-tourism-flag {
    position: absolute;
    top: 25%; right: 12%;
    width: 70px; height: 110px;
    animation: decoFlagSway 4s ease-in-out infinite;
}

/* ========================================
   通用河流装饰（蓝色）
   ======================================== */
.decor-river {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    width: 320px;
    height: 100%;
    opacity: 0.18;
}
.decor-river-tl {
    top: 0; left: 0;
}
.decor-river-br {
    top: 0; right: 0;
    transform: scaleX(-1);
}
.river-path {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(180deg, 
        rgba(30, 144, 255, 0.0) 0%,
        rgba(30, 144, 255, 0.25) 20%,
        rgba(65, 180, 255, 0.35) 50%,
        rgba(30, 144, 255, 0.25) 80%,
        rgba(30, 144, 255, 0.0) 100%
    );
}
.river-main {
    width: 60px;
    height: 100%;
    left: 30px;
    top: 0;
    animation: decorRiverFlow 8s ease-in-out infinite;
}
.river-branch1 {
    width: 25px;
    height: 60%;
    left: 10px;
    top: 10%;
    transform: rotate(15deg);
    animation: decorRiverFlow 6s ease-in-out infinite 1s;
}
.river-branch2 {
    width: 20px;
    height: 45%;
    left: 55px;
    top: 40%;
    transform: rotate(-10deg);
    animation: decorRiverFlow 7s ease-in-out infinite 2s;
}
@keyframes decorRiverFlow {
    0%, 100% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
}
.river-drop {
    position: absolute;
    border-radius: 50%;
    background: rgba(65, 180, 255, 0.6);
    animation: riverDropFloat 3s ease-in-out infinite;
}
@keyframes riverDropFloat {
    0%, 100% { opacity: 0.2; transform: translateY(0) scale(0.8); }
    50% { opacity: 0.7; transform: translateY(-12px) scale(1.2); }
}

/* ========================================
   通用飘带装饰（红色）
   ======================================== */
.decor-ribbon {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    width: 80px;
    height: 100%;
}
.decor-ribbon-left {
    top: 0; left: 0;
}
.decor-ribbon-right {
    top: 0; right: 0;
}
.ribbon-band {
    position: absolute;
    height: 100%;
}
.ribbon-main {
    width: 12px;
    left: 30px;
    background: linear-gradient(180deg,
        rgba(196, 30, 58, 0.0) 0%,
        rgba(196, 30, 58, 0.3) 15%,
        rgba(196, 30, 58, 0.5) 50%,
        rgba(196, 30, 58, 0.3) 85%,
        rgba(196, 30, 58, 0.0) 100%
    );
    border-radius: 6px;
    animation: ribbonSway 6s ease-in-out infinite;
}
.ribbon-sub {
    width: 8px;
    left: 48px;
    background: linear-gradient(180deg,
        rgba(196, 30, 58, 0.0) 0%,
        rgba(231, 76, 60, 0.2) 20%,
        rgba(231, 76, 60, 0.35) 50%,
        rgba(231, 76, 60, 0.2) 80%,
        rgba(196, 30, 58, 0.0) 100%
    );
    border-radius: 4px;
    animation: ribbonSway 5s ease-in-out infinite 0.5s;
}
@keyframes ribbonSway {
    0%, 100% { transform: skewX(0deg); }
    25% { transform: skewX(2deg); }
    75% { transform: skewX(-2deg); }
}
.ribbon-star {
    position: absolute;
    left: 22px;
    font-size: 18px;
    color: rgba(212, 160, 23, 0.6);
    animation: ribbonStarPulse 3s ease-in-out infinite;
}
@keyframes ribbonStarPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 0.8; transform: scale(1.1); }
}
.ribbon-tassel {
    position: absolute;
    left: 30px;
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, rgba(196,30,58,0.4), rgba(196,30,58,0.0));
    border-radius: 0 0 2px 2px;
    animation: tasselSwing 3s ease-in-out infinite;
}
@keyframes tasselSwing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

/* 顶部横飘带 */
.decor-ribbon-top {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: 6px;
    z-index: 1;
    pointer-events: none;
}
.top-ribbon-band {
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
        rgba(196, 30, 58, 0.0) 0%,
        rgba(196, 30, 58, 0.2) 10%,
        rgba(196, 30, 58, 0.4) 30%,
        rgba(196, 30, 58, 0.5) 50%,
        rgba(196, 30, 58, 0.4) 70%,
        rgba(196, 30, 58, 0.2) 90%,
        rgba(196, 30, 58, 0.0) 100%
    );
    border-radius: 2px;
    animation: topRibbonPulse 5s ease-in-out infinite;
}
@keyframes topRibbonPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.top-ribbon-node {
    position: absolute;
    top: -4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,30,58,0.6), rgba(196,30,58,0.0));
    animation: topNodeGlow 3s ease-in-out infinite;
}
@keyframes topNodeGlow {
    0%, 100% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 0.8; }
}

/* Story页面装饰层 */
.story-page { position: relative; }
.story-page .decor-river,
.story-page .decor-ribbon,
.story-page .decor-ribbon-top {
    opacity: 0.12;
}
