/* ============================================================
   OptClouds 购物车页 独立静态头部/页脚/分类Tab
   命名空间 .oc- 完全独立，不与主题任何 class 冲突（主题无 .oc- 规则）
   新文件名 cart-self.css，新 URL，绕开忽略 ?v 的代理缓存
   ============================================================ */

.oc-container {
    width: 1200px;
    margin: 0 auto;
}

/* ===================== 顶部菜单 ===================== */
.oc-header {
    height: 64px;
    position: sticky;
    position: -webkit-sticky;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 2022;
    color: #1a1a1a;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}
.oc-header__inner {
    height: 100%;
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
}
.oc-header__logo {
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.oc-header__logo img {
    height: 28px;
}

.oc-nav {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0 6px;
    list-style: none;
    padding: 0;
}
.oc-nav__item {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}
.oc-nav__item--simple {
    padding: 0;
}
.oc-nav__item--narrow,
.oc-nav__item--wide {
    padding: 0 6px;
    margin: 0 6px;
}
.oc-nav__link {
    display: flex;
    align-items: center;
    padding: 0 6px;
    font-size: 16px;
    color: #1a1a1a;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    transition: color .25s ease;
}
.oc-nav__link:hover {
    color: #3860F4;
}
.oc-nav__link--active {
    color: #3860F4;
}
.oc-nav__link--active::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 18px;
    height: 3px;
    background: #3860F4;
    border-radius: 3px;
}

/* 下拉面板 */
.oc-nav__panel {
    position: absolute;
    top: 100%;
    background: #fff;
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    padding: 16px 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 2100;
}
.oc-nav__item:hover .oc-nav__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
/* 窄：挂在菜单项下方 */
.oc-nav__item--narrow .oc-nav__panel {
    left: 0;
}
.oc-nav__panel--narrow {
    width: 320px;
}
/* 宽：居中挂在整条 header 下方（item 设 static，相对 .oc-header__inner 定位） */
.oc-nav__item--wide {
    position: static;
}
.oc-nav__item--wide .oc-nav__panel {
    left: 50%;
    transform: translateX(-50%);
    width: 1200px;
    max-width: calc(100vw - 40px);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px;
}

.oc-nav__card {
    background: #EDF1F7;
    border-radius: 8px;
    border: 1px solid #E8EEF7;
    padding: 16px 12px;
    box-sizing: border-box;
}
.oc-nav__panel--narrow .oc-nav__card {
    width: 100%;
    margin-bottom: 8px;
}
.oc-nav__panel--wide .oc-nav__card {
    width: calc((100% - 36px) / 4);
}
.oc-nav__card-title {
    border-bottom: 2px solid #ECECEC;
    display: flex;
    align-items: center;
    font-size: 16px;
    line-height: 16px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    position: relative;
    color: #1a1a1a;
}
.oc-nav__card-title::before {
    content: '';
    height: 2px;
    width: 28px;
    position: absolute;
    background: #3860F4;
    bottom: -2px;
}
.oc-nav__entry {
    display: block;
    width: 100%;
    padding: 10px 0 10px 16px;
    font-size: 15px;
    white-space: nowrap;
    color: #333;
    background: transparent;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: color .2s, background .2s, border-color .2s;
    margin-bottom: 8px;
    text-decoration: none;
    box-sizing: border-box;
}
.oc-nav__entry:last-child {
    margin-bottom: 0;
}
.oc-nav__entry:hover {
    background: #fff;
    border-color: #409eff;
    color: #409eff;
}
.oc-nav__entry--active {
    color: #3860F4;
    font-weight: 600;
}
.oc-nav__entry-desc {
    display: block;
    color: #7b7777;
    font-size: 13px;
    margin-top: 4px;
    white-space: normal;
    line-height: 1.5;
}

/* 右侧：语言 + 登录注册 */
.oc-header__right {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}
.oc-lang {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #e3e6ef;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: border-color .2s, box-shadow .2s;
}
.oc-lang:hover {
    border-color: #3860F4;
    box-shadow: 0 0 0 3px rgba(56, 96, 244, .10);
}
.oc-lang__caret {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #888;
    transition: transform .2s;
}
.oc-lang:hover .oc-lang__caret {
    transform: rotate(180deg);
}
.oc-lang__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid #e3e6ef;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all .18s ease;
    z-index: 3000;
}
.oc-lang:hover .oc-lang__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.oc-lang__opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 7px;
    transition: background .15s, color .15s;
    cursor: pointer;
}
.oc-lang__opt:hover {
    background: #f2f5ff;
    color: #3860F4;
}
.oc-lang__opt--active {
    color: #3860F4;
    font-weight: 600;
}
.oc-lang__flag {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: cover;
}
.oc-lang__name {
    flex: 1;
}
.oc-lang__tick {
    opacity: 0;
    font-size: 12px;
}
.oc-lang__opt--active .oc-lang__tick {
    opacity: 1;
}

.oc-auth {
    height: 100%;
    display: flex;
    align-items: center;
}
.oc-auth__guest,
.oc-auth__user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.oc-auth__name {
    color: #1a1a1a;
    font-size: 16px;
    max-width: 120px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}
.oc-auth__logout {
    margin-left: 0;
}

/* ===================== 通用按钮 / 标签（独立 .oc-btn） ===================== */
.oc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #2155ff;
    background: #2155ff;
    color: #fff;
    padding: 8px 14px;
    min-width: 82px;
    line-height: 18px;
    border-radius: 4px;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, border-color .2s, color .2s;
}
.oc-btn:hover {
    opacity: .92;
}
.oc-btn--ghost {
    background: transparent;
    color: #2155ff;
}
.oc-btn--ghost:hover {
    background: #2155ff;
    color: #fff;
}
.oc-btn--white {
    border-color: #2155ff;
    background: #fff;
    color: #2155ff;
}
.oc-btn--danger {
    border-color: #e53535;
    background: #e53535;
    color: #fff;
}
.oc-btn--danger.oc-btn--ghost {
    background: transparent;
    color: #e53535;
}
.oc-btn--danger.oc-btn--ghost:hover {
    background: #e53535;
    color: #fff;
}

.oc-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    font-size: 12px;
    color: #fff;
    background: #e53535;
    border-radius: 4px;
    line-height: 16px;
    margin-left: 6px;
    vertical-align: middle;
}

/* ===================== 分类 Tab ===================== */
.oc-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 0 18px;
    border-bottom: 1px solid #eef1f6;
    margin-bottom: 18px;
}
.oc-tab {
    padding: 8px 18px;
    font-size: 15px;
    color: #4a4f63;
    background: #f4f6fb;
    border: 1px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all .2s ease;
    user-select: none;
}
.oc-tab:hover {
    color: #3860F4;
    background: #eaf0ff;
}
.oc-tab--active {
    color: #fff;
    background: #3860F4;
    border-color: #3860F4;
    font-weight: 600;
}

/* ===================== 页脚 ===================== */
.oc-footer {
    padding: 64px 0;
    color: #fff;
    background:
        radial-gradient(900px 300px at 50% -40%, rgba(0, 123, 255, .20), transparent 60%),
        linear-gradient(180deg, #0d1326 0%, #0a0e1a 100%);
    border-top: 1px solid rgba(0, 123, 255, .18);
    margin-top: 40px;
}
.oc-footer__features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.oc-footer__feature {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #fff;
}
.oc-footer__feature-icon {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    color: #3860F4;
    flex-shrink: 0;
}
.oc-footer__divider {
    font-size: 24px;
    opacity: .4;
}
.oc-footer__body {
    display: flex;
    align-items: flex-start;
    margin-top: 56px;
    gap: 40px;
}
.oc-footer__brand {
    width: 300px;
    flex-shrink: 0;
    text-align: left;
}
.oc-footer__brand-logo {
    height: 30px;
}
.oc-footer__brand-text {
    margin-top: 20px;
    font-size: 14px;
    line-height: 24px;
    color: #c9cce0;
}
.oc-footer__menu {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 80px;
}
.oc-footer__col-title {
    font-size: 16px;
    line-height: 1.25;
    color: #fff;
    margin-bottom: 16px;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}
.oc-footer__col {
    flex: 0 0 auto;
    width: 160px;
    min-width: 160px;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
}
.oc-footer__link,
.oc-footer .oc-footer__menu > .oc-footer__col > .oc-footer__link {
    display: block;
    line-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #9a9db5;
    transition: color .3s;
    text-decoration: none;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px !important;
    transform: none !important;
    letter-spacing: normal !important;
    word-break: normal !important;
    word-wrap: normal !important;
}
.oc-footer__link:hover,
.oc-footer .oc-footer__menu > .oc-footer__col > .oc-footer__link:hover {
    color: #00d2be;
    text-shadow: 0 0 8px rgba(0, 210, 190, .35);
}
.oc-footer__support {
    width: 260px;
    flex-shrink: 0;
}
.oc-footer__btn {
    background: rgba(255, 255, 255, .12);
    display: flex;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    align-items: center;
    text-decoration: none;
    transition: background .3s, color .3s;
    font-size: 14px;
}
.oc-footer__btn:hover {
    background: #3860F4;
}
.oc-footer__btn + .oc-footer__btn {
    margin-top: 12px;
}
.oc-footer__btn-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}
.oc-footer__friend {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.oc-footer__friend-label {
    font-size: 15px;
    margin-bottom: 12px;
    color: #fff;
}
.oc-footer__friend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.oc-footer__friend-link {
    color: #9a9db5;
    text-decoration: none;
    font-size: 14px;
    transition: color .3s;
}
.oc-footer__friend-link:hover {
    color: #fff;
}

/* ============================================================
   购物车页复用首页营销导航 / 页脚（后台驱动 .the-header-g / .the-footer-g）
   本文件仅做「吸顶」+「防御 clientarea common.css 覆盖」，不重写导航/页脚样式
   （导航/页脚视觉由 index.css / home.css / footer.css 负责）
   ============================================================ */
/* 吸顶：随网页下拉固定在顶部；滚动 >100px 由 JS 切换 .scrolled（毛玻璃+阴影） */
.the-header-g {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    z-index: 2022;
    background: transparent;            /* 初始：透明融入页面（正常位置） */
    box-shadow: none;
    transition: background-color .35s ease, box-shadow .35s ease,
                -webkit-backdrop-filter .35s ease, backdrop-filter .35s ease;
}
/* 固定状态：深色科技风毛玻璃 + 底部蓝色辉光 */
.the-header-g.scrolled {
    background: rgba(10, 14, 26, .85);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35),
                0 1px 0 rgba(0, 123, 255, .25) inset,
                0 -1px 12px rgba(0, 123, 255, .15);
    border-bottom: 1px solid rgba(0, 123, 255, .18);
}
/* 防御 clientarea common.css 对 .menu-item{opacity:.6} 的覆盖，保证导航项正常显示 */
.the-header-g .menu-item {
    opacity: 1 !important;
    color: rgba(255, 255, 255, .85) !important;
    transition: color .25s ease;
}
.the-header-g.scrolled .menu-item {
    color: rgba(255, 255, 255, .9) !important;
}
.the-header-g .menu-item:hover,
.the-header-g .menu-item a:hover {
    color: #00d2be !important;
    text-shadow: 0 0 8px rgba(0, 210, 190, .35);
}
.the-header-g .menu-item.title {
    color: #fff !important;
}

/* 购物车页页脚：覆盖 index.css 里过大的标题固定高/链接行高，与首页 .footer-nav-item 一致 */
.the-footer-g .menu .title,
.the-footer-g .support .title {
    height: auto !important;
    margin-bottom: 16px !important;
    line-height: 1.25 !important;
    display: block !important;
}
.the-footer-g .menu .menu-item {
    display: block !important;
    line-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #9a9db5 !important;
    transition: color .3s !important;
}
.the-footer-g .menu .menu-item:hover,
.the-footer-g .menu .menu-item a:hover,
.the-footer-g .support .menu-item:hover,
.the-footer-g .support .menu-item a:hover,
.the-footer-g a:hover,
.the-footer-g .link-hover:hover {
    color: #00d2be !important;
    text-shadow: 0 0 8px rgba(0, 210, 190, .35);
}

/* 购物车页整体页脚：同步深色渐变 */
.the-footer-g {
    background:
        radial-gradient(900px 300px at 50% -30%, rgba(0, 123, 255, .18), transparent 60%),
        linear-gradient(180deg, #0d1326 0%, #070b15 100%) !important;
    border-top: 1px solid rgba(0, 123, 255, .18) !important;
    color: #fff !important;
}
.the-footer-g .menu .title,
.the-footer-g .support .title,
.the-footer-g .footer-nav-head {
    color: #fff !important;
}
.the-footer-g .menu .menu-item,
.the-footer-g .support .menu-item,
.the-footer-g .footer-nav-item a,
.the-footer-g .footer-nav-item {
    color: #9aa2bd !important;
    transition: color .3s ease;
}

/* ============================================================
   购物车深色科技风：强制 header / 悬浮窗 / 页脚 统一深色
   ============================================================ */

/* ---------- Header 强制深色（未滚动时也要可见） ---------- */
.the-header-g {
    background: rgba(10, 14, 26, .95) !important;
    border-bottom: 1px solid rgba(0, 123, 255, .18) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25) !important;
}
.the-header-g.scrolled {
    background: rgba(10, 14, 26, .92) !important;
}

/* Logo 深色模式：原 SVG 带蓝底，filter 会把它反成白底，改用白字透明底 Logo */
.the-header-g .logo {
    position: relative;
    width: 164px;
    height: 44px;
}
.the-header-g .logo .logo_black {
    opacity: 0 !important;
    filter: none !important;
}
.the-header-g .logo::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 164px;
    height: 44px;
    background: url('/web/optclouds/optclouds-logo-dark.svg') no-repeat center left / contain;
    pointer-events: none;
}

/* 导航文字强制白色 */
.the-header-g .menu-item,
.the-header-g .menu-item.title,
.the-header-g .menu-item-new,
.the-header-g .menu-item-new .menu-item.title {
    color: rgba(255, 255, 255, .9) !important;
}
.the-header-g .menu-item:hover .menu-item.title,
.the-header-g .menu-item-new:hover .menu-item.title,
.the-header-g .menu-item:hover,
.the-header-g .menu-item-new:hover {
    color: #00d2be !important;
    text-shadow: 0 0 8px rgba(0, 210, 190, .35);
}

/* 下拉菜单深色 */
.the-header-g .sub-menu-new {
    background: #0d1326 !important;
    border: 1px solid rgba(0, 123, 255, .22) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35) !important;
}
.the-header-g .sub-menu-new .card {
    background: rgba(255, 255, 255, .045) !important;
    border: 1px solid rgba(255, 255, 255, .08) !important;
}
.the-header-g .sub-menu-new .card .sub-menu-title {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, .12) !important;
}
.the-header-g .sub-menu-item {
    color: #c9cce0 !important;
}
.the-header-g .sub-menu-item:hover {
    background: rgba(0, 123, 255, .12) !important;
    color: #00d2be !important;
    border-color: rgba(0, 123, 255, .35) !important;
}

/* 语言切换深色 */
.the-header-g .lang-switch {
    background: transparent !important;
    border-color: rgba(255, 255, 255, .25) !important;
    color: #fff !important;
}
.the-header-g .lang-switch:hover,
.the-header-g .lang-switch.open {
    border-color: #00d2be !important;
    box-shadow: 0 0 0 3px rgba(0, 210, 190, .15) !important;
}
.the-header-g .lang-switch .lang-caret {
    border-top-color: rgba(255, 255, 255, .7) !important;
}
.the-header-g .lang-switch .lang-menu {
    background: #0d1326 !important;
    border: 1px solid rgba(0, 123, 255, .22) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35) !important;
}
.the-header-g .lang-switch .lang-opt {
    color: #c9cce0 !important;
}
.the-header-g .lang-switch .lang-opt:hover {
    background: rgba(0, 123, 255, .12) !important;
    color: #00d2be !important;
}

/* 登录/注册按钮深色 */
.the-header-g .auth .button-g.white.plain {
    border-color: rgba(255, 255, 255, .35) !important;
    background: rgba(255, 255, 255, .08) !important;
    color: #fff !important;
}
.the-header-g .auth .button-g.plain {
    background: linear-gradient(90deg, #2155ff, #1e6bff) !important;
    border-color: #2155ff !important;
    color: #fff !important;
}

/* ---------- 右侧悬浮窗深色 ---------- */
.the-consult-g .consult-service {
    background: linear-gradient(180deg, #0d1326 0%, #0a0e1a 100%) !important;
    border: 1px solid rgba(0, 123, 255, .25) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35) !important;
}
.the-consult-g .consult-service .row {
    border-bottom-color: rgba(255, 255, 255, .08) !important;
}
.the-consult-g .consult-service .row .desc {
    color: #c9cce0 !important;
}
.the-consult-g .consult-service .row:hover .desc {
    color: #00d2be !important;
}
.the-consult-g .consult-service .row .icon {
    filter: brightness(1.2);
}

/* 悬浮窗 popover 面板 */
.the-consult-g .consult-service .popover .popover-sub,
.the-consult-g .consult-service .popover .popover-sub-box {
    background: linear-gradient(180deg, #0d1326 0%, #0a0e1a 100%) !important;
    border: 1px solid rgba(0, 123, 255, .25) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35) !important;
}
.the-consult-g .consult-service .popover .popover-sub .top {
    color: #fff !important;
    border-bottom-color: rgba(255, 255, 255, .08) !important;
}
.the-consult-g .consult-service .row .popover .popover-sub .cards .card .left .text span:first-child,
.the-consult-g .consult-service .row.channel .popover .popover-sub .cards .card .left .text span:first-child {
    color: #fff !important;
}
.the-consult-g .consult-service .row .popover .popover-sub .cards .card .left .text span:last-child,
.the-consult-g .consult-service .row.channel .popover .popover-sub .cards .card .left .text span:last-child {
    color: #9aa2bd !important;
}

/* 返回顶部/在线客服按钮深色 */
.the-consult-g .back-top,
.the-consult-g .chat-online,
.the-consult-g .back-top > div,
.the-consult-g .chat-online > div {
    background: linear-gradient(180deg, #0d1326 0%, #0a0e1a 100%) !important;
    border: 1px solid rgba(0, 123, 255, .25) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3) !important;
}

/* ---------- 页脚统一深色 ---------- */
.the-footer-g {
    background: #0a0e1a !important;
    border-top: 1px solid rgba(0, 123, 255, .18) !important;
    color: #fff !important;
}
.the-footer-g .menu .title,
.the-footer-g .support .title,
.the-footer-g .friend-links .label,
.the-footer-g .support .phone {
    color: #fff !important;
}
.the-footer-g .menu .menu-item,
.the-footer-g .support .menu-item,
.the-footer-g .friend-links .link,
.the-footer-g .support .button {
    color: #9aa2bd !important;
}
.the-footer-g .support .button {
    background: rgba(255, 255, 255, .08) !important;
}
.the-footer-g .support .button:hover {
    background: rgba(0, 123, 255, .18) !important;
    color: #00d2be !important;
}
