/* 权益信息卡片样式 - 优化整合版 (Fixed) */

/* ==================== CSS 变量 ==================== */
:root {
    --glass-blur: blur(40px) saturate(200%);
    --glass-blur-light: blur(20px) saturate(180%);
    --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0.08) 100%);
    --glass-bg-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.17) 50%, rgba(255, 255, 255, 0.12) 100%);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 3px 12px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* gradientFlow, slideDown → 已集中到 tailwind.css */

/* ==================== Action Card 基础样式 ==================== */
.action-card {
    background: linear-gradient(
        120deg,
        rgba(168, 237, 234, 0.3) 0%,
        rgba(254, 225, 154, 0.3) 20%,
        rgba(254, 200, 154, 0.3) 40%,
        rgba(255, 175, 189, 0.3) 60%,
        rgba(211, 181, 232, 0.3) 80%,
        rgba(157, 206, 255, 0.3) 100%
    );
    background-size: 200% 200%;
    animation: gradientFlow 8s ease infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    box-shadow: none;
    transition: background 0.3s ease;
    position: relative;
    overflow: visible;
    will-change: background-position;
}

/* 装饰层 - 继承 border-radius 避免圆角处溢出 */
.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.action-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 119, 168, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.action-card > * {
    position: relative;
    z-index: 1;
}

.action-card:hover {
    background: linear-gradient(
        120deg,
        rgba(168, 237, 234, 0.4) 0%,
        rgba(254, 225, 154, 0.4) 20%,
        rgba(254, 200, 154, 0.4) 40%,
        rgba(255, 175, 189, 0.4) 60%,
        rgba(211, 181, 232, 0.4) 80%,
        rgba(157, 206, 255, 0.4) 100%
    );
    background-size: 200% 200%;
    box-shadow: none;
}

/* 统一 action-card 样式 */
.new-card.action-card {
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
    min-height: auto !important;
    height: auto !important;
    /* 防止在 flex 容器中被拉伸到全高 */
    align-self: flex-start !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

.new-card.action-card > .new-card-content {
    padding: 0.5rem !important;
    height: auto !important;
    min-height: 0 !important;
}

/* ==================== 布局容器 ==================== */
.action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    width: 100%;
}

.rights-info {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

.rights-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: nowrap;
    width: 100%;
}

.rights-info-row:not(.benefits-row) {
    justify-content: space-between;
}

.rights-info-top-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex: 1;
    min-width: 0;
}

/* 统一 top-row 内所有徽章的宽度 */
.rights-info-top-row .partnership-badge,
.rights-info-top-row .monthly-membership-badge,
.rights-info-top-row .quarterly-membership-badge,
.rights-info-top-row .rights-badge {
    flex: 0 0 auto;
    width: 180px;
    min-width: 180px;
    max-width: 180px;
}

/*
 * 确保所有父容器不裁剪 tooltip。
 * .action-card 改为 overflow:visible，装饰层伪元素已通过
 * border-radius:inherit + inset:0 自我限制，无需依赖 overflow:hidden。
 */
.action-card,
.rights-info-top-row,
.new-card:not(.action-card),
.new-card-content,
.rights-info {
    overflow: visible !important;
}

/* ==================== 徽章基础样式 ==================== */
.rights-badge,
.partnership-badge,
.monthly-membership-badge,
.quarterly-membership-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: none;
    border-radius: 16px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    box-shadow: var(--glass-shadow);
    min-height: 44px;
    height: 44px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.rights-badge {
    width: auto;
    min-width: 140px;
    max-width: 180px;
}

.partnership-badge {
    width: auto;
    min-width: 180px;
    max-width: 320px;
}

.monthly-membership-badge,
.quarterly-membership-badge {
    min-width: 220px;
    position: relative;
}

/* 徽章 hover 统一样式 */
.rights-badge:hover,
.partnership-badge:hover,
.monthly-membership-badge:hover,
.quarterly-membership-badge:hover {
    transform: translateY(-2px) scale(1.01);
    background: var(--glass-bg-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* 徽章图标 */
.rights-badge i,
.partnership-badge i,
.monthly-membership-badge i,
.quarterly-membership-badge i {
    font-size: 16px;
    flex-shrink: 0;
    z-index: 2;
}

.rights-badge .heroicon,
.partnership-badge .heroicon,
.monthly-membership-badge .heroicon,
.quarterly-membership-badge .heroicon,
.consult-style-btn .heroicon {
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    z-index: 2;
    stroke: currentColor;
}

/* 警告状态徽章 */
.rights-badge.warning {
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.3) 0%, rgba(255, 243, 205, 0.2) 50%, rgba(255, 243, 205, 0.1) 100%);
    color: #856404;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.08), 0 3px 12px rgba(255, 193, 7, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 -1px 0 rgba(133, 100, 4, 0.1);
}

/* ==================== 会员徽章信息 ==================== */
.monthly-membership-badge .membership-info,
.quarterly-membership-badge .membership-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    z-index: 2;
}

.monthly-membership-badge .membership-title,
.quarterly-membership-badge .membership-title {
    font-weight: 700;
    font-size: var(--font-size-sm);
    color: inherit;
}

/* 季卡特殊背景色 */
.quarterly-membership-badge {
    background: linear-gradient(135deg, rgba(230, 240, 255, 0.2) 0%, rgba(220, 230, 255, 0.15) 50%, rgba(210, 220, 255, 0.1) 100%);
}

/* ==================== Benefits 页面特殊布局 ==================== */
.rights-badges-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
}

.rights-badges-group .rights-badge {
    width: auto;
    min-width: 140px;
    flex: 0 0 auto;
    max-width: 180px;
    white-space: nowrap;
}

.benefits-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.benefits-actions .convert-btn {
    flex: 0 0 auto;
    min-width: 120px;
    white-space: nowrap;
}

/* ==================== 按钮组基础样式 ==================== */
.action-buttons-group {
    display: flex;
    gap: var(--spacing-sm);
    align-items: stretch;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.action-buttons-group > form,
.action-buttons-group > .consult-style-btn {
    display: flex !important;
    flex: 1 1 0;
    min-width: 0;
}

.action-buttons-group > form > .consult-style-btn {
    width: 100%;
    flex: 1;
}

/* ==================== Reduce AI 页面防溢出修复 ==================== */
.new-card.action-card.page-reduce_ai .rights-info {
    min-width: 0;
}

.new-card.action-card.page-reduce_ai .rights-info-row {
    flex-wrap: wrap;
    row-gap: var(--spacing-sm);
}

.new-card.action-card.page-reduce_ai .rights-info-top-row {
    flex: 1 1 420px;
    min-width: 0;
}

.new-card.action-card.page-reduce_ai .action-buttons-group {
    flex: 1 1 280px;
    min-width: 0;
    justify-content: flex-end;
}

/* 统一 action-card 内的按钮和徽章尺寸 */
.new-card.action-card .consult-style-btn,
.new-card.action-card .consult-style-btn.reduce-ai-btn,
.new-card.action-card .consult-style-btn.check-btn {
    min-height: 36px !important;
    height: 36px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
    border-radius: 0.5rem !important;
}

.new-card.action-card .partnership-badge,
.new-card.action-card .rights-badge,
.new-card.action-card .monthly-membership-badge,
.new-card.action-card .quarterly-membership-badge {
    min-height: 36px !important;
    height: 36px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
}

.new-card.action-card .action-row {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.75rem !important;
    flex-wrap: wrap !important;
    width: 100% !important;
}

.new-card.action-card .rights-info-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.new-card.action-card .action-buttons-group {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

/* 统一按钮宽度 - check页面和reduce_ai页面 */
.new-card.action-card .action-buttons-group > form,
.new-card.action-card .action-buttons-group > .consult-style-btn {
    flex: 0 0 120px !important;
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
}

.new-card.action-card .action-buttons-group > form > .consult-style-btn {
    width: 100% !important;
}

/* ==================== 咨询风格按钮 ==================== */
.consult-style-btn {
    background: #FCF4C5;
    color: #333333;
    border: none;
    padding: 8px 16px;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 14px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: none;
    min-height: 36px;
    height: auto;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    /* 移动端触摸优化 */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(252, 244, 197, 0.3);
    user-select: none;
    -webkit-user-select: none;
}

.consult-style-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.consult-style-btn:hover {
    background: #F5E99F;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: #333333;
    text-decoration: none;
}

.consult-style-btn:hover::before {
    left: 100%;
}

.consult-style-btn:active {
    transform: translateY(0);
    background: #F0E08A;
    box-shadow: none;
}

.consult-style-btn i {
    font-size: 16px;
    flex-shrink: 0;
}

/* ==================== 液态玻璃按钮（降低AI/提交检测） ==================== */
.consult-style-btn.reduce-ai-btn,
.consult-style-btn.check-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37), inset 0 2px 4px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 4px 0 rgba(0, 0, 0, 0.1);
    color: #1a1a1a;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    min-width: 100px;
    /* 移动端触摸优化 */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* 液态光泽层 */
.consult-style-btn.reduce-ai-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 30%, transparent 70%);
    transform: rotate(-45deg);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

/* 液态波纹效果 */
.consult-style-btn.reduce-ai-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s, opacity 0.6s;
    pointer-events: none;
    opacity: 1;
    z-index: 1;
}

.consult-style-btn.reduce-ai-btn > *,
.consult-style-btn.check-btn > * {
    position: relative;
    z-index: 2;
}

/* 液态玻璃按钮 hover */
.consult-style-btn.reduce-ai-btn:hover,
.consult-style-btn.check-btn:hover {
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.25) 100%);
    box-shadow: 0 12px 48px 0 rgba(31, 38, 135, 0.4), inset 0 3px 6px 0 rgba(255, 255, 255, 0.6), inset 0 -3px 6px 0 rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.02);
    color: #1a1a1a;
}

.consult-style-btn.reduce-ai-btn:hover::before {
    transform: rotate(-45deg) translate(20%, 20%);
}

.consult-style-btn.reduce-ai-btn:hover::after {
    width: 300%;
    height: 300%;
    opacity: 0;
}

/* 液态玻璃按钮 active */
.consult-style-btn.reduce-ai-btn:active,
.consult-style-btn.check-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.37), inset 0 2px 4px 0 rgba(0, 0, 0, 0.2), inset 0 -1px 2px 0 rgba(255, 255, 255, 0.4);
}

/* 液态玻璃按钮 disabled */
.consult-style-btn.reduce-ai-btn:disabled,
.consult-style-btn.check-btn:disabled {
    backdrop-filter: blur(10px) saturate(100%);
    -webkit-backdrop-filter: blur(10px) saturate(100%);
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.2) 0%, rgba(200, 200, 200, 0.1) 100%);
    color: #999;
    cursor: not-allowed;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1), inset 0 1px 2px 0 rgba(255, 255, 255, 0.2);
    transform: none;
}

.consult-style-btn.reduce-ai-btn:disabled::before,
.consult-style-btn.reduce-ai-btn:disabled::after {
    display: none;
}

/* 图标动画 */
.consult-style-btn.reduce-ai-btn i,
.consult-style-btn.check-btn i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.consult-style-btn.reduce-ai-btn:hover i,
.consult-style-btn.check-btn:hover i {
    transform: rotate(360deg) scale(1.1);
}

/* ==================== 转换按钮 ==================== */
.convert-btn {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    color: var(--primary-color);
    border: 1px solid #bbdefb;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: var(--font-size-sm);
    min-height: 44px;
    height: 44px;
    position: relative;
    overflow: hidden;
    font-family: var(--font-family-base);
    white-space: nowrap;
    min-width: 100px;
}

.convert-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.convert-btn:hover {
    background: linear-gradient(135deg, #ddd6fe 0%, #f0e6ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border-color: #a855f7;
    color: var(--primary-color);
    text-decoration: none;
}

.convert-btn:hover::before {
    left: 100%;
}

.convert-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.convert-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    border-color: #cccccc;
    color: #666666;
    transform: none;
    box-shadow: none;
}

.convert-btn:disabled::before {
    display: none;
}

/* 购买权益按钮 */
.convert-btn.purchase-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: 2px solid #ff6b6b;
    border-radius: var(--border-radius-md);
    color: var(--secondary-color);
    font-weight: 600;
    font-size: var(--font-size-sm);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.convert-btn.purchase-btn:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #d63031 100%);
    border-color: #ee5a24;
    color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: none;
}

/* ==================== iOS Glass Buttons ==================== */
.consult-style-btn.ios-glass-btn {
    --ios-glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%);
    --ios-glass-border: rgba(255, 255, 255, 0.45);
    --ios-glass-text: #0f172a;
    background: var(--ios-glass-bg);
    color: var(--ios-glass-text) !important;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1px solid var(--ios-glass-border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    border-radius: 16px;
    min-height: 44px;
    height: 44px;
    padding: 10px 18px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s ease, background-color 0.25s ease;
}

.consult-style-btn.ios-glass-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 40%, transparent 70%),
        radial-gradient(120% 80% at 100% 100%, rgba(255, 255, 255, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.consult-style-btn.ios-glass-btn::after {
    content: "";
    position: absolute;
    inset: -10%;
    background:
        radial-gradient(120% 110% at 50% -10%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 42%, transparent 62%),
        conic-gradient(from 220deg at 50% 50%,
            transparent 0turn,
            var(--ios-glass-accent-1, rgba(59, 130, 246, 0.10)) 0.10turn,
            transparent 0.16turn,
            var(--ios-glass-accent-2, rgba(99, 102, 241, 0.08)) 0.32turn,
            transparent 0.46turn,
            var(--ios-glass-accent-1, rgba(59, 130, 246, 0.06)) 0.70turn,
            transparent 1turn
        );
    -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 66%);
    mask: radial-gradient(closest-side, transparent 58%, #000 66%);
    pointer-events: none;
}

.consult-style-btn.ios-glass-primary {
    --ios-glass-accent-1: rgba(59, 130, 246, 0.28);
    --ios-glass-accent-2: rgba(99, 102, 241, 0.24);
}

.consult-style-btn.ios-glass-accent {
    --ios-glass-accent-1: rgba(234, 88, 12, 0.30);
    --ios-glass-accent-2: rgba(244, 63, 94, 0.24);
}

.consult-style-btn.ios-glass-btn:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.consult-style-btn.ios-glass-btn:active {
    transform: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.consult-style-btn.ios-glass-btn i {
    z-index: 1;
    transition: transform 0.18s ease;
    transform-origin: left center;
}

.consult-style-btn.ios-glass-btn:hover i {
    transform: scale(1.18);
}

.consult-style-btn.ios-glass-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ==================== 兑换码表单样式 ==================== */
.redeem-form-container {
    margin-top: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.18) 100%);
    backdrop-filter: var(--glass-blur-light);
    -webkit-backdrop-filter: var(--glass-blur-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    animation: slideDown 0.25s ease;
}

.redeem-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.redeem-form .new-form-group {
    margin-bottom: 0;
}

.redeem-form .new-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.redeem-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.redeem-input-group .new-input {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.redeem-input-group .new-input:focus {
    border-color: rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    outline: none;
}

.redeem-submit-btn {
    background: rgba(255, 255, 255, 0.4);
    color: #333;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    height: 38px;
    min-height: 38px;
    transition: all var(--transition-fast) ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.redeem-submit-btn:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

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

.redeem-submit-btn:disabled {
    background: rgba(200, 200, 200, 0.3);
    border-color: rgba(0, 0, 0, 0.08);
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.redeem-result {
    min-height: 0;
}

.redeem-result:empty {
    display: none;
}

.redeem-result .notification {
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.redeem-result .notification.success {
    background: rgba(212, 237, 218, 0.8);
    color: #155724;
    border: 1px solid rgba(195, 230, 203, 0.6);
}

.redeem-result .notification.error {
    background: rgba(248, 215, 218, 0.8);
    color: #721c24;
    border: 1px solid rgba(245, 198, 203, 0.6);
}

.redeem-tips {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.redeem-tips h6 {
    margin: 0 0 6px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.redeem-tips ul {
    margin: 0;
    padding-left: 16px;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.redeem-tips li {
    margin-bottom: 2px;
}

.redeem-tips li:last-child {
    margin-bottom: 0;
}

/* 文本不溢出 */
.rights-badge strong,
.partnership-badge strong {
    font-weight: 700;
}

/* Turnitin logo */
.partnership-badge img {
    height: 1em;
    vertical-align: middle;
    margin-right: 0.25rem;
    flex-shrink: 0;
}

/* ==================== Fallback: backdrop-filter 不支持时 ==================== */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .consult-style-btn.ios-glass-btn {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.18) 100%);
    }

    .rights-badge,
    .partnership-badge,
    .monthly-membership-badge,
    .quarterly-membership-badge {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.15) 100%);
    }

    .consult-style-btn.reduce-ai-btn,
    .consult-style-btn.check-btn {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.3) 100%);
    }

    .redeem-form-container {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0.38) 100%);
    }

    .redeem-input-group .new-input {
        background: rgba(255, 255, 255, 0.8);
    }

    .redeem-submit-btn {
        background: rgba(255, 255, 255, 0.6);
    }
}

/* ==================== 中等屏幕 (1024px - 769px) ==================== */
@media (max-width: 1024px) and (min-width: 769px) {
    .rights-badges-group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .rights-badges-group .rights-badge {
        min-width: 120px;
        max-width: 160px;
    }

    .benefits-actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .benefits-actions .convert-btn {
        min-width: 110px;
    }
}

/* ==================== 平板设备 (768px) ==================== */
@media (max-width: 768px) {
    .action-card {
        margin-bottom: 16px;
        padding: 16px;
        border-radius: 16px;
        align-self: flex-start !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .action-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .rights-info {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .rights-info-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .rights-info-top-row {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        width: 100%;
    }

    /* 徽章移动端样式 */
    .rights-badge,
    .partnership-badge {
        font-size: 14px !important;
        padding: 12px 16px !important;
        min-height: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 12px !important;
        background: transparent !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
        box-shadow: var(--shadow-sm) !important;
        font-weight: 500 !important;
        white-space: nowrap;
        cursor: pointer;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }

    /* 统一上下两行元素的宽度和字体 */
    .rights-info-top-row .rights-badge,
    .rights-info-top-row .partnership-badge,
    .rights-info-top-row .monthly-membership-badge,
    .rights-info-top-row .quarterly-membership-badge {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        font-size: 14px !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
        min-height: 44px !important;
        height: 44px !important;
    }

    .action-buttons-group {
        width: 100%;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        justify-content: center;
    }

    .action-buttons-group form,
    .action-buttons-group > .consult-style-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        display: flex !important;
    }

    .action-buttons-group .consult-style-btn,
    .action-buttons-group .consult-style-btn.check-btn,
    .action-buttons-group .consult-style-btn.reduce-ai-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        font-size: 14px !important;
        padding: 10px 12px !important;
        min-height: 44px !important;
        height: 44px !important;
        border-radius: 12px !important;
        /* 白色简约风格 */
        background: #ffffff !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        color: #333333 !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }

    /* 移除伪元素 */
    .action-buttons-group .consult-style-btn::before,
    .action-buttons-group .consult-style-btn::after,
    .action-buttons-group .consult-style-btn.reduce-ai-btn::before,
    .action-buttons-group .consult-style-btn.reduce-ai-btn::after {
        display: none !important;
    }

    /* 悬停效果 */
    .action-buttons-group .consult-style-btn:hover,
    .action-buttons-group .consult-style-btn.reduce-ai-btn:hover {
        background: #f5f5f5 !important;
        border-color: rgba(0, 0, 0, 0.2) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12) !important;
        transform: none !important;
    }

    /* 点击效果 */
    .action-buttons-group .consult-style-btn:active,
    .action-buttons-group .consult-style-btn.reduce-ai-btn:active {
        background: #eeeeee !important;
        transform: scale(0.98) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    }

    /* 图标样式 */
    .action-buttons-group .consult-style-btn i,
    .rights-info-top-row .partnership-badge i,
    .rights-info-top-row .rights-badge i {
        font-size: 16px !important;
        margin-right: 4px !important;
    }

    /* 警告状态 */
    .rights-badge.warning {
        background: #fff3cd !important;
        border-color: #ffeaa7 !important;
        color: #856404 !important;
    }

    .rights-badge:hover,
    .partnership-badge:hover {
        background: rgba(0, 0, 0, 0.05) !important;
        border-color: var(--primary-color) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
        transform: none !important;
    }

    .rights-badge:active,
    .partnership-badge:active {
        transform: scale(0.98) !important;
    }

    .rights-badge span,
    .partnership-badge span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 会员徽章移动端样式 */
    .monthly-membership-badge,
    .quarterly-membership-badge {
        font-size: 12px;
        padding: 8px 12px;
        min-width: 180px;
        max-width: 100%;
        min-height: 44px;
        height: 44px;
        border-radius: 18px;
        border: none;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.1) 100%) !important;
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 3px 12px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.08) !important;
    }

    .monthly-membership-badge .membership-title,
    .quarterly-membership-badge .membership-title {
        font-size: 12px;
        z-index: 2;
    }

    .monthly-membership-badge i,
    .quarterly-membership-badge i {
        font-size: 12px;
        background: linear-gradient(135deg, #1a1a1a 0%, #ffd700 50%, #1a1a1a 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        z-index: 2;
    }

    /* Benefits 页面 */
    .rights-badges-group {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        flex-wrap: wrap;
    }

    .rights-badges-group .rights-badge {
        width: 100%;
        max-width: none;
        min-width: auto;
        flex: none;
    }

    .benefits-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        margin-left: 0;
    }

    .benefits-actions .convert-btn,
    .benefits-actions .consult-style-btn {
        width: 100%;
        flex: none;
        min-width: auto;
    }

    .consult-style-btn,
    .convert-btn {
        padding: 0.75rem 1.5rem;
        font-size: 14px;
        min-height: 44px;
        height: 44px;
        border-radius: 22px;
    }

    /* 兑换码表单 */
    .redeem-form-container {
        margin-top: 8px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .redeem-form {
        gap: 8px;
    }

    .redeem-form .new-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .redeem-input-group {
        flex-direction: row;
        gap: 6px;
    }

    .redeem-input-group .new-input {
        height: 36px;
        font-size: 13px;
        padding: 6px 10px;
    }

    .redeem-submit-btn {
        height: 36px;
        min-height: 36px;
        padding: 6px 12px;
        font-size: 12px;
    }

    .redeem-tips {
        padding: 8px 10px;
    }

    .redeem-tips h6 {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .redeem-tips ul {
        padding-left: 14px;
        font-size: 10px;
    }
}

/* ==================== 手机设备 (480px) ==================== */
@media (max-width: 480px) {
    .action-card {
        margin-bottom: 12px;
        padding: 12px;
        border-radius: 12px;
        margin-left: -4px;
        margin-right: -4px;
    }

    .rights-info-row {
        display: flex;
        flex-direction: column;
        gap: 6px;
        align-items: stretch;
    }

    .rights-info-top-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 6px;
        flex-wrap: nowrap !important;
    }

    .rights-badge,
    .partnership-badge {
        font-size: 12px !important;
        padding: 10px 12px !important;
        min-height: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
        background: transparent !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    }

    .rights-info-top-row .rights-badge,
    .rights-info-top-row .partnership-badge,
    .rights-info-top-row .monthly-membership-badge,
    .rights-info-top-row .quarterly-membership-badge {
        flex: 1 1 45% !important;
        max-width: calc(50% - 3px);
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 12px !important;
        padding: 9px 10px !important;
        min-height: 40px !important;
        height: 40px !important;
        border-radius: 10px !important;
    }

    .rights-badge i,
    .partnership-badge i {
        font-size: 14px !important;
        margin-right: 4px !important;
    }

    .monthly-membership-badge,
    .quarterly-membership-badge {
        font-size: 11px;
        padding: 6px 8px;
        min-width: 160px;
        max-width: 100%;
        min-height: 40px;
        height: 40px;
        border-radius: 16px;
        border: none;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0.08) 100%) !important;
        backdrop-filter: blur(35px) saturate(190%);
        -webkit-backdrop-filter: blur(35px) saturate(190%);
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.025), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.06) !important;
    }

    .monthly-membership-badge .membership-title,
    .quarterly-membership-badge .membership-title {
        font-size: 11px;
        z-index: 2;
    }

    .monthly-membership-badge i,
    .quarterly-membership-badge i {
        font-size: 10px;
    }

    .rights-badge span,
    .partnership-badge span {
        font-size: 10px;
        line-height: 1.2;
    }

    .action-buttons-group form {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: flex !important;
    }

    .action-buttons-group .consult-style-btn,
    .action-buttons-group .consult-style-btn.check-btn,
    .action-buttons-group .consult-style-btn.reduce-ai-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
        border-radius: 10px !important;
        min-height: 40px !important;
        height: 40px !important;
    }

    .action-buttons-group .consult-style-btn i {
        font-size: 15px !important;
        margin-right: 4px !important;
    }

    .consult-style-btn,
    .convert-btn {
        padding: 0.6rem 1.2rem;
        font-size: 12px;
        min-height: 40px;
        height: 40px;
        border-radius: 20px;
    }

    .consult-style-btn i,
    .convert-btn i {
        font-size: 11px;
    }

    .partnership-badge img {
        height: 0.8em;
        margin-right: 0.15rem;
    }

    /* 兑换码表单 */
    .redeem-form-container {
        padding: 8px 10px;
    }

    .redeem-input-group .new-input {
        height: 34px;
        font-size: 12px;
    }

    .redeem-submit-btn {
        height: 34px;
        min-height: 34px;
        padding: 5px 10px;
        font-size: 11px;
    }

    .redeem-tips h6 {
        font-size: 10px;
    }

    .redeem-tips ul {
        font-size: 9px;
    }
}

/* ==================== 超小屏幕 (360px) ==================== */
@media (max-width: 360px) {
    .action-card {
        padding: 10px;
        margin-left: -8px;
        margin-right: -8px;
    }

    .rights-info-row {
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
    }

    .rights-info-top-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        gap: 4px;
        flex-wrap: nowrap !important;
        width: 100%;
    }

    .rights-badge,
    .partnership-badge {
        font-size: 11px !important;
        padding: 8px 10px !important;
        min-height: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
        background: transparent !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-primary) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
    }

    .rights-info-top-row .rights-badge,
    .rights-info-top-row .partnership-badge,
    .rights-info-top-row .monthly-membership-badge,
    .rights-info-top-row .quarterly-membership-badge {
        flex: 1 1 45% !important;
        max-width: calc(50% - 2px);
        min-width: 0;
        font-size: 10px !important;
        padding: 6px 8px !important;
        min-height: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
    }

    .rights-info-top-row .rights-badge span,
    .rights-info-top-row .partnership-badge span {
        font-size: 9px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .rights-info-top-row .rights-badge i,
    .rights-info-top-row .partnership-badge i {
        font-size: 10px !important;
    }

    .rights-badge i,
    .partnership-badge i {
        font-size: 12px !important;
        margin-right: 3px !important;
    }

    .monthly-membership-badge,
    .quarterly-membership-badge {
        font-size: 10px;
        padding: 4px 6px;
        min-width: 140px;
        max-width: 100%;
        min-height: 36px;
        height: 36px;
        border-radius: 14px;
        border: none;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.08) 100%) !important;
        backdrop-filter: blur(30px) saturate(180%);
        -webkit-backdrop-filter: blur(30px) saturate(180%);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.05) !important;
    }

    .monthly-membership-badge .membership-title,
    .quarterly-membership-badge .membership-title {
        font-size: 10px;
        z-index: 2;
    }

    .monthly-membership-badge i,
    .quarterly-membership-badge i {
        font-size: 9px;
    }

    .action-buttons-group form {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: flex !important;
    }

    .action-buttons-group .consult-style-btn,
    .action-buttons-group .consult-style-btn.check-btn,
    .action-buttons-group .consult-style-btn.reduce-ai-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        padding: 6px 8px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
        min-height: 36px !important;
        height: 36px !important;
    }

    .action-buttons-group .consult-style-btn i {
        font-size: 14px !important;
        margin-right: 3px !important;
    }

    .consult-style-btn,
    .convert-btn {
        padding: 0.5rem 1rem;
        font-size: 11px;
        min-height: 36px;
        height: 36px;
        border-radius: 18px;
    }

    .consult-style-btn i,
    .convert-btn i {
        font-size: 10px;
    }
}

/* ==================== 触摸设备优化 ==================== */
@media (hover: none) and (pointer: coarse) {
    .action-card {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .convert-btn.purchase-btn:active,
    .consult-style-btn:active,
    a[href*="pricing"].consult-style-btn:active {
        transform: scale(0.95);
    }

    .rights-badge:active,
    .partnership-badge:active,
    .reduce-ai-btn:active {
        transform: scale(0.98);
    }

    .consult-style-btn,
    .convert-btn {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ==================== Dark Mode ==================== */
html.dark .action-card {
    background: linear-gradient(
        120deg,
        rgba(168, 237, 234, 0.12) 0%,
        rgba(254, 225, 154, 0.12) 20%,
        rgba(254, 200, 154, 0.12) 40%,
        rgba(255, 175, 189, 0.12) 60%,
        rgba(211, 181, 232, 0.12) 80%,
        rgba(157, 206, 255, 0.12) 100%
    );
    background-size: 200% 200%;
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark .action-card:hover {
    background: linear-gradient(
        120deg,
        rgba(168, 237, 234, 0.18) 0%,
        rgba(254, 225, 154, 0.18) 20%,
        rgba(254, 200, 154, 0.18) 40%,
        rgba(255, 175, 189, 0.18) 60%,
        rgba(211, 181, 232, 0.18) 80%,
        rgba(157, 206, 255, 0.18) 100%
    );
    background-size: 200% 200%;
}

html.dark .consult-style-btn.reduce-ai-btn,
html.dark .consult-style-btn.check-btn {
    background: linear-gradient(135deg, rgba(32, 32, 32, 0.98) 0%, rgba(42, 42, 42, 0.98) 100%);
    color: #f5f5f5;
    text-shadow: none;
    border: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.dark .consult-style-btn.reduce-ai-btn:hover,
html.dark .consult-style-btn.check-btn:hover {
    background: linear-gradient(135deg, rgba(43, 43, 43, 0.98) 0%, rgba(54, 54, 54, 0.98) 100%);
    color: #fafafa;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html.dark .consult-style-btn.reduce-ai-btn:active,
html.dark .consult-style-btn.check-btn:active {
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.98) 0%, rgba(34, 34, 34, 0.98) 100%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(0, 0, 0, 0.34);
}

html.dark .consult-style-btn.ios-glass-btn {
    --ios-glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    --ios-glass-border: rgba(255, 255, 255, 0.12);
    --ios-glass-text: #f5f5f5;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html.dark .rights-badge,
html.dark .partnership-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.dark .rights-badge:hover,
html.dark .partnership-badge:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.dark .rights-badge i,
html.dark .partnership-badge i {
    color: #c0c0c0;
}

html.dark .rights-badge.warning {
    background: linear-gradient(135deg, rgba(133, 100, 4, 0.2) 0%, rgba(133, 100, 4, 0.12) 50%, rgba(133, 100, 4, 0.08) 100%);
    color: #fbbf24;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html.dark .monthly-membership-badge,
html.dark .quarterly-membership-badge {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* 普通咨询按钮（购买权益/兑换）暗色 */
html.dark .consult-style-btn {
    background: linear-gradient(135deg, rgba(38, 38, 38, 0.97) 0%, rgba(48, 48, 48, 0.97) 100%);
    color: #ebebeb;
    border: none;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-shadow: none;
}

html.dark .consult-style-btn:hover {
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.98) 0%, rgba(61, 61, 61, 0.98) 100%);
    color: #f5f5f5;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

html.dark .consult-style-btn:active {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98) 0%, rgba(38, 38, 38, 0.98) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28), inset 0 1px 2px rgba(0, 0, 0, 0.32);
}

html.dark .consult-style-btn i {
    color: #d6d6d6;
}

html.dark .consult-style-btn.check-btn i,
html.dark .consult-style-btn.reduce-ai-btn i {
    color: #dfdfdf;
}

html.dark .consult-style-btn.reduce-ai-btn::before,
html.dark .consult-style-btn.reduce-ai-btn::after {
    opacity: 0.5;
}

html.dark .consult-style-btn:focus-visible {
    outline: 2px solid rgba(185, 185, 185, 0.72);
    outline-offset: 2px;
}

html.dark .consult-style-btn.check-btn:focus-visible,
html.dark .consult-style-btn.reduce-ai-btn:focus-visible {
    outline-color: rgba(210, 210, 210, 0.78);
}

/* 转换按钮暗色 */
html.dark .convert-btn {
    background: linear-gradient(135deg, #1e2a3a 0%, #2a1e30 100%);
    color: #d4d4d4;
    border-color: #404040;
}

html.dark .convert-btn:hover {
    background: linear-gradient(135deg, #2a1e40 0%, #301e48 100%);
    border-color: #a855f7;
    color: #f5f5f5;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* 兑换码表单暗色 */
html.dark .redeem-form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.dark .redeem-input-group .new-input {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f5;
}

html.dark .redeem-input-group .new-input::placeholder {
    color: #9ca3af;
}

html.dark .redeem-input-group .new-input:focus {
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

html.dark .redeem-submit-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #f5f5f5;
    border-color: rgba(255, 255, 255, 0.15);
}

html.dark .redeem-submit-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

html.dark .redeem-tips {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark .redeem-form .new-label,
html.dark .redeem-tips h6 {
    color: #e5e7eb;
}

html.dark .redeem-tips ul,
html.dark .redeem-tips li {
    color: #cbd5e1;
}

html.dark .redeem-result .notification.success {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.25);
}

html.dark .redeem-result .notification.error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.25);
}

/* Turnitin logo 暗色反色 */
html.dark .partnership-badge img {
    filter: brightness(0) invert(1);
}

/* ==================== 移动端暗色模式修正 ==================== */
@media (max-width: 768px) {
    html.dark .rights-badge,
    html.dark .partnership-badge {
        background: transparent !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        color: var(--text-primary) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    }

    html.dark .rights-badge.warning {
        background: rgba(133, 100, 4, 0.2) !important;
        border-color: rgba(251, 191, 36, 0.25) !important;
        color: #fbbf24 !important;
    }

    html.dark .action-buttons-group .consult-style-btn,
    html.dark .action-buttons-group .consult-style-btn.check-btn,
    html.dark .action-buttons-group .consult-style-btn.reduce-ai-btn {
        background: rgba(38, 38, 38, 0.95) !important;
        color: #e0e0e0 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    }

    html.dark .action-buttons-group .consult-style-btn:hover,
    html.dark .action-buttons-group .consult-style-btn.reduce-ai-btn:hover {
        background: rgba(51, 51, 51, 0.95) !important;
        border-color: rgba(255, 255, 255, 0.18) !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
    }

    html.dark .action-buttons-group .consult-style-btn:active,
    html.dark .action-buttons-group .consult-style-btn.reduce-ai-btn:active {
        background: rgba(28, 28, 28, 0.95) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    }

    html.dark .monthly-membership-badge,
    html.dark .quarterly-membership-badge {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.05) 100%) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    }
}

@media (max-width: 480px) {
    html.dark .rights-badge,
    html.dark .partnership-badge {
        background: transparent !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        color: var(--text-primary) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    }

    html.dark .monthly-membership-badge,
    html.dark .quarterly-membership-badge {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.05) 100%) !important;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    }
}

@media (max-width: 360px) {
    html.dark .rights-badge,
    html.dark .partnership-badge {
        background: transparent !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
        color: var(--text-primary) !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25) !important;
    }

    html.dark .monthly-membership-badge,
    html.dark .quarterly-membership-badge {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.04) 100%) !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    }
}

/* ==================== /reduce_ai 移动端重建样式 ==================== */
@media (max-width: 768px) {
    .new-card.action-card.page-reduce_ai {
        margin: 0 0 12px !important;
        padding: 12px !important;
        border-radius: 14px !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 0 0 auto !important;
        align-self: flex-start !important;
    }

    .new-card.action-card.page-reduce_ai > .new-card-content,
    .new-card.action-card.page-reduce_ai .action-row,
    .new-card.action-card.page-reduce_ai .rights-info,
    .new-card.action-card.page-reduce_ai .rights-info-row {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        flex: 0 0 auto !important;
    }

    .new-card.action-card.page-reduce_ai > .new-card-content {
        display: block !important;
        padding: 8px !important;
    }

    .new-card.action-card.page-reduce_ai .action-row,
    .new-card.action-card.page-reduce_ai .rights-info,
    .new-card.action-card.page-reduce_ai .rights-info-row {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .new-card.action-card.page-reduce_ai .rights-info-row:not(.benefits-row) {
        justify-content: flex-start !important;
    }

    .new-card.action-card.page-reduce_ai .rights-info-top-row,
    .new-card.action-card.page-reduce_ai .action-buttons-group {
        width: 100% !important;
        min-width: 0 !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }

    .new-card.action-card.page-reduce_ai .rights-info-top-row > * {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }

    .new-card.action-card.page-reduce_ai .rights-info-top-row > :only-child {
        grid-column: 1 / -1;
    }

    .new-card.action-card.page-reduce_ai .rights-badge,
    .new-card.action-card.page-reduce_ai .partnership-badge,
    .new-card.action-card.page-reduce_ai .monthly-membership-badge,
    .new-card.action-card.page-reduce_ai .quarterly-membership-badge {
        min-height: 42px !important;
        height: 42px !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
        font-size: 12px !important;
        justify-content: center !important;
    }

    .new-card.action-card.page-reduce_ai .rights-badge span,
    .new-card.action-card.page-reduce_ai .partnership-badge span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .new-card.action-card.page-reduce_ai .action-buttons-group > form,
    .new-card.action-card.page-reduce_ai .action-buttons-group > .consult-style-btn {
        margin: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        display: block !important;
        flex: 0 0 auto !important;
    }

    .new-card.action-card.page-reduce_ai .action-buttons-group > form > .consult-style-btn,
    .new-card.action-card.page-reduce_ai .action-buttons-group .consult-style-btn {
        width: 100% !important;
        min-height: 44px !important;
        height: 44px !important;
        padding: 0 10px !important;
        border-radius: 10px !important;
        font-size: 14px !important;
        gap: 6px !important;
        transform: none !important;
    }

    .new-card.action-card.page-reduce_ai .action-buttons-group .consult-style-btn::before,
    .new-card.action-card.page-reduce_ai .action-buttons-group .consult-style-btn::after {
        display: none !important;
    }

    html.dark .new-card.action-card.page-reduce_ai .rights-badge,
    html.dark .new-card.action-card.page-reduce_ai .partnership-badge {
        background: transparent !important;
        border-color: rgba(255, 255, 255, 0.12) !important;
        color: var(--text-primary) !important;
    }
}

@media (max-width: 480px) {
    .new-card.action-card.page-reduce_ai {
        padding: 10px !important;
        border-radius: 12px !important;
    }

    .new-card.action-card.page-reduce_ai > .new-card-content {
        padding: 6px !important;
    }

    .new-card.action-card.page-reduce_ai .rights-info-top-row,
    .new-card.action-card.page-reduce_ai .action-buttons-group {
        gap: 6px !important;
    }

    .new-card.action-card.page-reduce_ai .rights-badge,
    .new-card.action-card.page-reduce_ai .partnership-badge,
    .new-card.action-card.page-reduce_ai .monthly-membership-badge,
    .new-card.action-card.page-reduce_ai .quarterly-membership-badge {
        min-height: 40px !important;
        height: 40px !important;
        font-size: 11px !important;
        border-radius: 9px !important;
    }

    .new-card.action-card.page-reduce_ai .action-buttons-group > form > .consult-style-btn,
    .new-card.action-card.page-reduce_ai .action-buttons-group .consult-style-btn {
        min-height: 42px !important;
        height: 42px !important;
        font-size: 13px !important;
        border-radius: 9px !important;
    }
}

@media (max-width: 360px) {
    .new-card.action-card.page-reduce_ai .rights-info-top-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .new-card.action-card.page-reduce_ai .action-buttons-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
