
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #8e1c1c;
            --secondary: #d4a017;
            --light: #f9f3e9;
            --dark: #333;
            --accent: #1a5d1a;
            --blue: #1c1c8e;
            --transition: all 0.3s ease;
        }

        body {
            font-family: 'Noto Serif SC', serif;
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.6;
            background-image: 
                radial-gradient(circle at 10% 20%, rgba(212, 160, 23, 0.1) 0%, rgba(212, 160, 23, 0) 20%),
                radial-gradient(circle at 90% 80%, rgba(142, 28, 28, 0.1) 0%, rgba(142, 28, 28, 0) 20%);
            background-size: 100% 100%;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* 头部样式 */
        header {
            background: linear-gradient(135deg, var(--primary), #6b1515);
            color: white;
            padding: 15px 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .logo {
            display: flex;
            align-items: center;
        }

        .logo-icon {
            font-size: 2.5rem;
            margin-right: 10px;
            color: var(--secondary);
        }

        .logo-text {
            font-size: 1.8rem;
            font-weight: 700;
        }

        .logo-text span {
            color: var(--secondary);
        }

        nav ul {
            display: flex;
            list-style: none;
        }

        nav li {
            margin-left: 20px;
        }

        nav a {
            color: white;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 500;
            padding: 8px 15px;
            border-radius: 4px;
            transition: var(--transition);
            position: relative;
        }

        nav a:hover {
            background: rgba(255, 255, 255, 0.15);
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--secondary);
            transition: var(--transition);
        }

        nav a:hover::after {
            width: 100%;
        }

        .search-box {
            display: flex;
            margin: 15px 0;
            width: 100%;
            max-width: 600px;
        }

        .search-box input {
            padding: 12px 20px;
            border: none;
            border-radius: 30px 0 0 30px;
            width: 100%;
            font-size: 1.1rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .search-box button {
            background: var(--secondary);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 0 30px 30px 0;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 600;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .search-box button:hover {
            background: #c28f14;
        }

        .search-filters {
            display: flex;
            gap: 15px;
            margin-top: 10px;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: rgba(255,255,255,0.2);
            color: white;
            border: none;
            padding: 5px 15px;
            border-radius: 20px;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .filter-btn.active, .filter-btn:hover {
            background: var(--secondary);
        }

        /* 顶部横幅区域 */
        .hero {
            background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), 
                        url('../img/民族图库/全国少数民族传统体育运动会.jpg');
            background-size: cover;
            background-position: center;
            color: white;
            text-align: center;
            padding: 100px 20px;
            margin-bottom: 50px;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            letter-spacing: 1px;
        }

        .hero p {
            font-size: 1.5rem;
            max-width: 800px;
            margin: 0 auto 30px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        }

        .btn {
            display: inline-block;
            background: var(--secondary);
            color: white;
            padding: 12px 30px;
            border-radius: 30px;
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 600;
            transition: var(--transition);
            border: 2px solid var(--secondary);
            cursor: pointer;
            margin: 5px;
        }

        .btn:hover {
            background: transparent;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        .btn-outline {
            background: transparent;
        }

        .btn-outline:hover {
            background: var(--secondary);
        }

        /* 内容区域样式 */
        section {
            padding: 60px 0;
        }

        .section-header {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-header h2 {
            font-size: 2.5rem;
            color: var(--primary);
            position: relative;
            display: inline-block;
            margin-bottom: 15px;
            padding: 0 20px;
        }

        .section-header h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--secondary);
            border-radius: 2px;
        }

        .section-header p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 20px auto 0;
            color: #555;
        }

        /* 卡片样式 */
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .feature-card {
            background: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: var(--transition);
            position: relative;
            cursor: pointer;
        }

        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
        }

        .card-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--secondary);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            z-index: 2;
        }

        .card-img {
            height: 200px;
            background-size: cover;
            background-position: center;
            position: relative;
        }
        
        .card-img img {
		    width: 100%;
		    height: 100%;
		    object-fit: cover; /* 关键属性：填充容器并保持比例 */
		    object-position: center; /* 图片居中显示 */
		}

        .img-placeholder {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,0.5);
            color: white;
            font-weight: bold;
            text-align: center;
            padding: 20px;
        }

        .card-content {
            padding: 25px;
        }

        .card-content h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--primary);
        }

        .card-content p {
            margin-bottom: 20px;
            color: #555;
            min-height: 80px;
        }

        .keywords {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 15px;
        }

        .keyword {
            background: rgba(142, 28, 28, 0.1);
            color: var(--primary);
            padding: 3px 10px;
            border-radius: 15px;
            font-size: 0.85rem;
        }

        .read-more {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: flex-end;
        }

        .read-more i {
            margin-left: 5px;
            transition: var(--transition);
        }

        .read-more:hover i {
            transform: translateX(5px);
        }

        /* 统计数据区域 */
        .stats {
            background: linear-gradient(to right, var(--primary), var(--accent));
            color: white;
            padding: 80px 0;
            text-align: center;
        }

        .stats-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
        }

        .stat-item {
            padding: 20px;
        }

        .stat-item i {
            font-size: 3rem;
            margin-bottom: 20px;
            color: var(--secondary);
        }

        .stat-item .number {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .stat-item .label {
            font-size: 1.2rem;
            opacity: 0.9;
        }

        /* 图表区域 */
        .chart-container {
            background: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin: 30px auto;
            max-width: 800px;
        }

        /* 图库区域 */
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 40px;
        }

        .gallery-item {
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            height: 250px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
            color: white;
            padding: 20px;
            transform: translateY(100%);
            transition: var(--transition);
        }

        .gallery-item:hover .gallery-overlay {
            transform: translateY(0);
        }

        /* 搜索结果区域 */
        .search-results {
            background: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            margin: 40px auto;
            display: none;
        }

        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--light);
        }

        .results-count {
            font-size: 1.2rem;
            color: var(--primary);
            font-weight: 600;
        }

        .no-results {
            text-align: center;
            padding: 40px;
            color: #777;
        }

        /* 详情模态框 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 2000;
            overflow: auto;
            padding: 20px;
        }

        .modal-content {
            background: white;
            border-radius: 10px;
            max-width: 900px;
            margin: 40px auto;
            position: relative;
            animation: modalopen 0.4s;
        }

        @keyframes modalopen {
            from {opacity:0; transform: translateY(-60px);}
            to {opacity:1; transform: translateY(0);}
        }

        .close-modal {
            position: absolute;
            top: 20px;
            right: 20px;
            font-size: 2rem;
            color: #aaa;
            cursor: pointer;
            z-index: 10;
        }

        .close-modal:hover {
            color: var(--primary);
        }

        .modal-header {
            padding: 30px 30px 20px;
            border-bottom: 1px solid #eee;
        }

        .modal-header h2 {
            color: var(--primary);
            font-size: 2.2rem;
        }

        .modal-body {
            padding: 30px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
        }

        .modal-img {
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5; /* 添加背景色 */
}

.modal-img img {
    transition: opacity 0.3s ease;
}

.modal-img img[src=""] {
    opacity: 0;
}

.modal-img-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.1);
    color: #666;
    font-weight: bold;
    text-align: center;
    padding: 20px;
}
        .modal-text {
            line-height: 1.8;
        }

        .modal-text p {
            margin-bottom: 15px;
        }

        .modal-keywords {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 20px 0;
        }

        .modal-keyword {
            background: rgba(142, 28, 28, 0.1);
            color: var(--primary);
            padding: 5px 15px;
            border-radius: 20px;
        }

        /* 页脚区域 */
        footer {
            background: var(--dark);
            color: white;
            padding: 60px 0 30px;
            margin-top: 50px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column h3 {
            font-size: 1.4rem;
            margin-bottom: 25px;
            color: var(--secondary);
            position: relative;
            padding-bottom: 10px;
        }

        .footer-column h3::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 50px;
            height: 2px;
            background: var(--secondary);
        }

        .footer-column p, .footer-column li {
            opacity: 0.8;
            margin-bottom: 10px;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column a {
            color: white;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-column a:hover {
            color: var(--secondary);
            padding-left: 5px;
        }

        .social-icons {
            display: flex;
            margin-top: 20px;
        }

        .social-icons a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            margin-right: 10px;
            transition: var(--transition);
        }

        .social-icons a:hover {
            background: var(--secondary);
            transform: translateY(-5px);
        }

        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            opacity: 0.7;
        }

        /* 响应式设计 */
        @media (max-width: 992px) {
            .hero h1 {
                font-size: 2.8rem;
            }
            
            nav {
                display: none;
            }
            
            .header-container {
                flex-direction: column;
                align-items: stretch;
            }
            
            .search-box {
                margin: 15px 0 0;
            }
            
            .modal-body {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 768px) {
            .hero {
                padding: 80px 20px;
            }
            
            .hero h1 {
                font-size: 2.2rem;
            }
            
            .hero p {
                font-size: 1.2rem;
            }
            
            .section-header h2 {
                font-size: 2rem;
            }
        }

        @media (max-width: 576px) {
            .logo {
                justify-content: center;
                margin-bottom: 10px;
            }
            
            .hero h1 {
                font-size: 1.8rem;
            }
            
            .btn {
                display: block;
                margin: 10px auto;
                width: 80%;
                max-width: 250px;
            }
            
            .search-filters {
                justify-content: center;
            }
        }
