/* ===== 重置和基础样式 ===== */
.sitemap-container * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sitemap-container h1,
.sitemap-container h2,
.sitemap-container h3 {
    font-weight: 500;
    line-height: 1.2;
}

/* ===== 容器样式 ===== */
.sitemap-container {
    max-width: 1200px;
    margin: 150px auto 50px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* ===== 头部样式 ===== */
.sitemap-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.sitemap-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.sitemap-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== 卡片样式 ===== */
.sitemap-content {
    padding: 20px;
}

.sitemap-card {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: white;
}

.sitemap-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* ===== 卡片头部 ===== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background 0.3s ease;
}

.card-header:hover {
    background: #e9ecef;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.title-text {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 500;
    margin: 0;
}

/* ===== 切换按钮 ===== */
.toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

/* ===== 卡片内容区域 ===== */
.card-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.card-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 链接网格 ===== */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

/* ===== 链接样式 ===== */
.site-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    gap: 12px;
}

.site-link:hover {
    background: #e9ecef;
    color: #2c3e50;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
}

.link-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.link-text {
    font-size: 1rem;
    font-weight: 500;
}

/* ===== 卡片展开状态 ===== */
.sitemap-card.active .toggle-icon {
    transform: rotate(180deg);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .sitemap-container {
        margin: 120px auto 40px;
        margin-top: 0;
    }

    .sitemap-header {
        padding: 30px 20px;
    }

    .sitemap-title {
        font-size: 2rem;
    }

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

    .card-header {
        padding: 15px;
    }

    .title-text {
        font-size: 1.3rem;
    }

    .title-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .sitemap-container {
        margin:10px auto 30px;
    }

    .sitemap-header {
        padding: 25px 15px;
    }

    .sitemap-title {
        font-size: 1.8rem;
    }

    .sitemap-subtitle {
        font-size: 1rem;
    }

    .sitemap-content {
        padding: 15px;
    }

    .card-header {
        padding: 12px;
    }

    .title-text {
        font-size: 1.2rem;
    }

    .title-icon {
        width: 20px;
        height: 20px;
    }

    .toggle-icon {
        width: 18px;
        height: 18px;
    }

    .site-link {
        padding: 12px;
        gap: 10px;
    }

    .link-icon {
        width: 20px;
        height: 20px;
    }

    .link-text {
        font-size: 0.95rem;
    }
}