/* style/ththao.css */

:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --card-bg: #10233F;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
}

.page-ththao {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page, suitable for dark background */
    background-color: var(--deep-navy); /* Assumed from shared.css body background */
}

.page-ththao__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-ththao__hero-section {
    padding-top: 10px; /* Small top padding, assuming body padding-top handles header offset */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px; /* Minimum height for hero section */
}

.page-ththao__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
    margin-bottom: 30px; /* Space between image and content */
}

.page-ththao__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Limit height */
}

.page-ththao__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    box-sizing: border-box;
}

.page-ththao__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-ththao__intro-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-ththao__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-ththao__btn-primary,
.page-ththao__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 300px; /* Limit button width */
    text-align: center;
}

.page-ththao__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-ththao__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-ththao__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-ththao__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-ththao__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-ththao__text-block {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-ththao__text-block a {
    color: var(--glow-color);
    text-decoration: underline;
}

.page-ththao__text-block a:hover {
    color: var(--gold-color);
}

.page-ththao__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

.page-ththao__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__grid-item,
.page-ththao__feature-card,
.page-ththao__step-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    color: var(--text-main);
}

.page-ththao__card-title,
.page-ththao__item-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-ththao__card-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-ththao__dark-section {
    background-color: var(--deep-navy);
    color: var(--text-main);
}

.page-ththao__button-group {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;
}

.page-ththao__step-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-ththao__step-item {
    text-align: center;
}

.page-ththao__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--button-gradient);
    color: var(--text-main);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(43, 115, 246, 0.5);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-ththao__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .page-ththao__section-title {
        font-size: 2rem;
    }

    .page-ththao__intro-text {
        font-size: 1.1rem;
    }

    .page-ththao__container {
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-ththao__hero-section {
        padding-top: 10px !important; /* Small top padding, important for mobile */
        min-height: auto;
    }

    .page-ththao__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-ththao__hero-image {
        max-height: 400px;
    }

    .page-ththao__hero-content {
        padding: 15px;
    }

    .page-ththao__main-title {
        font-size: 2rem !important;
        margin-bottom: 10px;
    }

    .page-ththao__intro-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-ththao__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-ththao__btn-primary,
    .page-ththao__btn-secondary,
    .page-ththao a[class*="button"],
    .page-ththao a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-ththao__button-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 通用图片与容器 */
    .page-ththao img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-ththao__section,
    .page-ththao__container,
    .page-ththao__grid-container,
    .page-ththao__step-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    .page-ththao__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-ththao__text-block {
        font-size: 1rem;
    }

    .page-ththao__grid-container {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-ththao__step-list {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    /* 产品展示图区域 - Not explicitly a gameshow grid, but general content images */
    /* Ensure content images are responsive */
    .page-ththao__content-image, .page-ththao__card-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* 其他内容模块 */
    .page-ththao__grid-item, .page-ththao__feature-card, .page-ththao__step-item {
        padding: 20px;
    }

    .page-ththao__card-title, .page-ththao__item-title {
        font-size: 1.3rem;
    }
}