/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.logo h1 {
    font-size: 24px;
    color: #1a73e8;
    margin: 0;
}

.logo p {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* 调整导航链接位置 */
.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .logo {
        position: static;
        transform: none;
        text-align: left;
    }
    
    .navbar .container {
        justify-content: space-between;
    }
    
    .nav-links {
        margin: 0;
    }
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a73e8;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #1a73e8;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #333;
}

/* 英雄区域 */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease;
}

.hero-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn-primary {
    background: white;
    color: #1a73e8;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1a73e8;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.floating-icon {
    position: absolute;
    font-size: 32px;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* 活动介绍 */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #1a73e8;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.about-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.about-stats {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #1a73e8;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: #666;
}

/* 法律知识概览 */
.legal-overview {
    padding: 100px 0;
    background: white;
}

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

.legal-card {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.legal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #1a73e8;
}

.legal-card i {
    font-size: 48px;
    color: #1a73e8;
    margin-bottom: 20px;
}

.legal-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.legal-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.legal-card a {
    display: inline-block;
    text-decoration: none;
    color: #1a73e8;
    font-weight: 600;
    transition: color 0.3s ease;
}

.legal-card a:hover {
    color: #1557b0;
}

/* 互动功能预览 */
.interactive-preview {
    padding: 100px 0;
    background: #f0f4f8;
}

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

.interactive-card {
    background: white;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.interactive-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.interactive-card i {
    font-size: 48px;
    color: #34a853;
    margin-bottom: 20px;
}

.interactive-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.interactive-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.interactive-card a {
    display: inline-block;
    text-decoration: none;
    color: #34a853;
    font-weight: 600;
    transition: color 0.3s ease;
}

.interactive-card a:hover {
    color: #2d8f47;
}

/* 页脚 */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a73e8;
}

.footer-info p {
    line-height: 1.6;
    color: #ccc;
}

.footer-links h4,
.footer-share h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #1a73e8;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.share-buttons {
    display: flex;
    gap: 15px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #444;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: #1a73e8;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 14px;
}

/* 分享弹窗 */
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.share-modal.active {
    display: flex;
}

.share-modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 90%;
    max-width: 500px;
    animation: fadeIn 0.3s ease;
}

.share-modal-content h3 {
    margin-bottom: 30px;
    color: #333;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.share-option {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.share-option:hover {
    background: #1a73e8;
    color: white;
    transform: translateY(-5px);
}

.share-option i {
    font-size: 24px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content h3 {
        font-size: 24px;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .legal-cards,
    .interactive-cards {
        grid-template-columns: 1fr;
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 28px;
    }

    .hero-content h3 {
        font-size: 20px;
    }

    .btn-primary,
    .btn-secondary {
        margin: 10px 0;
        width: 80%;
    }

    .section-title {
        font-size: 28px;
    }

    .about-text {
        font-size: 16px;
    }
}

/* 法律知识页面样式 */
.legal-knowledge {
    padding: 100px 0;
    background: #f8f9fa;
}

.legal-section {
    margin-bottom: 80px;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.legal-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a73e8;
    border-bottom: 2px solid #1a73e8;
    padding-bottom: 15px;
}

.legal-section h3 {
    font-size: 22px;
    margin: 25px 0 15px;
    color: #333;
}

.legal-section h4 {
    font-size: 18px;
    margin: 20px 0 10px;
    color: #555;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: #666;
}

.legal-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-section li {
    margin-bottom: 10px;
    color: #666;
    line-height: 1.6;
}

.legal-section li strong {
    color: #333;
}

/* 互动游戏页面样式 */
.interactive-games {
    padding: 100px 0;
    background: white;
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #1a73e8;
}

.game-description {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    line-height: 1.6;
}

.game-options {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.game-option {
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-option:hover {
    border-color: #1a73e8;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.game-option.correct {
    border-color: #34a853;
    background: #e6f4ea;
}

.game-option.incorrect {
    border-color: #ea4335;
    background: #fce8e6;
}

.game-feedback {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.game-feedback.correct {
    background: #e6f4ea;
    color: #34a853;
}

.game-feedback.incorrect {
    background: #fce8e6;
    color: #ea4335;
}

.game-next {
    display: block;
    margin: 0 auto;
    padding: 12px 30px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.game-next:hover {
    background: #1557b0;
    transform: translateY(-3px);
}

/* 承诺书页面样式 */
.commitment {
    padding: 100px 0;
    background: #f0f4f8;
}

.commitment-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.commitment-content {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.commitment-content p {
    margin-bottom: 15px;
}

.commitment-sign {
    text-align: right;
    margin-top: 40px;
}

.signature-line {
    margin-bottom: 10px;
    font-weight: 600;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.submit-btn:hover {
    background: #1557b0;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 海报生成页面样式 */
.poster-generator {
    padding: 100px 0;
    background: white;
}

.poster-form {
    max-width: 1000px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.poster-preview {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #e0e0e0;
}

.poster-template {
    width: 100%;
    max-width: 500px;
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    padding: 40px;
    border-radius: 10px;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.poster-template h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.poster-template p {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.poster-template .poster-footer {
    margin-top: 30px;
    font-size: 14px;
    opacity: 0.9;
}

.generate-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #34a853;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.generate-btn:hover {
    background: #2d8f47;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.download-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: #ea4335;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-align: center;
    text-decoration: none;
}

.download-btn:hover {
    background: #d33b2c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 活动报道页面样式 */
.news-report {
    padding: 100px 0;
    background: #f8f9fa;
}

.news-content {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1a73e8;
}

.meipian-embed {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.news-share {
    margin-top: 30px;
    text-align: center;
}

.news-share h3 {
    margin-bottom: 20px;
    color: #333;
}
