/* 简约中国风首页样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: "Microsoft YaHei", "SimHei", -apple-system, sans-serif;
}

body {
    background: #f5f0e8;
    color: #2c2c2c;
}

/* 主容器 */
.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    animation: fadeIn 0.6s ease-out;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #d4c5a9;
    margin-bottom: 32px;
}

.header-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: 3px;
}

.header-info .subtitle {
    font-size: 13px;
    color: #888;
    letter-spacing: 1px;
    margin-top: 4px;
}
.header-nav {
    display: flex;
    gap: 10px;
}

.nav-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid #8b2500;
    border-radius: 6px;
    color: #8b2500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #8b2500;
    color: #fff;
}

/* Hero 区域 */
.hero-section {
    position: relative;
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 36px;
    background: url('../images/皇宫建筑/北京故宫.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    text-align: center;
}

.hero-title {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 28px;
    letter-spacing: 2px;
}

.hero-btn {
    background: #8b2500;
    color: #fff;
    border: none;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 1px;
}

.hero-btn:hover {
    background: #a63000;
}

.hero-section:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
/* 主内容区 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 卡片容器 */
.card-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 36px;
}

.card-container.five-cards {
    grid-template-columns: repeat(3, 1fr);
}

/* 卡片样式 */
.type-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #fff;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background-size: cover;
    background-position: center;
}

.type-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 0;
    transition: background 0.3s;
}

.type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.type-card:hover::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.card-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
    padding: 0 24px;
}

.card-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    padding: 0 24px;
}
.card-count {
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 10px 16px;
    margin: 0 24px 14px;
    position: relative;
    z-index: 1;
}

.count-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.count-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.card-examples {
    margin-bottom: 16px;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.example-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}

.example-dot {
    width: 5px;
    height: 5px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    margin-right: 8px;
    flex-shrink: 0;
}

.card-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.6);
    color: #fff;
    padding: 8px 28px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
    margin: 0 24px 24px;
    align-self: flex-start;
}

.card-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: #fff;
}
/* 图表区域 */
.chart-section {
    background: #fff;
    border: 1px solid #d4c5a9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 20px;
    color: #2c2c2c;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 4px solid #8b2500;
}

.chart-container {
    width: 100%;
    height: 300px;
}

/* 数据可信入口 */
.trust-entry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #d4c5a9;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.trust-tag {
    background: #8b2500;
    color: #fff;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
}

.trust-link {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 14px;
}

.trust-link:hover {
    color: #8b2500;
    text-decoration: underline;
}

/* 底部 */
.footer {
    text-align: center;
    padding: 24px 0;
    color: #999;
    font-size: 13px;
}

.footer p {
    margin: 4px 0;
}

/* 页面加载动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .card-container,
    .card-container.five-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .card-container,
    .card-container.five-cards {
        grid-template-columns: 1fr;
    }
    .header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .header-nav {
        justify-content: center;
    }
    .hero-section {
        height: 240px;
    }
    .hero-title {
        font-size: 28px;
    }
    .trust-entry {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 滚动条 */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #e8e0d0;
}
::-webkit-scrollbar-thumb {
    background: #c4b89a;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #8b2500;
}
