/* style/cockfighting.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #26A9E0;
    --login-color: #EA7C07;
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: justify;
}

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

.page-cockfighting__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
    background-color: #1f8ec4;
    border-color: #1f8ec4;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
    padding-top: 0; /* Assumes shared.css handles body padding */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--secondary-color);
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.7;
    color: var(--secondary-color);
}

.page-cockfighting__hero-buttons .page-cockfighting__btn-primary,
.page-cockfighting__hero-buttons .page-cockfighting__btn-secondary {
    font-size: 1.2em;
    padding: 18px 40px;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-cockfighting__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-cockfighting__features-section .page-cockfighting__section-title {
    color: var(--secondary-color);
}

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

.page-cockfighting__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-cockfighting__feature-description {
    font-size: 1.05em;
    line-height: 1.7;
}

/* Gameshow Section */
.page-cockfighting__gameshow-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-cockfighting__gameshow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__gameshow-item {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__gameshow-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-cockfighting__gameshow-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__gameshow-title {
    font-size: 1.5em;
    color: var(--primary-color);
    padding: 15px 20px 0;
    margin-bottom: 10px;
}

.page-cockfighting__gameshow-description {
    font-size: 0.95em;
    color: var(--text-dark);
    padding: 0 20px 20px;
    line-height: 1.6;
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-cockfighting__guide-section .page-cockfighting__section-title {
    color: var(--secondary-color);
}

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

.page-cockfighting__step-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.page-cockfighting__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--login-color);
    margin-bottom: 15px;
}

.page-cockfighting__step-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-cockfighting__step-description {
    font-size: 1em;
    line-height: 1.7;
}

/* Strategy Section */
.page-cockfighting__strategy-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

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

.page-cockfighting__strategy-item {
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    background-color: var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__strategy-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.page-cockfighting__strategy-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__strategy-description {
    font-size: 1em;
    line-height: 1.7;
}

.page-cockfighting__strategy-image {
    margin-top: 50px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.page-cockfighting__promotions-section .page-cockfighting__section-title {
    color: var(--secondary-color);
}

.page-cockfighting__promotion-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: center;
}

.page-cockfighting__promotion-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.6;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #f0f0f0;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: var(--text-dark);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 20px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    font-size: 1.05em;
    line-height: 1.7;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    padding: 80px 0;
    background-color: var(--background-dark);
    color: var(--text-light);
    text-align: center;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
    color: var(--secondary-color);
}


/* General Image styles for responsiveness */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Media Queries for Responsiveness */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 15px;
    }

    .page-cockfighting__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-cockfighting__hero-title {
        font-size: 3em;
    }

    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }

    .page-cockfighting__hero-buttons .page-cockfighting__btn-primary,
    .page-cockfighting__hero-buttons .page-cockfighting__btn-secondary {
        padding: 15px 30px;
        font-size: 1.1em;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__gameshow-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__strategy-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-cockfighting__gameshow-image {
        height: 200px;
    }

    .page-cockfighting__gameshow-title {
        font-size: 1.3em;
    }

    .page-cockfighting__feature-title,
    .page-cockfighting__step-title,
    .page-cockfighting__strategy-title {
        font-size: 1.5em;
    }

    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 18px 20px;
    }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    /* HERO 主图区域 */
    .page-cockfighting__hero-section {
        height: 60vh;
        padding-top: 0 !important; /* Ensure no double padding if shared.css sets body padding */
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

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

    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__hero-buttons .page-cockfighting__btn-primary,
    .page-cockfighting__hero-buttons .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 20px !important;
        font-size: 1em !important;
    }

    /* 产品展示图区域 */
    .page-cockfighting__gameshow-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__gameshow-image {
        height: 180px;
    }

    .page-cockfighting__gameshow-title {
        font-size: 1.2em;
    }

    .page-cockfighting__gameshow-description {
        font-size: 0.9em;
    }

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

    .page-cockfighting__introduction-section,
    .page-cockfighting__features-section,
    .page-cockfighting__gameshow-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding: 40px 0;
    }

    /* 按钮与按钮容器 */
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting 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 !important;
        padding-right: 15px !important;
    }

    .page-cockfighting__button-group,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 15px !important;
        flex-direction: column !important; /* Force vertical stacking for buttons on mobile */
    }

    /* 其他内容模块 */
    .page-cockfighting__feature-item,
    .page-cockfighting__step-item,
    .page-cockfighting__strategy-item,
    .page-cockfighting__promotion-item {
        padding: 25px;
    }

    .page-cockfighting__feature-title,
    .page-cockfighting__step-title,
    .page-cockfighting__strategy-title {
        font-size: 1.3em;
    }

    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 20px 15px;
    }

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