/**
 * 全局公共样式
 * 页面特有样式（登录、购买、首页等）
 * @package ZhutiTu
 */

/* ========== Toast 提示 - Ant Design 风格 ========== */
#spa-toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    pointer-events: none;
}

.spa-toast-item {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #fff;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    box-shadow: 
        0 6px 16px 0 rgba(0, 0, 0, 0.08),
        0 3px 6px -4px rgba(0, 0, 0, 0.12),
        0 9px 28px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: auto;
    white-space: nowrap;
    will-change: transform, opacity;
}

.spa-toast-item.show {
    opacity: 1;
}

.spa-toast-item.leaving {
    opacity: 0;
    transform: translateX(-50%) translateY(-40px) scale(0.9) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease-out !important;
}

.spa-toast-item i {
    font-size: 16px;
    flex-shrink: 0;
}

/* 状态配色 */
.spa-toast-item.success { background: #f6ffed; }
.spa-toast-item.success i { color: #52c41a; }

.spa-toast-item.error { background: #fff2f0; }
.spa-toast-item.error i { color: #ff4d4f; }

.spa-toast-item.warning { background: #fffbe6; }
.spa-toast-item.warning i { color: #faad14; }

.spa-toast-item.info { background: #e6f4ff; }
.spa-toast-item.info i { color: #1677ff; }



/* ========== 按钮组件 ========== */

/* 按钮基础样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn i {
    font-size: 0.9rem;
}

/* 主要按钮 - 蓝色填充 */
.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* 次要按钮 - 灰色填充 */
.btn-secondary {
    background: var(--accent-soft);
    color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border-color);
}

/* 幽灵按钮 - 透明边框 */
.btn-ghost {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--accent-soft);
    border-color: var(--text-muted);
}

/* 危险按钮 - 红色 */
.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
}

/* 成功按钮 - 绿色 */
.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

/* 小按钮 */
.btn-sm {
    padding: 8px 14px;
    font-size: 0.85rem;
}

.btn-sm i {
    font-size: 0.8rem;
}

/* 大按钮 */
.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn-lg i {
    font-size: 1rem;
}

/* 块级按钮 */
.btn-block {
    width: 100%;
}

/* 图标按钮 - 仅图标 */
.btn-icon {
    padding: 10px;
    width: 40px;
    height: 40px;
}

.btn-icon.btn-sm {
    padding: 8px;
    width: 32px;
    height: 32px;
}

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 12px;
}

.btn-group.right {
    justify-content: flex-end;
}

/* ========== 空状态占位 ========== */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 300px;
}

.empty-state a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
}

.empty-state a i {
    font-size: 1rem;
    color: white;
    margin: 0;
}

.empty-state a:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* 紧凑版本 - 用于卡片内部 */
.empty-state.compact {
    padding: 40px 20px;
}

.empty-state.compact i {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.empty-state.compact p {
    margin-bottom: 16px;
}

.empty-state.compact a {
    padding: 12px 24px;
    font-size: 0.9rem;
    gap: 8px;
}

.empty-state.compact a i {
    font-size: 0.9rem;
}

/* ========== Modal 模态框 ========== */

.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.settings-modal.active {
    opacity: 1;
    visibility: visible;
}

.settings-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
}

.settings-modal-content {
    position: relative;
    width: 90%;
    max-width: 440px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.settings-modal.active .settings-modal-content {
    transform: scale(1) translateY(0);
}

.settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--accent-soft);
    background: var(--card-bg);
}

.settings-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.settings-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.settings-modal-close:hover {
    background: var(--accent-soft);
    color: var(--text-main);
}

.settings-modal-body {
    padding: 24px;
}

/* 表单样式 */
.settings-form-group {
    margin-bottom: 20px;
}

.settings-form-group:last-of-type {
    margin-bottom: 0;
}

.settings-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.settings-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--card-bg);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.settings-form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.settings-form-group input::placeholder {
    color: var(--text-muted);
}

/* 表单按钮 */
.settings-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.settings-btn-cancel {
    padding: 10px 20px;
    background: var(--accent-soft);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-btn-cancel:hover {
    background: var(--border-color);
}

.settings-btn-submit {
    padding: 10px 24px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.settings-btn-submit:hover {
    background: var(--primary-dark);
}

.settings-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.settings-btn-submit.small {
    padding: 8px 16px;
    font-size: 0.85rem;
    width: 100%;
}



/* ========================================================
   灵动 UI 模态框系统 (Aura Modal System)
   ======================================================== */

/* --- 遮罩层 --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 验证码模态框 - 需要更高层级以覆盖其他模态框 */
#captcha-modal.modal-overlay {
    z-index: 1100;
}

/* --- 卡片容器 --- */
.modal-card {
    background: #fff;
    width: 280px;
    padding: 32px 24px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    box-shadow: 
        0 15px 30px -5px rgba(30, 41, 59, 0.1),
        0 0 50px -20px rgba(37, 99, 235, 0.25);
    transform: scale(0.92) translateY(20px);
    transition: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-card.wide {
    width: 340px;
}

/* --- 破格悬浮图标 --- */
.icon-box {
    width: 52px;
    height: 52px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: -58px auto 12px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 10;
}

.icon-box.green {
    background: #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.icon-box.orange {
    background: #f59e0b;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.icon-box.dark {
    background: #334155;
    box-shadow: 0 8px 20px rgba(51, 65, 85, 0.3);
}

.icon-box.small {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-top: -56px;
}

/* --- 关闭按钮 --- */
.close-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    font-size: 14px;
}

.close-icon:hover {
    background: #f1f5f9;
    color: var(--text-main);
}

/* --- 模态框文本 --- */
.modal-card h3 {
    color: var(--text-main);
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
}

.modal-card .desc {
    color: var(--text-muted);
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.5;
    padding: 0 5px;
}

.modal-card .highlight {
    color: var(--text-main);
    font-weight: 600;
    font-family: monospace;
}

/* --- 软背景输入框 --- */
.soft-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    height: 46px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: var(--primary-light, #eff6ff);
    color: var(--text-main);
    outline: none;
    transition: 0.2s;
    margin-bottom: 16px;
}

.soft-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.soft-input::placeholder {
    color: #cbd5e1;
}

.soft-textarea {
    height: 100px;
    resize: none;
    font-family: inherit;
}

/* --- 软背景下拉框 --- */
.soft-select {
    appearance: none;
    -webkit-appearance: none;
    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='%2394a3b8' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.soft-select:focus {
    background-color: #fff;
}

/* --- 自定义下拉框组件 --- */
.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.custom-dropdown-trigger {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    height: 46px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    background: var(--primary-light, #eff6ff);
    color: var(--text-main);
    outline: none;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.custom-dropdown-trigger:hover {
    border-color: var(--primary);
}

.custom-dropdown.open .custom-dropdown-trigger {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.custom-dropdown-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-dropdown-text.placeholder {
    color: #cbd5e1;
}

.custom-dropdown-arrow {
    color: #94a3b8;
    font-size: 12px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
}

.custom-dropdown.open .custom-dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.custom-dropdown.open .custom-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown-option {
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-dropdown-option:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.custom-dropdown-option:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.custom-dropdown-option:hover {
    background: var(--primary-light, #eff6ff);
    color: var(--primary);
}

.custom-dropdown-option.selected {
    background: var(--primary);
    color: white;
}

.custom-dropdown-option.selected:hover {
    background: var(--primary-dark);
    color: white;
}

.custom-dropdown-option i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* 隐藏的原生input用于存储值 */
.custom-dropdown input[type="hidden"] {
    display: none;
}

/* --- 工单类型选择器 --- */
.ticket-type-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.ticket-type-item {
    display: block;
    cursor: pointer;
}

.ticket-type-item input {
    display: none;
}

.ticket-type-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--primary-light, #eff6ff);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.ticket-type-label i {
    font-size: 12px;
}

.ticket-type-item input:checked + .ticket-type-label {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ticket-type-item:hover .ticket-type-label {
    background: #fff;
    border-color: var(--border-color);
}

/* --- 工单优先级选择器 --- */
.ticket-priority-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.priority-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.ticket-priority-item {
    display: inline-flex;
    cursor: pointer;
}

.ticket-priority-item input {
    display: none;
}

.ticket-priority-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--primary-light, #eff6ff);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.ticket-priority-label.high {
    color: #f59e0b;
}

.ticket-priority-label.urgent {
    color: #ef4444;
}

.ticket-priority-item input:checked + .ticket-priority-label {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.ticket-priority-item input:checked + .ticket-priority-label.high {
    border-color: #f59e0b;
    color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.ticket-priority-item input:checked + .ticket-priority-label.urgent {
    border-color: #ef4444;
    color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.ticket-priority-item:hover .ticket-priority-label {
    background: #fff;
    border-color: var(--border-color);
}

/* --- 融合型输入框+按钮 --- */
.input-merged-group {
    display: flex;
    align-items: center;
    background: var(--primary-light, #eff6ff);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 4px 4px 4px 12px;
    height: 46px;
    margin-bottom: 16px;
    box-sizing: border-box;
    transition: 0.2s;
}

.input-merged-group:focus-within {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-merged-group input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: 14px;
    color: var(--text-main);
    width: 100%;
    font-weight: 500;
}

.input-merged-group input::placeholder {
    color: #cbd5e1;
    font-weight: 400;
}

/* --- 发送验证码按钮 --- */
.btn-send-code {
    border: none;
    background: #fff;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 32px;
}

.btn-send-code:hover {
    background: #f8fafc;
    color: var(--primary-dark);
}

.btn-send-code:active {
    transform: scale(0.96);
}

.btn-send-code:disabled {
    color: #94a3b8;
    background: transparent;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* --- 模态框主按钮 --- */
.modal-card .btn-primary {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: white;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: 0.2s;
}

.modal-card .btn-primary:hover {
    background: var(--primary-dark);
}

.modal-card .btn-primary:active {
    transform: scale(0.98);
}

/* --- 辅助链接 --- */
.link-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.link-action {
    cursor: pointer;
    transition: 0.2s;
}

.link-action:hover {
    color: var(--primary);
}

/* --- 图形验证码容器 --- */
.captcha-box {
    position: relative;
    height: 44px;
    background-color: var(--primary-light, #eff6ff);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid transparent;
    transition: 0.2s;
}

.captcha-box:hover {
    border-color: var(--primary);
}

.captcha-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.captcha-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.05);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
}

.captcha-box:hover .captcha-overlay {
    opacity: 1;
}

/* --- 提现信息卡片 --- */
.withdraw-info {
    margin-bottom: 24px;
    text-align: left;
    background: #f8fafc;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.withdraw-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 5px;
}

.withdraw-info-row:last-child {
    margin-bottom: 0;
}

.withdraw-info-row .label {
    color: var(--text-muted);
}

.withdraw-info-row .value {
    font-weight: 600;
    color: var(--text-main);
}

.withdraw-info-row .fee {
    color: #ef4444;
}

/* --- 抖动动画 --- */
.shake {
    animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    40%, 60% { transform: translate3d(3px, 0, 0); }
}



/* ========== 登录/注册模态框样式 ========== */

/* 登录/注册标签 */
.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--accent-soft, #f1f5f9);
    border-radius: var(--radius-sm);
}

.auth-tab {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-tab:hover {
    color: var(--text-main);
}

.auth-tab.active {
    background: #fff;
    color: var(--text-main);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* 面板切换 */
.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

/* 登录方式切换 */
.login-method-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.login-method {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
    padding: 2px 4px;
}

.login-method:hover {
    color: var(--text-main);
}

.login-method.active {
    color: var(--primary);
    font-weight: 600;
}

.login-method-divider {
    color: var(--border-color);
}

/* 社交登录区域 */
.social-login-section {
    margin-top: 24px;
    padding-top: 20px;
}

.social-divider {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.social-divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.social-divider span {
    position: relative;
    background: #fff;
    padding: 0 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* 社交登录按钮组 */
.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-login-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-login-btn.wechat {
    color: #07c160;
    border-color: #07c160;
}

.social-login-btn.wechat:hover {
    background: #07c160;
    color: #fff;
}

.social-login-btn.qq {
    color: #12b7f5;
    border-color: #12b7f5;
}

.social-login-btn.qq:hover {
    background: #12b7f5;
    color: #fff;
}

.social-login-btn.github {
    color: #24292e;
    border-color: #24292e;
}

.social-login-btn.github:hover {
    background: #24292e;
    color: #fff;
}

.social-login-btn.google {
    color: #ea4335;
    border-color: #ea4335;
}

.social-login-btn.google:hover {
    background: #ea4335;
    color: #fff;
}

.social-login-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* 协议文本 */
.auth-agreement {
    margin-top: 16px;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.auth-agreement a {
    color: var(--primary);
    text-decoration: none;
}

.auth-agreement a:hover {
    text-decoration: underline;
}



/* ========================================================
   购买模态框 - 扩展样式 (基于统一模态框系统)
   ======================================================== */

/* 购买模态框需要更高层级 */
#purchaseModal.modal-overlay {
    z-index: 1050;
}

/* 步骤指示器 */
.purchase-steps {
    gap: 0;
}

.purchase-step {
    display: flex;
    align-items: center;
    gap: 6px;
}

.purchase-step .step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.purchase-step .step-text {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.purchase-step.active .step-dot,
.purchase-step.completed .step-dot {
    background: var(--primary);
    color: white;
}

.purchase-step.active .step-text {
    color: var(--text-main);
}

.purchase-steps .step-line {
    width: 20px;
    height: 2px;
    background: var(--border-color);
    margin: 0 6px;
    transition: all 0.3s ease;
}

.purchase-steps .step-line.completed {
    background: var(--primary);
}

/* 步骤内容 */
.purchase-step-content {
    display: none;
}

.purchase-step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 产品信息卡片 */
.purchase-product-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.purchase-product-info img {
    width: 56px;
    height: 42px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.purchase-product-meta h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-product-meta p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 价格信息 */
.purchase-price-box {
    padding: 14px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
}

.purchase-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.purchase-price-row span:first-child {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

.purchase-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.purchase-features {
    display: flex;
    gap: 16px;
}

.purchase-features span {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.purchase-features i {
    color: var(--success);
    font-size: 10px;
}

/* 优惠码输入 */
.purchase-coupon-box {
    margin-top: 12px;
    padding: 12px;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
}

.coupon-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.coupon-input-row input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: #fff;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.coupon-input-row input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.coupon-input-row input::placeholder {
    text-transform: none;
    color: var(--text-muted);
}

.coupon-input-row .btn-sm,
.coupon-input-row .btn-primary {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
    flex-grow: 0;
    width: auto;
    line-height: 1;
}

.coupon-status {
    margin-top: 8px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

.coupon-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
}

.coupon-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.coupon-discount {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    text-align: right;
}

/* 支付网关选择 */
.purchase-gateways {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.gateway-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    line-height: 1;
    background: var(--accent-soft);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.gateway-item:hover {
    background: #fff;
    border-color: var(--border-color);
}

.gateway-item.selected {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary);
}

.gateway-item i {
    display: inline-flex;
    align-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1;
}

.gateway-item span {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1;
}

/* 二维码 */
.purchase-qrcode {
    position: relative;
    display: inline-block;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.purchase-qrcode img {
    display: block;
    width: 160px;
    height: 160px;
}

.purchase-qrcode .qrcode-expired {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: var(--radius-md);
}

.purchase-amount {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* 成功信息 */
.purchase-success-info {
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: left;
}

.purchase-success-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.purchase-success-info .info-row span:first-child {
    color: var(--text-muted);
}

.purchase-success-info .info-row span:last-child {
    font-weight: 600;
    color: var(--text-main);
}

/* 底部按钮 */
.purchase-footer {
    display: flex;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.purchase-footer .btn-ghost {
    flex: 0 0 auto;
}

.purchase-footer .btn-primary {
    flex: 1;
}

/* 加载占位符 */
.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 30px 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.loading-placeholder i {
    color: var(--primary);
}



/* ========================================================
   优惠券领取卡片
   ======================================================== */

.coupon-claim-section {
    margin: 60px auto;
    max-width: 1080px;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.coupon-section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.coupon-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-section-title i {
    color: var(--primary);
}



.coupon-cards-container {
    min-height: 100px;
}

.coupon-cards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.coupon-loading,
.coupon-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.coupon-loading i {
    color: var(--primary);
}

/* 优惠券卡片 - 柔光质感风格 (Soft Gradient Premium) */
.coupon-card {
    /* 基础变量 */
    --card-bg: #ffffff;
    --card-radius: 18px;
    --c-accent-bg: #f3f4f6;
    --c-accent-text: #4b5563;
    
    display: flex;
    background: var(--card-bg);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 110px; /* 固定高度确保统一 */
    box-shadow: 0 4px 20px -5px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

/* 主题定制 */
.coupon-card.coupon-type-percent {
    /* 科技蓝/以及天空蓝 - 适合通用折扣 */
    --c-accent-bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    --c-accent-text: #2563eb;
    --btn-bg: #2563eb;
    --btn-shadow: rgba(37, 99, 235, 0.2);
}

.coupon-card.coupon-type-fixed {
    /* 玫瑰红/礼品红 - 适合现金减免 */
    --c-accent-bg: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    --c-accent-text: #e11d48;
    --btn-bg: #e11d48;
    --btn-shadow: rgba(225, 29, 72, 0.2);
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.08);
}

/* 左侧：价值区 (采用柔和渐变背景) */
.coupon-card-left {
    flex: 0 0 120px;
    background: var(--c-accent-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* 装饰性半圆分隔 (纯视觉装饰，模拟高级票券) */
.coupon-card-left::after {
    content: '';
    position: absolute;
    right: -10px; /* 稍微突出一点 */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--card-bg); /* 与右侧背景同色 */
    border-radius: 50%;
    box-shadow: inset 2px 0 3px -1px rgba(0,0,0,0.05); /* 内阴影增加立体感 */
}

/* 或者，更现代的做法：不做任何物理分割，仅靠颜色区分 */
/* 这里我们采用平滑过渡，左侧柔光背景 */

.coupon-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: var(--c-accent-text);
    margin-bottom: 6px;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.coupon-type {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--c-accent-text);
    opacity: 0.8;
}

/* 右侧：信息与操作 */
.coupon-card-right {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-width: 0; 
}

.coupon-condition {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coupon-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.coupon-expires {
    display: flex;
    align-items: center;
    gap: 5px;
}

.coupon-remaining {
    font-size: 12px;
    padding: 2px 6px;
    background: var(--bg-muted);
    border-radius: 4px;
    color: var(--text-light);
}

/* 按钮：悬浮在右侧与右边缘对齐，或者放在下方？ */
/* 现在的设计是放在最右侧垂直居中 */

.coupon-claim-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    
    /* 现在的按钮样式：圆形图标按钮 或 胶囊按钮 */
    /* 采用更加明显的实心胶囊按钮 */
    padding: 8px 18px;
    background: var(--btn-bg);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--btn-shadow);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.coupon-claim-btn:hover:not([disabled]) {
    transform: translateY(-50%) scale(1.08); /* 轻微放大 */
    box-shadow: 0 6px 15px var(--btn-shadow);
}

.coupon-claim-btn:active:not([disabled]) {
    transform: translateY(-50%) scale(0.95);
}

.coupon-claim-btn:disabled {
    background: var(--bg-muted);
    color: var(--text-light);
    box-shadow: none;
    cursor: not-allowed;
}

/* 已领取状态 */
.coupon-card.claimed {
    opacity: 0.6;
    filter: grayscale(1);
    box-shadow: none;
    border-color: var(--border-color);
}

.coupon-card.claimed .coupon-claim-btn {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    box-shadow: none;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .coupon-card {
        height: auto; /* 允许高度自适应 */
        min-height: 100px;
    }
    
    .coupon-card-left {
        flex: 0 0 90px;
    }
    
    .coupon-value {
        font-size: 24px;
    }
    
    .coupon-card-right {
        padding-right: 16px; /* 按钮不会在右侧绝对定位了，改为流式布局？ */
        /* 不，保持绝对定位但调整位置 */
        padding-bottom: 50px; /* 留出底部空间给按钮 */
    }
    
    .coupon-claim-btn {
        top: auto;
        bottom: 12px;
        right: 12px;
        transform: none; /* 取消垂直居中 */
        padding: 6px 14px;
        width: auto;
    }
    
    .coupon-claim-btn:hover:not([disabled]) {
        transform: scale(1.05); /* 仅放大 */
    }
}



/* ========== 首页新增内容区样式 ========== */

/* 通用区块头部 */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.section-badge i {
    color: var(--accent-warm, #f59e0b);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 20px 0 16px;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 核心特性区 */
.features-section {
    position: relative;
    overflow: hidden;
}
.features-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: left;
    box-shadow: var(--shadow-card);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg, 20px);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(30, 41, 59, 0.15);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 16px;
    color: var(--primary);
    font-size: 22px;
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.25);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* 数据统计区 */
.stats-section {
    padding: 80px 24px;
    background: var(--text-main);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #bfdbfe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.7;
    font-weight: 500;
}

/* 行动召唤区 */
.cta-section {
    padding: 100px 24px;
    background: linear-gradient(180deg, var(--bg-page) 0%, rgba(254, 243, 199, 0.15) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-blob-2) 0%, var(--accent-blob-3) 100%);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 16px;
}

.cta-content > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: var(--text-main);
    color: #fff;
    border-radius: var(--radius-md, 8px);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 24px -6px rgba(30, 41, 59, 0.35);
}

.btn-cta-primary:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 18px 32px -8px rgba(37, 99, 235, 0.45);
    color: #fff;
}

.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    border-radius: var(--radius-md, 8px);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.btn-cta-secondary:hover {
    border-color: var(--text-main);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
}

/* ========================================================
   统一响应式处理 (Unified Responsive)
   ======================================================== */

/* Tablet Landscape / Small Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait / Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Toast */
    #spa-toast-container {
        top: 16px;
        left: 16px;
        right: 16px;
        transform: none;
    }
    .spa-toast-item {
        position: relative;
        left: auto;
        transform: translateY(0) !important;
        width: 100%;
        justify-content: center;
        margin-bottom: 8px;
    }
    .spa-toast-item.show {
        transform: translateY(0) !important;
    }

    /* Modals */
    .settings-modal-content {
        width: 95%;
        margin: 0 auto;
    }

    /* Feature Cards & Sections */
    .feature-card {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid {
        gap: 16px;
    }
    
    .stats-section {
        padding: 60px 16px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Large Mobile (max-width: 640px) */
@media (max-width: 640px) {
    /* Coupon Cards */
    .coupon-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .coupon-card-left {
        flex: 0 0 70px;
        padding: 12px 10px;
    }
    
    .coupon-value {
        font-size: 20px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    /* General Modal Cards */
    .modal-card {
        width: 90%;
        max-width: 300px;
        padding: 28px 20px 20px;
    }
    
    .modal-card.wide {
        width: 92%;
        max-width: 340px;
    }
    
    .icon-box {
        width: 48px;
        height: 48px;
        font-size: 20px;
        margin-top: -52px;
    }

    /* Auth Modal */
    #login-modal .modal-card {
        width: 92%;
        max-width: 360px;
    }
    
    .social-login-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Purchase Modal */
    #purchaseModal .modal-card {
        width: 95%;
    }
    
    .purchase-steps .step-text {
        display: none;
    }
    
    .purchase-gateways {
        grid-template-columns: 1fr;
    }
}

