/* ============================================
   MCA DARK THEME - 暗黑主题覆盖样式
   ============================================ */

/* 全局底色 */
body {
    background-color: #0d1117 !important;
    color: #c9d1d9 !important;
}

/* Hero 区背景覆盖 */
.section.page-header-2 {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1a1f2e 100%) !important;
    color: #fff !important;
}

.parallax-container.bg-accent {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%) !important;
}

/* 导航栏 */
.rd-navbar-modern {
    background-color: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    z-index: 99999 !important;
    height: 80px !important;
}

/* 导航栏所有子元素层级 */
.rd-navbar-modern .rd-navbar-nav,
.rd-navbar-modern .rd-navbar-nav-wrap,
.rd-navbar-modern .rd-navbar-panel,
.rd-navbar-modern .rd-navbar-aside,
.rd-navbar-modern .rd-navbar-brand,
.rd-navbar-modern .brand {
    z-index: 99999 !important;
    position: relative !important;
}

/* 导航栏下拉菜单：fixed 钉死视口，完全脱离页面层叠上下文 */
.rd-navbar-modern .rd-dropdown,
.rd-navbar-modern .rd-submenu,
.rd-navbar-modern .dropdown-menu {
    z-index: 2147483647 !important;
    position: fixed !important;
    top: 80px !important;
}

/* 语言下拉菜单：fixed 钉死视口，JS 动态算位置 */
.language-menu {
    z-index: 2147483647 !important;
    position: fixed !important;
    display: none;
    min-width: 140px;
}

.language-menu.show {
    display: block !important;
}

/* Hero 区压低 */
.section.page-header-2,
.parallax-container.bg-accent {
    z-index: 1 !important;
    position: relative !important;
}

/* 导航栏 flex 布局，nav-wrap 占满剩余空间，最后一个 li（语言选择器）推到最右 */
.rd-navbar-modern .rd-navbar-main {
    max-width: 100% !important;
    padding-left: 30px !important;
    padding-right: 10px !important;
}

.rd-navbar-modern .rd-navbar-nav-wrap {
    flex: 1 !important;
}

.rd-navbar-modern .rd-navbar-nav {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.rd-navbar-modern .rd-navbar-nav > li:last-child {
    margin-left: auto !important;
    padding-right: 0 !important;
}

/* 语言选择器本身去掉 auto，保持 relative 让下拉绝对定位参考 */
.language-selector {
    position: relative !important;
}

.rd-navbar-modern .rd-navbar-nav-wrap .rd-navbar-nav > li > .rd-nav-link {
    color: #c9d1d9 !important;
}

.rd-navbar-modern .rd-navbar-nav-wrap .rd-navbar-nav > li.active > .rd-nav-link,
.rd-navbar-modern .rd-navbar-nav-wrap .rd-navbar-nav > li > .rd-nav-link:hover {
    color: #58a6ff !important;
}

/* Hero 文字 */
.page-header-2-inner .heading-mod-1 span,
.page-header-2-inner .heading-mod-1 .fw-thin {
    color: #f0f6fc !important;
}

.page-header-2-inner .text-default {
    color: #8b949e !important;
}

/* Features 区 */
.section.bg-gray-100 {
    background-color: #161b22 !important;
}

.section.bg-gray-100 .box-modern {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
}

.section.bg-gray-100 .box-modern-title {
    color: #f0f6fc !important;
}

.section.bg-gray-100 .box-modern-text p {
    color: #8b949e !important;
}

/* ========== 下载专区平台卡片 ========== */
.platform-card {
    position: relative !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid #30363d !important;
    border-radius: 12px !important;
    background-color: #161b22 !important;
    transition: transform .3s, box-shadow .3s !important;
}
.platform-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 40px rgba(31,111,235,.25) !important;
}
.platform-card-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover !important;
    background-position: center !important;
    opacity: .22;
}
.platform-card-seller .platform-card-bg {
    background:
        radial-gradient(ellipse at 70% 20%, rgba(31,111,235,.45) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 80%, rgba(88,166,255,.25) 0%, transparent 50%),
        linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}
.platform-card-buyer .platform-card-bg {
    background:
        radial-gradient(ellipse at 25% 75%, rgba(46,160,67,.40) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 25%, rgba(63,185,80,.22) 0%, transparent 50%),
        linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}
.platform-card-content {
    position: relative; z-index: 1;
    padding: 30px 24px 24px !important;
}
.platform-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px !important;
    display: block;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.08);
    background-color: #0d1117;
    padding: 6px;
}
.platform-card-content .box-modern-title {
    color: #f0f6fc !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
}
.platform-card-content .box-modern-text p {
    color: #8b949e !important;
    font-size: 13px !important;
    margin-bottom: 10px !important;
}
.platform-url {
    color: #58a6ff !important;
    font-size: 15px !important;
    font-family: "JetBrains Mono","Consolas",monospace !important;
    font-weight: 600 !important;
    margin-bottom: 14px !important;
    letter-spacing: .3px;
}

.section.bg-gray-100 .badge {
    background-color: #1f6feb !important;
    color: #fff !important;
}

.section.bg-gray-100 h3 {
    color: #f0f6fc !important;
}

/* Parallax 深色区（原 bg-accent） */
.section.parallax-container.bg-accent {
    background-color: #0d1117 !important;
    color: #c9d1d9 !important;
}

.section.parallax-container.bg-accent .badge {
    background-color: #1f6feb !important;
    color: #fff !important;
}

.section.parallax-container.bg-accent h3,
.section.parallax-container.bg-accent .big,
.section.parallax-container.bg-accent li {
    color: #f0f6fc !important;
}

.section.parallax-container.bg-accent .list-marked.list-marked_secondary li::before {
    background-color: #1f6feb !important;
}

/* Tab 导航 */
.tabs-custom.tabs-line_1 .nav-link {
    color: #8b949e !important;
}

.tabs-custom.tabs-line_1 .nav-link.active {
    color: #58a6ff !important;
    border-bottom-color: #1f6feb !important;
}

.tabs-custom.tabs-line_1 .nav-link:hover {
    color: #c9d1d9 !important;
}

/* 下载/申请按钮 */
.button.button-default.button-winona {
    background-color: #1f6feb !important;
    border-color: #1f6feb !important;
    color: #fff !important;
}

.button.button-default.button-winona:hover {
    background-color: #388bfd !important;
}

/* Contact 区 */
.section.section-md#contacts {
    background-color: #161b22 !important;
    color: #c9d1d9 !important;
}

.section.section-md#contacts h3 {
    color: #f0f6fc !important;
}

.box-contacts {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
}

.box-contacts-title {
    color: #58a6ff !important;
}

.box-contacts-text,
.box-contacts-text a {
    color: #8b949e !important;
}

.box-contacts-text a:hover {
    color: #58a6ff !important;
}

.box-contacts-icon {
    color: #1f6feb !important;
}

/* 表单 */
.form-wrap .form-input {
    background-color: #21262d !important;
    border-color: #30363d !important;
    color: #c9d1d9 !important;
}

.form-wrap .form-input:focus {
    border-color: #1f6feb !important;
}

.form-wrap .form-label {
    color: #8b949e !important;
}

.button.button-secondary {
    background-color: #1f6feb !important;
    border-color: #1f6feb !important;
    color: #fff !important;
}

.button.button-secondary:hover {
    background-color: #388bfd !important;
}

/* Footer */
.footer-light.bg-accent {
    background-color: #0d1117 !important;
    border-top: 1px solid #30363d !important;
}

.footer-light .text-white {
    color: #8b949e !important;
}

.footer-light .text-white:hover {
    color: #58a6ff !important;
}

/* Slick 轮播箭头和小点 */
.slick-slider .slick-dots li button {
    background-color: #30363d !important;
}

.slick-slider .slick-dots li.slick-active button {
    background-color: #1f6feb !important;
}

.slick-slider .slick-arrow {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
    color: #58a6ff !important;
}

/* Hero 区笔记本框架 */
.laptop-frame-1 {
    box-shadow: 0 0 60px rgba(31, 111, 235, 0.3), 0 20px 40px rgba(0,0,0,0.5) !important;
}

/* 语言下拉菜单 */
.language-menu {
    background-color: #21262d !important;
    border: 1px solid #30363d !important;
}

.language-item {
    color: #c9d1d9 !important;
}

.language-item:hover {
    background-color: #30363d !important;
}

.language-item.active {
    background-color: #1f6feb !important;
    color: #fff !important;
}

.current-lang {
    color: #c9d1d9 !important;
}

.language-btn:hover {
    color: #58a6ff !important;
}

/* Navbar brand logo alt text fix */
.brand-logo-light {
    filter: none;
}

/* MCA Logo 组合：徽章 + MCA大字 + 中文副标题 */
.brand.brand-mca {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand.brand-mca .brand-logo-light {
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0;
}

.brand.brand-mca .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand.brand-mca .brand-mca {
    font-family: 'Segoe UI', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 42px;
    font-weight: 900;
    color: #f0f6fc;
    letter-spacing: -1.5px;
}

.brand.brand-mca .brand-subtitle {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #8b949e;
    letter-spacing: 3px;
    margin-top: 2px;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #161b22;
}

::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

/* 通用 badge 颜色 */
.badge {
    background-color: #1f6feb !important;
    color: #fff !important;
}

/* ========== Font Awesome 图标适配（替换原 MDI） ========== */
.box-contacts-icon.fa {
    font-size: 28px;
    display: inline-block;
}

/* ========== 地址卡片标签 ========== */
.contact-loc-label {
    display: inline-block;
    background-color: #1f6feb;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-right: 6px;
    letter-spacing: 1px;
    vertical-align: middle;
}

/* ========== 百度/高德地图 ========== */
.map-wrap {
    margin-top: 30px;
    margin-bottom: 20px;
}

.map-title {
    color: #f0f6fc;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-left: 4px;
}

.map-box {
    width: 100%;
    height: 280px;
    border-radius: 8px;
    border: 1px solid #30363d;
    background-color: #21262d;
    overflow: hidden;
}

.map-address {
    color: #8b949e;
    font-size: 13px;
    margin-top: 8px;
    padding-left: 4px;
}

/* Leaflet 暗黑适配 */
.leaflet-container {
    background-color: #0d1117 !important;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.leaflet-control-attribution {
    background: rgba(13, 17, 23, 0.8) !important;
    color: #8b949e !important;
    font-size: 10px !important;
}

.leaflet-control-attribution a {
    color: #58a6ff !important;
}

.leaflet-control-zoom a {
    background-color: #21262d !important;
    color: #c9d1d9 !important;
    border-color: #30363d !important;
}

.leaflet-control-zoom a:hover {
    background-color: #30363d !important;
    color: #58a6ff !important;
}

.leaflet-popup-content-wrapper {
    background-color: #21262d !important;
    color: #c9d1d9 !important;
    border-radius: 8px !important;
}

.leaflet-popup-tip {
    background-color: #21262d !important;
}

.leaflet-popup-content b {
    color: #58a6ff;
}

/* ========== Tab 导航 4 个适配 ========== */
#tabs-2 > .nav.nav-tabs > li.nav-item {
    flex: 1;
    text-align: center;
    min-width: 80px;
}

/* ========== 谷歌验证器 GA 区块 ========== */
.ga-download-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.ga-card {
    flex: 1;
    min-width: 240px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px 18px;
    display: flex;
    gap: 14px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.ga-card:hover {
    border-color: #1f6feb;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(31,111,235,.15);
}

.ga-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ga-android {
    background: linear-gradient(135deg, #3ddc84, #2ba762);
}

.ga-ios {
    background: linear-gradient(135deg, #3c3c3c, #1a1a1a);
}

.ga-card-body {
    flex: 1;
    min-width: 0;
}

.ga-card-title {
    color: #f0f6fc;
    font-size: 16px;
    font-weight: 700;
}

.ga-card-sub {
    color: #8b949e;
    font-size: 12px;
    margin-top: 2px;
    margin-bottom: 10px;
}

.ga-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: filter .15s;
}

.ga-download-btn:hover {
    filter: brightness(1.15);
    text-decoration: none !important;
}

.ga-android-btn {
    background-color: #3ddc84;
    color: #0d1117 !important;
}

.ga-ios-btn {
    background-color: #1f6feb;
    color: #fff !important;
}

.ga-tip {
    color: #6e7681;
    font-size: 11px;
    margin-top: 8px;
    line-height: 1.5;
}

/* ========== iPhone 教程：紧凑网格布局 ========== */
.ga-ios-guide {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 20px 22px;
    margin-top: 30px;
}

.ga-guide-title {
    color: #f0f6fc;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.ga-guide-sub {
    color: #8b949e;
    font-size: 12px;
    margin-bottom: 16px;
}

.ga-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ga-tile {
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    transition: border-color .15s;
}

.ga-tile:hover {
    border-color: #1f6feb;
}

.ga-tile-num {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #1f6feb;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ga-tile-body {
    color: #c9d1d9;
    font-size: 12px;
    line-height: 1.55;
    flex: 1;
}

.ga-tile-body b {
    color: #f0f6fc;
    font-size: 12.5px;
    display: block;
    margin-bottom: 2px;
}

.ga-tile-body a {
    color: #58a6ff;
    text-decoration: none;
}

.ga-tile-body a:hover {
    text-decoration: underline;
}

.ga-tile-body .hl {
    color: #58a6ff;
    font-weight: 600;
}

.ga-warning {
    margin-top: 16px;
    padding: 10px 14px;
    background-color: rgba(248, 181, 0, 0.1);
    border-left: 3px solid #f8b500;
    border-radius: 4px;
    color: #f0c674;
    font-size: 11.5px;
    line-height: 1.5;
}

/* 小屏 2 列，超小屏 1 列 */
@media (max-width: 992px) {
    .ga-steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .ga-steps-grid { grid-template-columns: 1fr; }
}
