/* ========================================
   GLOBAL STYLES & THEME VARIABLES
   ======================================== */
:root {
    --main-bg: #1a1005; /* Dark brown-black, background */
    --primary-text-color: #f0f0f0; /* Main text color, white */
    --accent-color-light: #ffcc00; /* Bright gold/orange highlight */
    --accent-color-dark: #cc9900; /* Darker gold, shadow */
    --highlight-sparkle: rgba(255, 180, 0, 0.7); /* Highlight sheen */
    --border-glow: rgba(255, 150, 0, 0.4); /* Border glow */
    --font-family: 'Open Sans', 'Microsoft YaHei', 'SimHei', sans-serif;
    --section-padding: 80px 0;
}

body {
    background-color: var(--main-bg);
    color: var(--primary-text-color);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    line-height: 1.8;
    /* Simulate background particle glow */
    background-image:
        radial-gradient(circle at 10% 90%, rgba(255, 180, 0, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255, 200, 50, 0.1) 0%, transparent 40%);
    background-size: cover;
    background-repeat: no-repeat;
}

/* Heading and emphasis text color */
h1, h2, h3 {
    color: var(--primary-text-color);
    text-shadow: 0 0 15px var(--highlight-sparkle);
    font-weight: bold;
    letter-spacing: 1.5px;
}

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

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.page-header {
    background-color: rgba(0, 0, 0, 0.95);
    border-bottom: 3px solid var(--accent-color-dark);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.9);
}

.header-container { padding: 0 20px; }
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

/* Logo Size */
.header-logo img {
    max-height: 60px; /* Desktop size */
    width: auto;
    transition: opacity 0.3s;
}
.header-logo a:hover img { opacity: 0.8; }

#mobile-menu-toggle { display: none; order: 2; }

/* Desktop Navigation Styles */
.nav-list {
    list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: 20px; /* Replaces gap */
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list { -ms-overflow-style: none; scrollbar-width: none; }

.nav-link-item {
    color: var(--primary-text-color); text-decoration: none; font-size: 16px;
    padding: 5px 0; border-bottom: 2px solid transparent; transition: color 0.3s, text-shadow 0.3s, border-bottom 0.3s;
    font-weight: 500; white-space: nowrap;
    margin-right: 20px; /* Replaces gap */
}

.nav-link-item:hover, .nav-link-item.active-link { 
    color: var(--accent-color-light);
    text-shadow: 0 0 15px var(--highlight-sparkle);
    border-bottom: 2px solid var(--accent-color-light);
}

/* ========================================
   MAIN CONTENT STYLES
   ======================================== */
.section {
    padding: var(--section-padding);
    min-height: 60vh;
    border-bottom: 1px solid var(--border-glow);
    display: block !important; /* Force visible for SEO */
    background-color: rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    border-radius: 8px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-title { text-align: center; margin-bottom: 50px; }

.section-title h1, .section-title h2 { /* H1/H2 uniform maximum title style */
    font-size: 38px;
    color: var(--accent-color-light);
}
.section-title h1::after, .section-title h2::after {
    content: '';
    display: block;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-color-light), transparent);
    margin: 10px auto 0;
    box-shadow: 0 0 15px var(--highlight-sparkle);
}

.section-title-subtitle { color: #d0d0d0; font-size: 18px; }

/* Image Placeholder Style */
.image-placeholder {
    height: auto; position: relative; padding-bottom: 56.25%; /* 16:9 ratio */
    background: linear-gradient(45deg, #221505, #4a2b0a);
    border: 3px dashed var(--accent-color-dark); border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 180, 0, 0.3);
    color: var(--accent-color-dark); font-size: 26px; overflow: hidden; margin-bottom: 30px;
}
.image-placeholder img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Content Card Styles */
.content-card {
    background-color: rgba(255, 180, 0, 0.05);
    border: 2px solid var(--border-glow);
    padding: 30px;
    margin-top: 30px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 180, 0, 0.2);
    transition: all 0.4s;
}
.content-card:hover {
    background-color: rgba(255, 180, 0, 0.1);
    border-color: var(--accent-color-light);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(255, 180, 0, 0.4);
}

.content-card h3 {
    border-bottom: 2px dashed var(--accent-color-dark);
    padding-bottom: 10px;
    font-size: 26px;
    color: var(--accent-color-light);
}

/* List and Content Text */
.content-card p, .content-card ul { color: #e8e8e8; }
.content-card ul { list-style-type: none; padding-left: 0; }
.content-card li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.content-card li::before {
    content: '⚡'; /* Lightning/Energy symbol replaces crown */
    position: absolute;
    left: 0;
    color: var(--accent-color-light);
    font-size: 18px;
    top: 0;
}

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

.feature-item {
    background: linear-gradient(145deg, rgba(26, 16, 5, 0.9), rgba(50, 30, 10, 0.9));
    border: 1px solid var(--border-glow);
    padding: 28px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(255, 180, 0, 0.15);
    transition: all 0.3s;
}
.feature-item:hover {
    background: rgba(50, 30, 10, 0.95);
    transform: scale(1.05);
}

.feature-item h3 { color: var(--accent-color-light); }

/* Download Button */
.download-btn {
    background: linear-gradient(to right, #ff9900, #ffcc00, #ffeb3b);
    color: #333;
    padding: 14px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(255, 180, 0, 0.7);
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block; /* Essential for button styling on <a> */
    text-decoration: none;
    margin-top: 15px; 
}

.download-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 30px rgba(255, 180, 0, 0.9);
}

/* Dynamic Section Styles */
.dynamic-item a {
    text-decoration: none; 
}
.dynamic-item {
    background-color: rgba(255, 180, 0, 0.04);
    border-left: 6px solid var(--accent-color-light);
    transition: all 0.3s;
    padding: 20px;
    margin-top: 15px;
    border-radius: 5px;
}
.dynamic-item:hover {
    background-color: rgba(255, 180, 0, 0.1);
    border-left: 6px solid var(--highlight-sparkle);
    transform: translateX(5px);
}
.dynamic-title {
    color: var(--primary-text-color);
    text-shadow: 0 0 8px rgba(255, 180, 0, 0.5);
}
.dynamic-date {
    color: var(--accent-color-dark);
    font-size: 14px;
    margin-bottom: 5px;
}

/* Footer */
.page-footer {
    background-color: #000000;
    border-top: 3px solid var(--accent-color-dark);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.9);
    padding: 25px 0;
    text-align: center;
}

/* ========================================
   STICKY AD BAR STYLES (Fixed Bottom Ad)
   ======================================== */
.bwin-sticky-ad {
    /* Core Positioning: Fixed to the bottom of the viewport, remains visible when scrolling */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%; /* Occupy the full viewport width */
    
    /* Dimensions */
    height: 135px; /* Default height */
    z-index: 1000; /* Ensure it is above all other content */
    
    /* Image and Background */
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.7); 
    
    /* Ensures link content does not interfere with the background image display */
    text-indent: 100%; 
    white-space: nowrap;
    overflow: hidden;
    display: block; 
    text-decoration: none;
    cursor: pointer;
}

/* Ensure sufficient space at the bottom of the body */
body {
    padding-bottom: 135px; /* Must match the sticky ad height */
}

/* Ensure sr-only class is hidden but readable (for accessibility) */
.sr-only {
    /* Ensures all text content is not visible, preventing interference with the image */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Standalone Button Container */
.fixed-ad-button-container {
    /* Position the button absolutely relative to its parent <a> class="bwin-sticky-ad" */
    position: absolute;
    right: 15px;      /* 15px from the right edge */
    bottom: 10px;     /* 10px from the bottom edge */
    z-index: 1001;    /* Ensure it is above the ad bar (1000) */
    pointer-events: none; /* Prevents container from capturing clicks */
}

.fixed-ad-button-text {
    /* Button Appearance: Gold gradient, similar to the download button */
    background: linear-gradient(to right, #ff9900, #ffcc00);
    color: #333;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    
    /* Animation and Shadow */
    box-shadow: 0 4px 12px rgba(255, 180, 0, 0.8);
    transition: transform 0.2s, box-shadow 0.2s;
    
    /* Allow click events to pass through the button itself (Important) */
    pointer-events: auto; 
    
    /* Pulse animation effect */
    animation: scaleButton 1.5s infinite;
    display: inline-block;
}

/* Hover Effect: Scale the button when the mouse hovers over the entire ad bar */
.bwin-sticky-ad:hover .fixed-ad-button-text {
    transform: scale(1.05);
}

/* Pulse animation, makes the button flash */
@keyframes scaleButton {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* ========================================
   RESPONSIVE DESIGN & MOBILE OPTIMIZATION
   ======================================== */
@media (max-width: 768px) {
    .container { padding: 0 0; width: 100%; }
    .header-container { padding: 0 15px; }
    .header-logo img { max-height: 45px; }
    #mobile-menu-toggle { display: block !important; }

    /* --- Navigation toggle logic (Vertical stack) --- */
    .page-nav {
        top: 65px; max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out, padding 0.3s ease-in-out; padding: 0;
    }
    .page-nav.active { max-height: 500px; padding: 10px 0; }
    .nav-list {
        display: flex; flex-direction: column; flex-wrap: wrap;
        overflow-x: hidden; text-align: left;
    }
    .nav-item { border-bottom: 1px solid rgba(255, 204, 0, 0.05); }
    .nav-item a.nav-link-item { font-size: 16px; padding: 12px 20px; text-align: left; }
    .nav-item:hover, .nav-item a.nav-link-item.active-link {
        background-color: rgba(255, 204, 0, 0.1); color: var(--accent-color-light);
    }

    /* --- Content spacing and font optimization --- */
    .section { 
        padding: 30px 15px; 
        margin-bottom: 15px; 
        border-radius: 0; 
    }
    .image-placeholder { 
        border-left: none; border-right: none; border-radius: 0; 
        height: 250px; 
        padding-bottom: 0;
    }
    .feature-list { gap: 15px; }
    .section-title h1, .section-title h2 { font-size: 28px; }

    /* --- STICKY AD MOBILE OPTIMIZATION --- */
    .bwin-sticky-ad {
        height: 80px; /* Reduced height for mobile */
    }
    body {
        padding-bottom: 80px; /* Match the reduced mobile ad height */
    }
    .fixed-ad-button-container {
        right: 8px; 
        bottom: 8px; /* Lower the button position to fit mobile height */
    }
    .fixed-ad-button-text {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .page-nav.active ~ .bwin-sticky-ad {
        display: none !important; /* Hide ad when mobile menu is open */
    }
}


/* ========================================
   READ MORE BUTTON STYLES (.read-more-btn)
   ======================================== */
.read-more-btn {
    /* Base style: Make it look like a button */
    /* 使用您的金色渐变配色，从深金到亮金 */
    background: linear-gradient(to right, var(--accent-color-dark), var(--accent-color-light), #ffeb3b);
    color: #333; /* Use dark color for text to ensure readability */
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none; /* Remove underline from the link */
    display: inline-block; /* Essential for applying padding and margin */
    margin-top: 15px; /* Spacing from the text content above */
    
    /* Gold glow effect */
    box-shadow: 0 4px 15px rgba(255, 180, 0, 0.5); 
    transition: all 0.3s ease; /* Smooth transition effects */
}

.read-more-btn {
    /* Base style: Make it look like a button */
    background: linear-gradient(to right, var(--accent-color-dark), var(--accent-color-light), #ffeb3b);
    color: #333; /* Use dark color for text to ensure readability */
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none; /* 移除下划线 */
    display: inline-block; /* Essential for applying padding and margin */
    margin-top: 15px; /* Spacing from the text content above */
    
    /* Gold glow effect */
    box-shadow: 0 4px 15px rgba(255, 180, 0, 0.5); 
    transition: all 0.3s ease; /* Smooth transition effects */
}

.read-more-btn:hover {
    /* Hover effect: Slight lift and stronger glow */
    background: linear-gradient(to right, #ffeb3b, var(--accent-color-light), var(--accent-color-dark));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 180, 0, 0.8);
}

/* 确保按钮和段落间距协调 */
.dynamic-item p {
    margin-bottom: 0; 
}

@media (max-width: 768px) {
    /* Mobile optimization: Slightly reduce button size on mobile */
    .read-more-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
}

/* NEWS DETAIL PAGE STYLES */

/* 容器样式：用于容纳返回按钮，并提供间距 */
.back-link-container {
    margin-top: 40px; 
    padding-top: 20px;
    border-top: 1px solid var(--border-glow); 
    text-align: left; /* 保持按钮居左对齐 */
}

/* 针对详情页的按钮微调 */
.back-link-container .read-more-btn {
    margin-top: 0; /* 继承容器的 padding 和 margin */
    font-size: 15px; 
    padding: 10px 25px; 
}