/* 亮色扁平化、高圆润、珊瑚橙主题 */

:root {
    --theme-bg: #F4F7F6;
    --theme-card: #FFFFFF;
    --theme-primary: #FF6B4A;       /* 珊瑚橙 */
    --theme-primary-hover: #FF522D; /* 深一点的珊瑚橙 */
    --theme-primary-light: #FFF0ED; /* 极浅的珊瑚橙，用于底色 */
    --theme-text-main: #2D3436;
    --theme-text-muted: #636E72;
    --theme-border: #EDF1F2;
    
    --radius-panel: 24px;
    --radius-card: 20px;
    --radius-pill: 999px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 16px 50px rgba(255, 107, 74, 0.15);
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

html {
    font-size: 14px;
    background-color: var(--theme-bg);
}

body {
    background-color: var(--theme-bg) !important;
    background-image: none !important; /* 强制覆盖掉行内背景图 */
    color: var(--theme-text-main);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--theme-primary);
    transition: var(--transition-smooth);
}

/* 导航栏 */
.navbar-acg {
    background: var(--theme-card);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom: none;
    z-index: 999;
}

.navbar-acg .navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
}

.navbar-acg .navbar-brand span {
    color: var(--theme-text-main) !important;
}

.navbar-acg .nav-link {
    color: var(--theme-text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
}

.navbar-acg .nav-link:hover {
    color: var(--theme-primary);
    background: var(--theme-primary-light);
}

.navbar-acg .nav-link.active {
    color: var(--theme-primary);
    background: var(--theme-primary-light);
    font-weight: 700;
}

/* 搜索框扁平化 */
.search-input .input-group-text {
    border: none;
    background: #F1F3F5;
    border-radius: var(--radius-pill) 0 0 var(--radius-pill);
    padding-left: 20px;
    color: var(--theme-text-muted);
}

.search-input .form-control {
    border: none;
    background: #F1F3F5;
    border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
    box-shadow: none !important;
    padding-left: 10px;
}

.search-input .form-control:focus {
    background: #E9ECEF;
}

/* 通用面板 (Panel) */
.panel {
    background: var(--theme-card);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-soft);
    border: none;
    padding: 8px;
    transition: var(--transition-smooth);
    margin-bottom: 24px;
}

.panel:hover {
    box-shadow: 0 12px 48px rgba(0,0,0,0.06);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 10px 20px;
    border: none;
    box-shadow: none;
}

.panel-header .icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-primary-light);
    color: var(--theme-primary);
    border-radius: 50%;
    font-size: 14px;
}

.panel-title {
    margin: 0;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--theme-text-main);
}

.panel-body {
    padding: 10px 20px 24px 20px;
    color: var(--theme-text-main);
    line-height: 1.6;
}

/* 分类标签 (Chip) */
.chip-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    background: #F1F3F5;
    color: var(--theme-text-muted);
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.chip .chip-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.chip:hover {
    background: #E2E6EA;
    transform: translateY(-2px);
}

.chip.is-primary {
    background: var(--theme-primary);
    color: #FFF;
    box-shadow: 0 6px 16px rgba(255, 107, 74, 0.25);
}

.chip.is-primary:hover {
    background: var(--theme-primary-hover);
}

/* 商品卡片 */
.acg-card {
    background: var(--theme-card);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--theme-border);
    transition: var(--transition-smooth);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.acg-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--theme-primary-light);
}

.acg-thumb {
    height: 180px;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    overflow: hidden;
}

.item-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.acg-card:hover .item-cover {
    transform: scale(1.05);
}

.goods-title {
    font-weight: 800;
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
    color: var(--theme-text-main);
}

.price {
    color: var(--theme-primary);
    font-weight: 900;
    font-size: 22px;
}

/* SKU & 选项 */
.sku-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sku, .optional-card {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    background: #F1F3F5;
    color: var(--theme-text-muted);
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.sku:hover, .optional-card:hover {
    background: #E2E6EA;
    transform: scale(1.02);
}

.sku.is-primary, .optional-card.is-primary {
    background: var(--theme-primary-light);
    color: var(--theme-primary);
    border: 2px solid var(--theme-primary);
}

/* 角标优化 */
.sku .badge-money {
    position: absolute;
    top: -10px;
    right: -5px;
    background: var(--theme-primary);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    box-shadow: 0 4px 8px rgba(255, 107, 74, 0.3);
}

/* 表单与输入框 */
.form-label {
    font-weight: 700;
    color: var(--theme-text-main);
    font-size: 14px;
}

.form-control {
    background: #F1F3F5;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--theme-text-main);
    transition: var(--transition-smooth);
    box-shadow: none !important;
}

.form-control:focus {
    background: #FFF;
    border-color: var(--theme-primary);
}

/* 数量加减 */
.input-group.qty-group {
    background: #F1F3F5;
    border-radius: var(--radius-pill);
    padding: 4px;
    width: 140px;
    display: flex;
    border: none;
    box-shadow: none;
}

.input-group.qty-group > button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFF;
    border: none;
    color: var(--theme-text-main);
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.input-group.qty-group > button:hover {
    color: var(--theme-primary);
    transform: scale(1.1);
}

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

.input-group.qty-group > input {
    background: transparent;
    border: none;
    color: var(--theme-text-main);
    font-weight: 800;
    font-size: 16px;
}

/* 验证码样式修复 */
.captcha-input {
    border-radius: 16px 0 0 16px !important;
}
.captcha-img {
    border-radius: 0 16px 16px 0 !important;
    background: #FFF;
    border: 2px solid transparent;
}

/* 支付列表 */
.cash-pay {
    background: #F8F9FA;
    border-radius: var(--radius-panel);
    padding: 16px;
    border: 1px solid var(--theme-border);
    margin-top: 10px;
}

.pay-list .pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: #FFF;
    border: 2px solid var(--theme-border);
    color: var(--theme-text-muted);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.pay-list .pay:hover {
    border-color: #D1D5DB;
    transform: translateY(-2px);
}

.pay-list .pay.is-primary,
.pay-list .pay.active,
.pay-list .pay.selected {
    background: var(--theme-primary-light);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    box-shadow: 0 6px 16px rgba(255, 107, 74, 0.15);
}

/* 徽章 Badge */
.badge-soft {
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 12px;
    border: none;
}
.badge-soft-success { background: #E8F5E9; color: #2E7D32; }
.badge-soft-primary { background: var(--theme-primary-light); color: var(--theme-primary); }
.badge-soft-info { background: #E3F2FD; color: #1565C0; }

/* 按钮通用 */
.btn-primary {
    background: var(--theme-primary);
    color: #FFF;
    border: none;
    border-radius: var(--radius-pill);
    padding: 10px 24px;
    font-weight: 700;
    transition: var(--transition-smooth);
}
.btn-primary:hover {
    background: var(--theme-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.3);
}
.btn-primary:active {
    transform: scale(0.96);
}

/* 订单查询特殊样式 */
.order-item {
    background: #FFF;
    border-radius: var(--radius-panel);
    padding: 24px;
    border: 1px solid var(--theme-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition-smooth);
    margin-bottom: 20px;
}

.order-item:hover {
    border-color: var(--theme-primary-light);
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.status-badge {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: 12px;
}
.status-completed { background: #E8F5E9; color: #2E7D32; }
.status-pending { background: #FFF3E0; color: #E65100; }

.goods-section {
    background: #F8F9FA;
    border-radius: 16px;
    padding: 16px;
    border: none;
}

.card-value, .card-text {
    background: #F1F3F5;
    border: none;
    border-radius: 12px;
    padding: 16px;
    color: var(--theme-text-main);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.copy-card-btn, .view-card-btn, .copy-all-btn {
    border-radius: var(--radius-pill);
    font-weight: 700;
}

/* 下拉菜单扁平化 */
.dropdown-menu {
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 16px;
    padding: 8px;
}
.dropdown-item {
    border-radius: 8px;
    font-weight: 600;
    color: var(--theme-text-main);
}
.dropdown-item:hover {
    background: #F1F3F5;
    color: var(--theme-primary);
}
.dropdown-item.text-danger:hover {
    background: #FFEBEE;
    color: #D32F2F !important;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .order-query-form .d-flex {
        flex-direction: column;
    }
    .order-query-form input {
        width: 100% !important;
    }
    .chip-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px;
    }
    .chip-list::-webkit-scrollbar {
        display: none;
    }
}