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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5530;
}

.nav-logo i {
    margin-right: 10px;
    color: #28a745;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #28a745;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #28a745;
    color: white;
}

.btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

/* 为什么要分类 */
.why-classify {
    padding: 80px 0;
    background: white;
}

.why-classify h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c5530;
}

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

.benefit-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.benefit-card i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c5530;
}

/* 分类指南 */
.classification-guide {
    padding: 80px 0;
    background: #f8f9fa;
}

.classification-guide h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c5530;
}

/* 搜索区域 */
.search-section {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}

.search-box {
    display: flex;
    margin-bottom: 20px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.search-box input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 1.1rem;
    outline: none;
}

.search-box button {
    padding: 15px 25px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: #218838;
}

.search-options {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.search-options button {
    padding: 10px 20px;
    background: white;
    border: 2px solid #28a745;
    color: #28a745;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.search-options button:hover {
    background: #28a745;
    color: white;
}

/* 四分类标准 */
.classification-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.type-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.type-card:hover {
    transform: translateY(-5px);
}

.type-icon {
    text-align: center;
    margin-bottom: 20px;
}

.type-icon i {
    font-size: 3rem;
    color: #666;
}

.type-card h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.type-color {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.type-color.blue {
    background: #007bff;
}

.type-color.red {
    background: #dc3545;
}

.type-color.green {
    background: #28a745;
}

.type-color.gray {
    background: #6c757d;
}

.type-card p {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.type-card ul {
    list-style: none;
}

.type-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
}

.type-card li:last-child {
    border-bottom: none;
}

/* 场景指南 */
.scenario-guides {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.scenario-guides h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c5530;
}

.scenario-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    background: #f8f9fa;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-btn.active {
    background: #28a745;
    color: white;
}

.scenario-content {
    min-height: 200px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

/* 资源再生之旅 */
.recycling-journey {
    padding: 80px 0;
    background: white;
}

.recycling-journey h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c5530;
}

.section-desc {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
}

.journey-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.journey-tab {
    padding: 15px 30px;
    background: #f8f9fa;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1.1rem;
}

.journey-tab.active {
    background: #28a745;
    color: white;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

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

.step-number {
    width: 50px;
    height: 50px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c5530;
}

.step-content p {
    color: #666;
    line-height: 1.6;
}

.journey-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745;
}

.stat-unit {
    display: block;
    font-size: 1.1rem;
    color: #333;
    margin: 5px 0;
}

.stat-desc {
    font-size: 0.9rem;
    color: #666;
}

/* 法规政策 */
.laws-policies {
    padding: 80px 0;
    background: #f8f9fa;
}

.laws-policies h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c5530;
}

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

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #28a745;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 30px;
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    border: 3px solid white;
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c5530;
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* 趣味互动 */
.interactive-section {
    padding: 80px 0;
    background: white;
}

.interactive-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c5530;
}

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

.interactive-card {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: transform 0.3s;
}

.interactive-card:hover {
    transform: translateY(-5px);
}

.interactive-card i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 20px;
}

.interactive-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c5530;
}

.interactive-card p {
    color: #666;
    margin-bottom: 25px;
}

.btn-game, .btn-quiz, .btn-rank {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-game {
    background: #007bff;
    color: white;
}

.btn-quiz {
    background: #28a745;
    color: white;
}

.btn-rank {
    background: #ffc107;
    color: #333;
}

.btn-game:hover, .btn-quiz:hover, .btn-rank:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 科普素材库 */
.materials-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.materials-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #2c5530;
}

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

.material-card {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.material-card:hover {
    transform: translateY(-5px);
}

.material-card i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 20px;
}

.material-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c5530;
}

.material-card p {
    color: #666;
}

/* 页脚 */
.footer {
    background: #2c5530;
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #28a745;
}

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

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

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

.footer-section a:hover {
    color: #28a745;
}

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

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.modal-search {
    display: flex;
    gap: 10px;
    margin: 30px 0;
}

.modal-search input {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
}

.modal-search button {
    padding: 15px 25px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.result-name {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.result-category {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.result-category.recyclable {
    background: #007bff;
    color: white;
}

.result-category.harmful {
    background: #dc3545;
    color: white;
}

.result-category.kitchen {
    background: #28a745;
    color: white;
}

.result-category.other {
    background: #6c757d;
    color: white;
}

.result-tips {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 内联搜索结果样式 */
.inline-search-results {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #dee2e6;
}

.search-results-header h4 {
    margin: 0;
    color: #2c5530;
    font-size: 1.4rem;
}

.clear-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.clear-btn:hover {
    background: #c82333;
    transform: scale(1.05);
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results h4 {
    color: #dc3545;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.no-results p {
    font-size: 1rem;
    line-height: 1.6;
}

.inline-search-results .search-result-item {
    margin-bottom: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid #28a745;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.inline-search-results .search-result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.inline-search-results .result-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 10px;
}

.inline-search-results .result-category {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.inline-search-results .result-tips {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid #28a745;
}

/* 游戏模态框样式 */
.game-modal {
    max-width: 900px;
    width: 95%;
}

.game-modal .modal-content {
    margin: 2% auto;
    max-height: 95vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.game-content {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.game-info > div {
    text-align: center;
    font-weight: bold;
}

.game-info span {
    display: block;
    font-size: 1.5rem;
    color: #2c5530;
    margin-top: 5px;
}

.game-area {
    position: relative;
    min-height: 300px;
    margin-bottom: 20px;
}

.game-item {
    text-align: center;
    margin-bottom: 30px;
}

.item-display {
    display: inline-block;
    padding: 20px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 15px;
    cursor: grab;
    transition: all 0.3s ease;
}

.item-display:hover {
    border-color: #2c5530;
    transform: scale(1.05);
}

.item-display:active {
    cursor: grabbing;
}

.item-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.item-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c5530;
}

.trash-bins {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.trash-bin {
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.trash-bin:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.trash-bin.drag-over {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
}

.trash-bin.recyclable {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.trash-bin.harmful {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.trash-bin.kitchen {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
}

.trash-bin.other {
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
}

.trash-bin i {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.trash-bin span {
    font-weight: bold;
}

.game-controls {
    text-align: center;
    flex-shrink: 0;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 15px;
}

.game-controls button {
    margin: 0 10px;
}

/* 测验模态框样式 */
.quiz-modal {
    max-width: 700px;
    width: 90%;
}

.quiz-content {
    padding: 20px;
}

.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    margin-right: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.question-area {
    margin-bottom: 30px;
}

#questionText {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: #2c5530;
}

.options-area {
    display: grid;
    gap: 15px;
}

.quiz-option {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.quiz-option:hover {
    border-color: #2c5530;
    background: rgba(44, 85, 48, 0.05);
}

.quiz-option.selected {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.1);
}

.quiz-option.correct {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.quiz-option.incorrect {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.quiz-option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.quiz-option label {
    cursor: pointer;
    flex: 1;
    font-weight: 500;
}

.answer-explanation {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #17a2b8;
}

.answer-explanation p {
    margin: 5px 0;
}

.quiz-controls {
    text-align: center;
    margin-top: 20px;
}

.quiz-controls button:disabled {
    background-color: #6c757d !important;
    color: white !important;
    cursor: not-allowed;
    opacity: 1;
}

.quiz-controls button:not(:disabled) {
    background-color: #007bff !important;
    color: white !important;
}

.quiz-result {
    text-align: center;
}

.quiz-final-result h3 {
    color: #2c5530;
    margin-bottom: 25px;
}

.result-stats {
    margin-bottom: 25px;
}

.stat-circle {
    display: inline-block;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.percentage {
    font-size: 2rem;
    font-weight: bold;
}

.score-text {
    font-size: 0.9rem;
    opacity: 0.9;
}

.result-level h4 {
    color: #2c5530;
    margin-bottom: 10px;
}

.result-actions {
    margin-top: 25px;
}

.result-actions button {
    margin: 0 10px;
}

/* 排行榜模态框样式 */
.ranking-modal {
    max-width: 600px;
    width: 90%;
}

.ranking-content {
    padding: 20px;
}

.user-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #2c5530, #28a745);
    border-radius: 15px;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.ranking-list {
    max-height: 400px;
    overflow-y: auto;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 10px;
    border: 2px solid #f8f9fa;
    transition: all 0.3s ease;
}

.rank-item:hover {
    border-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rank-item.user-rank {
    border-color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.rank-position {
    width: 50px;
    text-align: center;
    font-size: 1.5rem;
    margin-right: 15px;
}

.rank-number {
    font-weight: bold;
    color: #6c757d;
}

.rank-avatar {
    font-size: 2rem;
    margin-right: 15px;
}

.rank-info {
    flex: 1;
}

.rank-name {
    font-weight: bold;
    color: #2c5530;
    margin-bottom: 5px;
}

.rank-score {
    color: #6c757d;
    font-size: 0.9rem;
}

.user-badge {
    background: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 动画效果 */
@keyframes feedbackPop {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .classification-types {
        grid-template-columns: 1fr;
    }
    
    .scenario-tabs {
        flex-wrap: wrap;
    }
    
    .journey-steps {
        grid-template-columns: 1fr;
    }
    
    .journey-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .interactive-grid {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .timeline {
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item::before {
        left: -32px;
    }
    
    /* 移动端游戏样式调整 */
    .trash-bins {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .game-info > div {
        padding: 10px;
        background: white;
        border-radius: 8px;
    }
    
    .user-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rank-item {
        padding: 12px;
    }
    
    .rank-position {
        width: 40px;
        margin-right: 10px;
    }
    
    .rank-avatar {
        font-size: 1.5rem;
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .search-options {
        flex-direction: column;
        align-items: center;
    }
    
    .modal-content {
        margin: 5% auto;
        padding: 20px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 隐藏类 */
.hidden {
    display: none !important;
}

/* 活跃状态 */
.active {
    display: block;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}