/* ========================================
   手工调校的视觉风格
   不追求像素级完美，保留一些"人手"的痕迹
   ======================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #f7f4ef;
    --bg-card: #ffffff;
    --bg-soft: #f0ece4;
    --ink: #33302c;
    --ink-dim: #615a52;
    --ink-faint: #9b9388;
    --amber: #b88420;
    --amber-light: #d4a032;
    --coral: #bf5750;
    --sage: #7a8b5c;
    --line: #e4ddd2;
    --line-strong: #d4c9b8;
    --shadow-s: 0 1px 3px rgba(60,50,40,0.04), 0 2px 8px rgba(60,50,40,0.03);
    --shadow-m: 0 2px 6px rgba(60,50,40,0.05), 0 6px 20px rgba(60,50,40,0.04);
    --shadow-l: 0 4px 12px rgba(60,50,40,0.06), 0 12px 36px rgba(60,50,40,0.05);
}

body {
    font-family: -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { cursor: pointer; text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; outline: none; font-family: inherit; }
input, select, textarea { outline: none; font-family: inherit; }

/* 纸质底纹 */
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(184,132,32,0.035) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(191,87,80,0.025) 0%, transparent 50%);
    pointer-events: none; z-index: 0;
}

/* ========== 导航 ========== */
.header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247,244,239,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    max-width: 100%; margin: 0 auto; padding: 0 32px;
    height: 62px; display: flex; align-items: center; gap: 40px;
}
.logo {
    font-size: 18px; font-weight: 700; color: var(--ink);
    letter-spacing: -0.3px; white-space: nowrap;
    display: flex; align-items: center; gap: 7px;
    cursor: pointer;
}
.logo-dot {
    width: 7px; height: 7px; border-radius: 2px;
    background: var(--coral); display: inline-block;
    transform: rotate(45deg);
}

.nav-menu { display: flex; gap: 28px; flex: 1; }
.nav-link {
    font-size: 14px; color: var(--ink-dim); font-weight: 400;
    position: relative; padding: 4px 0;
    transition: color 0.2s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--amber); font-weight: 500; }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--amber); border-radius: 1px;
}

.nav-right { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.balance-display {
    font-size: 13px; color: var(--ink-dim);
    padding: 5px 12px; background: var(--bg-soft);
    border-radius: 6px; border: 1px solid var(--line);
}
.balance-amount { color: var(--amber); font-weight: 600; }
.nav-user-info { font-size: 14px; display: flex; align-items: center; gap: 12px; }
.nav-user-info a { color: var(--ink); font-weight: 500; }
.nav-user-info a:hover { color: var(--amber); }
.nav-user-info a.admin-link {
    background: var(--ink); color: #fff;
    padding: 5px 12px; border-radius: 6px;
    font-weight: 500; font-size: 13px;
    transition: background 0.2s;
}
.nav-user-info a.admin-link:hover { background: var(--amber); }

/* ========== 主区域 ========== */
.main-content {
    position: relative; z-index: 1;
    max-width: 100%; margin: 0 auto; padding: 36px 40px 80px;
    min-height: calc(100vh - 130px);
    overflow: visible;
}
.main-content > * {
    animation: enter 0.35s ease;
}
@keyframes enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== 标题 ========== */
.section-title {
    font-size: 20px; font-weight: 700; color: var(--ink);
    margin: 0 0 22px 0;
    display: flex; align-items: baseline; gap: 10px;
    letter-spacing: -0.2px;
}
.section-title .subtitle {
    font-size: 13px; font-weight: 400; color: var(--ink-faint);
}

/* ========== 首页布局 -- 紧凑网格 ========== */
.home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.home-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px; padding: 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer; position: relative;
    box-shadow: var(--shadow-s);
}
.home-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-m);
}
.home-card.large {
    grid-column: span 3;
    padding: 20px;
    background: var(--ink); color: #f7f4ef;
    border-color: var(--ink);
    display: flex; align-items: center; gap: 16px;
}
.home-card.large:hover { box-shadow: var(--shadow-l); }
.home-card.large .home-card-desc { color: rgba(247,244,239,0.6); }
.home-card.large .home-card-icon { color: var(--amber-light); margin-bottom: 0; }
.home-card.large .home-card-title { margin-bottom: 2px; }
.home-card.wide { grid-column: span 3; }

.home-card-icon {
    width: 22px; height: 22px; margin-bottom: 10px;
    color: var(--amber); display: block;
}
.home-card.large .home-card-icon { width: 28px; height: 28px; }
.ic { width: 22px; height: 22px; display: block; }
.home-card.large .ic { width: 28px; height: 28px; }
.empty-state .ic { width: 48px; height: 48px; margin: 0 auto 16px; opacity: 0.4; }
.home-card-title {
    font-size: 14px; font-weight: 600; margin-bottom: 2px;
}
.home-card.large .home-card-title { font-size: 16px; }
.home-card-desc {
    font-size: 12px; color: var(--ink-faint); line-height: 1.4;
}

/* ========== TikTok 动态首页 ========== */
.tiktok-home {
    max-width: 720px; margin: 0 auto;
}
.tiktok-profile {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-m);
    position: relative;
    overflow: hidden;
}
.profile-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.avatar-ring {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    padding: 3px;
    animation: ringPulse 2s ease-in-out infinite;
}
@keyframes ringPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 0, 80, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(255, 0, 80, 0); }
}
.avatar {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.profile-info { flex: 1; }
.username {
    font-size: 22px; font-weight: 700;
    color: var(--ink); margin-bottom: 6px;
}
.bio {
    font-size: 13px; color: var(--ink-dim);
    margin-bottom: 12px; line-height: 1.5;
}
.stats { display: flex; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-size: 18px; font-weight: 700;
    color: var(--ink);
    transition: color 0.3s;
}
.stat-num.update { color: var(--coral); }
.stat-label {
    font-size: 12px; color: var(--ink-faint);
}
.follow-section {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px;
}
.follow-btn {
    background: linear-gradient(90deg, #ff0050, #ff4080);
    color: white; border: none;
    padding: 10px 32px;
    border-radius: 24px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.follow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(255, 0, 80, 0.3);
}
.follow-btn.following {
    background: var(--bg-soft);
    color: var(--ink-dim);
}
.follow-btn .follow-text-done { display: none; }
.follow-btn.following .follow-text { display: none; }
.follow-btn.following .follow-text-done { display: inline; }
.live-notification {
    position: fixed;
    bottom: 80px;
    right: 30px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, #ff0050, #ff4080);
    padding: 12px 20px;
    border-radius: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 6px 24px rgba(255, 0, 80, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    max-width: 320px;
    overflow: hidden;
    z-index: 999;
    pointer-events: none;
}
.live-notification.show {
    opacity: 1;
    transform: translateY(0);
    animation: notifBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes notifBounce {
    0% { transform: translateY(10px) scale(0.8); opacity: 0; }
    50% { transform: translateY(-4px) scale(1.05); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.notif-icon {
    font-size: 16px;
    animation: iconBounce 0.6s ease;
}
@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}
.video-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.video-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-soft);
    cursor: pointer;
    transition: transform 0.2s;
}
.video-card:hover { transform: scale(1.03); }
.video-thumb {
    width: 100%; aspect-ratio: 9/12;
    display: flex; align-items: center; justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}
.video-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}
.play-icon {
    width: 36px; height: 36px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 12px;
}
.video-info { padding: 8px 10px; }
.video-title {
    font-size: 12px; font-weight: 500;
    color: var(--ink); margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.video-stats {
    font-size: 11px; color: var(--ink-faint);
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.action-card {
    background: var(--bg-soft);
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--line);
}
.action-card:hover {
    background: var(--bg-card);
    border-color: var(--amber);
    transform: translateY(-2px);
}
.action-text {
    font-size: 14px; font-weight: 500;
    color: var(--ink);
}
.floating-stats {
    position: fixed;
    bottom: 100px; right: 30px;
    z-index: 1000;
    pointer-events: none;
}
.floating-text {
    background: linear-gradient(90deg, #ff0050, #ff4080);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(0);
    transition: all 0.5s ease;
    margin-top: 8px;
    box-shadow: 0 4px 20px rgba(255, 0, 80, 0.3);
}

/* ========== 服务卡片 ========== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px; overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-s);
}
.service-card:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-m);
}
.service-card .service-header {
    padding: 16px 20px; font-weight: 600; font-size: 15px;
    color: #fff; position: relative;
}
.service-card .service-body { padding: 18px 20px 20px; }
.service-card .service-desc {
    font-size: 13px; color: var(--ink-dim);
    margin-bottom: 14px; line-height: 1.6;
    white-space: pre-line;
}
.service-card .service-price {
    font-size: 26px; color: var(--ink); font-weight: 700;
    margin-bottom: 10px; letter-spacing: -0.5px;
}
.service-card .service-price small {
    font-size: 13px; color: var(--ink-faint); font-weight: 400;
}
.service-card .service-meta {
    font-size: 12px; color: var(--ink-faint); margin-bottom: 14px;
    line-height: 1.7;
}
.service-card .btn-order {
    width: 100%; height: 40px;
    background: var(--bg-soft); color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px; font-size: 14px; font-weight: 500;
    transition: all 0.15s;
}
.service-card .btn-order:hover {
    background: var(--ink); color: #fff; border-color: var(--ink);
}

/* ========== 表单 ========== */
.form-page {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px; padding: 32px;
    max-width: 600px; margin: 0 auto;
    box-shadow: var(--shadow-s);
    overflow: visible;
}
.form-page.wide { max-width: 900px; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 13px; margin-bottom: 6px;
    color: var(--ink); font-weight: 500;
}
.form-group label .required { color: var(--coral); }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; height: 42px; padding: 0 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px; font-size: 14px; color: var(--ink);
    transition: border-color 0.15s, background 0.15s;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-faint); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--amber);
    background: var(--bg-card);
}
.form-group textarea {
    height: auto; padding: 10px 14px;
    resize: vertical; min-height: 76px;
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23615a52' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.form-group select option { background: #fff; color: var(--ink); }
.form-hint {
    font-size: 12px; color: var(--ink-faint);
    margin-top: 5px; line-height: 1.4;
}
.service-desc-box {
    margin: -6px 0 18px 0;
    padding: 14px 16px;
    background: var(--bg-soft);
    border-radius: 8px;
    border-left: 3px solid var(--amber);
}
.service-desc-box .desc-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--amber);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}
.service-desc-box .desc-content {
    font-size: 12px;
    color: var(--ink-dim);
    line-height: 1.8;
    white-space: pre-line;
}
.recharge-tips {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-soft);
    border-radius: 8px;
    border: 1px solid var(--line);
}
.recharge-tips .tip-title {
    font-size: 13px; font-weight: 600; color: var(--ink);
    margin-bottom: 8px;
}
.recharge-tips .tip-item {
    font-size: 12px; color: var(--ink-dim);
    line-height: 1.8;
}
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

.btn-submit {
    width: 100%; height: 44px;
    background: var(--ink); color: #fff;
    border-radius: 8px;
    font-size: 15px; font-weight: 600;
    margin-top: 4px;
    transition: background 0.15s;
}
.btn-submit:hover { background: var(--amber); }
.btn-submit:disabled {
    background: var(--bg-soft); color: var(--ink-faint);
    cursor: not-allowed;
}

/* 密码输入框小眼睛 */
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 40px !important; }
.pwd-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    cursor: pointer; color: var(--ink-faint); display: flex; align-items: center;
    transition: color 0.15s;
}
.pwd-toggle:hover { color: var(--ink); }

/* ========== 批量表格 ========== */
.batch-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    margin-bottom: 14px;
}
.batch-table th {
    text-align: left; padding: 10px 12px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    font-size: 12px; color: var(--ink-dim);
    font-weight: 500;
}
.batch-table th:first-child { border-radius: 8px 0 0 0; }
.batch-table th:last-child { border-radius: 0 8px 0 0; }
.batch-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
}
.batch-table input,
.batch-table select {
    height: 34px; padding: 0 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px; font-size: 13px; color: var(--ink);
    width: 100%; transition: border-color 0.15s;
}
.batch-table input:focus,
.batch-table select:focus { border-color: var(--amber); }
.batch-table select option { background: #fff; }
.batch-toolbar {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 14px;
}
.btn-add-row {
    padding: 6px 14px;
    background: transparent; color: var(--amber);
    border: 1px solid var(--line-strong);
    border-radius: 6px; font-size: 13px;
    transition: all 0.15s;
}
.btn-add-row:hover { background: var(--amber); color: #fff; border-color: var(--amber); }
.btn-remove {
    color: var(--coral); font-size: 12px; background: none;
    transition: opacity 0.15s;
}
.btn-remove:hover { opacity: 0.6; }

/* ========== 订单表 ========== */
.order-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    background: var(--bg-card);
    border-radius: 10px; overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-s);
}
.order-table th {
    text-align: left; padding: 14px 16px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    font-size: 12px; color: var(--ink-dim);
    font-weight: 500;
}
.order-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    font-size: 13px; color: var(--ink);
    word-break: break-all;
}
.order-table tr:last-child td { border-bottom: none; }
.order-table tr:hover td { background: var(--bg); }
.order-status {
    padding: 2px 10px; border-radius: 4px;
    font-size: 12px; font-weight: 500;
    display: inline-block;
}
.order-status.wait { background: #fef3e0; color: var(--amber); }
.order-status.execute { background: #e8f0fa; color: #4a7ab0; }
.order-status.finish { background: #ecf5ec; color: var(--sage); }
.order-status.refund { background: #fbeae9; color: var(--coral); }
.order-status.refund_req { background: #fdf0e6; color: #d68c45; }
.btn-link {
    background: none; border: 1px solid var(--line-strong);
    padding: 4px 12px; border-radius: 6px;
    font-size: 12px; color: var(--ink-dim);
    cursor: pointer; transition: all 0.15s;
}
.btn-link:hover {
    border-color: var(--amber); color: var(--amber);
    background: rgba(184,132,32,0.05);
}
.order-filter { display: flex; gap: 10px; margin-bottom: 16px; }
.order-filter select,
.order-filter input {
    height: 36px; padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px; font-size: 14px; color: var(--ink);
}

/* ========== 充值 ========== */
.recharge-amounts {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; margin-bottom: 20px;
}
.recharge-amount {
    border: 1px solid var(--line);
    border-radius: 10px; padding: 20px; text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg-card);
}
.recharge-amount:hover { border-color: var(--line-strong); }
.recharge-amount.selected {
    border-color: var(--amber); border-width: 2px;
    background: #fdfaf3; padding: 19px;
}
.recharge-amount .amount {
    font-size: 24px; font-weight: 700; color: var(--ink);
    letter-spacing: -0.5px;
}
.recharge-amount .bonus {
    font-size: 12px; color: var(--coral);
    margin-top: 4px;
}

/* ========== 客服 ========== */
.support-page { display: flex; gap: 24px; }
.support-contact,
.support-faq {
    flex: 1; background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 12px; padding: 24px;
    box-shadow: var(--shadow-s);
}
.support-contact h3,
.support-faq h3 {
    font-size: 16px; margin-bottom: 16px; color: var(--ink);
    font-weight: 600;
}
.contact-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: none; }
.contact-item .ci-icon {
    width: 20px; height: 20px; color: var(--amber); flex-shrink: 0;
}
.contact-item .info .label { font-size: 12px; color: var(--ink-faint); }
.contact-item .info .value { font-size: 15px; font-weight: 500; color: var(--ink); }
.faq-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item .question {
    font-size: 14px; font-weight: 500; color: var(--ink);
    margin-bottom: 6px;
}
.faq-item .answer {
    font-size: 13px; color: var(--ink-dim); line-height: 1.6;
}

/* ========== 登录/注册 ========== */
.auth-page {
    max-width: 400px; margin: 32px auto;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px; padding: 36px;
    box-shadow: var(--shadow-s);
}
.auth-tabs {
    display: flex; margin-bottom: 24px;
    background: var(--bg); border-radius: 8px; padding: 3px;
}
.auth-tabs a {
    flex: 1; text-align: center; padding: 10px;
    font-size: 14px; color: var(--ink-faint);
    border-radius: 6px;
    transition: all 0.15s;
}
.auth-tabs a.active {
    background: var(--bg-card); color: var(--ink);
    font-weight: 500;
    box-shadow: var(--shadow-s);
}

/* ========== 模态框 ========== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(51,48,44,0.3);
    z-index: 200; display: flex;
    align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px; width: 500px; max-width: 90%; max-height: 80vh;
    overflow: hidden; display: flex; flex-direction: column;
    animation: modalIn 0.25s ease;
    box-shadow: var(--shadow-l);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 16px; font-weight: 600; color: var(--ink);
}
.modal-close { cursor: pointer; font-size: 22px; color: var(--ink-faint); }
.modal-close:hover { color: var(--coral); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-body .form-group label { color: var(--ink); }
.modal-body .form-group input { background: var(--bg); }

/* ========== 提示 ========== */
.toast {
    position: fixed; top: 80px; left: 50%;
    transform: translateX(-50%);
    background: var(--ink); color: #f7f4ef;
    padding: 12px 24px; border-radius: 8px;
    z-index: 300; font-size: 14px;
    box-shadow: var(--shadow-l);
    animation: toastIn 0.25s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.toast.error { background: var(--coral); color: #fff; }
.toast.success { background: var(--sage); color: #fff; }

/* ========== 空状态 ========== */
.empty-state {
    text-align: center; padding: 72px 20px; color: var(--ink-faint);
}
.empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; }
.empty-state a { color: var(--amber); }
.empty-state a:hover { color: var(--amber-light); }

/* ========== 加载 ========== */
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ========== 分页 ========== */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 8px; margin-top: 24px; flex-wrap: wrap;
}
.page-btn {
    padding: 0 12px; height: 32px; line-height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--line); border-radius: 6px;
    font-size: 13px; color: var(--ink-dim);
    transition: all 0.15s; min-width: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.page-btn:hover { border-color: var(--amber); color: var(--amber); }
.page-btn.active { background: var(--amber); border-color: var(--amber); color: #fff; font-weight: 600; }
.page-ellipsis { color: var(--ink-faint); font-size: 13px; padding: 0 4px; }
.page-info { font-size: 13px; color: var(--ink-faint); }

/* ========== 页脚 ========== */
.footer {
    border-top: 1px solid var(--line);
    padding: 28px;
    position: relative; z-index: 1;
}
.footer-inner {
    max-width: 100%; margin: 0 auto; padding: 0 32px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--ink-faint); transition: color 0.15s; }
.footer-links a:hover { color: var(--ink); }
.footer-text { font-size: 12px; color: var(--ink-faint); }

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 16px; gap: 12px; }
    .nav-menu { flex-wrap: wrap; gap: 16px; }
    .form-row { flex-direction: column; }
    .support-page { flex-direction: column; }
    .recharge-amounts { grid-template-columns: repeat(2, 1fr); }
    .batch-table { font-size: 12px; }
    .main-content { padding: 20px 16px; }
    .home-grid { grid-template-columns: 1fr; }
    .home-card.large { grid-column: span 1; flex-direction: column; align-items: flex-start; }
    .home-card.wide { grid-column: span 1; }
    
    /* TikTok 首页响应式 */
    .tiktok-profile { padding: 16px; }
    .profile-header { flex-direction: column; align-items: center; text-align: center; }
    .avatar-ring { width: 64px; height: 64px; }
    .stats { justify-content: center; }
    .follow-section { flex-direction: column; align-items: center; }
    .video-showcase { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .quick-actions { grid-template-columns: repeat(3, 1fr); }
    .live-notification { right: 16px; bottom: 100px; font-size: 13px; padding: 10px 16px; max-width: 250px; }
    .floating-stats { right: 16px; bottom: 80px; }
}

@media (max-width: 480px) {
    .video-showcase { grid-template-columns: repeat(2, 1fr); }
    .quick-actions { grid-template-columns: 1fr; }
}
