/* 二次元风格（无毛玻璃、无动画、注重可读与性能） */

:root {
    --acg-bg-overlay: rgba(10, 12, 28, 0.45);
    --acg-primary: #7a8cff;
    --acg-secondary: #b88cff;
    --acg-danger: #ff6b88;
    --acg-text-strong: #111319;
    --acg-text-muted: #6b7280;
    --acg-card-bg: rgba(255, 255, 255);
    --acg-border: #e5e7eb;
}

html {
    font-size: 13px;
}

a {
    text-decoration: none;
}

/* 纯色背景 */
body {
    background-color: #504c89;
    color: #050023;
    background-image: none;
}

/* 导航：现代化设计 */
.navbar-acg {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 56px;
    padding: 0;
    background: linear-gradient(116.85deg, rgba(252, 70, 107, 0.2) 0%, rgba(63, 94, 251, 0.2) 100%);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 999999;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
}

.navbar-acg .navbar-brand {
    font-size: 1.45rem;
    color: white !important;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-acg .navbar-brand .brand-logo {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.navbar-acg .navbar-brand:hover {
    transform: scale(1.05);
    color: white !important;
}

.navbar-acg .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-acg .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FC466B 0%, #3F5EFB 100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: inherit;
}

.navbar-acg .nav-link:hover {
    color: white;
    transform: translateY(-1px);
}

.navbar-acg .nav-link:hover::before {
    opacity: 0.1;
}

.navbar-acg .nav-link.active {
    color: white;
    background: linear-gradient(135deg, rgba(252, 70, 107, 0.2) 0%, rgba(63, 94, 251, 0.2) 100%);
    font-weight: 600;
}

.navbar-acg .nav-link.active::before {
    opacity: 0;
}

/* 用户信息区域美化 */
.user-info-box .dropdown-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.user-info-box .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.user-info-box .dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(252, 70, 107, 0.25);
}

.user-info-box #username {
    color: white !important;
}

.user-info-box #user-balance {
    color: rgba(255, 255, 255, 0.8) !important;
}

.user-info-box .text-success {
    color: #4ade80 !important;
}

/* 登录按钮美化 */
.user-login-box .btn {
    background: linear-gradient(135deg, #FC466B 0%, #3F5EFB 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.user-login-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 70, 107, 0.3);
    color: white;
}

/* 下拉菜单美化 */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: #333;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 2px 8px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(252, 70, 107, 0.1) 0%, rgba(63, 94, 251, 0.1) 100%);
    color: #333;
}

@media (max-width: 767.98px) {
    .user-info-box {
        position: absolute;
        right: 64px;
        top: 8px;
    }
    .user-login-box {
        position: absolute;
        right: 68px;
        top: 14px;
    }
}


/* Hero 文案块（纯色卡片） */
.hero-acg {
    background: var(--acg-card-bg);
    border: 1px solid var(--acg-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.hero-title {
    font-weight: 800;
    letter-spacing: .3px;
}

.hero-sub {
    color: var(--acg-text-muted);
}

.accent-bar {
    height: 4px;
    width: 64px;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
    border-radius: 4px;
}

/* 分类 Chip */
.chip-list {
    display: flex; /* 改为flex以确保居中 */
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    background: linear-gradient(116.85deg, rgba(252, 70, 107, 0.2) 0%, rgba(63, 94, 251, 0.2) 100%);
    border-radius: 1.6em;
    padding: 0; /* 移除div的padding，让ul和div高度一致 */
    margin-bottom: 20px;
    margin-left: auto; /* 自动左右边距实现居中 */
    margin-right: auto;
    width: fit-content; /* 仅包裹内容 */
    max-width: 100%; /* 防止溢出 */
}

.chip-list ul {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0; /* 设置为0 */
}

.chip-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.chip-list li .switch-category {
    padding: 12px 24px;
    position: relative;
    display: inline-flex;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    font-size: 1rem;
    box-shadow: none;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.chip-list li .switch-category::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #FC466B 0%, #3F5EFB 100%);
    opacity: 0;
    border-radius: inherit;
    transition: all 0.3s ease;
    z-index: 1;
    box-sizing: border-box;
}

.chip-list li .switch-category span {
    position: relative;
    z-index: 2;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
}

.chip-list::-webkit-scrollbar {
    height: 6px;
}

.chip-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
    border-radius: 999px;
}

.chip {
    padding: 12px 24px;
    position: relative;
    display: inline-block;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
    font-size: 1rem;
    box-shadow: none;
    max-width: 150px; /* 限制最大宽度 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: 48px; /* 确保与激活状态高度一致 */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chip::before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #FC466B 0%, #3F5EFB 100%);
    opacity: 0;
    border-radius: inherit;
    transition: all 0.3s ease;
    z-index: 1; /* 确保背景在文字下方 */
}

.chip span,
.chip .chip-icon {
    position: relative;
    z-index: 2; /* 确保文字和图标在背景上方 */
}

/* 增强选中状态的视觉效果 - 确保文字为纯白色 */
.chip.is-primary, .chip.is-primary span, .chip.is-primary .chip-icon,
.chip-list li.active .switch-category, .chip-list li.active .switch-category span, .chip-list li.active .switch-category .chip-icon {
    color: #ffffff !important; /* 强制设置为纯白色，包含所有子元素 */
    font-weight: 600;
    transform: translateY(-2px);
    z-index: 10; /* 确保选中的按钮在最上层 */
}

.chip.is-primary::before,
.chip-list li.active .switch-category::before {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(252, 70, 107, 0.3);
}

/* 添加悬停效果 */
.chip:hover:not(.is-primary),
.chip-list li .switch-category:hover:not(.active) {
    color: #ffffff;
    transform: translateY(-2px);
}

.chip:hover:not(.is-primary)::before,
.chip-list li .switch-category:hover:not(.active)::before {
    opacity: 0.7;
}

/* 适配移动端 */
@media (max-width: 768px) {
    .chip-list {
        display: flex; /* 移动端使用flex布局 */
        gap: 10px;
        padding: 0; /* 移动端也移除div的padding */
        width: 100%; /* 移动端占满宽度 */
        overflow-x: auto;
        justify-content: flex-start;
        margin-left: 0; /* 移动端重置左右边距 */
        margin-right: 0;
    }
    
    .chip-list ul {
        padding: 0; /* 移动端也设置为0 */
    }
    
    .chip {
        max-width: 120px; /* 移动端更小的最大宽度 */
        padding: 10px 18px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
}

/* 商品卡片样式 - 基于fabu.html模板 */
.acg-card {
    background: #fff;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform .25s ease, box-shadow .25s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
    padding: 10px;
    background: linear-gradient(116.85deg, rgba(252, 70, 107, 0.2) 0%, rgba(63, 94, 251, 0.2) 100%);
}

.acg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* 卡片底部装饰条 */
.acg-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.acg-card:hover::after {
    opacity: 1;
}

/* 商品标题悬停效果 */
.goods-title:hover {
    color: #667eea;
}

/* 图片距离边框有距离 */
.acg-thumb {
    margin: 8px;
    border-radius: 8px;
    height: 160px;
    overflow: hidden;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.acg-thumb:hover {
    transform: scale(1.05);
}

/* 下载方式标签样式 - 一半在图片一半在下面 */
.tags {
    position: relative;
    margin-top: -20px;
    margin-left: 12px;
    margin-right: 12px;
    margin-bottom: 8px;
    z-index: 10;
}

.tags .badge-soft {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.acg-thumb {
    height: 160px;
    position: relative;
    transition: transform .25s ease;
}

/* 内容容器弹性布局，底部元素对齐 */
.acg-card > .p-3 {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    background-color: white;
}

/* 图片容器过渡效果优化 */
.acg-thumb {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    position: relative;
}

/* 价格行靠近底部，库存/已售置底对齐 */
.acg-card > .p-3 .stat-row {
    margin-top: auto;
}

.goods-title {
    font-weight: 700;
    color: white;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 1.35em; /* 1 行占位 */
}

.price {
    color: white;
    font-weight: 800;
    font-size: 20px;
}

.price .unit {
    font-weight: 600;
    font-size: 16px;
    color: white;
}

.meta {
    color: white;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.stat-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    padding-top: 8px;
}

/* 销量按钮样式 */
.sales-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: white;
}

.sales-btn i {
    margin-right: 4px;
    color: white;
}

/* 立即查看按钮样式 */
.view-purchase {
    background-color: #3772ff;
    color: white;
    padding: 4px 16px;
    border-radius: 1.6em;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.view-purchase:hover {
    color: #fff;
}

.view-purchase:after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: inherit;
    background: linear-gradient(116.85deg, #FC466B 0%, #3F5EFB 100%);
    transition: all 0.4s ease;
    opacity: 0;
}

.view-purchase:hover::after {
    opacity: 1;
}

/* 现代化分页组件样式 */
.modern-pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    padding: 20px 0;
}

.modern-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(116.85deg, rgba(252, 70, 107, 0.1) 0%, rgba(63, 94, 251, 0.1) 100%);
    border-radius: 20px;
    padding: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.pagination-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #FC466B 0%, #3F5EFB 100%);
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: inherit;
}

.pagination-btn:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 70, 107, 0.3);
}

.pagination-btn:hover::before {
    opacity: 1;
}

.pagination-btn.active {
    background: linear-gradient(135deg, #FC466B 0%, #3F5EFB 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(252, 70, 107, 0.4);
}

.pagination-btn.active::before {
    opacity: 0;
}

.pagination-btn span {
    position: relative;
    z-index: 1;
}

.pagination-icon {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

/* 分页按钮禁用状态 */
.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn:disabled:hover {
    transform: none;
    box-shadow: none;
    color: #333;
}

.pagination-btn:disabled:hover::before {
    opacity: 0;
}

.badge-soft {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: 999px;
    font-size: 12px;
}

.badge-soft-primary {
    background: rgba(122, 140, 255, .12);
    color: #5b6ce6;
    border: 1px solid rgba(122, 140, 255, .25);
}

.badge-soft-success {
    background: rgba(80, 200, 120, .12);
    color: #3aa76d;
    border: 1px solid rgba(80, 200, 120, .25);
}

.badge-soft-danger {
    background: rgba(255, 0, 0, 0.12);
    color: #ff0000;
    border: 1px solid rgba(255, 0, 0, 0.25);
}

.badge-soft-muted {
    background: rgba(31, 41, 55, 0.12);
    color: rgba(31, 41, 55);
    border: 1px solid rgba(31, 41, 55, 0.25);
}

.badge-soft-warning {
    background: rgba(254, 243, 199, 0.12);
    color: #fef3c7;
    border: 1px solid rgba(254, 243, 199, 0.25);
}


.badge-soft-info {
    background: rgba(186, 149, 251, 0.12);
    color: #ba95fb;
    border: 1px solid rgba(186, 149, 251, 0.25);
}

.shared-button {
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.shared-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.tags {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    margin-bottom: .4rem;
}

.acg-card.soldout {
    filter: grayscale(1) contrast(.92) brightness(.98);
}

.acg-card.soldout:hover {
    transform: none;
    box-shadow: rgba(100, 100, 111, .2) 0 7px 29px 0;
}

.soldout-ribbon {
    position: absolute;
    top: 12px;
    left: -36px;
    transform: rotate(-45deg);
    background: linear-gradient(90deg, #ff8080, #ff6b88);
    color: #fff;
    padding: 4px 46px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(255, 107, 136, .35);
}

/* 分类图标（演示使用统一图片） */
.chip .chip-icon,
.chip-list li .switch-category .chip-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    align-self: center;
}

/* 商品卡片网格布局 */
.item-list {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* 确保容器宽度与模板一致 */
.panel-body .cs-isotop {
    max-width: 100%;
}

/* 设置主容器最大宽度为1350px */
main.container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* 登录/注册/重置密码弹窗背景毛玻璃效果 */
.layui-layer-page .layui-layer-content {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
}

/* 弹窗整体样式 */
.layui-layer-page {
    border-radius: 16px !important;
    overflow: hidden; /* 保持四角圆角裁剪，避免顶部非圆角 */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
}

/* 弹窗标题栏毛玻璃 */
.layui-layer-title {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 16px 16px 0 0 !important;
}

/* 按钮区域毛玻璃 */
.layui-layer-btn {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* 登录/注册/重置密码弹窗按钮样式 */
.layui-layer-btn a.btn-gradient,
.layui-layer-btn .btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 16px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    width: 100% !important;
    min-height: 52px !important;
    height: 52px !important;
    line-height: 20px !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}

.layui-layer-btn a.btn-gradient:hover,
.layui-layer-btn .btn-gradient:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
    color: #ffffff !important;
    opacity: 0.95;
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4) !important;
}

/* 统一 layer 底部按钮与页面按钮风格 */
.layui-layer-page .layui-layer-btn a,
.layui-layer-page .layui-layer-btn .layui-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    min-height: 44px !important;
    line-height: 20px !important;
    text-align: center !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
}
.layui-layer-page .layui-layer-btn a:hover,
.layui-layer-page .layui-layer-btn .layui-btn:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(102, 126, 234, 0.35) !important;
}

/* 修复关闭按钮被裁切与位置偏移 */
.layui-layer-setwin { right: 8px !important; top: 8px !important; }
.layui-layer-setwin .layui-layer-close { opacity: .9; }

/* 弹窗内注册/登录/找回密码容器适配，避免出现滚动条 */
.layui-layer-page .layui-layer-content { 
    max-height: none !important; 
}
/* 解除内容固定高度，允许根据内容自适应 */
.layui-layer-page .layui-layer-content {
    height: auto !important;
    overflow: visible !important;
}

.layui-layer-page .layui-layer-content .auth-wrapper {
    min-height: auto !important;
    padding: 16px !important;
    background: transparent !important; /* 使用弹窗自身毛玻璃背景 */
}
.layui-layer-page .layui-layer-content .auth-card {
    max-width: 520px;
    margin: 0 auto;
}

/* 弹窗内表单主按钮水平居中，使用自适应宽度 */
.layui-layer-page .auth-card .d-grid {
    display: block !important;
}
.layui-layer-page .auth-card .d-grid .btn {
    display: block !important;
    width: auto !important;
    min-width: 260px; /* 更显眼的最小宽度 */
    height: 52px;     /* 统一高度 */
    line-height: 52px;
    padding: 0 22px !important; /* 更大的触控面积 */
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    margin: 0 auto;
    text-align: center;
}

/* layer 底部按钮区域居中显示，按钮使用自适应宽度覆盖旧的 100% 规则 */
.layui-layer-page .layui-layer-btn {
    text-align: center !important;
}



/* 布局微调 */
.section-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.notice {
    color: #374151;
}

/* 移除之前的响应式类，使用网格布局替代 */
.item-card-container.col-xl-2,
.item-card-container.col-lg-3,
.item-card-container.col-md-4,
.item-card-container.col-sm-6 {
    padding: 0;
    margin-bottom: 0 !important;
}

@media (min-width: 992px) {
    .hero-acg {
        padding: 32px;
    }
}

/* 响应式卡片封面高度调整 */
@media (max-width: 575.98px) {
    .acg-thumb {
        height: 120px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .acg-thumb {
        height: 140px;
    }
}

/* 移动端 chip 紧凑化，保持单行显示 */
@media (max-width: 575.98px) {
    .chip {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .chip-list {
        gap: 8px;
        padding: 0; /* 小屏幕也移除div的padding */
        -ms-overflow-style: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .chip-list ul {
        padding: 0; /* 小屏幕也设置为0 */
    }

    .chip .chip-icon,
    .chip-list li .switch-category .chip-icon {
        width: 16px;
        height: 16px;
        margin-right: 4px;
    }

    .chip-list::-webkit-scrollbar {
        display: none;
    }
}

/* 仅在支持 hover 的设备启用动效，避免手机耗电与误触 */
@media (hover: hover) and (pointer: fine) {
    .chip:hover {
        transform: scale(1.02);
    }

    .sku:hover {
        transform: scale(1.02);
    }

    .acg-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    }

    .acg-card:hover .acg-thumb {
        transform: scale(1.03);
    }
}

/* 系统减少动态时，弱化动效 */
@media (prefers-reduced-motion: reduce) {
    .chip, .acg-card, .acg-thumb, .sku {
        transition-duration: .001ms !important;
    }
}

/* 顶部图标与输入组微调 */
.navbar-acg .nav-link .nav-icon {
    margin-right: .35rem;
    font-size: 1.15rem;
}

.navbar-acg .btn .nav-icon {
    margin-right: .35rem;
}

.brand-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
}

.search-input {
    max-width: 360px;
}

.search-input .input-group-text {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-right: 0;
    padding: 0 0 0 12px;
    border-bottom-left-radius: 12px;
    border-top-left-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.search-input .form-control {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
    border-bottom-right-radius: 12px;
    border-top-right-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
}

.search-input .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input .form-control:focus {
    border: 1px solid rgba(252, 70, 107, 0.5) !important;
    border-left: none !important;
    box-shadow: 0 0 0 0.2rem rgba(252, 70, 107, 0.25);
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* 公告区域样式 */
.notice-section {
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.notice-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-header .icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, #FC466B 0%, #3F5EFB 100%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.notice-title {
    margin: 0;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.notice-content {
    color: white;
    line-height: 1.6;
    padding: 8px 0 0 0;
}

/* 购买区域样式 */
.purchase-section {
    margin-top: 20px;
}

/* 保留原有的 panel 样式供其他地方使用 */
.panel {
    border: none;
    border-radius: 16px;
    background: #504c89;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0px 10px 30px 0px rgba(82, 63, 105, 0.1);
}

.panel + .panel {
    margin-top: 16px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
    padding: 16px;
    box-shadow: none;
}

.panel-header .icon {
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.panel-title {
    margin: 0;
    color: white;
    font-size: 1.2rem;
}

.panel-body {
    color: #1f2937;
    padding: 0 16px 16px 16px;
}

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

.item-message {
    text-align: center;
    margin-top: 12px;
    color: grey;
    font-size: 14px;
    width: 100%;
    padding: 20px;
}


/* SKU LIST */
.sku-list {
    display: flex;
    gap: .5rem;
    overflow-x: visible;
    overflow-y: visible;
    flex-wrap: wrap;
    margin-top: 2px;
}

.sku-list::-webkit-scrollbar {
    height: 6px;
}

.sku-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .15);
    border-radius: 16px;
}

.sku {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: .2rem .6rem;
    border-radius: 16px;
    background: rgba(255, 248, 248, 0.63);
    color: #929292;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    transform-origin: center;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    font-size: 14px;
}

/* 价格加价徽标（悬浮在 SKU 右上角） */
.sku .badge-money,
.sku .badge-moeny {
    position: absolute;
    top: -15px;
    right: -12px;
    z-index: 1;
    padding: 1px 4px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.1;
    color: #fff;
    background: linear-gradient(90deg, #ffb84d, #ff6b88);
    border: 2px solid #ffffff;
    box-shadow: 0 8px 18px rgba(255, 107, 136, .35);
    pointer-events: none; /* 不干扰点击 SKU */
}

/* 在选中/主色 SKU 上同样清晰可见 */
.sku.is-primary .badge-money,
.sku.is-primary .badge-moeny,
.pay-list .pay.is-primary .badge-money,
.pay-list .pay.active .badge-money,
.pay-list .pay.selected .badge-money {
    border-color: rgba(255, 255, 255, 0.95);
}

@media (hover: hover) and (pointer: fine) {
    .sku:hover .badge-money,
    .sku:hover .badge-moeny,
    .optional-card:hover {
        transform: translateY(-1px) scale(1.05);
        transition: transform .12s ease;
    }
}

@media (max-width: 575.98px) {
    .sku .badge-money,
    .sku .badge-moeny {
        transform: scale(.94);
        transform-origin: top right;
    }
}

.sku.is-primary {
    color: #fff;
    background: linear-gradient(90deg, #ffb1b1, #ab57ff);
    border-color: transparent;
}

.vstack label {
    color: grey;
    font-size: 14px;
}

.vstack .form-control {
    font-size: 14px;
    background: rgba(255, 255, 255, 0.49);
    border: var(--bs-border-width) solid #ababab47;
}

.captcha-input {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-right: none;
}

.captcha-img {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-left: none;
    background: rgba(255, 255, 255, 0.49);
    padding: 0;
    height: 100%;
    cursor: pointer;
    margin-left: 2px;
}

/* 容器（外层白底圆角、淡粉描边与光晕） */
.input-group.qty-group {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 8px;
    border-radius: 0.375rem;
    width: 140px; /* 可按需要调整 */
    background: linear-gradient(180deg, #ffffff, #fff4f8);
    border: 2px solid #ffd6e5;
    box-shadow: 0 14px 24px rgba(255, 105, 135, .18),
    0 0 0 6px rgba(255, 214, 229, .35) inset;
}

/* 左右按钮（粉色圆角方块） */
.input-group.qty-group > button {
    width: 32px;
    height: 24px;
    border: 0;
    border-radius: 0.375rem;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(180deg, #ff74a9, #ff5c8e);
    box-shadow: 0 8px 18px rgba(255, 92, 142, .35);
    transition: transform .12s ease, filter .12s ease;
}

.input-group.qty-group > button:hover {
    filter: brightness(1.06);
}

.input-group.qty-group > button:active {
    transform: scale(.98);
}

/* 中间数字输入（透明背景、无边框、大号数字） */
.input-group.qty-group > input[type="number"] {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    text-align: center;
    color: #ff5c8e;
    font-size: 14px;
    font-weight: 700;
    padding: 0;
}

/* 去掉数字输入的上下小箭头 */
.input-group.qty-group > input[type="number"]::-webkit-outer-spin-button,
.input-group.qty-group > input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-group.qty-group > input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* 结账分区（高阶分隔卡片） */
.cash-pay {
    position: relative;
    border-radius: 16px;
    padding: 12px;
    background: #ffffff70;
    border: none;
    box-shadow: 0 10px 28px rgba(149, 157, 165, 0.25),
    0 0 0 6px rgba(122, 140, 255, .06) inset;
}

.cash-pay .form-label {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin: 4px 0 8px 4px;
    font-weight: 800;
    font-size: 1rem;
    color: #9d93f7;
}

.cash-pay .form-label i {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
    box-shadow: 0 6px 14px rgba(122, 140, 255, .35);
}

.cash-pay .pay-list {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px dashed #eceff3;
}

/* 强化在结账区域内的支付按钮视觉分组 */
.cash-pay .pay-list .pay {
    background: rgba(255, 248, 248, 0.3);
    border: none;
    cursor: pointer;
}

.cash-pay .pay-list .pay.is-primary,
.cash-pay .pay-list .pay.active,
.cash-pay .pay-list .pay.selected {
    box-shadow: 0 10px 22px rgba(122, 140, 255, .28);
}

@media (max-width: 575.98px) {
    .cash-pay {
        padding: 10px;
        border-radius: 14px;
    }

    .cash-pay .form-label {
        margin-bottom: 6px;
    }
}

.pay-list .pay {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: .4rem .75rem;
    border-radius: 12px;
    background: rgba(255, 248, 248, 0.15);
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    text-decoration: none;
    user-select: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, filter .12s ease;
}

.pay-list .pay img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.pay-list .pay span {
    font-size: 14px;
    font-weight: 700;
    color: #a3a3a3;
}

/* 选中态，可通过添加 .active / .selected / .is-primary 类控制 */
.pay-list .pay.is-primary,
.pay-list .pay.active,
.pay-list .pay.selected {
    color: #fff;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(122, 140, 255, .25);
}

.pay-list .pay.is-primary span,
.pay-list .pay.active span,
.pay-list .pay.selected span {
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .pay-list .pay:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, .12);
        filter: brightness(1.02);
    }
}

/* 商品详情块微调（置于左侧商品图下） */
.item-detail {
    margin-top: 12px;
}

.item-detail .panel-header .icon {
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
    color: #fff;
}

.item-detail .panel-body img {
    max-width: 100%;
}

.item-detail .panel-body p {
    margin-bottom: 0;
    line-height: 1.7;
}

@media (max-width: 575.98px) {
    .item-detail {
        margin-top: 10px;
    }
}

/* 移动端：标题不强制占两行 */
@media (max-width: 575.98px) {
    .goods-title {
        -webkit-line-clamp: 1;
        line-clamp: 1;
        min-height: 1.35em;
    }

    .chip-list {
        flex-wrap: wrap;
    }
}


.wholesale-table {
    width: 140px;
    background: transparent;
}

.wholesale-table > * > * > * {
    background: transparent !important;
}

.wholesale-table thead th {
    color: #ff70a6 !important;
    font-size: 14px;
}

.wholesale-table tbody td {
    color: #ff70a6 !important;
    font-size: 14px;
}

/* 用户头像样式 */
#user-avatar {
    border: 2px solid #e9ecef;
    transition: border-color 0.2s ease;
}

#user-avatar:hover {
    border-color: #139655;
}

/* 用户信息按钮样式 */
#userDropdown {
    padding: 4px 8px;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
}

#userDropdown:hover {
    background-color: rgba(19, 150, 85, 0.1);
    border-radius: 8px;
}

/* 下拉菜单样式 */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 4px 0;
    backdrop-filter: saturate(180%) blur(20px);
    background: rgba(255, 255, 255, 0.7);
}

.dropdown-item {
    padding: 6px 16px;
    transition: background-color 0.2s ease;
    font-size: 14px;
    line-height: 1.3;
}

.dropdown-item:hover {
    background-color: rgba(19, 150, 85, 0.1);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

/* 用户名和余额样式 */
#username {
    color: #212529;
    font-weight: 600;
}

#user-balance {
    color: #6c757d;
    font-weight: 500;
}

.optional-card {
    display: flex;
    align-items: center;
    position: relative;
    padding: .2rem .6rem;
    border-radius: 16px;
    background: rgba(255, 248, 248, 0.63);
    color: #929292;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
    transform-origin: center;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    font-size: 14px;
}

.optional-card.is-primary {
    color: #fff;
    background: linear-gradient(90deg, #ffb1b1, #ab57ff);
    border-color: transparent;
}

.bootstrap-table.bootstrap5 .table-switch-state button.active, .table-switch-state button:focus {
    background-color: #ffa3ad82 !important;
}

.bootstrap-table.bootstrap5 .table-switch-state button:hover {
    background-color: rgba(255, 163, 173, 0.29) !important;
}

.table {
    --bs-table-bg: rgba(255, 255, 255, 0) !important;
    --bs-table-border-color: transparent;
}

.btn-group-sm > .btn, .btn-sm {
    font-size: 1rem;
}

/* 订单查询页面样式 */
.order-query-form {

}

.order-results, .no-results, .loading-state {
    margin-top: 12px;
}

.order-query-form .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.order-query-form .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    height: 48px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-query-form .form-control:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--acg-primary);
    box-shadow: 0 0 0 4px rgba(122, 140, 255, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.order-query-form .btn-primary {
    background: linear-gradient(135deg, var(--acg-primary), var(--acg-secondary));
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    height: 48px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(122, 140, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.order-query-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.order-query-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(122, 140, 255, 0.35);
}

.order-query-form .btn-primary:hover::before {
    left: 100%;
}

.order-query-form .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(122, 140, 255, 0.3);
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .order-query-form .btn-primary {
        width: 120px;
    }
}

/* 订单项样式 - 重新设计 */
.order-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.order-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--acg-primary), var(--acg-secondary));
}

.order-item:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 订单头部 */
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.order-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.order-status {
    flex-shrink: 0;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-badge.status-pending {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border: none;
}

.status-badge.status-paid {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
}

.status-badge.status-completed {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
}

.status-badge.status-cancelled {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
}

.status-badge.status-shipped {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    border: none;
}

.status-badge.status-waiting-shipment {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
}

.shipment-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 发货状态徽章样式 */
.shipment-status {

}

.shipment-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.shipment-badge.shipment-pending {
    background: rgba(251, 191, 36, 0.2);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.shipment-badge.shipment-paid {
    background: rgba(34, 197, 94, 0.2);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.shipment-badge.shipment-shipped {
    background: rgba(139, 92, 246, 0.2);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.shipment-badge.shipment-waiting {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.order-basic {
    flex: 1;
}

.order-no {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.order-time,
.payment-time,
.payment-dst {
    font-size: 14px;
    color: #374151;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.order-time:last-child,
.payment-time:last-child,
.payment-dst:last-child {
    margin-bottom: 0;
}

.order-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
    gap: 12px;
}

.order-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.amount-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.amount-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--acg-danger);
    line-height: 1;
}

/* 商品信息 */
.goods-section {
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.goods-thumb {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
}

.goods-image {
    width: 72px;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.goods-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.goods-name {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.goods-meta {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.goods-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--acg-danger);
}

.payment-dst {
    display: flex;
    align-items: center;
}

.payment-method {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    /*background: #bdbdbd3b;*/

    /*box-shadow: rgba(14, 63, 126, 0.04) 0px 0px 0px 1px, rgba(42, 51, 69, 0.04) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.04) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.04) 0px 6px 6px -3px, rgba(14, 63, 126, 0.04) 0px 12px 12px -6px, rgba(14, 63, 126, 0.04) 0px 24px 24px -12px;*/
    /*padding: 3px 6px;*/
    cursor: pointer;
    box-shadow: inset rgb(255 197 249 / 24%) -20px 0px 2px 2px;
    border-radius: 4px;

}

.payment-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 4px;
}

.payment-name {
    font-size: 1rem;
    color: #21c44d;
}

/* 响应式设计 */
@media (max-width: 767.98px) {
    .order-header {
        flex-direction: column;
        gap: 12px;
    }

    .order-meta {
        margin-left: 0;
    }

    .order-content {
        flex-direction: column;
        gap: 16px;
    }

    .goods-info {
        flex-direction: column;
        gap: 12px;
    }

    .goods-thumb {
        align-self: center;
    }

    .payment-info {
        text-align: center;
        min-width: auto;
    }
}

/* 加载状态样式 */
.loading-state .icon-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 无结果状态样式 */
.no-results .fa-search {
    opacity: 0.6;
}

/* 验证码输入组样式调整 */
.order-query-form .captcha-input {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-right: none;
}

.order-query-form .captcha-img {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-left: none;
    background: rgba(255, 255, 255, 0.8);
    padding: 0;
    height: 100%;
    cursor: pointer;
    margin-left: 2px;
    border-radius: 0 8px 8px 0;
}

/* 虚拟卡密样式 - 重新设计 */
.card-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.card-header {
    margin-bottom: 16px;
}

.card-title {
    margin: 0;
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.password-input-group {
    margin-bottom: 16px;
}

.password-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.card-password-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e5e7eb;
    border-radius: 8px 0 0 8px;
    padding: 10px 12px;
    height: 42px;
    transition: all 0.2s ease;
}

.card-password-input:focus {
    border-color: var(--acg-primary);
    box-shadow: 0 0 0 3px rgba(122, 140, 255, 0.1);
}

.view-card-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    background: linear-gradient(135deg, var(--acg-primary), var(--acg-secondary));
    color: white;
    border: 2px solid var(--acg-primary);
    border-radius: 0 8px 8px 0;
    padding: 10px 16px;
    height: 42px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.view-card-btn:hover {
    background: linear-gradient(135deg, var(--acg-secondary), var(--acg-primary));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 140, 255, 0.3);
}

.card-content,
.card-content-no-password {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #f3f4f6;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.card-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--acg-primary);
    box-shadow: 0 2px 8px rgba(122, 140, 255, 0.1);
}

.card-info {
    flex: 1;
}

.card-name {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    font-size: 14px;
}

.card-value {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    color: #495057;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
    word-break: break-all;
    user-select: all;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 60px;
    max-height: 200px;
    overflow-y: auto;
}

.card-value:hover {
    background: #e9ecef;
    border-color: var(--acg-primary);
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.copy-card-btn {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    transition: all 0.2s ease;
}

.copy-card-btn:hover {
    background: var(--acg-primary);
    color: white;
    border-color: var(--acg-primary);
}

.card-loading {
    text-align: center;
    padding: 20px;
    color: #6b7280;
}

.card-loading .icon-spin {
    color: var(--acg-primary);
    font-size: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .card-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .view-card-btn {
        font-size: 13px;
        padding: 10px 12px;
    }
}

.card-display {
    white-space: pre-line;
}

/* 新的卡密显示样式 */
.card-display-content {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.card-text {
    font-family: 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1f2937;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
    word-break: break-all;
    user-select: all;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
    min-height: 80px;
    max-height: 300px;
    overflow-y: auto;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.card-text:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.copy-all-btn {
    background: linear-gradient(135deg, var(--acg-primary), var(--acg-secondary));
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(122, 140, 255, 0.25);
}

.copy-all-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(122, 140, 255, 0.35);
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .order-item {
        padding: 20px;
    }

    .goods-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

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

    .order-header {
        flex-direction: column;
        gap: 16px;
    }

    .order-right {
        align-self: flex-start;
    }

    .card-display-content {
        padding: 16px;
    }

    .card-text {
        font-size: 13px;
        padding: 12px;
    }
}

/* 加载更多状态样式 */
.load-more-loading,
.load-more-end {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    margin-top: 16px;
}

.load-more-loading .icon-spin {
    color: var(--acg-primary);
    font-size: 1.2rem;
}

.load-more-loading span {
    color: #374151;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.load-more-end {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.load-more-end span {
    color: #6b7280;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.load-more-end .fa-check-circle {
    color: #10b981;
}

/* 滚动条样式优化 */
.order-list::-webkit-scrollbar {
    width: 6px;
}

.order-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.order-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.order-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.item-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.acg-cover {
    position: relative;
    overflow: hidden;
}

.flex-fill {
    flex: 1 1 auto;
}

.br-12 {
    border-radius: 12px;
}

footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 0;
    color: #858585;
}

/* 五列商品布局样式 */
.item-list {
    display: flex;
    flex-wrap: wrap;
    margin: -8px;
}

.item-card-container {
    width: 20%;
    padding: 8px;
    box-sizing: border-box;
}

/* 确保在不同屏幕尺寸下也是5列布局 */
@media (min-width: 1200px) {
    .item-card-container {
        width: 20%;
    }
}

/* 针对较大屏幕的优化 */
@media (min-width: 1400px) {
    .item-card-container {
        width: 20%;
    }
}

/* 商品卡片样式调整 */
.acg-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.acg-card .acg-thumb {
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.acg-card .acg-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.acg-card:hover .acg-thumb img {
    transform: scale(1.05);
}

.acg-card .goods-title {
    font-size: 14px;
    margin: 12px 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    color: white;
}

.acg-card .price {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.acg-card .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: auto;
}

.acg-card .stat-row .download-count {
    font-size: 12px;
    color: #6b7280;
}


/* Fabu.html 样式 - 卡片式布局 */
.cs-isotop {
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.cs-isotop.cs-has_gutter_30 {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: -20px;
    gap: 16px;
}

.cs-isotop.cs-has_gutter_30 .cs-isotop_item {
    margin-bottom: 20px;
    box-sizing: border-box;
}

.cs-isotop_item.item-card {
    cursor: pointer;
}

.cs-isotop_col_5 .cs-grid_sizer,
.cs-isotop_col_5 .cs-isotop_item {
    width: calc(20% - 12.8px); /* 20% - (16px gap × 4 gaps / 5 items) */
    box-sizing: border-box;
}

.cs-zoom_effect {
    position: relative;
    overflow: hidden;
}

.cs-zoom_effect .cs-zoom_item {
    transition: all 0.7s ease;
}

.cs-zoom_effect:hover .cs-zoom_item {
    transform: scale(1.05);
}

.cs-card.cs-style4 {
    position: relative;
    padding: 10px;
    border-radius: 15px;
    background: linear-gradient(116.85deg, rgba(252, 70, 107, 0.2) 0%, rgba(63, 94, 251, 0.2) 100%);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cs-card.cs-style4:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.cs-card.cs-style4 .cs-card_thumb {
    border-radius: 15px 15px 0px 0px;
    overflow: hidden;
    display: block;
    position: relative;
    padding-top: 80%; /* 1.25:1 比例 (1/1.25 = 0.8) */
}

.cs-card.cs-style4 .cs-card_thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: inherit;
}

.cs-card.cs-style4 .cs-avatar {
    font-size: 14px;
    line-height: 1.5em;
    display: inline-flex;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 4px 8px 4px 4px;
    border-radius: 1.6em;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: fit-content;
    max-width: 100%;
}

.cs-card.cs-style4 .cs-avatar:hover {
    color: #3772ff;
}

.cs-card.cs-style4 .cs-avatar img {
    height: 24px;
    width: 24px;
    border-radius: 6px;
    object-fit: contain;
}

.cs-card.cs-style4 .cs-avatar span {
    margin-left: 5px;
}

.cs-card.cs-style4 .cs-card_info {
    padding: 0 10px;
    margin-top: -16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cs-card.cs-style4 .cs-card_title {
    font-size: 16px;
    margin-bottom: 10px;
    margin-top: 10px;
    /* min-height: 24px; */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 24px;
    color: white;
    word-break: break-word;
    max-height: 24px; /* 确保不超过1行的高度 */
}

.cs-card.cs-style4 .cs-card_title a {
    color: white;
    text-decoration: none;
}

.cs-card.cs-style4 .cs-card_price {
    font-size: 14px;
    color: white;
    line-height: 1.6em;
    margin-bottom: 10px;
}

.cs-card.cs-style4 .cs-card_price .publish-date {
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 12px;
    font-weight: normal;
}

.cs-card.cs-style4 .cs-card_btn_1 {
    font-size: 14px;
    line-height: 1.5em;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.cs-card.cs-style4 .cs-card_btn_1 i {
    margin-right: 5px;
}

.cs-card.cs-style4 .cs-card_btn_1:hover {
    color: #3772ff;
}

.cs-card.cs-style4 hr {
    background: linear-gradient(116.85deg, #FC466B 0%, #3F5EFB 100%);
    opacity: 0.15;
    margin: 0;
    border: none;
    height: 1px;
}

.cs-card.cs-style4 .cs-card_btn_2 {
    font-weight: 500;
    font-size: 12px;
    color: #fff;
    background-color: #3772ff;
    border-radius: 1.6em;
    line-height: 1.5em;
    padding: 4px 16px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cs-card.cs-style4 .cs-card_btn_2 span {
    position: relative;
    z-index: 1;
}

.cs-card.cs-style4 .cs-card_btn_2:after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: inherit;
    background: linear-gradient(116.85deg, #FC466B 0%, #3F5EFB 100%);
    transition: all 0.4s ease;
    opacity: 0;
}

.cs-card.cs-style4 .cs-card_btn_2:hover {
    color: #fff;
}

.cs-card.cs-style4 .cs-card_btn_2:hover::after {
    opacity: 1;
}

.cs-card.cs-style4 .cs-card_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 0 5px;
    margin: -3px;
    margin-top: auto;
}

.cs-card.cs-style4 .cs-card_footer > * {
    margin: 3px;
    color: white;
}


.cs-primary_color {
    color: white;
}

.cs-white_bg {
    background-color: #fff;
}

.cs-box_shadow {
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.05);
}

/* 响应式布局 */
@media (max-width: 1200px) {
    .cs-isotop_col_5 .cs-grid_sizer,
    .cs-isotop_col_5 .cs-isotop_item {
        width: calc(25% - 12px); /* 4列 */
    }
}

@media (max-width: 991px) {
    .cs-isotop_col_5 .cs-grid_sizer,
    .cs-isotop_col_5 .cs-isotop_item {
        width: calc(33.333% - 10.67px); /* 3列 */
    }
}

@media (max-width: 768px) {
    .cs-isotop_col_5 .cs-grid_sizer,
    .cs-isotop_col_5 .cs-isotop_item {
        width: calc(50% - 8px); /* 2列 */
    }
}

@media (max-width: 480px) {
    .cs-isotop_col_5 .cs-grid_sizer,
    .cs-isotop_col_5 .cs-isotop_item {
        width: 100%; /* 1列，无需减去gap */
    }
    
    /* 移动端分页样式调整 */
    .modern-pagination {
        gap: 4px;
        padding: 6px;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .pagination-ellipsis {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .pagination-icon {
        font-size: 14px;
    }
}
