/* ============================================================
   红V基地Token成长公示系统 - 全局样式 (iOS风格·商务专业版)
   ============================================================ */

html, body {
    overflow-x: hidden;
    overflow-y: scroll;  /* 始终显示垂直滚动条，避免页面宽度变化 */
}

/* ---- CSS 变量 (iOS Design Language) ---- */
:root {
    /* 数字藏品风 - 橙红色系 */
    --primary: #FF6B35;           /* 品牌橙红 */
    --primary-light: #FFF0E8;
    --primary-dark: #D84315;
    --primary-bg: #FFF8F5;

    --accent: #ff6d00;            /* 橙色强调 */
    --success: #34c759;           /* iOS绿色 */
    --danger: #ff3b30;            /* iOS红色 */
    --warning: #ff9500;           /* iOS橙色 */
    --info: #007aff;              /* iOS蓝色 */

    /* iOS风格背景色 */
    --bg: #f2f2f7;                /* iOS浅灰背景 */
    --bg-card: #ffffff;
    --bg-nav: rgba(255,255,255,0.95);
    --bg-input: #f9f9fb;
    --bg-sidebar: #f9f9fb;

    /* 文字颜色 - iOS风格 */
    --text: #3a3a3c;              /* iOS主要文字 */
    --text-muted: #8e8e93;       /* iOS次要文字 */
    --text-bright: #1c1c1e;      /* iOS标题文字 */
    --text-white: #ffffff;
    --text-placeholder: #c7c7cc;

    /* 边框和阴影 - iOS风格 */
    --border: #e5e5ea;           /* iOS分隔线 */
    --border-light: #f2f2f7;
    --shadow: rgba(0, 0, 0, 0.06);
    --shadow-card: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-modal: 0 10px 40px rgba(0,0,0,0.15);

    /* iOS风格圆角 */
    --radius: 12px;              /* iOS卡片圆角 */
    --radius-sm: 10px;           /* iOS按钮圆角 */
    --radius-lg: 16px;           /* iOS大卡片圆角 */
    --radius-xl: 20px;           /* iOS弹窗圆角 */
    --radius-full: 9999px;       /* 完全圆形 */

    --max-width: 1200px;         /* 更紧凑的最大宽度 */
    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    
    /* iOS风格动画 */
    --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================================
   Reset & Base (iOS风格)
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;  /* iOS点击高亮取消 */
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: linear-gradient(135deg, #F8F9FF, #FFF5F0, #FFF8F5);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    text-align: center;
    -webkit-overflow-scrolling: touch;
}

/* iOS风格链接 */
a {
    color: var(--info);
    text-decoration: none;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
    text-decoration: none;
}

/* iOS风格选中色 */
::selection {
    background: rgba(0, 122, 255, 0.2);
    color: var(--text-bright);
}

/* ============================================================
   导航栏 (iOS风格)
   ============================================================ */

.navbar {
    background: var(--bg-nav);
    border-bottom: 0.5px solid var(--border);
    box-shadow: 0 1px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: saturate(180%) blur(20px);  /* iOS毛玻璃效果 */
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 52px;
    gap: 8px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-bright);
    font-weight: 600;
    font-size: 1.05rem;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.nav-brand:hover {
    opacity: 0.7;
    text-decoration: none;
}

.brand-icon {
    font-size: 1.4rem;
}

.brand-text {
    display: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: auto;
    padding: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

/* iOS风格导航链接 */
.nav-link {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s var(--ease-out);
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.nav-link:hover {
    background: rgba(0,0,0,0.04);
    opacity: 1;
    text-decoration: none;
}

.nav-admin {
    color: var(--info);
    font-weight: 600;
}

.nav-register {
    background: var(--info);
    color: white;
    font-weight: 600;
}

.nav-register:hover {
    background: #0056cc;
    color: white;
}

.nav-user {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0 10px;
}

/* 移动端导航 */
@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 8px;
        border-bottom: 0.5px solid var(--border);
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(20px);
    }

    .nav-menu.open { display: flex; }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
        border-radius: var(--radius-sm);
    }
}

@media (min-width: 640px) {
    .brand-text { display: inline; }
}

/* ============================================================
   Flash 消息 (浮动 Toast 样式)
   ============================================================ */

.flash-container {
    position: fixed;
    top: 12px;
    left: 0; right: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    padding: 0 16px;
    gap: 6px;
}

.flash-message {
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    animation: toastIn 0.35s var(--ease-out);
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), 0 2px 8px rgba(0,0,0,0.08);
    max-width: 380px;
    width: 100%;
    pointer-events: auto;
    backdrop-filter: blur(8px);
}

@keyframes toastIn {
    from { transform: translateY(-16px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes toastOut {
    from { transform: translateY(0) scale(1); opacity: 1; }
    to { transform: translateY(-10px) scale(0.95); opacity: 0; }
}

.flash-success { 
    background: #e8f5e9; 
    color: #2e7d32; 
}
.flash-danger { 
    background: #ffebee; 
    color: #c62828; 
}
.flash-warning { 
    background: #fff8e1; 
    color: #f57f17; 
}
.flash-info { 
    background: #e3f2fd; 
    color: #1565c0; 
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.5;
    padding: 0 4px;
    margin-left: 8px;
}

.flash-close:hover { opacity: 1; }

/* ============================================================
   主内容区域
   ============================================================ */

.main-content {
    flex: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 16px;
    width: 100%;
}

/* ============================================================
   页脚 (iOS风格)
   ============================================================ */

.footer {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 0.5px solid var(--border);
    margin-top: 40px;
    background: var(--bg-card);
}

.beian-info {
    margin-top: 8px;
}

.beian-info a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.beian-info a:hover {
    color: var(--text-primary);
}

/* ============================================================
   底部导航 (iOS 毛玻璃风格)
   ============================================================ */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    /* left/width 由 #bottomNav 内联样式统一控制精确居中 */
    left: 0;
    right: 0;
    /* 毛玻璃效果 */
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 0.5px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 4px 8px 3px;
    padding-bottom: calc(3px + env(safe-area-inset-bottom));
    display: flex;
    justify-content: space-around;
    align-items: center;   /* 垂直居中对齐 */
    box-shadow: 0 -1px 16px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 5px 2px 3px;
    text-decoration: none;
    color: #8e8e93;
    font-size: 0.58rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: visible;     /* 允许中心按钮凸出 */
}

/* 激活状态的顶部指示器（小横条） */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2.5px;
    border-radius: 0 0 2px 2px;
    background: var(--primary);
    transition: all 0.25s ease;
}

/* 首页激活色 */
.bottom-nav-item:nth-child(1).active::before { background: var(--primary); }
.bottom-nav-item:nth-child(1).active .bottom-nav-icon,
.bottom-nav-item:nth-child(1).active .bottom-nav-text { color: var(--primary); }

/* 活动激活色 - 橙色 */
.bottom-nav-item:nth-child(2).active::before { background: #ff6b00; }
.bottom-nav-item:nth-child(2).active .bottom-nav-icon,
.bottom-nav-item:nth-child(2).active .bottom-nav-text { color: #ff6b00; }

/* 娱乐激活色 - 紫色 */
.bottom-nav-item:nth-child(4).active::before { background: #9c27b0; }
.bottom-nav-item:nth-child(4).active .bottom-nav-icon,
.bottom-nav-item:nth-child(4).active .bottom-nav-text { color: #9c27b0; }

/* 我的激活色 - 蓝色 */
.bottom-nav-item:nth-child(5).active::before { background: var(--info); }
.bottom-nav-item:nth-child(5).active .bottom-nav-icon,
.bottom-nav-item:nth-child(5).active .bottom-nav-text { color: var(--info); }

.bottom-nav-icon {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8e8e93;
    transition: all 0.25s ease;
    width: 26px;
    height: 26px;
    border-radius: 7px;
}

/* 激活时图标带淡色背景 */
.bottom-nav-item.active .bottom-nav-icon { background: rgba(0, 122, 255, 0.08); }
.bottom-nav-item:nth-child(2).active .bottom-nav-icon { background: rgba(255, 107, 0, 0.08); }
.bottom-nav-item:nth-child(4).active .bottom-nav-icon { background: rgba(156, 39, 176, 0.08); }
.bottom-nav-item:nth-child(5).active .bottom-nav-icon { background: rgba(0, 180, 255, 0.08); }

.bottom-nav-text {
    font-size: 0.58rem;
    white-space: nowrap;
    font-weight: 500;
    margin-top: 2px;
    color: #8e8e93;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

/* 按压效果 */
.bottom-nav-item:active .bottom-nav-icon { transform: scale(0.88); }

/* 底部中心图片按钮 - 紧凑版 */
.bottom-center-btn {
    padding: 0 !important;
    background: none !important;
}

.bottom-center-img {
    width: 36px !important;      /* 缩小：和其他图标差不多大 */
    height: 36px !important;
    border-radius: 10px;
    object-fit: cover;
    transition: all 0.25s ease;
    margin-top: -4px !important;   /* 只微微向上凸出 */
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.bottom-center-btn:active .bottom-center-img {
    transform: scale(0.90);
    opacity: 0.85;
}

/* 移动端显示底部菜单 */
@media (max-width: 768px) {
    .bottom-nav { padding: 4px 6px 3px; }

    .main-content { padding-bottom: 64px; }

    .footer { padding-bottom: 64px; }
}

/* 桌面端也显示底部菜单（始终显示） */
@media (min-width: 769px) {
    .bottom-nav {
        display: flex !important;
        /* left/width 由 #bottomNav 内联样式统一控制精确居中 */
        border-radius: 14px 14px 0 0;
        box-shadow: 0 -3px 20px rgba(0, 0, 0, 0.08);
        background: rgba(255, 255, 255, 0.95);
    }

    .main-content { padding-bottom: 64px; }
}

/* ============================================================
   认证页面 (iOS风格)
   ============================================================ */

.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--bg);
}

.auth-card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-card);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 28px;
    color: var(--text-bright);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-link a {
    color: var(--info);
    font-weight: 500;
}

/* ============================================================
   表单 (iOS风格)
   ============================================================ */

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: -0.2px;
}

/* iOS风格输入框 */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    transition: all 0.2s var(--ease-out);
    font-family: var(--font);
    -webkit-appearance: none;  /* iOS去除默认样式 */
}

.form-input:focus {
    outline: none;
    border-color: var(--info);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
    background: white;
}

.form-input::placeholder {
    color: var(--text-placeholder);
}

.form-input-sm {
    padding: 8px 12px;
    font-size: 0.9rem;
    max-width: 100%;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

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

.form-row .form-group {
    flex: 1;
    min-width: 150px;
}

/* iOS风格复选框 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 8px 0;
    -webkit-tap-highlight-color: transparent;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--info);
    border-radius: 4px;
}

select.form-input { 
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238e8e93' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    -webkit-appearance: none;
}

/* ============================================================
   按钮 (iOS风格)
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    text-align: center;
    font-family: var(--font);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: -0.2px;
    -webkit-tap-highlight-color: transparent;
}

/* iOS风格按钮悬停 */
.btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

.btn:active {
    transform: translateY(0);
    opacity: 0.7;
    box-shadow: none;
}

/* 主按钮 - 橙红色系 */
.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { 
    color: white;
    background: var(--primary-dark);
}

/* iOS成功按钮 - 绿色 */
.btn-success {
    background: var(--success);
    color: white;
}

/* iOS危险按钮 - 红色 */
.btn-danger {
    background: var(--danger);
    color: white;
}

/* iOS警告按钮 - 橙色 */
.btn-warning {
    background: var(--warning);
    color: white;
}

/* iOS信息按钮 */
.btn-info {
    background: var(--info);
    color: white;
}

/* iOS幽灵按钮 */
.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--info);
    color: var(--info);
    background: rgba(0, 122, 255, 0.05);
    opacity: 1;
    box-shadow: none;
    transform: none;
}

/* iOS小按钮 */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* iOS块级按钮 */
.btn-block { 
    display: flex; 
    width: 100%; 
}

/* iOS风格禁用状态 */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   TAB 切换 (iOS风格)
   ============================================================ */

.tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 4px;
    box-shadow: var(--shadow-card);
}

.tab-btn {
    flex: 1;
    padding: 10px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    font-family: var(--font);
    white-space: nowrap;
    border-radius: var(--radius-sm);
    font-weight: 500;
    letter-spacing: -0.2px;
}

.tab-btn:hover {
    color: var(--text);
    background: rgba(0,0,0,0.03);
}

.tab-btn.active {
    color: var(--info);
    background: rgba(0, 122, 255, 0.08);
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s var(--ease-out);
}

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

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

/* ============================================================
   卡片 (iOS风格)
   ============================================================ */

.card {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.2s var(--ease-out);
    box-shadow: var(--shadow-card);
}

.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.card-pinned {
    border-left: 4px solid var(--warning);
}

.card-highlighted {
    border-left: 4px solid var(--info);
    background: linear-gradient(to right, rgba(0, 122, 255, 0.03), var(--bg-card));
}

.card-header {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-bright);
    border-bottom: 0.5px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 1rem;
    letter-spacing: -0.3px;
}

.card-body {
    padding: 20px;
    line-height: 1.6;
    color: var(--text);
    font-size: 0.95rem;
}

.card-footer {
    padding: 14px 20px;
    border-top: 0.5px solid var(--border-light);
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(0,0,0,0.01);
}

/* ============================================================
   Badge (iOS风格)
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.badge-pin {
    background: rgba(255, 149, 0, 0.12);
    color: #ff9500;
}

.badge-hot {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.badge-info {
    background: rgba(0, 122, 255, 0.12);
    color: #007aff;
}

.badge-success {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.badge-warning {
    background: rgba(255, 149, 0, 0.12);
    color: #ff9500;
}

/* ============================================================
   表格 (iOS风格)
   ============================================================ */

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 600px;
}

.table thead {
    background: rgba(0,0,0,0.02);
}

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

.table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.table tbody tr {
    transition: background 0.2s var(--ease-out);
}

.table tbody tr:hover {
    background: rgba(0, 122, 255, 0.03);
}

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

.table-sm th, .table-sm td {
    padding: 10px 14px;
    font-size: 0.85rem;
}

/* ============================================================
   状态徽章 (iOS风格)
   ============================================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.status-pending {
    background: rgba(255, 149, 0, 0.12);
    color: #ff9500;
}

.status-active, .status-approve, .status-approved {
    background: rgba(52, 199, 89, 0.12);
    color: #34c759;
}

.status-banned, .status-rejected {
    background: rgba(255, 59, 48, 0.12);
    color: #ff3b30;
}

.status-restricted {
    background: rgba(0, 122, 255, 0.12);
    color: #007aff;
}

.status-withdrawn, .status-closed, .status-inactive {
    background: rgba(142, 142, 147, 0.12);
    color: #8e8e93;
}

/* ============================================================
   空状态 (iOS风格)
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1rem;
    background: var(--bg-card);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-lg);
}

/* ============================================================
   分页 (iOS风格)
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
}

.page-link {
    padding: 8px 18px;
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.2s var(--ease-out);
    text-decoration: none;
}

.page-link:hover {
    border-color: var(--info);
    color: var(--info);
    text-decoration: none;
    background: rgba(0, 122, 255, 0.03);
}

.page-info {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- 管理后台 ---- */
.admin-page {
    display: flex;
    gap: 20px;
}

.admin-sidebar {
    width: 200px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    position: sticky;
    top: 72px;
    height: fit-content;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    box-shadow: var(--shadow-card);
}

.admin-sidebar h3 {
    color: var(--text-bright);
    margin-bottom: 14px;
    font-size: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 700;
}

.admin-nav-link {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.88rem;
    margin-bottom: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.admin-nav-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
    text-decoration: none;
}

.admin-nav-link.active {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 600;
}

.admin-content {
    flex: 1;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-card);
    min-height: 500px;
}

.admin-content h2 {
    color: var(--text-bright);
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    .admin-page {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        padding: 14px;
    }

    .admin-sidebar h3 {
        width: 100%;
        margin-bottom: 6px;
    }

    .admin-nav-link {
        padding: 7px 12px;
        font-size: 0.82rem;
    }

    .admin-content {
        padding: 16px;
    }
}

/* ---- 仪表盘 ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 6px;
}

.quick-links {
    margin-top: 24px;
}

.quick-links h3 {
    color: var(--text-bright);
    margin-bottom: 14px;
    font-size: 1.05rem;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.quick-link {
    display: block;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    text-align: center;
    font-size: 0.95rem;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: var(--shadow-card);
}

.quick-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}

/* ---- 过滤器 ---- */
.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding: 12px;
    background: var(--bg-sidebar);
    border-radius: var(--radius);
}

/* ---- 用户页面 ---- */
.user-page {
    max-width: 1200px;
    margin: 0 auto;
}

.user-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-card);
}

.user-profile-card h2 {
    color: var(--text-bright);
    margin-bottom: 22px;
    font-size: 1.3rem;
    font-weight: 700;
}

.user-profile-card h3 {
    color: var(--text-bright);
    margin: 24px 0 14px;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.token-summary {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.token-stat {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 32px 20px;
    background: var(--primary-bg);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius);
}

.token-stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.token-stat-value {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
}

.info-card {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 18px;
}

.info-card h4 {
    color: var(--text-bright);
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}

.info-card p {
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: var(--text);
}

.action-links {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.activity-card {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text);
}

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

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-content h3 {
    color: var(--text-bright);
    margin-bottom: 18px;
    font-weight: 700;
}

/* ---- 工具类 ---- */
.text-muted { color: var(--text-muted); }
.text-danger { color: var(--danger); }
.text-bright { color: var(--text-bright); }

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 22px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.section-header h2 {
    color: var(--text-bright);
    font-size: 1.15rem;
    font-weight: 700;
}

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin: 14px 0;
    font-size: 0.9rem;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
}

/* ---- 首页特殊样式 ---- */
.index-page .card-body {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.8;
}

.index-page .card-header {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ---- 响应式修复 ---- */
@media (max-width: 480px) {
    .auth-card {
        padding: 22px 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .token-stat-value {
        font-size: 1.5rem;
    }

    .tabs {
        padding: 4px 0;
    }

    .tab-btn {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .table th, .table td {
        padding: 10px 12px;
        font-size: 0.82rem;
    }

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

    .admin-content {
        padding: 14px;
    }

    .action-cell {
        flex-wrap: wrap;
    }
}

/* ============================================================
   H5 手机端适配（追加优化）
   ============================================================ */

/* 基础：防止 iOS 缩放 */
@media (max-width: 768px) {
    html { font-size: 14px; }
    .main-content { padding: 10px 12px 80px; }

    /* 卡片统一缩紧 */
    .card, .user-profile-card, .info-card, .auth-card {
        padding: 14px;
        margin-bottom: 12px;
    }

    /* 首页 TAB 可横向滑动 */
    .tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        flex-wrap: nowrap;
        gap: 0;
        padding: 6px 0;
    }
    .tab-btn {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 0.85rem;
    }
    .tab-content { padding: 12px 0; }

    /* 表单元素触摸优化 */
    .form-input, select.form-input, textarea.form-input {
        padding: 10px 12px;
        font-size: 16px;  /* iOS 防自动缩放 */
    }
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    .btn-block { padding: 12px; }

    /* Token 摘要区纵向排列 */
    .token-summary { flex-direction: column; gap: 8px; }
    .token-stat { padding: 10px; }

    /* 操作按钮组纵向 */
    .action-links { flex-direction: column; gap: 8px; }
    .action-links .btn { width: 100%; text-align: center; }

    /* 管理后台侧边栏优化 */
    .admin-sidebar { padding: 10px; gap: 4px; }
    .admin-nav-link { padding: 6px 10px; font-size: 0.8rem; }

    /* 管理后台表格优化 */
    .admin-content .table th,
    .admin-content .table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* 搜索/筛选行 */
    .search-form, .filter-form {
        flex-direction: column;
        gap: 8px;
    }
    .search-form .form-input,
    .filter-form .form-input,
    .search-form .btn,
    .filter-form .btn {
        width: 100%;
    }

    /* 首页统计卡片 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .stat-card { padding: 14px; }
    .stat-number { font-size: 1.6rem; }

    /* 模态框手机适配 */
    .modal-content {
        margin: 20px 12px;
        padding: 18px;
        max-height: 85vh;
    }

    /* section-header */
    .section-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding: 10px 14px;
    }
    .section-header .btn { width: 100%; }

    /* 组合质押 badge */
    .badge { font-size: 0.75rem; padding: 3px 6px; }

    /* 表单多列布局变单列 */
    .form-row { flex-direction: column; gap: 0; }

    /* 个人中心 */
    .user-page .user-profile-card { padding: 14px; }

    /* 公告列表 */
    .announcement-item { padding: 12px; }
}

/* 小屏手机（< 420px）进一步缩紧 */
@media (max-width: 420px) {
    html { font-size: 13px; }
    .main-content { padding: 8px 10px 80px; }
    .card, .user-profile-card, .info-card { padding: 10px; }
    .table th, .table td { padding: 6px 8px; font-size: 0.75rem; }
    .tab-btn { padding: 6px 10px; font-size: 0.78rem; }
    .admin-content { padding: 10px; }

    /* 首页2列布局调小 */
    .stats-grid { gap: 6px; }
    .stat-card { padding: 10px; }
    .stat-number { font-size: 1.3rem; }

    /* 隐藏非关键表格列 */
    .table th.hide-mobile,
    .table td.hide-mobile { display: none; }
}

/* 横屏提醒 */
@media (orientation: landscape) and (max-height: 500px) {
    .main-content { padding: 8px 12px 80px; }
    .card { padding: 10px; }
}

/* ============================================================
   移动端窄屏布局（非admin页面）
   ============================================================ */

/* 非admin页面：窄屏包裹，max-width 420px 居中 */
.mobile-wrapper {
    display: inline-flex;
    flex-direction: column;
    width: 420px;
    max-width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--bg);
    text-align: left;
    vertical-align: top;
}

/* admin页面：保持全宽，浅色背景 */
.admin-wrapper {
    width: 100%;
    align-self: stretch;
}

/* admin页面：保持全宽，浅色背景 */
.admin-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f6fa;
}

/* 主内容区自动撑满剩余空间 */
.mobile-wrapper .main-content,
.admin-wrapper .main-content {
    flex: 1;
}

/* admin页面主内容区全宽，不受全局max-width限制 */
.admin-wrapper .main-content {
    max-width: none !important;
    width: 100% !important;
}

/* 底部导航：mobile模式下居中在420px容器内 */
.mobile-wrapper .bottom-nav {
    /* left/width 由 #bottomNav 内联样式统一控制精确居中 */
    width: 100%;
    max-width: 420px;
}

/* admin模式下底部导航全宽 */
.admin-wrapper .bottom-nav {
    left: 0;
    transform: none;
    width: 100%;
    max-width: none;
}

/* 小屏（真实手机 < 420px）：mobile-wrapper 撑满全屏，底部导航恢复默认 */
@media (max-width: 420px) {
    .mobile-wrapper {
        max-width: 100%;
    }
    .mobile-wrapper .bottom-nav {
        left: 0;
        transform: none;
        max-width: 100%;
    }
}

/* ============================================================
   公告插图滚动特效（管理员可切换）
   ============================================================ */

/* ---- Effect 1: slide（默认，平移滑动）---- */
.ann-slider[data-effect="slide"] .ann-slider-track {
    display: flex;
    transition: transform 0.4s ease;
}
.ann-slider[data-effect="slide"] .ann-slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* ---- Effect 2: fade（淡入淡出）---- */
.ann-slider[data-effect="fade"] .ann-slider-track {
    position: relative;
    height: 80px;
}
.ann-slider[data-effect="fade"] .ann-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
}
.ann-slider[data-effect="fade"] .ann-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

/* ---- Effect 3: flip（3D 翻转）---- */
.ann-slider[data-effect="flip"] .ann-slider-track {
    position: relative;
    perspective: 800px;
    height: 80px;
}
.ann-slider[data-effect="flip"] .ann-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: rotateY(-90deg);
    transition: all 0.5s ease;
    z-index: 1;
    backface-visibility: hidden;
    pointer-events: none;
}
.ann-slider[data-effect="flip"] .ann-slide.active {
    opacity: 1;
    transform: rotateY(0deg);
    z-index: 2;
    pointer-events: auto;
}

/* ---- Effect 4: zoom（缩放切换）---- */
.ann-slider[data-effect="zoom"] .ann-slider-track {
    position: relative;
    height: 80px;
}
.ann-slider[data-effect="zoom"] .ann-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}
.ann-slider[data-effect="zoom"] .ann-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}

/* ============================================================
   公告插图滚动特效（第二批 — 连续滚动/走马灯）
   ============================================================ */

/* marquee-left：水平左滚动 */
.ann-slider[data-effect^="marquee-"] {
    overflow: hidden;
}
.ann-slider[data-effect^="marquee-"] .ann-slider-track {
    display: flex;
    transition: none; /* 由 JS 控制动画 */
    will-change: transform;
}
.ann-slider[data-effect^="marquee-"] .ann-slide {
    min-width: 100%;
    flex-shrink: 0;
}

/* marquee-3d：3D 立体滚动 */
.ann-slider[data-effect="marquee-3d"] .ann-slider-track {
    display: flex;
    transition: none;
    will-change: transform;
    perspective: 600px;
}
.ann-slider[data-effect="marquee-3d"] .ann-slide {
    min-width: 100%;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.ann-slider[data-effect="marquee-3d"] .ann-slide.active {
    transform: rotateY(0deg) scale(1);
    z-index: 2;
}

/* ---- Effect: bounce-up（向上弹入）---- */
.ann-slider[data-effect="bounce-up"] .ann-slider-track {
    position: relative;
    height: 80px;
}
.ann-slider[data-effect="bounce-up"] .ann-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    /* 弹性弹跳：从下方弹入，cubic-bezier 产生"弹过头再回弹"的效果 */
    transform: translateY(60px) scale(0.8);
    transition: all 0.55s cubic-bezier(0.34, 1.8, 0.64, 1);
    z-index: 1;
    pointer-events: none;
}
.ann-slider[data-effect="bounce-up"] .ann-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 2;
    pointer-events: auto;
}
.ann-slider[data-effect="bounce-up"] .ann-slide img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: var(--slot-radius, 16px);
}

/* ---- Effect: bounce-left（向左弹入）---- */
.ann-slider[data-effect="bounce-left"] .ann-slider-track {
    position: relative;
    height: 80px;
}
.ann-slider[data-effect="bounce-left"] .ann-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    /* 从右侧弹入 + 缩放脉冲（参考 SVG 的 1→0.7→1 节奏） */
    transform: translateX(100%) scale(0.7);
    transition: all 0.35s cubic-bezier(0.34, 1.8, 0.64, 1);
    z-index: 1;
    pointer-events: none;
}
.ann-slider[data-effect="bounce-left"] .ann-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    z-index: 2;
    pointer-events: auto;
}
.ann-slider[data-effect="bounce-left"] .ann-slide img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: var(--slot-radius, 16px);
}

/* ---- Effect: shuffle（左右切换 — 仿 SVG 交替弹入）---- */
.ann-slider[data-effect="shuffle"] .ann-slider-track {
    position: relative;
    height: 80px;
}
.ann-slider[data-effect="shuffle"] .ann-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
    /* 用 animation 控制弹入效果 */
}
.ann-slider[data-effect="shuffle"] .ann-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    animation: shuffleIn 0.35s cubic-bezier(0.34, 1.8, 0.64, 1) forwards;
}
/* 退出动画：往交替方向快速挪走 */
.ann-slider[data-effect="shuffle"] .ann-slide.shuffle-out {
    opacity: 0;
    animation: none;
}
/* 奇数张从左侧弹入（-60px → 0） */
@keyframes shuffleIn {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.92);
    }
    50% {
        opacity: 1;
        transform: translateX(-5px) scale(1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}
.ann-slider[data-effect="shuffle"] .ann-slide img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: var(--slot-radius, 16px);
}

/* ============================================================
   首页轮播图滚动特效（继承公告插图同一套动画）
   ============================================================ */

/* ---- 轮播图走马灯（连续滚动）---- */
.carousel-container[data-effect^="marquee-"] .carousel-slides {
    display: flex;
    transition: none;
    will-change: transform;
}
.carousel-container[data-effect^="marquee-"] .carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
}
.carousel-container[data-effect="marquee-3d"] .carousel-slides {
    perspective: 600px;
}
.carousel-container[data-effect="marquee-3d"] .carousel-slide {
    transition: transform 0.3s ease;
}

/* ---- 轮播图叠放类特效（fade/flip/zoom/bounce）---- */
.carousel-container[data-effect="fade"] .carousel-slides,
.carousel-container[data-effect="flip"] .carousel-slides,
.carousel-container[data-effect="zoom"] .carousel-slides,
.carousel-container[data-effect="bounce-up"] .carousel-slides,
.carousel-container[data-effect="bounce-left"] .carousel-slides,
.carousel-container[data-effect="shuffle"] .carousel-slides {
    position: relative;
}
.carousel-container[data-effect="fade"] .carousel-slide,
.carousel-container[data-effect="flip"] .carousel-slide,
.carousel-container[data-effect="zoom"] .carousel-slide,
.carousel-container[data-effect="bounce-up"] .carousel-slide,
.carousel-container[data-effect="bounce-left"] .carousel-slide,
.carousel-container[data-effect="shuffle"] .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}
.carousel-container[data-effect="fade"] .carousel-slide.active,
.carousel-container[data-effect="flip"] .carousel-slide.active,
.carousel-container[data-effect="zoom"] .carousel-slide.active,
.carousel-container[data-effect="bounce-up"] .carousel-slide.active,
.carousel-container[data-effect="bounce-left"] .carousel-slide.active,
.carousel-container[data-effect="shuffle"] .carousel-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    position: relative; /* 撑高容器 */
}

/* fade */
.carousel-container[data-effect="fade"] .carousel-slide {
    transition: opacity 0.5s ease;
}
/* flip */
.carousel-container[data-effect="flip"] .carousel-slides {
    perspective: 800px;
}
.carousel-container[data-effect="flip"] .carousel-slide {
    opacity: 0;
    transform: rotateY(-90deg);
    transition: all 0.5s ease;
    backface-visibility: hidden;
}
.carousel-container[data-effect="flip"] .carousel-slide.active {
    opacity: 1;
    transform: rotateY(0deg);
}
/* zoom */
.carousel-container[data-effect="zoom"] .carousel-slide {
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-container[data-effect="zoom"] .carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}
/* bounce-up */
.carousel-container[data-effect="bounce-up"] .carousel-slide {
    opacity: 0;
    transform: translateY(60px) scale(0.8);
    transition: all 0.55s cubic-bezier(0.34, 1.8, 0.64, 1);
}
.carousel-container[data-effect="bounce-up"] .carousel-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* bounce-left */
.carousel-container[data-effect="bounce-left"] .carousel-slide {
    opacity: 0;
    transform: translateX(100%) scale(0.7);
    transition: all 0.35s cubic-bezier(0.34, 1.8, 0.64, 1);
}
.carousel-container[data-effect="bounce-left"] .carousel-slide.active {
    opacity: 1;
    transform: translateX(0) scale(1);
}
/* shuffle */
.carousel-container[data-effect="shuffle"] .carousel-slide.active {
    animation: carouselShuffleIn 0.35s cubic-bezier(0.34, 1.8, 0.64, 1) forwards;
}
@keyframes carouselShuffleIn {
    0% { opacity: 0; transform: translateX(60px) scale(0.92); }
    50% { opacity: 1; transform: translateX(-5px) scale(1); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* ---- Effect: grid-drop（九宫格进入）---- */
/* 逐帧还原 SVG 宫格弹跳：下落 + 弹性过冲 + 多级阻尼震荡 + 缩放脉冲 */
.ann-slider[data-effect="grid-drop"] .ann-slider-track {
    position: relative;
    height: 80px;
}
.ann-slider[data-effect="grid-drop"] .ann-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}
.ann-slider[data-effect="grid-drop"] .ann-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    animation: gridDropIn 0.55s ease-in-out forwards;
}
@keyframes gridDropIn {
    /* 从上方初始位置 */
    0% {
        transform: translateY(-40%) scale(0.85);
        opacity: 0;
    }
    /* 跌入视口 */
    18% {
        transform: translateY(3%) scale(0.92);
        opacity: 1;
    }
    /* 弹性过冲（弹回上方） */
    32% {
        transform: translateY(-5%) scale(1.05);
        opacity: 1;
    }
    /* 回落到目标 */
    50% {
        transform: translateY(2%) scale(0.97);
        opacity: 1;
    }
    /* 二次微弱过冲 */
    68% {
        transform: translateY(-1.5%) scale(1.01);
        opacity: 1;
    }
    /* 微小回弹 */
    82% {
        transform: translateY(0.5%) scale(0.99);
        opacity: 1;
    }
    /* 稳定 */
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
.ann-slider[data-effect="grid-drop"] .ann-slide img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: var(--slot-radius, 16px);
}

/* ---- 轮播图 九宫格进入 ---- */
.carousel-container[data-effect="grid-drop"] .carousel-slides {
    position: relative;
}
.carousel-container[data-effect="grid-drop"] .carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}
.carousel-container[data-effect="grid-drop"] .carousel-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
    position: relative;
    animation: carouselGridDropIn 0.55s ease-in-out forwards;
}
@keyframes carouselGridDropIn {
    0% {
        transform: translateY(-40%) scale(0.85);
        opacity: 0;
    }
    18% {
        transform: translateY(3%) scale(0.92);
        opacity: 1;
    }
    32% {
        transform: translateY(-5%) scale(1.05);
        opacity: 1;
    }
    50% {
        transform: translateY(2%) scale(0.97);
        opacity: 1;
    }
    68% {
        transform: translateY(-1.5%) scale(1.01);
        opacity: 1;
    }
    82% {
        transform: translateY(0.5%) scale(0.99);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}
