/* style/cockfighting.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient-start: #2AD16F;
    --button-gradient-end: #13994A;
    --card-bg: #11271B;
    --background-color-page: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

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

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

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
    padding-bottom: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over the bottom of the image for visual flow */
    position: relative;
    z-index: 1;
    background-color: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.5em);
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-cockfighting__hero-description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

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

.page-cockfighting__btn-primary {
    background: var(--button-gradient-start);
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

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

.page-cockfighting__section {
    padding: 60px 0;
    background-color: var(--background-color-page);
}

.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__highlight {
    color: var(--text-main);
    font-weight: bold;
}

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

.page-cockfighting__gameshow-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-cockfighting__gameshow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__gameshow-title {
    font-size: 1.5em;
    color: var(--text-main);
    padding: 15px 20px 10px;
}

.page-cockfighting__gameshow-description {
    font-size: 0.95em;
    color: var(--text-secondary);
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-cockfighting__gameshow-button {
    background: var(--button-gradient-start);
    background: linear-gradient(180deg, var(--button-gradient-start) 0%, var(--button-gradient-end) 100%);
    color: #ffffff;
    border: none;
    margin: 0 20px 20px;
    padding: 12px 20px;
    border-radius: 8px;
    align-self: flex-start;
}

.page-cockfighting__gameshow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.6);
}

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

.page-cockfighting__step-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px var(--glow-color);
}

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

.page-cockfighting__step-description {
    font-size: 1em;
    color: var(--text-secondary);
}

.page-cockfighting__cta-single {
    text-align: center;
    margin-top: 50px;
}

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

.page-cockfighting__promotion-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.page-cockfighting__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__promotion-title {
    font-size: 1.4em;
    color: var(--text-main);
    padding: 15px 20px 10px;
}

.page-cockfighting__promotion-description {
    font-size: 0.95em;
    color: var(--text-secondary);
    padding: 0 20px 15px;
    flex-grow: 1;
}

.page-cockfighting__safety-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__safety-item {
    background-color: var(--card-bg);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1.05em;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__security-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--card-bg);
    list-style: none;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently
                                     supported by Chrome, Edge, Opera and Firefox */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-question::marker {
    display: none;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
}

.page-cockfighting__faq-answer a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-cockfighting__faq-answer a:hover {
    color: var(--gold-color);
}

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

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -80px;
        padding: 30px 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }

    .page-cockfighting__hero-description {
        font-size: clamp(0.9em, 1.8vw, 1.1em);
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 80%;
        margin: 0 auto;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.5em);
        margin-bottom: 30px;
    }

    .page-cockfighting__gameshow-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__promotion-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

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

    .page-cockfighting__step-card {
        padding: 20px;
    }

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

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 0 !important;
    }

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

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

    .page-cockfighting__hero-content {
        margin-top: -50px; /* Adjust for smaller screens */
        padding: 20px 15px;
        border-radius: 10px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: clamp(0.9em, 2.5vw, 1em);
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__gameshow-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-cockfighting__cta-single {
        margin-top: 30px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__section {
        padding: 30px 0;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
        margin-bottom: 25px;
    }

    .page-cockfighting__text-block {
        font-size: 1em;
    }

    /* 产品展示图区域 */
    .page-cockfighting__gameshow-grid {
        grid-template-columns: 1fr; /* Single column layout for gameshows */
        gap: 20px;
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    .page-cockfighting__gameshow-card {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto;
    }

    .page-cockfighting__gameshow-image {
        height: 160px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__promotion-image {
        height: 180px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__safety-item {
        font-size: 0.95em;
        padding: 12px 15px;
    }

    .page-cockfighting__security-image {
        margin-top: 30px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    .page-cockfighting__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.9em;
    }

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

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__gameshow-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__promotion-grid,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }
}