/* Base styles for the sitemap page */
.page-sitemap {
    background-color: var(--page-bg, #08160F); /* Use custom background color, fallback to dark green */
    color: var(--text-main, #F2FFF6); /* Use custom main text color, fallback to light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.page-sitemap__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
    background-color: var(--card-bg, #11271B); /* Dark background for hero section */
}

.page-sitemap__hero-image {
    width: 100%;
    max-height: 675px; /* Limit height for aesthetic */
    overflow: hidden;
    margin-bottom: 20px;
}

.page-sitemap__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-sitemap__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-sitemap__main-title {
    font-size: 2.8em;
    font-weight: 700;
    line-height: 1.2;
    color: var(--gold, #F2C14E); /* Gold color for main title */
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-sitemap__description {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8); /* Secondary text color */
    margin-bottom: 30px;
}

/* Content Section */
.page-sitemap__content-section {
    padding: 60px 0;
    background-color: var(--background, #08160F); /* Main background color */
    color: var(--text-main, #F2FFF6);
}

.page-sitemap__dark-section {
    background-color: var(--background, #08160F); /* Ensure dark background for the entire content section */
    color: var(--text-main, #F2FFF6);
}

.page-sitemap__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-sitemap__section-title {
    font-size: 2.2em;
    font-weight: 600;
    color: var(--gold, #F2C14E); /* Gold color for section titles */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-sitemap__text-block {
    font-size: 1.05em;
    margin-bottom: 25px;
    color: var(--text-main, #F2FFF6);
}

.page-sitemap__image-full {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sitemap__category-group {
    background-color: var(--card-bg, #11271B); /* Card background color */
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border, #2E7A4E); /* Border color */
}

.page-sitemap__category-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--gold, #F2C14E); /* Gold color for category titles */
    margin-bottom: 20px;
    border-bottom: 2px solid var(--divider, #1E3A2A); /* Divider color */
    padding-bottom: 10px;
}

.page-sitemap__category-description {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 25px;
}

.page-sitemap__link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-sitemap__list-item {
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--text-main, #F2FFF6);
    display: flex;
    align-items: flex-start;
}

.page-sitemap__list-item::before {
    content: "•";
    color: var(--glow, #57E38D); /* Glow color for bullet points */
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    margin-right: 0.5em;
}

.page-sitemap__link {
    color: var(--glow, #57E38D); /* Glow color for links */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.page-sitemap__link:hover {
    color: var(--gold, #F2C14E); /* Gold color on hover */
    text-decoration: underline;
}

/* CTA Section */
.page-sitemap__cta-section {
    text-align: center;
    padding: 50px 20px;
    background-color: var(--deep-green, #0A4B2C); /* Deep green background for CTA */
    border-radius: 10px;
    margin-top: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-sitemap__cta-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--gold, #F2C14E);
    margin-bottom: 20px;
}

.page-sitemap__cta-description {
    font-size: 1.1em;
    color: var(--text-secondary, #A7D9B8);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-sitemap__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-sitemap__btn-primary,
.page-sitemap__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Include padding in element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button does not exceed container width */
}

.page-sitemap__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: var(--text-main, #F2FFF6); /* Light text for dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sitemap__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-sitemap__btn-secondary {
    background-color: transparent;
    color: var(--glow, #57E38D); /* Glow color for secondary button text */
    border: 2px solid var(--glow, #57E38D); /* Glow color for border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sitemap__btn-secondary:hover {
    background-color: var(--glow, rgba(87, 227, 141, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-sitemap__footer-text {
    text-align: center;
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--divider, #1E3A2A);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-sitemap__hero-section {
        padding-top: 10px; /* Consistent small top padding */
        padding-bottom: 30px;
    }

    .page-sitemap__hero-image {
        max-height: 400px; /* Adjust height for mobile */
    }

    .page-sitemap__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-sitemap__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em); /* clamp for H1 font size */
        margin-bottom: 15px;
    }

    .page-sitemap__description {
        font-size: 1em;
    }

    /* 长文区 */
    .page-sitemap__content-section {
        padding: 40px 0;
    }

    .page-sitemap__container {
        padding: 0 15px;
    }

    .page-sitemap__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-sitemap__text-block {
        font-size: 0.95em;
    }

    /* 通用图片与容器 */
    .page-sitemap img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-sitemap__container,
    .page-sitemap__category-group,
    .page-sitemap__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sitemap__category-group {
        padding: 20px;
        margin-bottom: 30px;
    }

    .page-sitemap__category-title {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .page-sitemap__list-item {
        font-size: 0.95em;
    }

    /* 按钮与按钮容器 */
    .page-sitemap__cta-section {
        padding: 40px 15px;
    }

    .page-sitemap__cta-title {
        font-size: 2em;
    }

    .page-sitemap__cta-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-sitemap__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding-left: 0; /* Already handled by container padding */
        padding-right: 0; /* Already handled by container padding */
    }

    .page-sitemap__btn-primary,
    .page-sitemap__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px; /* Adjust padding for mobile buttons */
        font-size: 1em;
    }
}