/* FoxVIP template main stylesheet */
* {
    box-sizing: border-box;
}

:root {
    --fox-primary: #3753ff;
    --fox-primary-dark: #1f2b7a;
    --fox-accent: #2ff0b5;
    --fox-bg: #f3f6fb;
    --fox-card: #ffffff;
    --fox-text: #1a1f36;
    --fox-muted: #5f6b7a;
    --fox-border: #e5e9f2;
    --fox-shadow: 0 16px 45px rgba(38, 74, 170, 0.12);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, PingFang SC, PingFang TC, PingFang HK, Helvetica Neue, Helvetica, Arial, Hiragino Sans GB, Microsoft YaHei, 微软雅黑, STHeiti, 华文黑体, sans-serif;
    background: var(--fox-bg);
    color: var(--fox-text);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.fox-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.fox-hero {
    background: linear-gradient(135deg, #0c1d4a 0%, #1c2973 40%, #1f48b7 100%);
    color: #fff;
    padding: 24px 0 56px;
    position: relative;
    overflow: hidden;
}

.fox-hero::after,
.fox-hero::before {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.65;
}

.fox-hero::before {
    width: 280px;
    height: 280px;
    background: #2ff0b5;
    top: -80px;
    left: -80px;
}

.fox-hero::after {
    width: 320px;
    height: 320px;
    background: #7ad1ff;
    bottom: -120px;
    right: -60px;
}

.fox-container {
    width: min(1300px, 92vw);
    margin: 0 auto;
}

.fox-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 100;
}

.fox-user-menu {
    position: relative;
    z-index: 1000;
}

.fox-user-dropdown {
    position: fixed !important;
    z-index: 99999 !important;
    pointer-events: auto !important;
}

.fox-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.2px;
}

.fox-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.fox-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.86);
}

.fox-nav-links a {
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.fox-nav-links a:hover,
.fox-nav-links a.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.fox-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 768px) {
    .fox-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .fox-nav-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;          /* 允许换行，不出现滚动条 */
        overflow-x: visible;
        padding-bottom: 0;
        gap: 8px;
        align-self: flex-end;
    }

    .fox-nav-actions > * {
        flex: 0 0 auto;
    }

    /* 移动端顶部按钮整体缩小 */
    .fox-btn-primary,
    .fox-btn-ghost {
        padding: 8px 12px;
        font-size: 13px;
        border-radius: 10px;
    }

    .fox-language {
        padding: 8px 10px;
        font-size: 12px;
        border-radius: 10px;
    }

    /* 顶部按钮：手机端仅显示图标，文字隐藏（用户按钮除外） */
    .fox-nav-actions .fox-btn-label {
        display: none;
    }

    /* 订单管理页：nav 与分类区拉开距离；避免 .fox-main 的负 margin 贴得太近 */
    .fox-main.fox-main-orders {
        margin-top: 8px;
    }

    /* 订单管理页分类按钮：单行横向滑动 */
    .fox-orders-filter {
        margin-top: 10px;
        flex-direction: column; /* 移动端垂直排列筛选区域和搜索框 */
        align-items: stretch; /* 拉伸子元素 */
        gap: 12px; /* 分类按钮和搜索表单之间的间距 */
    }

    .fox-orders-tabs {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 8px !important;
        width: 100%; /* 确保占满父容器宽度 */
        max-width: 100%;
        padding-bottom: 0; /* 手机模式下去掉下侧padding */
        margin-bottom: 0; /* 手机模式下去掉下侧margin */
    }

    .fox-orders-tabs::-webkit-scrollbar {
        display: none;
    }

    .fox-orders-tabs {
        scrollbar-width: none;
    }

    /* 分类按钮在手机端宽度根据文字自适应，整体更紧凑 */
    .fox-orders-tabs .fox-filter-btn {
        min-width: auto !important; /* 使用 !important 确保覆盖默认样式 */
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap; /* 防止文本换行，特别是长文本如蒙语 */
        flex-shrink: 0; /* 防止按钮被压缩 */
        width: auto; /* 宽度根据内容自适应 */
        display: inline-flex; /* 确保按钮内容正确对齐 */
        align-items: center;
        justify-content: center;
    }

    /* 移动端搜索表单优化：防止清除按钮被挤到下一行 */
    .fox-orders-search-form {
        flex-wrap: nowrap !important; /* 强制不换行 */
        overflow-x: auto; /* 如果内容太长，允许横向滚动 */
        -webkit-overflow-scrolling: touch;
        width: 100%;
        gap: 6px !important; /* 减少间距以节省空间 */
    }

    .fox-orders-search-form .fox-filter-search-input {
        flex: 1 1 auto !important; /* 搜索框占据剩余空间 */
        min-width: 0 !important; /* 允许搜索框缩小 */
        max-width: none !important;
    }

    .fox-orders-search-form .fox-search-submit-btn,
    .fox-orders-search-form .fox-search-clear-btn {
        flex-shrink: 0 !important; /* 按钮不被压缩 */
        white-space: nowrap !important; /* 按钮文字不换行 */
        padding: 8px 12px !important; /* 稍微减小按钮padding以节省空间 */
        font-size: 12px !important; /* 稍微减小字体 */
    }
}

.fox-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.25s ease;
}

.fox-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fox-language {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    font-weight: 700;
}

.fox-hero-body {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.fox-hero-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 14px;
}

.fox-hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 22px;
}

.fox-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.fox-btn-primary {
    /* 更柔和但仍有明显渐变（避开青绿亮蓝） */
    background: linear-gradient(135deg, #2f6bff 0%, #35b3ff 100%);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(58, 86, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.fox-btn-primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #295fe6 0%, #2f9fe6 100%);
    box-shadow: 0 14px 32px rgba(58, 86, 255, 0.28);
}

.fox-btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.fox-hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
}

.fox-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    margin-bottom: 16px;
    color: #cde2ff;
    font-size: 13px;
}

.fox-hero-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.fox-hero-list span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 13px;
    color: #e8f1ff;
}

.fox-main {
    margin-top: -40px;
    position: relative;
    z-index: 3;
}

/* 外框（fox-filter+fox-grid）位置不变；给 fox-grid 最小高度；默认框内内容趋顶 */
.fox-grid.fox-grid-center {
    min-height: max(560px, calc(100vh - 240px));
    align-content: start;
}
/* 仅当加 fox-grid-center-content 时，框内内容垂直居中（用于：支付结果、无订单、未查询到订单） */
.fox-grid.fox-grid-center.fox-grid-center-content {
    align-content: center;
}

.fox-filter {
    background: #1e2457;
    color: #fff;
    border-radius: 18px 18px 0 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* PC端搜索表单样式：允许换行，搜索框保持合适宽度 */
.fox-orders-search-form {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.fox-orders-search-form .fox-filter-search-input {
    min-width: 180px; /* PC端保持固定最小宽度 */
}

.fox-filter-btn {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 75px;
}

.fox-filter-btn.active,
.fox-filter-btn:hover {
    background: #fff;
    color: #1e2457;
}

.fox-grid {
    background: var(--fox-bg);
    display: grid;
    /* Desktop: fixed 4 columns (match mock) */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 20px;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
}

.fox-card {
    background: var(--fox-card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--fox-shadow);
    border: 1px solid var(--fox-border);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    min-height: 0;
}

.fox-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(55, 83, 255, 0.16);
}

.fox-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.fox-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fox-thumb {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #f4f7ff;
    border: 1px solid var(--fox-border);
    overflow: hidden;
    flex: 0 0 auto;
}

.fox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fox-title-text {
    min-width: 0;
}

.fox-card-title {
    font-weight: 700;
    font-size: 26px;
    color: var(--fox-text);
    margin: 0;
    line-height: 1.25;
    font-family: -apple-system, BlinkMacSystemFont, PingFang SC, PingFang TC, PingFang HK, Helvetica Neue, Helvetica, Arial, Hiragino Sans GB, Microsoft YaHei, 微软雅黑, STHeiti, 华文黑体, sans-serif;
}

.fox-card-sub {
    font-size: 13px;
    color: var(--fox-muted);
    margin: 0;
}

.fox-price {
    font-weight: 800;
    font-size: 24px;
    color: var(--fox-text);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.fox-price small {
    font-size: 14px;
    color: var(--fox-muted);
}

.fox-price-retail {
    margin-left: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--fox-muted);
}

.fox-meta {
    display: grid;
    gap: 6px;
}

.fox-desc-wrapper {
    display: contents;
}

.fox-desc-hidden {
    display: none !important;
}

.fox-meta-item.fox-desc-last {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fox-meta-item.fox-desc-last > span:last-of-type {
    flex: 1;
    min-width: 0;
}

.fox-desc-toggle {
    border: none;
    background: transparent;
    color: var(--fox-primary);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.fox-desc-toggle:hover {
    transform: scale(1.15);
}

.fox-desc-arrow {
    display: inline-block;
    width: 16px;
    height: 16px;
    color: var(--fox-primary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.fox-desc-toggle.expanded .fox-desc-arrow {
    transform: rotate(180deg);
}

.fox-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--fox-muted);
}

/* 商品简述（gd_brief）展示：继承 meta 的字体/颜色，避免富文本标签导致字号不一致 */
.fox-brief-html,
.fox-brief-html * {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

.fox-brief-html p,
.fox-brief-html div,
.fox-brief-html ul,
.fox-brief-html ol {
    margin: 0;
}

.fox-brief-collapsed {
    max-height: 5.4em; /* 再宽松一点 */
    overflow: hidden;
}

/* 简述折叠行：和自动发货一行，但箭头靠近文字而不是跑到最右侧 */
.fox-meta-item.fox-brief-row {
    align-items: flex-end; /* 垂直靠下对齐 */
    gap: 6px;
}

.fox-meta-item.fox-brief-row > .fox-brief-html {
    flex: 0 1 auto;
}

.fox-meta-item.fox-brief-row > .fox-desc-toggle {
    align-self: flex-end; /* 箭头靠下 */
    margin-left: 4px;
    margin-bottom: 1px;
}

.fox-meta-item.fox-desc-last {
    position: relative;
}

.fox-meta-item.fox-desc-last .fox-desc-toggle {
    margin-left: auto;
}

/* buy 页简述行：覆盖上面的 auto，让箭头靠近文字（不影响首页） */
.fox-meta-item.fox-desc-last.fox-brief-row.fox-brief-row-tight .fox-desc-toggle {
    margin-left: 4px;
}

.fox-meta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fox-primary);
    flex-shrink: 0;
}

.fox-meta-check .fox-meta-dot {
    background: var(--fox-accent);
}
.fox-actions-wrapper {
    margin-top: auto;
    padding-top: 8px;
}

.fox-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fox-card .fox-buy {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    background: #f2f6ff;
    color: var(--fox-primary);
    border: 1px solid var(--fox-primary-dark);
    transition: all 0.2s ease;
}

.fox-card .fox-buy:hover {
    background: linear-gradient(135deg, #2f6bff 0%, #35b3ff 100%);
    color: #ffffff;
    border-color: transparent;
}

/* Out of stock button: match the "缺货" tag color */
.fox-card .fox-buy.disabled {
    pointer-events: none;
    background: #fff3f0;
    color: #f26d50;
    border-color: #f7c1b3;
}

.fox-card .fox-buy.disabled:hover {
    background: #fff3f0;
    color: #f26d50;
    border-color: #f7c1b3;
}

.fox-badge-outline {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px dashed var(--fox-border);
    font-size: 12px;
    color: var(--fox-muted);
}

.fox-tag {
    padding: 6px 10px;
    border-radius: 10px;
    background: #eef4ff;
    color: var(--fox-primary);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fox-tag.out {
    background: #fff3f0;
    color: #f26d50;
}

.fox-footer {
    margin-top: 30px;
    padding: 22px 0 30px;
    text-align: center;
    color: var(--fox-muted);
    font-size: 13px;
}

.fox-helper {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0d1c4a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.fox-helper-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #53f3c3 0%, #2acbff 100%);
    color: #0d1c4a;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.fox-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--fox-muted);
}

.fox-qr {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .fox-hero {
        padding: 16px 0 22px;
    }
    .fox-hero-body {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .fox-nav {
        flex-wrap: wrap;
    }
}

@media (max-width: 1100px) {
    /* Tablet / small desktop: 3 columns */
    .fox-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .fox-container {
        width: 92vw;
    }

    /* 首页：缩小 hero 与 nav 间距，并拉开 hero 与分类的距离 */
    .fox-hero-body {
        margin-top: 20px;
    }

    .fox-main.fox-main-home {
        margin-top: -16px;
    }

    /* 登录页：避免 .fox-main 默认的负 margin 顶到导航下方 */
    .fox-main.fox-main-login {
        margin-top: 8px;
    }
    .fox-hero-body {
        margin-top: 22px;
    }
    .fox-filter {
        border-radius: 16px 16px 0 0;
    }
    .fox-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-radius: 0 0 16px 16px;
    }
}

@media (max-width: 520px) {
    /* Small phones: 1 column */
    .fox-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}

/* Buy Page Styles */
.fox-buy-page {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.fox-buy-card {
    background: var(--fox-card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--fox-shadow);
    border: 1px solid var(--fox-border);
    margin-bottom: 24px;
}

.fox-buy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--fox-border);
}

.fox-buy-title-row {
    display: flex;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.fox-buy-thumb {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    background: #f4f7ff;
    border: 1px solid var(--fox-border);
    overflow: hidden;
    flex-shrink: 0;
}

.fox-buy-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fox-buy-title-text {
    flex: 1;
    min-width: 0;
}

.fox-buy-title-text .fox-desc-wrapper {
    margin-top: 12px;
}

.fox-buy-desc-wrapper {
    position: relative;
    padding-bottom: 32px;
    display: block !important;
}

.fox-buy-desc-wrapper .fox-meta-item {
    margin-bottom: 6px;
    line-height: 1.5;
}

.fox-buy-desc-wrapper .fox-meta-item:last-of-type {
    margin-bottom: 0;
}

.fox-buy-desc-toggle {
    position: absolute;
    left: 100px;
    bottom: 0;
    margin-left: 0;
    margin-top: 8px;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 10;
    color: var(--fox-primary);
}

.fox-buy-desc-toggle .fox-desc-arrow {
    color: var(--fox-primary);
}

.fox-buy-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--fox-text);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.fox-buy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.fox-buy-tag {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.fox-buy-tag.auto {
    background: #e8f5e9;
    color: #2e7d32;
}

.fox-buy-tag.manual {
    background: #fff3e0;
    color: #e65100;
}

.fox-buy-stock,
.fox-buy-limit {
    font-size: 14px;
    color: var(--fox-muted);
}

.fox-buy-limit {
    color: #f26d50;
    font-weight: 600;
}

.fox-buy-price {
    text-align: right;
    flex-shrink: 0;
}

.fox-buy-price .fox-price-now {
    font-size: 32px;
    font-weight: 800;
    color: var(--fox-text);
    display: flex;
    align-items: baseline;
    gap: 4px;
    justify-content: flex-end;
}

.fox-buy-price .fox-price-retail {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    color: var(--fox-muted);
}

.fox-buy-wholesale {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

.fox-buy-label {
    font-weight: 600;
    color: var(--fox-text);
    margin: 0 0 8px 0;
    font-size: 14px;
}

.fox-wholesale-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fox-wholesale-item {
    background: var(--fox-card);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--fox-text);
    border: 1px solid var(--fox-border);
}

.fox-buy-form {
    margin-top: 24px;
}

.fox-form-group {
    margin-bottom: 20px;
}

.fox-form-inline {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fox-form-inline .fox-form-label {
    margin-bottom: 0;
    min-width: 100px;
    flex-shrink: 0;
}

.fox-form-inline .fox-form-input {
    flex: 1;
    max-width: 400px;
}

.fox-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.fox-form-label {
    display: block;
    font-weight: 600;
    color: var(--fox-text);
    margin-bottom: 8px;
    font-size: 14px;
}

.fox-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--fox-border);
    border-radius: 12px;
    font-size: 14px;
    background: var(--fox-card);
    color: var(--fox-text);
    transition: all 0.2s ease;
    font-family: inherit;
}

.fox-form-input:focus {
    outline: none;
    border-color: var(--fox-primary);
    box-shadow: 0 0 0 3px rgba(55, 83, 255, 0.1);
}

.fox-verify-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.fox-verify-img {
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid var(--fox-border);
}

.fox-payment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fox-payment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--fox-border);
    border-radius: 12px;
    background: var(--fox-card);
    cursor: pointer;
    transition: all 0.2s ease;
}

.fox-payment-item:hover {
    border-color: var(--fox-primary);
    background: #f8f9ff;
}

.fox-payment-item input[type="radio"] {
    margin-right: 4px;
    cursor: pointer;
}

.fox-payment-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
}

.fox-payment-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.fox-payment-icon div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fox-payment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fox-payment-item input[type="radio"]:checked ~ span:last-child {
    color: var(--fox-primary);
    font-weight: 600;
}

.fox-payment-item:has(input[type="radio"]:checked) {
    border-color: var(--fox-primary);
    background: #f8f9ff;
}

.fox-form-actions {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--fox-border);
    display: flex;
    justify-content: center;
}

.fox-buy-btn {
    padding: 14px 48px;
    /* 更柔和但仍有明显渐变（避开青绿亮蓝） */
    background: linear-gradient(135deg, #2f6bff 0%, #35b3ff 100%);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 320px;
}

.fox-buy-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #295fe6 0%, #2f9fe6 100%);
    box-shadow: 0 10px 26px rgba(58, 86, 255, 0.28);
}

.fox-buy-prompt-card {
    background: var(--fox-card);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--fox-shadow);
    border: 1px solid var(--fox-border);
    margin-bottom: 24px;
}

.fox-prompt-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--fox-text);
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--fox-border);
}

.fox-prompt-content {
    color: var(--fox-text);
    line-height: 1.7;
    font-size: 14px;
}

.fox-prompt-content p {
    margin-bottom: 10px;
}

.fox-buy-desc {
    background: var(--fox-card);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--fox-shadow);
    border: 1px solid var(--fox-border);
}

.fox-desc-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--fox-text);
    margin: 0 0 20px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--fox-border);
}

.fox-desc-content {
    color: var(--fox-text);
    line-height: 1.8;
    font-size: 15px;
}

.fox-desc-content p {
    margin-bottom: 12px;
}

/* 购买提示 / 商品描述中的图片自适应缩放 */
.fox-prompt-content img,
.fox-desc-content img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Modal Styles */
.fox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fox-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.fox-modal-content {
    position: relative;
    background: var(--fox-card);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fox-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--fox-border);
}

.fox-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fox-text);
    margin: 0;
}

.fox-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--fox-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.fox-modal-close:hover {
    background: var(--fox-bg);
    color: var(--fox-text);
}

.fox-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: var(--fox-text);
    line-height: 1.6;
}

.fox-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--fox-border);
    display: flex;
    justify-content: flex-end;
}

.fox-btn-secondary {
    padding: 10px 20px;
    background: var(--fox-bg);
    color: var(--fox-text);
    border: 1px solid var(--fox-border);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fox-btn-secondary:hover {
    background: var(--fox-border);
}

@media (max-width: 768px) {
    .fox-buy-header {
        flex-direction: column;
    }

    .fox-buy-price {
        text-align: left;
        width: 100%;
    }

    .fox-buy-price .fox-price-now {
        justify-content: flex-start;
    }

    .fox-form-row {
        grid-template-columns: 1fr;
    }

    .fox-buy-card {
        padding: 24px;
    }

    .fox-buy-title {
        font-size: 24px;
    }

    .fox-buy-thumb {
        width: 100px;
        height: 100px;
    }
}

