/* 优选商城 - 清新蓝绿版 */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }

:root {
    --main: #00b894;
    --main-dark: #00a381;
    --main-light: #e8f8f5;
    --text: #2d3436;
    --text2: #636e72;
    --text3: #b2bec3;
    --bg: #f5f6fa;
    --white: #fff;
    --border: #e9ecef;
    --red: #e74c3c;
    --radius: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 65px;
}

.app { max-width: 100%; margin: 0 auto; }

/* ===== 顶部 ===== */
.header {
    background: linear-gradient(135deg, var(--main), var(--main-dark));
    color: #fff;
    padding: 12px 15px 14px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,184,148,0.2);
}
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.logo { font-size: 1.15rem; font-weight: 700; }
.cart-btn {
    position: relative;
    padding: 7px 10px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
}
.cart-icon { font-size: 1.1rem; }
.cart-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: #fff;
    color: var(--main);
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 搜索 */
.search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    padding: 7px 14px;
}
.search-ico { font-size: 0.85rem; margin-right: 7px; opacity: 0.5; }
.search-wrap input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.88rem;
    background: transparent;
}
.search-clear {
    background: #eee;
    width: 18px; height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text2);
}

/* ===== 分类 ===== */
.cat-nav {
    display: flex;
    gap: 8px;
    padding: 10px 15px;
    overflow-x: auto;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    scrollbar-width: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-item {
    padding: 7px 15px;
    background: var(--bg);
    border-radius: 16px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
    color: var(--text2);
    transition: all 0.2s;
    flex-shrink: 0;
}
.cat-item:active { transform: scale(0.95); }
.cat-item.active {
    background: var(--main);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,184,148,0.3);
}

/* ===== 品牌筛选 ===== */
.brand-bar {
    background: var(--white);
    padding: 10px 15px 12px;
    border-bottom: 1px solid var(--border);
}
.brand-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.brand-scroll {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}
.brand-scroll::-webkit-scrollbar { display: none; }
.brand-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--bg);
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.78rem;
    color: var(--text2);
    border: 1.5px solid transparent;
    flex-shrink: 0;
    transition: all 0.2s;
}
.brand-item:active { transform: scale(0.95); }
.brand-item.active {
    background: var(--main-light);
    color: var(--main-dark);
    border-color: var(--main);
    font-weight: 600;
}
.brand-cnt {
    background: rgba(0,0,0,0.08);
    padding: 1px 5px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
}
.brand-item.active .brand-cnt {
    background: var(--main);
    color: #fff;
}

/* 搜索提示 */
.search-tip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: var(--main-light);
    font-size: 0.78rem;
    color: var(--main-dark);
}
.search-tip button {
    background: none;
    border: none;
    color: var(--main);
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: underline;
}

/* ===== 商品列表 ===== */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
}
.goods-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s;
}
.goods-card:active { transform: scale(0.98); }
.goods-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 75%;
    background: var(--bg);
}
.goods-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.goods-tag {
    position: absolute;
    top: 7px; left: 7px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.62rem;
    padding: 2px 7px;
    border-radius: 10px;
    backdrop-filter: blur(3px);
}
.goods-info { padding: 9px 10px; }
.goods-name {
    font-size: 0.83rem;
    font-weight: 600;
    margin-bottom: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.goods-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.goods-price { display: flex; align-items: baseline; gap: 5px; }
.goods-price b {
    color: var(--main);
    font-size: 0.95rem;
    font-weight: 700;
}
.goods-price s {
    color: var(--text3);
    font-size: 0.68rem;
}
.add-btn {
    width: 26px; height: 26px;
    background: var(--main);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 5px rgba(0,184,148,0.3);
}
.add-btn:active { transform: scale(0.9); background: var(--main-dark); }

/* 空状态 */
.empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 50px 20px;
}
.empty-ico { font-size: 3rem; margin-bottom: 12px; }
.empty p { color: var(--text3); font-size: 0.9rem; margin-bottom: 15px; }
.empty button {
    padding: 9px 25px;
    background: var(--main);
    color: #fff;
    border: none;
    border-radius: 18px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* ===== 底部结算栏 ===== */
.bottom-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
    z-index: 90;
    padding-bottom: calc(9px + env(safe-area-inset-bottom));
}
.bottom-cart {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.bottom-cart-ico {
    position: relative;
    font-size: 1.4rem;
}
.bottom-cart-num {
    position: absolute;
    top: -4px; right: -7px;
    background: var(--red);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    min-width: 15px; height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bottom-total { font-size: 0.85rem; color: var(--text2); }
.bottom-total b { color: var(--main); font-size: 1.05rem; }
.checkout-btn {
    padding: 11px 28px;
    background: var(--main);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,184,148,0.3);
}
.checkout-btn:disabled {
    background: var(--text3);
    cursor: not-allowed;
    box-shadow: none;
}
.checkout-btn:not(:disabled):active { transform: scale(0.96); }

/* ===== 购物车抽屉 ===== */
.drawer {
    position: fixed;
    top: 0; right: -100%;
    width: 82%;
    max-width: 380px;
    height: 100%;
    background: var(--white);
    z-index: 200;
    transition: right 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
}
.drawer.show { right: 0; }
.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
}
.drawer-head h3 { font-size: 1.05rem; }
.close-ico {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text2);
    padding: 3px;
}
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 15px;
}
.cart-empty {
    text-align: center;
    color: var(--text3);
    padding: 40px 20px;
    font-size: 0.9rem;
}
.cart-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.cart-row:last-child { border-bottom: none; }
.cart-img {
    width: 48px; height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg);
}
.cart-info { flex: 1; }
.cart-name {
    font-size: 0.83rem;
    font-weight: 500;
    margin-bottom: 3px;
}
.cart-price { color: var(--main); font-weight: 600; font-size: 0.85rem; }
.cart-qty {
    display: flex;
    align-items: center;
    gap: 9px;
}
.cart-qty button {
    width: 22px; height: 22px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
}
.cart-qty span { font-size: 0.85rem; font-weight: 600; min-width: 18px; text-align: center; }
.drawer-foot {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
}
.drawer-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.drawer-total b { color: var(--main); font-size: 1.2rem; }
.drawer-checkout {
    width: 100%;
    padding: 13px;
    background: var(--main);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}
.drawer-checkout:active { background: var(--main-dark); }

/* 遮罩 */
.mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.mask.show { opacity: 1; visibility: visible; }

/* ===== 支付弹窗 ===== */
.pay-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.pay-modal.show {
    display: flex !important;
}
.pay-box {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.92);
    transition: transform 0.3s;
}
.pay-modal.show .pay-box { transform: scale(1); }
.pay-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.pay-head h3 { font-size: 1.1rem; }
.pay-info {
    padding: 16px 20px;
    background: var(--main-light);
}
.pay-info p { font-size: 0.9rem; margin-bottom: 6px; color: var(--text2); }
.pay-info p:last-child { margin-bottom: 0; }
.pay-amount { color: var(--main); font-size: 1.3rem; }
.pay-qrcodes {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    flex-wrap: wrap;
}
/* 支付方式选择 */
.pay-methods {
    padding: 16px 20px;
}
.pay-method-item {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.pay-method-item:hover {
    border-color: var(--main);
    background: var(--main-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,184,148,0.15);
}
.pay-method-item:active {
    transform: translateY(0);
}
.pay-method-item.wechat:hover {
    border-color: #07c160;
    background: #f0f9f4;
}
.pay-method-item.alipay:hover {
    border-color: #1677ff;
    background: #f0f5ff;
}
.pay-method-icon {
    font-size: 2rem;
    margin-right: 14px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--main-light);
    border-radius: 12px;
}
.pay-method-item.wechat .pay-method-icon {
    background: #e8f8ef;
}
.pay-method-item.alipay .pay-method-icon {
    background: #e8f0fe;
}
.pay-method-info {
    flex: 1;
    text-align: left;
}
.pay-method-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    color: var(--text);
}
.pay-method-info p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text3);
}
.pay-method-arrow {
    font-size: 1.5rem;
    color: var(--text3);
    font-weight: bold;
}
/* 二维码显示区域 */
.pay-qrcode-section {
    padding: 0;
}
.pay-back-btn {
    padding: 12px 20px;
    color: var(--main);
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.pay-back-btn:hover {
    background: var(--main-light);
}
.qr-item {
    text-align: center;
    flex: 1 1 200px;
    max-width: 280px;
    min-width: 140px;
}
.qr-item img {
    width: 100%;
    max-width: 220px;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    background: #fff;
    padding: 8px;
}
.qr-item p {
    font-size: 0.85rem;
    color: var(--text2);
    font-weight: 500;
    margin: 0;
}
.qr-item .qr-desc {
    font-size: 0.75rem;
    color: var(--text3);
    margin-top: 4px;
}
.pay-note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text3);
    padding: 14px 20px;
    border-top: 1px solid var(--border);
}

/* 响应式 */
@media (min-width: 768px) {
    .goods-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; }
    .app { max-width: 780px; }
    /* 支付弹窗 - 平板 */
    .pay-box { max-width: 500px; }
    .pay-head h3 { font-size: 1.2rem; }
    .pay-amount { font-size: 1.4rem; }
    .qr-item { flex: 1 1 220px; max-width: 240px; }
    .qr-item img { max-width: 200px; }
    .qr-item p { font-size: 0.9rem; }
}
@media (min-width: 1024px) {
    .goods-grid { grid-template-columns: repeat(4, 1fr); }
    .app { max-width: 980px; }
    /* 支付弹窗 - 电脑 */
    .pay-box { max-width: 600px; }
    .pay-head { padding: 20px 24px; }
    .pay-head h3 { font-size: 1.3rem; }
    .pay-info { padding: 20px 24px; }
    .pay-info p { font-size: 0.95rem; }
    .pay-amount { font-size: 1.5rem; }
    .pay-qrcodes { padding: 32px; gap: 32px; }
    .qr-item { flex: 1 1 240px; max-width: 260px; }
    .qr-item img { max-width: 240px; border-radius: 16px; padding: 12px; }
    .qr-item p { font-size: 1rem; }
    .qr-item .qr-desc { font-size: 0.8rem; }
    .pay-note { padding: 18px 24px; font-size: 0.9rem; }
}

/* 手机端优化（小屏幕） */
@media (max-width: 480px) {
    .pay-modal { padding: 12px; }
    .pay-box { border-radius: 12px; }
    .pay-head { padding: 12px 16px; }
    .pay-head h3 { font-size: 1rem; }
    .pay-info { padding: 12px 16px; }
    .pay-info p { font-size: 0.82rem; }
    .pay-amount { font-size: 1.15rem; }
    .pay-qrcodes { padding: 16px; gap: 16px; }
    .qr-item { flex: 1 1 140px; min-width: 120px; }
    .qr-item img { max-width: 160px; border-radius: 8px; padding: 6px; }
    .qr-item p { font-size: 0.78rem; }
    .qr-item .qr-desc { font-size: 0.7rem; }
    .pay-note { padding: 12px 16px; font-size: 0.75rem; }
}

/* ===== 后台管理样式 ===== */
.admin-container {
    display: flex;
    min-height: 100vh;
    background: #f5f7fa;
}

/* 侧边栏 */
.admin-sidebar {
    width: 220px;
    background: linear-gradient(180deg, #00b894 0%, #00a381 100%);
    color: #fff;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
}

.admin-logo {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 10px;
}

.admin-menu {
    display: flex;
    flex-direction: column;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.menu-item.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-left-color: #fff;
    font-weight: 600;
}

.menu-item span {
    font-size: 1.1rem;
}

/* 主内容区 */
.admin-main {
    flex: 1;
    margin-left: 220px;
    padding: 24px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.page-header h2 {
    font-size: 1.4rem;
    color: #2d3436;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 按钮 */
.btn {
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: #00b894;
    color: #fff;
}

.btn-primary:hover {
    background: #00a381;
}

.btn-success {
    background: #00cec9;
    color: #fff;
}

.btn-success:hover {
    background: #00b5b0;
}

.btn-info {
    background: #74b9ff;
    color: #fff;
}

.btn-info:hover {
    background: #5aa8ff;
}

.btn-default {
    background: #dfe6e9;
    color: #636e72;
}

.btn-default:hover {
    background: #b2bec3;
}

.btn-danger {
    background: #ff7675;
    color: #fff;
}

.btn-danger:hover {
    background: #ff6363;
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.8rem;
}

/* 表格容器 */
.table-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.data-table thead {
    background: #f8f9fa;
}

.data-table th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    color: #636e72;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f3f5;
    color: #2d3436;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background: #f1f3f5;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 500;
}

.status-badge.on {
    background: #d4edda;
    color: #155724;
}

.status-badge.off {
    background: #f8d7da;
    color: #721c24;
}

/* 品牌标签 */
.brand-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #e8f8f5;
    color: #00b894;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
}

/* 二维码网格 */
.qrcode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.qrcode-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.qrcode-card img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 12px;
}

.qrcode-card h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: #2d3436;
}

.qrcode-card p {
    font-size: 0.82rem;
    color: #636e72;
    margin-bottom: 12px;
}

.qrcode-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* 弹窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalIn 0.25s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f3f5;
}

.modal-header h3 {
    font-size: 1.15rem;
    color: #2d3436;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #b2bec3;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f1f3f5;
    color: #636e72;
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid #f1f3f5;
}

/* 表单 */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: #2d3436;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #2d3436;
    transition: all 0.2s;
    box-sizing: border-box;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0,184,148,0.1);
}

.form-group input[type="file"] {
    padding: 8px;
    background: #f8f9fa;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-row .form-group {
    flex: 1;
}

.form-tip {
    font-size: 0.78rem;
    color: #b2bec3;
    margin-top: 5px;
}

/* 导入信息 */
.import-info {
    background: #e8f8f5;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 16px;
}

.import-info p {
    font-size: 0.88rem;
    font-weight: 600;
    color: #00b894;
    margin-bottom: 8px;
}

.import-info ul {
    margin: 0;
    padding-left: 18px;
}

.import-info li {
    font-size: 0.82rem;
    color: #636e72;
    margin-bottom: 4px;
    line-height: 1.5;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #b2bec3;
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 0.92rem;
}

/* 后台响应式 */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
        padding: 15px 0;
    }

    .admin-logo {
        font-size: 0;
        padding: 0 10px 15px;
    }

    .admin-logo::before {
        content: "⚙️";
        font-size: 1.5rem;
    }

    .menu-item {
        padding: 12px;
        justify-content: center;
        font-size: 0;
    }

    .menu-item span {
        font-size: 1.3rem;
    }

    .admin-main {
        margin-left: 60px;
        padding: 16px;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
    }
}

/* ===== 登录页面 ===== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo {
    font-size: 60px;
    margin-bottom: 15px;
}

.login-header h2 {
    color: #2d3436;
    font-size: 24px;
    margin-bottom: 8px;
}

.login-header p {
    color: #636e72;
    font-size: 14px;
}

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

.login-form label {
    display: block;
    margin-bottom: 8px;
    color: #2d3436;
    font-weight: 500;
    font-size: 14px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.login-form input:focus {
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0,184,148,0.1);
}

.login-error {
    background: #ffeaea;
    color: #e74c3c;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,184,148,0.4);
}

.btn-block:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.login-footer p {
    color: #b2bec3;
    font-size: 12px;
}

/* ===== 后台顶部导航栏 ===== */
.admin-header {
    background: linear-gradient(135deg, #00b894, #00a381);
    color: #fff;
    padding: 0 30px;
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header .admin-logo {
    font-size: 18px;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-user {
    font-size: 14px;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.admin-body {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* 响应式 - 登录页面 */
@media (max-width: 480px) {
    .login-box {
        padding: 30px 20px;
    }

    .login-logo {
        font-size: 50px;
    }

    .login-header h2 {
        font-size: 20px;
    }
}

/* 响应式 - 后台顶部导航栏 */
@media (max-width: 768px) {
    .admin-header {
        padding: 0 15px;
    }

    .admin-header .admin-logo {
        font-size: 15px;
    }

    .admin-user {
        display: none;
    }
}
