/* å…±äº«æ ·å¼ - é¡¶éƒ¨ã€åº•éƒ¨å’Œè‹±é›„åŒºåŸŸ */


/* 午夜金主题变量（全站共用，保证内页 var(--primary) 等可显示） */
:root {
    --primary: #F5C518;
    --secondary: #FF8A3D;
    --dark: #0B0B12;
    --dark-2: #151521;
    --dark-3: #1E1E2E;
    --text: #ffffff;
    --text-muted: #D0D0DA;
    --success: #00ff88;
    --border: rgba(245, 197, 24, 0.2);

    --bs-blue: #151521;
    --bs-indigo: #2A2A3D;
    --bs-purple: #1E1E2E;
    --bs-pink: #e91e63;
    --bs-red: #f44336;
    --bs-orange: #ff9800;
    --bs-yellow: #ffeb3b;
    --bs-green: #4caf50;
    --bs-teal: #009688;
    --bs-cyan: #00bcd4;
    --bs-black: #0B0B12;
    --bs-white: #fff;
    --bs-gray: #6c757d;
    --bs-gray-dark: #343a40;
    --bs-primary: #0B0B12;
    --bs-secondary: #6c757d;
    --bs-success: #4caf50;
    --bs-info: #00bcd4;
    --bs-warning: #ffeb3b;
    --bs-danger: #f44336;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
}

/* åŸºç¡€é‡ç½® */
*, ::after, ::before {
    box-sizing: border-box;
}

body {
    background: var(--dark);
    color: var(--text);
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    min-height: 100vh;
}

/* å®¹å™¨æ ·å¼ */
.container {
    width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
        margin: auto;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ç½‘æ ¼ç³»ç»Ÿ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
}

.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .col-lg-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}

/* æŒ‰é’®é‡æ–°è®¾è®¡ï¼šé»˜è®¤èƒ¶å›Šå½¢ï¼ˆPillï¼‰ï¼Œè½»é‡äº¤äº’ï¼Œæ— ç¹é‡ç‰¹æ•ˆ */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-radius: 999px; /* é»˜è®¤èƒ¶å›Šå½¢ */
    border: none;
    text-decoration: none;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.08s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

/* å½¢çŠ¶å¯é€‰ï¼šä¿ç•™é»˜è®¤èƒ¶å›Šï¼ŒåŒæ—¶æä¾›åœ†è§’/æ–¹è§’å˜ä½“ */
.btn--pill { border-radius: 999px; }
.btn--rounded { border-radius: 12px; }
.btn--square { border-radius: 6px; }

/* å›¾æ ‡å®¹å™¨ï¼ˆå¯é€‰ï¼‰ */
.btn-icon { display: inline-block; line-height: 0; }

/* Focus å¯è§çŽ¯ */
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 235, 59, 0.35), 0 6px 20px rgba(0,0,0,0.2);
}

/* æŒ‰ä¸‹æ€ï¼šè½»å¾®æŒ‰åŽ‹ */
.btn:active { transform: translateY(1px) scale(0.99); }

/* ç¦ç”¨æ€ */
.btn:disabled, .btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* ä¸»æŒ‰é’®ï¼šé»„è‰²ï¼ˆä¿æŒçŽ°æœ‰é…è‰²ï¼‰ï¼ŒåŠ å…¥ç»†å¾®é˜´å½± */
.btn-primary {
    background-color: var(--primary);
    color: #0B0B12;
    box-shadow: 0 6px 16px rgba(245, 197, 24, 0.35);
}

.btn-primary:hover {
    background-color: #FFD84A;
    color: #0B0B12;
    box-shadow: 0 10px 22px rgba(245, 197, 24, 0.45);
}

/* æˆåŠŸæŒ‰é’®ï¼šç»¿è‰²ï¼ˆä¿æŒçŽ°æœ‰é…è‰²ï¼‰ï¼ŒåŠ å…¥ç»†å¾®é˜´å½± */
.btn-success {
    background-color: #4caf50;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.35);
}

.btn-success:hover {
    background-color: #45a049;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(76, 175, 80, 0.45);
}

/* å°ºå¯¸å˜ä½“ï¼šä¸ŽçŽ°æœ‰ .btn-lg å…¼å®¹å¹¶æ–°å¢žå°å· */
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.85rem; }

/* å·¥å…·ç±» */
.rounded-2 {
    border-radius: 2px;
}

.rounded-5 {
    border-radius: 2rem;
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.text-decoration-none {
    text-decoration: none;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.justify-content-center {
    justify-content: center;
}

.align-items-center {
    align-items: center;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-3 {
    margin-right: 1rem;
}

.ms-3 {
    margin-left: 1rem;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-5 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.py-3 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.bg-primary {
    background: linear-gradient(90deg, #151521 0%, #1E1E2E 50%, #151521 100%);
    border-top: 1px solid rgba(245, 197, 24, 0.35);
    border-bottom: 1px solid rgba(245, 197, 24, 0.35);
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

/* æ ‡é¢˜æ ·å¼ */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: #ffffff;
}

.section-title {
    color: #ffffff;
}

.section-subtitle {
    color: var(--text-muted);
}

/* 品牌词 / SEO 核心链：确保金色可见，不因变量缺失而“消失” */
.seo-core-link,
.seo-core-link strong {
    color: var(--primary) !important;
    text-decoration: none;
}

.seo-core-link:hover,
.seo-core-link:hover strong {
    color: #FFD84A !important;
    text-decoration: underline;
}

h1 {
    font-size: calc(1.375rem + 1.5vw);
}

@media (min-width: 1200px) {
    h1 {
        font-size: 2.5rem;
    }
}

h2 {
    font-size: calc(1.325rem + 0.9vw);
}

@media (min-width: 1200px) {
    h2 {
        font-size: 2rem;
    }
}

h3 {
    font-size: calc(1.3rem + 0.6vw);
}

@media (min-width: 1200px) {
    h3 {
        font-size: 1.75rem;
    }
}

h4 {
    font-size: calc(1.275rem + 0.3vw);
}

@media (min-width: 1200px) {
    h4 {
        font-size: 1.5rem;
    }
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: underline;
}

a:hover {
    color: #FFD84A;
}

img {
    vertical-align: middle;
}

/* é¡¶éƒ¨å¯¼èˆªæ ·å¼ */
header {
    padding: 0.25rem 0; /* slight whitespace */
    background-color: transparent;
}

header .container {
    position: relative;
}

header .d-flex {
    align-items: center;
    justify-content: space-between;
}

header img {
    width: 100px;
    height: auto;
}

/* è‹±é›„åŒºåŸŸæ ·å¼ */
.hero-section {
    padding: 1.5rem 0;
    background-color: transparent;
    margin: 0.5rem 0;
}

.hero-section h1 {
    color: white;
    margin-bottom: 0.75rem;
}

.hero-section p {
    color: white;
    margin-bottom: 1rem;
}

.hero-section .btn {
    margin-top: 0.75rem;
}

/* åº•éƒ¨æ ·å¼ */
footer {
    padding: 1.5rem 0 0.75rem;
    background: rgba(11, 11, 18, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    backdrop-filter: blur(10px);
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    color: #ccc;
    text-decoration: underline;
}

/* å¯¼èˆªèœå•æ ·å¼ - å¸¦ä¸‹æ‹‰å­èœå• */
.nav-menu {
    background: #0B0B12;
    padding: 0; /* keep compact */
    margin: 0.25rem 0; /* slight whitespace */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(11, 11, 18, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 0.5rem;
}

.nav-menu .nav-item {
    position: relative;
    display: inline-block;
    margin: 0 0.05rem;
}

.nav-menu .nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.25rem; /* slightly wider for pill look */
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    border-radius: 999px; /* pill shape */
    margin: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    position: relative;
    overflow: hidden;
}

.nav-menu .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.6s ease;
}

.nav-menu .nav-link:hover::before {
    left: 100%;
}

.nav-menu .nav-link:hover,
.nav-menu .nav-item:hover > .nav-link {
    background: rgba(245, 197, 24, 0.22);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.45), 0 2px 8px rgba(0, 0, 0, 0.15);
    color: #F5C518;
}

/* ä¸‹æ‹‰èœå•æ ·å¼ */
.nav-menu .dropdown {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #0B0B12;
    min-width: 200px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(11, 11, 18, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.25rem 0;
}

.nav-menu .nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu .dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #0B0B12;
}

.nav-menu .dropdown-item {
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.25px;
    font-weight: 500;
    position: relative;
    margin: 0.05rem 0.25rem;
    border-radius: 6px;
    border-bottom: none;
}

.nav-menu .dropdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.nav-menu .dropdown-item:last-child {
    margin-bottom: 0;
}

.nav-menu .dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #2A2A3D;
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-menu .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.2);
}

.nav-menu .dropdown-item:hover::before {
    transform: scaleY(1);
}

/* 下拉箭头 - 桌面端（使用 Unicode 转义，避免编码乱码） */
@media (min-width: 769px) {
    .nav-menu .nav-link.has-dropdown::after {
        content: '\25BC';
        margin-left: 0.5rem;
        font-size: 0.7rem;
        color: #F5C518;
        transition: transform 0.3s ease;
    }

    .nav-menu .nav-item:hover .nav-link.has-dropdown::after {
        transform: rotate(180deg);
        color: #FFD84A;
    }
}

/* æ±‰å ¡åŒ…èœå•æ ·å¼ - çŽ°ä»£åŒ–è®¾è®¡ï¼ˆç´§å‡‘ç‰ˆï¼‰*/
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0.3rem;
    background: rgba(255, 167, 38, 0.1);
    border-radius: 4px;
    border: 1.5px solid rgba(255, 167, 38, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: visible;
    width: 30px;
    height: 30px;
}

.hamburger:hover {
    background: rgba(255, 167, 38, 0.2);
    border-color: rgba(255, 167, 38, 0.5);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
}

.hamburger span {
    width: 16px;
    height: 2px;
    background: #FFA726;
    margin: 1.2px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1.5px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hamburger.active {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-4px, 5px);
    background: #ff6b6b;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-4px, -5px);
    background: #ff6b6b;
}

/* ç§»åŠ¨ç«¯èœå•å®¹å™¨ */
.mobile-nav-toggle {
    display: none;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.4rem 0.5rem;
}

.mobile-nav-toggle span {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.mobile-nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* æ¡Œé¢ç«¯æ˜¾ç¤ºå¯¼èˆªå†…å®¹ */
@media (min-width: 769px) {
    .mobile-nav-toggle {
        display: none !important;
    }
    
    .mobile-nav-content {
        display: flex !important;
    }
}

/* é®ç½©å±‚æ ·å¼ - ä¾§è¾¹èœå•èƒŒæ™¯ */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

/* ç§»åŠ¨ç«¯é˜²æº¢å‡ºä¼˜åŒ– */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        overflow-x: hidden;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* ç§»åŠ¨ç«¯èœå• - ç®€å•é¡¶éƒ¨ä¸‹æ‹‰å¼ */
@media (max-width: 768px) {
    .nav-menu {
        border-radius: 0;
    }
    
    .mobile-nav-toggle {
        display: flex;
        padding: 0.4rem 0.5rem;
        background: rgba(245, 197, 24, 0.3);
    }
    
    .hamburger {
        display: flex;
    }
    
    /* é¡¶éƒ¨ä¸‹æ‹‰èœå• - é»˜è®¤éšè— */
    .mobile-nav-content {
        display: none;
        width: 100%;
        background: linear-gradient(180deg, #2A2A3D 0%, #1E1E2E 100%);
        padding: 0;
    }
    
    /* æ˜¾ç¤ºèœå• */
    .mobile-nav-content.show {
        display: block;
    }
    
    /* èœå•é¡¹ */
    .mobile-nav-content .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .mobile-nav-content .nav-link {
        display: block;
        padding: 1.2rem 1.5rem;
        color: #FFEB3B;
        background: transparent;
        text-decoration: none;
        font-size: 1.1rem;
        font-weight: 600;
        border: none;
        border-radius: 0;
    }
    
    .mobile-nav-content .nav-link:hover {
        background: rgba(255, 167, 38, 0.3);
    }
    
    /* å¸¦ä¸‹æ‹‰çš„èœå•é¡¹ */
    .mobile-nav-content .nav-link.has-dropdown {
        position: relative;
        padding-right: 3rem;
    }
    
    .mobile-nav-content .nav-link.has-dropdown::after {
        content: '\25BC';
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
        color: #F5C518;
        font-size: 0.8rem;
        transition: transform 0.3s;
    }
    
    .mobile-nav-content .nav-item.active .nav-link.has-dropdown::after {
        transform: translateY(-50%) rotate(180deg);
    }
    
    /* ä¸‹æ‹‰å­èœå• - ä¼˜åŒ–æ ·å¼ */
    .mobile-nav-content .dropdown {
        display: none;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.5) 100%);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
        border-top: 2px solid rgba(255, 235, 59, 0.2);
        border-bottom: 2px solid rgba(255, 235, 59, 0.1);
        padding: 0.5rem 0;
    }
    
    .mobile-nav-content .nav-item.active .dropdown {
        display: block;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
        }
        to {
            opacity: 1;
            max-height: 500px;
        }
    }
    
    .mobile-nav-content .dropdown-item {
        display: flex;
        align-items: center;
        padding: 1rem 1.5rem 1rem 2.5rem;
        color: #FFF9C4;
        text-decoration: none;
        font-size: 1.05rem;
        font-weight: 500;
        border: none;
        border-radius: 0;
        border-left: 3px solid transparent;
        transition: all 0.25s ease;
        position: relative;
        margin: 0.2rem 0;
    }
    
    /* å­èœå•é¡¹å‰çš„è£…é¥°å›¾æ ‡ */
    .mobile-nav-content .dropdown-item::before {
        content: '\25B8';
        position: absolute;
        left: 1rem;
        color: #F5C518;
        font-size: 0.9rem;
        transition: all 0.25s ease;
    }
    
    /* å­èœå•é¡¹ä¹‹é—´çš„åˆ†éš”çº¿ */
    .mobile-nav-content .dropdown-item:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 2.5rem;
        right: 1rem;
        height: 1px;
        background: linear-gradient(90deg, rgba(255, 235, 59, 0.2), rgba(255, 235, 59, 0.05), transparent);
    }
    
    .mobile-nav-content .dropdown-item:hover {
        background: rgba(255, 167, 38, 0.35);
        border-left-color: #FFEB3B;
        color: #FFEB3B;
        padding-left: 2.8rem;
    }
    
    .mobile-nav-content .dropdown-item:hover::before {
        left: 1.3rem;
        color: #FFA726;
    }
    
    .mobile-nav-content .dropdown-item:active {
        background: rgba(255, 167, 38, 0.5);
        transform: scale(0.98);
    }
    
    header .d-flex {
        flex-direction: row;
        gap: 1rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .hero-section {
        text-align: center;
    }
}

/* è‹±é›„åŒºåŸŸæŒ‰é’®ç»Ÿä¸€é»„è‰²ï¼Œå¹¶ä¸Žå›¾ç‰‡ç•™å‡ºé—´è· */
.hero-section .btn {
    background: linear-gradient(135deg, #F5C518 0%, #FFD84A 100%);
    color: #0B0B12;
    border: none;
}
.hero-section .btn:hover {
    background: #FFD84A;
    color: #0B0B12;
}

/* æ¡Œé¢ç«¯ï¼šæŒ‰é’®ä¸Žå›¾ç‰‡å·¦å³ç•™ç™½ */
@media (min-width: 992px) {
    .hero-section .btn { margin-right: 1rem; }
    .hero-section .img-fluid { margin-left: 1rem; }
}

/* ç§»åŠ¨ç«¯ï¼šå›¾ç‰‡ä¸ŽæŒ‰é’®ä¸Šä¸‹ç•™ç™½ */
@media (max-width: 768px) {
    .hero-section .img-fluid { margin-top: 1rem; }
}