* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --accent-color: #8B6F47;
    --gold-color: #D4AF37;
    --warning-color: #f57c00;
    --success-color: #388e3c;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #ecf0f1;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
}

/* 导航栏 */
.navbar {
    position: sticky;
    top: 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 头部 */
header {
    position: relative;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.header-content h1 {
    font-size: 80px;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease;
}

.header-content p {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease;
}

@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);
    }
}

/* 主要内容 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 卡片部分 */
.cards-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 80px 0;
}

.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.card.card-important {
    border: 2px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.03) 0%, rgba(212, 175, 55, 0.03) 100%);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.card-link {
    display: inline-block;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
}

.card-link:hover {
    transform: translateX(5px);
}

/* 故事部分 */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 100px 0;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.story-video {
    position: relative;
}

.video-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    aspect-ratio: 4/5;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 80px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.video-placeholder p {
    font-size: 18px;
    margin-top: 20px;
}

.story-text h2 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 400;
}

.story-text p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.9;
}

.story-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat h4 {
    font-size: 32px;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.stat p {
    color: var(--text-light);
    font-size: 14px;
}

/* 图片库 */
.gallery-section {
    margin: 100px 0;
}

.gallery-section h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
}

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #999;
    transition: var(--transition);
}

.gallery-item:hover .gallery-placeholder {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 视频部分 */
.videos-section {
    margin: 100px 0;
}

.videos-section h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.video-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.video-thumbnail {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: 300;
    transition: var(--transition);
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-card h4 {
    padding: 20px 20px 10px;
    font-size: 18px;
    font-weight: 600;
}

.video-card p {
    padding: 0 20px 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* 时间线 */
.timeline-section {
    margin: 100px 0;
    padding: 60px 0;
    background: var(--light-bg);
    border-radius: 12px;
    padding: 80px 40px;
}

.timeline-section.timeline-important {
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.05) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid var(--accent-color);
}

.timeline-section h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border: 4px solid white;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    z-index: 10;
    box-shadow: 0 0 0 4px var(--light-bg);
}

.timeline-marker-warning {
    background: var(--warning-color);
    box-shadow: 0 0 0 8px rgba(245, 124, 0, 0.2), 0 0 0 4px white;
}

.timeline-content {
    width: 45%;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.timeline-content h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* 关于部分 */
.about-section {
    margin: 100px 0;
    padding: 60px 0;
}

.about-section h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    margin: 30px 0 15px;
    font-weight: 600;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--light-bg);
    border-radius: 8px;
    transition: var(--transition);
}

.feature:hover {
    background: #f0f0f0;
    transform: translateX(5px);
}

.feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.feature h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature p {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}

/* 联系部分 */
.contact-section {
    margin: 100px 0;
    padding: 60px;
    background: linear-gradient(135deg, #8B6F47 0%, #D4AF37 100%);
    border-radius: 12px;
    color: white;
}

.contact-section h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    font-size: 14px;
    opacity: 0.9;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.contact-form button {
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form button:hover {
    background: white;
    color: #8B6F47;
}

/* 章节副标题 */
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 40px;
    margin-top: -20px;
    font-style: italic;
}

/* 宅基地故事部分 */
.homestead-section {
    margin: 100px 0;
    padding: 60px 0;
}

.homestead-section h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
}

.homestead-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
    padding: 60px;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.03) 0%, rgba(212, 175, 55, 0.03) 100%);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
}

.homestead-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--accent-color);
}

.homestead-text p {
    color: var(--text-dark);
    line-height: 1.9;
    margin-bottom: 20px;
}

.homestead-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.homestead-list li {
    padding: 12px 0;
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 15px;
}

.homestead-list strong {
    color: var(--accent-color);
}

.homestead-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #666;
    font-size: 64px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.placeholder-text {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-top: 15px;
}

.homestead-gallery {
    margin-top: 80px;
}

.homestead-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.homestead-item {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
}

.homestead-item:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(139, 111, 71, 0.1);
    transform: translateY(-5px);
}

.homestead-img-placeholder {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    background: linear-gradient(135deg, rgba(139, 111, 71, 0.1) 0%, rgba(212, 175, 55, 0.1) 100%);
    width: 80px;
    height: 80px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.homestead-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.homestead-item p {
    color: var(--text-light);
    font-size: 14px;
}

.statement-quote {
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-left: 5px solid var(--accent-color);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.9;
    font-size: 16px;
}

.statement-quote p {
    margin: 0;
}

/* 社会观察部分 */
.observation-section {
    margin: 100px 0;
    padding: 60px 0;
}

.observation-section h2 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
    font-weight: 400;
}

.observation-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.observation-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 40px 30px;
    transition: var(--transition);
}

.observation-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(139, 111, 71, 0.15);
    transform: translateY(-8px);
}

.observation-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--accent-color);
}

.observation-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 15px;
}

/* 页脚 */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 20px;
    margin-top: 100px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        gap: 20px;
        font-size: 12px;
    }

    .header-content h1 {
        font-size: 48px;
        letter-spacing: 2px;
    }

    .header-content p {
        font-size: 16px;
    }

    .story-section {
        grid-template-columns: 1fr;
        margin: 60px 0;
        gap: 30px;
    }

    .gallery-item-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-stats {
        gap: 20px;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        flex-direction: column !important;
    }

    .timeline-content {
        width: 100%;
        margin-left: 30px;
    }

    .timeline-marker {
        left: 0;
    }

    .cards-section {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
    }

    .contact-form {
        gap: 10px;
    }

    .homestead-content {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }

    .observation-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 15px;
    }

    .header-content h1 {
        font-size: 32px;
    }

    .header-content p {
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .story-stats {
        flex-direction: column;
        border-top: none;
        padding-top: 0;
    }

    .contact-section {
        padding: 30px 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}
