/* style/cockfighting.css */

:root {
    --primary-color: #FF8C1A;
    --secondary-color: #FFA53A;
    --card-bg: #17191F;
    --background-dark: #0D0E12;
    --text-main: #FFF3E6;
    --border-color: #A84F0C;
    --glow-color: #FFB04D;
    --deep-orange: #D96800;
    --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
}

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

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

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Adjusted for header offset */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6);
}

.page-cockfighting__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 800px;
    width: 100%;
    padding: 20px;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-main);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
    background: rgba(255, 165, 58, 0.1);
    color: #ffffff;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

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

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

.page-cockfighting__intro-section,
.page-cockfighting__types-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 60px 0;
}

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

.page-cockfighting__card {
    background-color: var(--card-bg);
    border-radius: 12px;
    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__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(var(--glow-color), 0.5);
}

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

.page-cockfighting__card-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    padding: 15px 20px 10px;
    font-weight: 600;
}

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

.page-cockfighting__card-link {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px 15px;
    transition: color 0.3s ease;
}

.page-cockfighting__card-link:hover {
    color: var(--glow-color);
}

.page-cockfighting__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-cockfighting__step-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__step-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__step-description {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
}

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

.page-cockfighting__list-item strong {
    color: var(--secondary-color);
}

.page-cockfighting__promotions-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__faq-section .page-cockfighting__container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-cockfighting__faq-list {
    flex: 2;
}

.page-cockfighting__faq-image {
    flex: 1;
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-top: 60px;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    cursor: pointer;
    background-color: rgba(255, 140, 26, 0.1);
    transition: background-color 0.3s ease;
    list-style: none;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 140, 26, 0.2);
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-main);
}

.page-cockfighting__btn-text {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: 600;
    margin-top: 10px;
    display: inline-block;
}

.page-cockfighting__btn-text:hover {
    color: var(--glow-color);
}

/* Responsive Styles */

@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 15px;
    }

    .page-cockfighting__hero-content {
        max-width: 90%;
    }

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

    .page-cockfighting__hero-description {
        font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
    }

    .page-cockfighting__grid-cards,
    .page-cockfighting__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-cockfighting__faq-section .page-cockfighting__container {
        flex-direction: column;
        align-items: center;
    }

    .page-cockfighting__faq-image {
        margin-top: 30px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Fixed top padding for mobile */
        padding-bottom: 40px;
    }

    .page-cockfighting__hero-content {
        padding: 15px;
        transform: translate(-50%, -50%); /* Ensure it stays centered */
        top: 50%;
        left: 50%;
        max-width: calc(100% - 30px); /* Adjust for padding */
    }

    .page-cockfighting__main-title {
        font-size: 1.8rem !important;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 0.95rem !important;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column !important;
        gap: 10px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    /* 通用图片与容器 */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__step-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .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: 12px 15px;
    }
    
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-cockfighting__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* 产品展示图区域 (Grid cards for types) */
    .page-cockfighting__grid-cards {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .page-cockfighting__card {
        margin: 0 auto;
    }

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

    /* 其他内容模块 */
    .page-cockfighting__intro-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        font-size: 1.5rem !important;
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__list-item,
    .page-cockfighting__card-description,
    .page-cockfighting__step-description,
    .page-cockfighting__faq-answer p {
        font-size: 0.95rem !important;
    }

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

    .page-cockfighting__faq-image {
        margin-top: 20px;
        max-width: 100%;
    }
}