/* ==========================================================================
   theme.css —— 设计令牌 + 基础组件
   视觉规范参考：Arco Design / 鲸商城PRO（主色 #165DFF，圆角 8px）
   ========================================================================== */

:root {
    /* 品牌主色（对应 arcoblue） */
    --primary-1: #E8F3FF;
    --primary-2: #BEDAFF;
    --primary-3: #94BFFF;
    --primary-4: #6AA1FF;
    --primary-5: #4080FF;
    --primary-6: #165DFF;
    --primary-7: #0E42D2;
    --primary-8: #072CA6;
    --primary: var(--primary-6);
    --primary-hover: var(--primary-5);
    --primary-active: var(--primary-7);

    /* 功能色 */
    --success-6: #00B42A;
    --success-1: #E8FFEA;
    --warning-6: #FF7D00;
    --warning-1: #FFF7E8;
    --danger-6: #F53F3F;
    --danger-1: #FFECE8;
    --magenta-6: #F5319D;
    --purple-6: #722ED1;
    --cyan-6: #0FC6C2;

    /* 文字 */
    --text-1: #1D2129;
    --text-2: #4E5969;
    --text-3: #86909C;
    --text-4: #C9CDD4;

    /* 边框 / 填充 */
    --border-1: #F2F3F5;
    --border-2: #E5E6EB;
    --border-3: #C9CDD4;
    --fill-1: #F7F8FA;
    --fill-2: #F2F3F5;
    --fill-3: #E5E6EB;
    --white: #FFFFFF;

    /* 圆角 */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-2xl: 16px;
    --radius-round: 999px;
    --radius-circle: 50%;

    /* 阴影 */
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-2: 0 4px 10px rgba(0, 0, 0, .06);
    --shadow-3: 0 6px 20px rgba(0, 0, 0, .08);
    --shadow-4: 0 12px 32px rgba(0, 0, 0, .12);

    /* 尺寸 */
    --header-h: 64px;
    --container: 1200px;

    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5715;
    color: var(--text-1);
    background: var(--fill-1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd {
    margin: 0;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    vertical-align: middle;
    border: 0;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    margin: 0;
}

table {
    border-collapse: collapse;
    width: 100%;
}

[hidden] {
    display: none !important;
}

/* --------------------------------------------------------------------------
   布局
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 16px;
}

.container-wide {
    max-width: 1440px;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

.flex { display: flex; }
.flex-1 { flex: 1; min-width: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-primary { color: var(--primary); }
.text-danger { color: var(--danger-6); }
.text-success { color: var(--success-6); }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-24 { font-size: 24px; }

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.divider {
    height: 1px;
    background: var(--border-2);
    margin: 16px 0;
}

/* --------------------------------------------------------------------------
   图标（内联 SVG，见 app/common.php 的 icon() 函数）
   -------------------------------------------------------------------------- */
.ic {
    display: inline-block;
    vertical-align: -0.14em;
    flex: none;
    overflow: visible;
}

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    padding: 0 16px;
    border: 1px solid transparent;
    /* 鲸商城 / Arco 的按钮是胶囊形（shape-round） */
    border-radius: var(--radius-round);
    background: var(--fill-2);
    color: var(--text-1);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    user-select: none;
}

.btn:hover {
    background: var(--fill-3);
    color: var(--text-1);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #fff;
}

.btn-danger {
    background: var(--danger-6);
    border-color: var(--danger-6);
    color: #fff;
}

.btn-danger:hover {
    background: #cb2634;
    border-color: #cb2634;
    color: #fff;
}

.btn-success {
    background: var(--success-6);
    border-color: var(--success-6);
    color: #fff;
}

.btn-success:hover {
    background: #009a29;
    border-color: #009a29;
    color: #fff;
}

.btn-outline {
    background: transparent;
    border-color: var(--border-3);
    color: var(--text-1);
}

.btn-outline:hover {
    background: var(--fill-2);
    border-color: var(--border-3);
    color: var(--text-1);
}

.btn-outline-primary {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary-1);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-text {
    background: transparent;
    border-color: transparent;
    color: var(--primary);
    padding: 0 8px;
}

.btn-text:hover {
    background: var(--primary-1);
    color: var(--primary);
}

.btn-sm {
    height: 24px;
    padding: 0 12px;
    font-size: 12px;
}

.btn-lg {
    height: 40px;
    padding: 0 22px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
}

.btn[disabled],
.btn.disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
    height: auto;
}

/* --------------------------------------------------------------------------
   表单
   -------------------------------------------------------------------------- */
.form-item {
    margin-bottom: 20px;
}

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

.form-label .required {
    color: var(--danger-6);
    margin-right: 4px;
}

.form-tip {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-3);
}

.form-error {
    margin-top: 6px;
    font-size: 12px;
    color: var(--danger-6);
    display: none;
}

.form-item.has-error .form-error {
    display: block;
}

.form-item.has-error .input,
.form-item.has-error .textarea,
.form-item.has-error .select {
    border-color: var(--danger-6);
}

.input,
.textarea,
.select {
    display: block;
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-1);
    font-size: 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
}

.textarea {
    height: auto;
    min-height: 100px;
    padding: 8px 12px;
    line-height: 1.5715;
    resize: vertical;
}

.select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2386909C'%3E%3Cpath d='M12 16l-6-6h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 18px;
    padding-right: 32px;
}

.input:focus,
.textarea:focus,
.select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-1);
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-4);
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
    background: var(--fill-2);
    color: var(--text-3);
    cursor: not-allowed;
}

.input-lg {
    height: 44px;
    font-size: 15px;
}

.input-group {
    display: flex;
    align-items: stretch;
}

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

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    height: auto;
}

.input-affix {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    background: #fff;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.input-affix:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-1);
}

.input-affix .prefix,
.input-affix .suffix {
    padding: 0 12px;
    color: var(--text-3);
    font-size: 14px;
    white-space: nowrap;
    background: var(--fill-1);
    align-self: stretch;
    display: flex;
    align-items: center;
}

.input-affix .input {
    border: 0;
    box-shadow: none !important;
}

.checkbox,
.radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.checkbox input,
.radio input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex: none;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    inset: 0;
    background: var(--border-3);
    border-radius: 22px;
    transition: .2s;
    cursor: pointer;
}

.switch .slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: .2s;
}

.switch input:checked + .slider {
    background: var(--primary);
}

.switch input:checked + .slider::before {
    transform: translateX(18px);
}

/* --------------------------------------------------------------------------
   卡片 / 面板
   -------------------------------------------------------------------------- */
.card {
    background: #fff;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-lg);
}

.card-pad {
    padding: 20px;
}

.card-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-1);
    font-size: 16px;
    font-weight: 600;
}

.card-bd {
    padding: 20px;
}

.card-ft {
    padding: 14px 20px;
    border-top: 1px solid var(--border-1);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.panel-title::before {
    content: "";
    width: 4px;
    height: 18px;
    border-radius: 2px;
    background: var(--primary);
}

.section {
    padding: 40px 0;
}

.section-hd {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: .5px;
}

.section-sub {
    color: var(--text-3);
    font-size: 14px;
    margin-top: 6px;
}

/* --------------------------------------------------------------------------
   标签 / 徽标
   -------------------------------------------------------------------------- */
.tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: var(--radius-md);
    font-size: 12px;
    line-height: 1;
    background: var(--fill-2);
    color: var(--text-2);
}

.tag-primary { background: var(--primary-1); color: var(--primary-6); }
.tag-success { background: var(--success-1); color: var(--success-6); }
.tag-warning { background: var(--warning-1); color: var(--warning-6); }
.tag-danger  { background: var(--danger-1);  color: var(--danger-6); }
.tag-magenta { background: #FFE8F1; color: var(--magenta-6); }
.tag-purple  { background: #F5E8FF; color: var(--purple-6); }
.tag-cyan    { background: #E8FFFB; color: var(--cyan-6); }

.badge {
    display: inline-block;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--danger-6);
    color: #fff;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   头像
   -------------------------------------------------------------------------- */
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-circle);
    background: var(--primary-1);
    color: var(--primary-6);
    font-weight: 600;
    overflow: hidden;
    flex: none;
}

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

.avatar-sm { width: 28px; height: 28px; font-size: 12px; }
.avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.avatar-xl { width: 80px; height: 80px; font-size: 28px; }
.avatar-square { border-radius: var(--radius-lg); }

/* --------------------------------------------------------------------------
   商品卡片
   -------------------------------------------------------------------------- */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
    gap: 16px;
}

.goods-card {
    display: block;
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: transform .25s, box-shadow .25s;
    color: inherit;
}

.goods-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
    color: inherit;
}

.goods-card .thumb {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: var(--fill-2);
    overflow: hidden;
}

.goods-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}

.goods-card:hover .thumb img {
    transform: scale(1.06);
}

.goods-card .thumb .no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-4);
    font-size: 13px;
}

.goods-card .corner {
    position: absolute;
    left: 0;
    top: 0;
    padding: 3px 10px;
    border-bottom-right-radius: var(--radius-lg);
    background: linear-gradient(90deg, #FF5722, #F53F3F);
    color: #fff;
    font-size: 12px;
}

.goods-card .body {
    padding: 12px;
}

.goods-card .title {
    font-size: 14px;
    line-height: 1.5;
    height: 42px;
    color: var(--text-1);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.goods-card .price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.price {
    color: var(--danger-6);
    font-weight: 600;
    font-size: 18px;
    font-family: "DIN Alternate", var(--font);
}

.price .unit {
    font-size: 13px;
    font-weight: 400;
}

.price-old {
    color: var(--text-4);
    font-size: 12px;
    text-decoration: line-through;
}

.goods-card .meta {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: var(--text-3);
    font-size: 12px;
}

/* 列表式商品行 */
.goods-row {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    transition: box-shadow .2s;
}

.goods-row:hover {
    box-shadow: var(--shadow-2);
}

.goods-row .thumb {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--fill-2);
    flex: none;
}

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

/* --------------------------------------------------------------------------
   空状态 / 加载
   -------------------------------------------------------------------------- */
.empty {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-3);
}

.empty .icon {
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
    opacity: .5;
}

.empty p {
    margin: 0;
    font-size: 14px;
}

.skeleton {
    background: linear-gradient(90deg, var(--fill-2) 25%, var(--fill-1) 37%, var(--fill-2) 63%);
    background-size: 400% 100%;
    animation: skeleton 1.4s ease infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

/* --------------------------------------------------------------------------
   分页
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 32px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--border-2);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-1);
    font-size: 14px;
    transition: all .2s;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active span,
.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .disabled {
    color: var(--text-4);
    cursor: not-allowed;
    background: var(--fill-1);
}

.pagination .dots {
    border: 0;
    background: transparent;
}

/* --------------------------------------------------------------------------
   面包屑
   -------------------------------------------------------------------------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-3);
    padding: 16px 0;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-3);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .sep {
    color: var(--text-4);
}

/* --------------------------------------------------------------------------
   Tabs
   -------------------------------------------------------------------------- */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-2);
    overflow-x: auto;
    scrollbar-width: none;
}

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

.tabs .tab {
    position: relative;
    padding: 12px 16px;
    color: var(--text-2);
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s;
    background: none;
    border: 0;
}

.tabs .tab:hover {
    color: var(--primary);
}

.tabs .tab.active {
    color: var(--primary);
    font-weight: 500;
}

.tabs .tab.active::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

/* --------------------------------------------------------------------------
   提示条 / Toast
   -------------------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 16px;
}

.alert-info { background: var(--primary-1); color: var(--primary-7); }
.alert-success { background: var(--success-1); color: #00722A; }
.alert-warning { background: var(--warning-1); color: #A64A00; }
.alert-danger { background: var(--danger-1); color: #A81E1E; }

#toast-box {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 90vw;
    padding: 10px 18px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-4);
    font-size: 14px;
    color: var(--text-1);
    animation: toast-in .25s ease;
    pointer-events: auto;
}

.toast.is-out {
    animation: toast-out .25s ease forwards;
}

.toast-success { border-left: 3px solid var(--success-6); }
.toast-error { border-left: 3px solid var(--danger-6); }
.toast-info { border-left: 3px solid var(--primary-6); }
.toast-warning { border-left: 3px solid var(--warning-6); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(-12px); }
}

/* --------------------------------------------------------------------------
   弹窗
   -------------------------------------------------------------------------- */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-mask.open {
    display: flex;
}

.modal {
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    overflow: auto;
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-4);
    animation: modal-in .22s ease;
}

.modal-lg { max-width: 720px; }

@keyframes modal-in {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.modal-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-1);
    font-size: 16px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: 0;
    font-size: 20px;
    line-height: 1;
    color: var(--text-3);
    cursor: pointer;
    padding: 4px;
}

.modal-close:hover {
    color: var(--text-1);
}

.modal-bd {
    padding: 20px;
}

.modal-ft {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-1);
}

/* --------------------------------------------------------------------------
   表格
   -------------------------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    font-size: 14px;
}

.table th,
.table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border-1);
    white-space: nowrap;
}

.table th {
    background: var(--fill-1);
    color: var(--text-2);
    font-weight: 500;
    font-size: 13px;
}

.table tbody tr:hover {
    background: var(--fill-1);
}

.table td.wrap {
    white-space: normal;
    min-width: 200px;
}

/* --------------------------------------------------------------------------
   Dropdown
   -------------------------------------------------------------------------- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 160px;
    padding: 6px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3);
    z-index: 200;
    display: none;
}

.dropdown.open .dropdown-menu {
    display: block;
    animation: toast-in .18s ease;
}

.dropdown-menu a,
.dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: var(--radius-md);
    background: none;
    color: var(--text-1);
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: var(--fill-2);
    color: var(--text-1);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-1);
    margin: 6px 0;
}

/* --------------------------------------------------------------------------
   工具
   -------------------------------------------------------------------------- */
.scroll-x {
    overflow-x: auto;
    scrollbar-width: none;
}

.scroll-x::-webkit-scrollbar {
    display: none;
}

.one-line {
    display: flex;
    gap: 16px;
}

.hide { display: none; }
.pointer { cursor: pointer; }
.relative { position: relative; }

@media (max-width: 768px) {
    .hide-sm { display: none !important; }
    .show-sm { display: block !important; }
}

@media (min-width: 769px) {
    .show-sm { display: none !important; }
}
