/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 现代简洁风格基础类 */
.modern-card {
    background: #ffffff;
    border: 1px solid #e1e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.modern-card-elevated {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
    border: 1px solid #d1d9e6;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.modern-card-subtle {
    background: #fafbfc;
    border: 1px solid #e8eef5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #445366;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: #4f7cac;
    transition: color 0.3s;
}

a:hover {
    color: #3a5e8c;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #ffffff;
    color: #445366;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8f0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: #f8faff;
    border-color: #d1d9e6;
}

.btn:active {
    transform: translateY(0);
}

.btn i {
    margin-right: 8px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid #5a6fd8;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    border-color: #4f63d2;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-large {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 头部样式 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e1e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    color: #333;
}

.logo img {
    height: 42px;
    margin-right: 12px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-size: 26px;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 10px;
    text-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.logo-subtitle {
    font-size: 14px;
    color: #68778c;
    font-weight: 500;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 24px;
}

.points-display {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 14px;
    background: #f8faff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e1e8f0;
    color: #445366;
}

.points-display i {
    color: #6366f1;
}

.points-value {
    font-weight: bold;
    color: #4f46e5;
}

/* 积分显示区域样式 */
.nav-points {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6efff 100%);
    border-radius: 20px;
    border: 1px solid #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-points:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.nav-points .coins-icon {
    color: #6366f1;
}

/* 邀请按钮样式 */
.btn-invite {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-left: 12px !important;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3) !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-invite:hover {
    background: linear-gradient(135deg, #5a5fcf 0%, #4338ca 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
}

.btn-invite:active {
    transform: translateY(0) !important;
}

.btn-invite i {
    color: white !important;
    margin-right: 6px !important;
    font-size: 14px !important;
}

/* 邀请按钮闪烁效果（可选，用于吸引注意） */
.btn-invite::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

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

.header-buttons {
    display: flex;
    gap: 12px;
}

.header-buttons .btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
    color: #445366;
    border: 1px solid #e1e8ed;
    transition: all 0.3s ease;
}

.header-buttons .btn:hover {
    background: linear-gradient(135deg, #e8edf2 0%, #d9e2ea 100%);
    border-color: #ccd6e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.header-buttons .btn i {
    color: #3a7bd5;
    margin-right: 8px;
}

.auth-buttons .btn {
    background: linear-gradient(135deg, #3a7bd5 0%, #6d5dc6 100%);
    color: white;
    padding: 8px 16px;
}

.auth-buttons .btn:hover {
    background: linear-gradient(135deg, #3273c1 0%, #5c4eb2 100%);
}

/* 通知栏样式 */
.notification-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 40px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border-bottom: 1px solid #f0c674;
    border-left: 4px solid #ffc107;
    font-size: 14px;
    color: #856404;
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.2);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
}

.notification-bar.hidden {
    display: none;
}

.notification-bar i.fa-info-circle {
    color: #ffc107;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-bar .close-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #856404;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.notification-bar .close-btn:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #664d03;
}

.notification-bar span {
    flex: 1;
    padding-right: 30px;
}

/* 滚动通知栏样式 */
.scrolling-notification-bar {
    position: relative;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3c4 100%);
    border-bottom: 1px solid #f0c674;
    border-left: 4px solid #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 48px; /* 减小最小高度 */
}

.scrolling-notification-bar.hidden {
    display: none;
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 10px 20px; /* 减小内边距 */
    position: relative;
    min-height: 36px; /* 减小最小高度 */
}



.notification-message {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-height: 20px;
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateX(0);
}

.notification-message.fade-out {
    opacity: 0;
    transform: translateX(-10px);
}

.notification-message.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.notification-icon {
    color: #ffc107;
    font-size: 16px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.notification-text {
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.scrolling-notification-bar .close-btn {
    background: none;
    border: none;
    color: #856404;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 12px;
}

.scrolling-notification-bar .close-btn:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #664d03;
}

.notification-indicator {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #856404;
    opacity: 0.7;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.keyboard-hint {
    font-size: 9px;
    opacity: 0.5;
    color: inherit;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: rgba(255, 193, 7, 0.8);
    width: 0%;
    transition: width 0.1s linear;
}

/* 不同类型通知的颜色主题 */
.scrolling-notification-bar.type-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    border-left-color: #17a2b8;
    border-bottom-color: rgba(23, 162, 184, 0.3);
}

.scrolling-notification-bar.type-info .notification-text {
    color: #0c5460;
}

.scrolling-notification-bar.type-info .notification-icon {
    color: #17a2b8;
}

.scrolling-notification-bar.type-info .nav-btn {
    background: rgba(23, 162, 184, 0.2);
    color: #0c5460;
}

.scrolling-notification-bar.type-info .nav-btn:hover {
    background: rgba(23, 162, 184, 0.4);
}

.scrolling-notification-bar.type-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-left-color: #28a745;
    border-bottom-color: rgba(40, 167, 69, 0.3);
}

.scrolling-notification-bar.type-success .notification-text {
    color: #155724;
}

.scrolling-notification-bar.type-success .notification-icon {
    color: #28a745;
}

.scrolling-notification-bar.type-success .nav-btn {
    background: rgba(40, 167, 69, 0.2);
    color: #155724;
}

.scrolling-notification-bar.type-success .nav-btn:hover {
    background: rgba(40, 167, 69, 0.4);
}

.scrolling-notification-bar.type-update {
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
    border-left-color: #6c757d;
    border-bottom-color: rgba(108, 117, 125, 0.3);
}

.scrolling-notification-bar.type-update .notification-text {
    color: #383d41;
}

.scrolling-notification-bar.type-update .notification-icon {
    color: #6c757d;
}

.scrolling-notification-bar.type-update .nav-btn {
    background: rgba(108, 117, 125, 0.2);
    color: #383d41;
}

.scrolling-notification-bar.type-update .nav-btn:hover {
    background: rgba(108, 117, 125, 0.4);
}

.scrolling-notification-bar.type-tip {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border-left-color: #dc3545;
    border-bottom-color: rgba(220, 53, 69, 0.3);
}

.scrolling-notification-bar.type-tip .notification-text {
    color: #721c24;
}

.scrolling-notification-bar.type-tip .notification-icon {
    color: #dc3545;
}

.scrolling-notification-bar.type-tip .nav-btn {
    background: rgba(220, 53, 69, 0.2);
    color: #721c24;
}

.scrolling-notification-bar.type-tip .nav-btn:hover {
    background: rgba(220, 53, 69, 0.4);
}

/* 不同类型通知的进度条颜色 */
.scrolling-notification-bar.type-info .progress-bar {
    background: rgba(23, 162, 184, 0.8);
}

.scrolling-notification-bar.type-success .progress-bar {
    background: rgba(40, 167, 69, 0.8);
}

.scrolling-notification-bar.type-update .progress-bar {
    background: rgba(108, 117, 125, 0.8);
}

.scrolling-notification-bar.type-tip .progress-bar {
    background: rgba(220, 53, 69, 0.8);
}

/* 公告类型样式 */
.scrolling-notification-bar.type-announcement {
    background: linear-gradient(135deg, #e7f3ff 0%, #cce7ff 100%);
    border-left-color: #007bff;
    border-bottom-color: rgba(0, 123, 255, 0.3);
}

.scrolling-notification-bar.type-announcement .notification-text {
    color: #004085;
}

.scrolling-notification-bar.type-announcement .notification-icon {
    color: #007bff;
}

.scrolling-notification-bar.type-announcement .nav-btn {
    background: rgba(0, 123, 255, 0.2);
    color: #004085;
}

.scrolling-notification-bar.type-announcement .nav-btn:hover {
    background: rgba(0, 123, 255, 0.4);
}

.scrolling-notification-bar.type-announcement .progress-bar {
    background: rgba(0, 123, 255, 0.8);
}

/* 注意事项弹窗样式 */
.notice-modal-content {
    max-width: 650px;
    padding: 30px;
}

/* 标题字号自适应 */
#notice-modal-title {
    font-size: clamp(18px, 2.2vw, 26px);
}

/* 轻量“标签式”官网标识 */
.site-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1;
    color: #555;
    background: #f3f4f6;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02) inset;
    transition: all .2s ease;
}
.site-tag:hover {
    color: #333;
    background: #eef0f3;
    border-color: #e1e4e8;
}

.notice-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.notice-icon {
    text-align: center;
    font-size: 40px;
    color: #e74c3c;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

.notice-items {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
}

.notice-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid #667eea;
    border: 1px solid #e1e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #d1d9e6;
    background: #f8faff;
}

.notice-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.notice-item i {
    font-size: 18px;
    color: #3498db;
    margin-top: 2px;
}

.notice-item p {
    margin: 0;
    line-height: 1.5;
    color: #2c3e50;
}

.notice-item strong {
    color: #e74c3c;
    font-weight: 600;
}

.notice-item.highlight {
    background-color: #fff5f5;
    border-left: 3px solid #e74c3c;
}

.notice-item.highlight i {
    color: #e74c3c;
}

.notice-item.highlight.warning {
    background-color: #ffe6e6;
    border-left: 3px solid #ff4757;
    border: 2px solid #ff4757;
    animation: pulse-warning 2s infinite;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.2);
}

.notice-item.highlight.warning i {
    color: #ff4757;
    font-size: 20px;
    animation: shake 1.5s infinite;
}

.notice-item.highlight.warning p {
    color: #d63031;
    font-weight: 600;
}

@keyframes pulse-warning {
    0% { transform: scale(1); box-shadow: 0 3px 10px rgba(255, 71, 87, 0.2); }
    50% { transform: scale(1.02); box-shadow: 0 5px 20px rgba(255, 71, 87, 0.4); }
    100% { transform: scale(1); box-shadow: 0 3px 10px rgba(255, 71, 87, 0.2); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

#notice-confirm {
    margin-top: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #3a7bd5 0%, #6d5dc6 100%);
    transition: all 0.3s ease;
}

#notice-confirm:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 93, 198, 0.3);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

/* AI检测通道按钮样式 */
.btn-ai-detection {
    background: linear-gradient(135deg, #e8f0fd 0%, #d4e6ff 100%) !important;
    color: #3a7bd5 !important;
    border-color: #c9ddff !important;
}

.btn-ai-detection:hover {
    background: linear-gradient(135deg, #d9e7fc 0%, #c2dcff 100%) !important;
    border-color: #b1d0ff !important;
}

.btn-ai-detection i {
    color: #3a7bd5;
}

/* AI检测通道弹窗样式 */
.detection-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 15px 0;
}

.detection-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    color: #2c3e50;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.detection-link:hover {
    background-color: #e9f4fe;
    color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.detection-link i {
    margin-right: 10px;
    color: #3498db;
}

.detection-notes {
    margin-top: 20px;
    background-color: #f0f7ff;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #d4e6ff;
}

.detection-notes .note {
    display: flex;
    margin-bottom: 12px;
}

.detection-notes .note:last-child {
    margin-bottom: 0;
}

.detection-notes .note i {
    color: #3a7bd5;
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.detection-notes .note p {
    font-size: 14px;
    color: #445366;
    line-height: 1.5;
}

/* 主内容区域样式 */
.main-content {
    max-width: 1280px;
    margin: 30px auto 40px;
    padding: 0 30px;
}

/* 功能卡片样式 */
.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px auto 30px;
    width: 95%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #e1e8f0;
    min-height: 120px;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: #f8faff;
    border-color: #d1d9e6;
}

.feature-card.selected,
.feature-card.active {
    border-color: #4285f4;
    background-color: #f8f9ff;
    box-shadow: 0 2px 12px rgba(66, 133, 244, 0.15);
}

/* 移除复杂的装饰元素，保持简洁 */

.feature-icon {
    font-size: 20px;
    margin-bottom: 8px;
    color: #4285f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #202124;
}

.feature-desc {
    color: #5f6368;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.3;
}

.feature-price {
    font-size: 12px;
    font-weight: 500;
    color: #4285f4;
    background-color: #e8f0fe;
    padding: 4px 8px;
    border-radius: 12px;
    margin-top: auto;
}

/* 文本处理区域样式 */
.text-processing-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 35px 40px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
    width: 95%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px !important;
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.section-title i {
    color: #6b5dc6;
    margin-right: 8px;
}

.history-notice {
    font-size: 0.8rem;
    font-weight: 400;
    color: #888;
    margin-left: 10px;
}

.input-section, .output-section {
    display: flex;
    flex-direction: column;
}

#input-text {
    height: 300px;
    padding: 20px;
    border: 1px solid #e1e8f0;
    border-radius: 16px;
    resize: none;
    font-family: inherit;
    font-size: 16px;
    background: #ffffff;
    color: #445366;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#input-text:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 8px 20px rgba(0, 0, 0, 0.12);
    background: #f8faff;
}

.text-count {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: #68778c;
    align-items: center;
}

.character-count {
    font-weight: 500;
    display: flex;
    align-items: center;
}

.character-count i {
    margin-right: 5px;
    color: #6366f1;
    font-size: 12px;
}

#estimated-points {
    color: #5a87b5;
    display: flex;
    align-items: center;
}

#estimated-points i {
    margin-right: 5px;
    color: #6366f1;
    font-size: 14px;
}

#points-value {
    font-weight: 600;
    color: #6366f1;
}

.output-container {
    height: 300px;
    padding: 20px;
    border: 1px solid #e0e7ff;
    border-radius: 12px;
    background-color: #f8faff;
    overflow-y: auto;
    color: #445366;
    font-size: 16px;
    line-height: 1.7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transition: all 0.4s ease;
}

.output-container.showing-result {
    animation: fadeContentIn 0.6s ease-out forwards;
}

@keyframes fadeContentIn {
    0% {
        opacity: 0.7;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.output-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

#clear-btn {
    margin-top: 15px;
    background-color: #f8f9fa;
    border: 1px solid #e0e7ff;
    color: #7c8a98;
    transition: all 0.3s ease;
    align-self: flex-start;
    border-radius: 10px;
    padding: 8px 16px;
}

#clear-btn:hover {
    background-color: #fff0f0;
    color: #ff6b6b;
    border-color: #ffcacb;
}

#clear-btn i {
    font-size: 14px;
    margin-right: 6px;
}

#copy-btn {
    background-color: #6366f1;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#copy-btn:hover:not(:disabled) {
    background-color: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

#copy-btn:disabled {
    background-color: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#copy-btn:disabled i {
    opacity: 0.5;
}

.processing-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    margin-top: 10px;
    width: 95%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#start-processing {
    padding: 10px 16px;
    font-size: 14px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #3730a3 100%);
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.25);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    color: white;
    letter-spacing: 0.3px;
    width: auto;
}

#start-processing:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, #7577f3 0%, #5a52e8 50%, #4037b6 100%);
}

#start-processing:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

#start-processing i {
    font-size: 16px;
    margin-right: 6px;
    position: relative;
    transition: all 0.4s ease;
}

#start-processing:hover i {
    animation: pulse-icon 1.2s infinite;
}

@keyframes pulse-icon {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.processing-tip {
    margin-top: 14px;
    color: #ff7675;
    font-size: 14px;
    font-style: italic;
    display: flex;
    align-items: center;
}

.processing-tip i {
    margin-right: 5px;
    font-size: 14px;
}

/* 按钮波纹效果 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.8s cubic-bezier(0.33, 1, 0.68, 1);
    pointer-events: none;
}

/* 页脚样式已移至index.html内联样式中，避免与复杂布局冲突 */
/*
注意：页脚的完整样式（包括Grid三栏布局、响应式设计、SEO优化等）
现在统一在index.html的内联CSS中管理，确保样式一致性和优先级正确
*/

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    overflow-y: auto;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    border: 1px solid #e1e8f0;
    width: 90%;
    max-width: 500px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 当模态框显示时，确保模态内容可见 */
.modal[style*="display: flex"] .modal-content,
.modal[style*="display:flex"] .modal-content,
.modal.shown .modal-content {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.modal h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: #bdc3c7;
    cursor: pointer;
    transition: all 0.2s;
}

.close-modal:hover {
    color: #e74c3c;
    transform: rotate(90deg);
}

.tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f4f8;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
    color: #95a5a6;
    transition: all 0.3s;
}

.tab:hover {
    color: #3a7bd5;
}

.tab.active {
    color: #3a7bd5;
    border-bottom: 3px solid #3a7bd5;
}

.tab-content {
    margin-top: 20px;
}

.hidden {
    display: none;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #445366;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 4px 12px rgba(0, 0, 0, 0.12);
    background: #f8faff;
}

.recharge-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.recharge-option {
    text-align: center;
    padding: 25px;
    border-radius: 12px;
    background-color: #f9fafc;
    transition: all 0.3s;
    cursor: pointer;
}

.recharge-option:hover {
    background-color: #f0f4f8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recharge-option i {
    font-size: 35px;
    color: #3a7bd5;
    margin-bottom: 15px;
}

.help-content {
    text-align: center;
    padding: 10px;
}

/* 微信二维码容器 */
.wechat-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0 15px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    border-radius: 16px;
    border: 2px solid #e1e8ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 微信二维码图片 */
.wechat-qr-image {
    width: 240px;
    height: 240px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.wechat-qr-image:hover {
    transform: scale(1.05);
}

/* 紧凑型微信联系信息 */
.wechat-contact-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
    padding: 12px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.wechat-contact-compact i {
    font-size: 24px;
    color: #4fc08d;
}

.wechat-contact-compact .wechat-id {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    background-color: transparent;
    padding: 0;
}

/* 原有的微信联系样式保留，用于其他地方 */
.wechat-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
    background-color: #f0f4f8;
    border-radius: 12px;
}

.wechat-contact i {
    font-size: 45px;
    color: #4fc08d;
}

.wechat-id {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: #ecf0f1;
}

/* 帮助提示文字 */
.help-tip {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
    text-align: center;
}

/* 联系方式弹窗中的二维码区域 */
.contact-qr-section {
    margin: 20px 0;
    text-align: center;
}

.contact-qr-section .wechat-qr-container {
    margin: 15px auto;
    max-width: 280px;
}

.contact-qr-section .wechat-qr-image {
    width: 200px;
    height: 200px;
}

.contact-qr-section .wechat-contact-compact {
    margin: 15px auto;
    max-width: 250px;
}

/* 选择功能卡片动画效果 */
@keyframes selectCard {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(-4px);
    }
}

.feature-card.active {
    animation: selectCard 0.5s ease-out forwards;
    border: 3px solid;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
}

#rewrite-card.active {
    border-color: #3a7bd5;
    background: linear-gradient(to bottom, #ffffff, #f0f7ff);
}

#rewrite-card.active .feature-icon {
    background: linear-gradient(135deg, rgba(58, 123, 213, 0.2) 0%, rgba(0, 210, 255, 0.2) 100%);
    transform: scale(1.08);
    box-shadow: 0 6px 12px rgba(58, 123, 213, 0.2);
}

#rewrite-card.active .feature-title {
    color: #3a7bd5;
}

#rewrite-card.active .feature-price {
    background-color: #ebf5ff;
    color: #3a7bd5;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(58, 123, 213, 0.15);
}

#deai-card.active {
    border-color: #6d5dc6;
    background: linear-gradient(to bottom, #ffffff, #f5f3ff);
}

#deai-card.active .feature-icon {
    background: linear-gradient(135deg, rgba(109, 93, 198, 0.2) 0%, rgba(179, 108, 234, 0.2) 100%);
    transform: scale(1.08);
    box-shadow: 0 6px 12px rgba(109, 93, 198, 0.2);
}

#deai-card.active .feature-title {
    color: #6d5dc6;
}

#deai-card.active .feature-price {
    background-color: #f3efff;
    color: #6d5dc6;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(109, 93, 198, 0.15);
}

#rewrite-deai-card.active {
    border-color: #ff5757;
    background: linear-gradient(to bottom, #ffffff, #fff5f5);
}

#rewrite-deai-card.active .feature-icon {
    background: linear-gradient(135deg, rgba(255, 141, 141, 0.2) 0%, rgba(255, 87, 87, 0.2) 100%);
    transform: scale(1.08);
    box-shadow: 0 6px 12px rgba(255, 87, 87, 0.2);
}

#rewrite-deai-card.active .feature-title {
    color: #ff5757;
}

#rewrite-deai-card.active .feature-price {
    background-color: #ffeaea;
    color: #ff5757;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 87, 87, 0.15);
}

/* 添加选中标记 */
.feature-card.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ffffff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#rewrite-card.active::after {
    color: #3a7bd5;
    border: 2px solid #3a7bd5;
}

#deai-card.active::after {
    color: #6d5dc6;
    border: 2px solid #6d5dc6;
}

#rewrite-deai-card.active::after {
    color: #ff5757;
    border: 2px solid #ff5757;
}

/* 认证链接样式 */
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 14px;
}

.auth-links a {
    color: #3a7bd5;
    transition: all 0.3s;
}

.auth-links a:hover {
    color: #185a9d;
    text-decoration: underline;
}

/* 微信登录样式 */
.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    text-align: center;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #e1e8ed, transparent);
}

.login-divider span {
    padding: 0 15px;
    color: #68778c;
    font-size: 14px;
    background-color: white;
}

.btn-wechat {
    background: linear-gradient(135deg, #07C160 0%, #05A04C 100%);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-wechat:hover {
    background: linear-gradient(135deg, #05A04C 0%, #048B42 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(7, 193, 96, 0.3);
}

.btn-wechat:active {
    transform: translateY(0);
}

.btn-wechat i {
    font-size: 18px;
    margin-right: 8px;
}

.btn-wechat:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 微信登录模态框样式 */
#wechat-login-modal .modal-content {
    max-width: 450px;
    text-align: center;
    padding: 30px;
}

#wechat-login-modal h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

/* 邀请码输入区域样式 */
.invite-code-section {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.invite-code-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.invite-code-section input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.invite-code-section input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.invite-code-section input::placeholder {
    color: #999;
}

#invite-code-status {
    margin-top: 5px;
    font-size: 12px;
    min-height: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 邀请码确认对话框样式 */
#invite-confirm-modal .modal-content,
#invite-ineligible-modal .modal-content {
    max-width: 400px;
    text-align: center;
    padding: 30px;
}

#invite-confirm-modal h3,
#invite-ineligible-modal h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#invite-confirm-modal p,
#invite-ineligible-modal p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

#invite-confirm-modal .btn,
#invite-ineligible-modal .btn {
    margin: 0 5px;
    min-width: 80px;
}

#wechat-login-modal h2 i {
    color: #07C160;
    margin-right: 10px;
}

.wechat-qr-container {
    margin: 20px 0;
}

#wechat-qrcode {
    margin: 20px auto;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: inline-block;
}

.wechat-login-tips {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: left;
}

.wechat-login-tips h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.wechat-login-tips ul {
    margin: 0;
    padding-left: 20px;
    font-size: 13px;
    color: #666;
}

.wechat-login-tips li {
    margin-bottom: 5px;
}

/* 微信登录按钮动效 */
@keyframes wechat-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(7, 193, 96, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(7, 193, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(7, 193, 96, 0);
    }
}

.btn-wechat:focus {
    animation: wechat-pulse 2s infinite;
}

/* 登录框微信区域样式 */
.wechat-login-section {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    margin-bottom: 20px;
}

.wechat-login-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.wechat-login-header i {
    color: #07C160;
    font-size: 24px;
}

.wechat-login-header h3 {
    color: #333;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.wechat-qr-wrapper {
    margin: 20px 0;
}

.login-qrcode-container {
    display: inline-block;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
    position: relative;
}

.qr-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #666;
}

.qr-loading i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #07C160;
}

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

.qr-hint {
    color: #666;
    font-size: 14px;
    margin: 10px 0;
}

.new-user-reward {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe6e6 100%);
    border: 1px solid #ffb3b3;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0;
    color: #d63031;
    font-weight: 600;
    font-size: 14px;
}

.new-user-reward i {
    color: #e17055;
    font-size: 16px;
}

.login-method-divider {
    display: flex;
    align-items: center;
    margin: 25px 0 15px 0;
    text-align: center;
}

.login-method-divider::before,
.login-method-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
}

.login-method-divider span {
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    background-color: white;
    font-weight: 500;
}

/* 折叠式传统登录样式 */
.traditional-login-wrapper {
    margin-top: 20px;
}

.traditional-login-toggle {
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.traditional-login-toggle:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    color: #343a40;
}

.traditional-login-toggle .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.traditional-login-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.traditional-login-form-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.traditional-login-form-wrapper.expanded {
    max-height: 400px;
}

.traditional-login-form {
    padding-top: 10px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .wechat-login-section {
        padding: 15px 10px;
    }
    
    .login-qrcode-container {
        min-width: 180px;
        min-height: 180px;
    }
    
    .qr-loading {
        height: 180px;
    }
    
    .new-user-reward {
        font-size: 13px;
        padding: 10px 12px;
    }
}

/* 个人中心样式 */
.user-center-content {
    padding: 10px 0;
}

.user-info-display {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f4f8;
}

.info-label {
    width: 100px;
    font-weight: 600;
    color: #68778c;
}

.user-actions {
    margin-top: 30px;
}

.btn-danger {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #c0392b 100%);
}

/* 卡密兑换部分 */
.form-hint {
    font-size: 13px;
    color: #7f8c8d;
    margin-top: 5px;
}

.code-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.btn-clear-input {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: #95a5a6;
    font-size: 14px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.2s;
}

.btn-clear-input:hover {
    color: #e74c3c;
}

.card-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.card-type {
    text-align: center;
    padding: 12px 5px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 16px rgba(31, 38, 135, 0.2);
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
}

.card-type:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 38, 135, 0.3);
    background: rgba(255, 255, 255, 0.35);
}

.card-type .type {
    font-weight: 600;
    color: #667eea;
}

.card-type .value {
    font-size: 13px;
    color: #68778c;
}

.code-format-example {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #f0f4f8;
}

.format-label {
    font-size: 12px;
    color: #68778c;
    margin-right: 5px;
}

.format-char {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    padding: 2px 4px;
}

.format-char.highlight {
    background-color: #ebf5fe;
    color: #3a7bd5;
    border-radius: 4px;
}

.format-note {
    font-size: 12px;
    color: #7f8c8d;
    margin-left: 10px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .features-container, .text-processing-area, .doc-processing-area, .processing-buttons, .history-section {
        width: 96%;
    }
}

@media (max-width: 992px) {
    .features-container {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 96%;
        padding: 0 15px;
    }

    .feature-card {
        max-width: 100%;
        padding: 15px;
    }
    
    .text-processing-area {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 96%;
        padding: 30px;
    }

    .doc-processing-area {
        width: 96%;
        padding: 30px;
    }

    .processing-buttons, .history-section {
        width: 96%;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .user-info {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .points-display, .header-buttons, .auth-buttons {
        width: 100%;
    }
    
    .header-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    
    .notification-bar {
        padding: 10px 20px;
    }

    .scrolling-notification-bar .notification-content {
        padding: 10px 15px;
    }

    .scrolling-notification-bar .notification-text {
        font-size: 13px;
    }

    .scrolling-notification-bar .notification-indicator {
        right: 40px;
        font-size: 10px;
    }
    
    .main-content {
        padding: 0 10px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .processing-tip {
        text-align: center;
    }
    
    .card-types {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-card {
        padding: 15px 12px;
    }
    
    .text-processing-area {
        padding: 25px 20px;
    }

    .doc-processing-area {
        padding: 25px 20px;
    }
    
    #input-text, .output-container {
        height: 250px;
    }
}

/* 通知样式 */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    z-index: 2000;
    min-width: 280px;
    max-width: 400px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification.hide {
    transform: translateY(30px);
    opacity: 0;
}

.notification i {
    font-size: 22px;
    margin-right: 15px;
}

.notification-success {
    border-left: 4px solid #43cea2;
}

.notification-success i {
    color: #43cea2;
}

.notification-error {
    border-left: 4px solid #ff5757;
}

.notification-error i {
    color: #ff5757;
}

.notification-warning {
    border-left: 4px solid #f5b014;
}

.notification-warning i {
    color: #f5b014;
}

.notification-info {
    border-left: 4px solid #3a7bd5;
}

.notification-info i {
    color: #3a7bd5;
}

/* 波纹效果 */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* 卡片脉冲动画 */
.pulse {
    animation: pulse 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* 渐变动画效果 */
@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#start-processing {
    background-size: 200% auto;
    animation: gradientBG 5s ease infinite;
}

/* 注册提示样式 */
.register-tip {
    margin-top: 20px;
    padding: 12px 15px;
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    color: #856404;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.register-tip i {
    margin-right: 10px;
    color: #ff9800;
    font-size: 16px;
}

/* 忘记密码弹窗样式 */
#forgot-password-modal .form-group {
    margin-bottom: 20px;
}

#forgot-password-step-1, #forgot-password-step-2 {
    padding: 10px 0;
}

/* 快捷键提示区域样式 */
.keyboard-shortcuts-info {
    margin: 30px auto 0;
    max-width: 900px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e8ed;
}

.keyboard-shortcuts-info h3 {
    font-size: 16px;
    color: #445366;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.keyboard-shortcuts-info h3 i {
    margin-right: 8px;
    color: #6d5dc6;
}

.shortcuts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.shortcut-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #eaecef;
    min-width: 110px;
    transition: all 0.2s;
}

.shortcut-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    border-color: #d4d9e1;
}

.key-combo {
    font-family: "Courier New", monospace;
    font-weight: bold;
    background-color: #f0f2f5;
    padding: 3px 8px;
    border-radius: 5px;
    color: #3a7bd5;
    margin-bottom: 5px;
    border: 1px solid #e0e3e9;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.key-desc {
    font-size: 12px;
    color: #667283;
}

@media (max-width: 768px) {
    .shortcuts-list {
        gap: 10px;
    }
    
    .shortcut-item {
        min-width: calc(33% - 10px);
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .shortcut-item {
        min-width: calc(50% - 10px);
    }
}

/* 进度条样式 */
.progress-container {
    width: 100%;
    max-width: 640px;
    margin: 15px auto 0;
    display: flex;
    align-items: center;
    transition: opacity 0.5s ease;
}

.progress-container.fade-out {
    opacity: 0;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background-color: rgba(107, 93, 198, 0.15);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    width: 0%; /* 初始宽度 */
    background: linear-gradient(90deg, #3a7bd5 0%, #6d5dc6 100%);
    border-radius: 10px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* 更平滑的过渡 */
    box-shadow: 0 0 8px rgba(107, 93, 198, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.progress-text {
    margin-left: 15px;
    font-size: 14px;
    color: #6b5dc6;
    font-weight: 600;
    width: 45px;
    text-align: right;
}

.progress-status {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    text-align: center;
    font-style: italic;
    opacity: 0.8;
}

/* 禁用按钮样式 */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}



/* 优化进度条脉冲动画 */
@keyframes progress-pulse {
    0% {
        background-position: 0% 50%;
        filter: brightness(1);
    }
    50% {
        background-position: 100% 50%;
        filter: brightness(1.1);
    }
    100% {
        background-position: 0% 50%;
        filter: brightness(1);
    }
}

/* 进度条光泽效果 */
@keyframes progress-shine {
    0% { left: -100%; opacity: 0; }
    50% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

.progress-fill {
    background-size: 200% 200%;
    animation: progress-pulse 2.5s ease-in-out infinite;
}

/* 进度条光泽效果 */
.progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: progress-shine 2.5s infinite ease-in-out;
}

/* 进度条完成时的特殊效果 */
.progress-fill.completed {
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    animation: progress-complete 0.6s ease-out;
}

@keyframes progress-complete {
    0% {
        transform: scaleY(1);
        filter: brightness(1);
    }
    50% {
        transform: scaleY(1.1);
        filter: brightness(1.2);
    }
    100% {
        transform: scaleY(1);
        filter: brightness(1);
    }
}

/* 选项配置区域样式 */
.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin: 15px auto 20px;
    width: 95%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.option-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8f0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.option-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: #f8faff;
    border-color: #d1d9e6;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.card-header i {
    color: #4285f4;
    font-size: 14px;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin: 0;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.section-subtitle i {
    color: #6b5dc6;
    margin-right: 8px;
    font-size: 16px;
}

/* 平台选项样式 */
.platform-options {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

/* 语言选项样式 */
.language-options {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.platform-option {
    position: relative;
    flex: 1;
}

.language-option {
    position: relative;
    flex: 1;
}

.platform-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.language-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.platform-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 12px;
    text-align: center;
    width: 100%;
    min-height: 32px;
}

.language-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    user-select: none;
    font-size: 12px;
    text-align: center;
    width: 100%;
    min-height: 32px;
}

.platform-option label:hover {
    background: #e9ecef;
    border-color: #6c5ce7;
    transform: translateY(-1px);
}

.language-option label:hover {
    background: #e9ecef;
    border-color: #28a745;
    transform: translateY(-1px);
}

.platform-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    border-color: #6c5ce7;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.language-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.option-text {
    font-weight: 500;
}

.option-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 1px 4px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
}

.platform-option input[type="radio"]:checked + label .option-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* 模式选项样式 */
.mode-options {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.mode-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
    font-size: 12px;
    text-align: center;
    flex: 1;
    min-height: 32px;
}

.mode-option:hover {
    background: #e9ecef;
    border-color: #6c5ce7;
    transform: translateY(-1px);
}

.mode-option.active {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    border-color: #6c5ce7;
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.mode-option i {
    font-size: 12px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .options-container {
        grid-template-columns: 1fr;
        gap: 10px;
        margin: 12px auto 18px;
        width: 98%;
    }
}

/* 平板端适配 - 中等屏幕 */
@media (min-width: 769px) and (max-width: 1024px) {
    .options-container {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 10px;
        width: 98%;
    }

    .option-card {
        padding: 10px 12px;
        min-height: 75px;
    }

    .card-header h3 {
        font-size: 14px;
    }

    .radio-group {
        gap: 8px;
    }

    .radio-option {
        padding: 6px 12px;
        font-size: 13px;
    }
}

    .option-card {
        padding: 10px 14px;
        min-height: 65px;
    }

    .card-header h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .radio-group {
        gap: 6px;
    }

    .radio-option {
        padding: 6px 10px;
        font-size: 12px;
        border-radius: 16px;
    }

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .options-container {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 10px auto 15px;
        width: 100%;
        padding: 0 8px;
    }

    .option-card {
        padding: 8px 12px;
        min-height: 60px;
        border-radius: 8px;
    }

    .card-header h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .radio-group {
        gap: 4px;
        flex-wrap: wrap;
    }

    .radio-option {
        padding: 4px 8px;
        font-size: 11px;
        border-radius: 12px;
        min-width: auto;
        flex: 0 0 auto;
    }

    .card-header {
        margin-bottom: 8px;
    }

    .card-title {
        font-size: 14px;
    }

    .platform-options,
    .language-options,
    .mode-options {
        flex-direction: column;
        gap: 8px;
    }

    .platform-option label,
    .language-option label,
    .mode-option {
        padding: 8px 12px;
        font-size: 12px;
        min-height: 36px;
    }
}

/* 兑换卡密按钮 */
.btn-card-exchange {
    background: linear-gradient(135deg, #e8f0fd 0%, #d4e6ff 100%) !important;
    color: #3a7bd5 !important;
    border-color: #c9ddff !important;
}

.btn-card-exchange:hover {
    background: linear-gradient(135deg, #d9e7fc 0%, #c2dcff 100%) !important;
    border-color: #b1d0ff !important;
}

/* 充值按钮 */
.btn-recharge {
    background: linear-gradient(135deg, #e8f0fd 0%, #d4e6ff 100%) !important;
    color: #3a7bd5 !important;
    border-color: #c9ddff !important;
}

.btn-recharge:hover {
    background: linear-gradient(135deg, #d9e7fc 0%, #c2dcff 100%) !important;
    border-color: #b1d0ff !important;
}

/* 答疑客服按钮 */
.btn-help {
    background: linear-gradient(135deg, #e8f0fd 0%, #d4e6ff 100%) !important;
    color: #3a7bd5 !important;
    border-color: #c9ddff !important;
}

.btn-help:hover {
    background: linear-gradient(135deg, #d9e7fc 0%, #c2dcff 100%) !important;
    border-color: #b1d0ff !important;
}

/* 历史记录区域 */
.history-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 95%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-tabs {
    display: flex;
    gap: 10px;
}

.history-tab {
    padding: 8px 15px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.history-tab:hover {
    background-color: #f5f5f5;
}

.history-tab.active {
    background-color: #6c5ce7;
    color: #fff;
    border-color: #6c5ce7;
}

.history-content {
    position: relative;
    min-height: 200px;
}

.loading-history, .empty-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 200px;
    color: #888;
}

.loading-history i, .empty-history i {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ccc;
}

.empty-history p {
    font-size: 1.1em;
}

.text-history, .doc-history {
    width: 100%;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 历史记录项样式 */
.history-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.history-item-date {
    color: #666;
}

.history-item-type {
    display: flex;
    gap: 8px;
}

.history-item-type .type-tag {
    background-color: #6c5ce7;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.history-item-type .platform-tag {
    background-color: #0984e3;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.history-item-summary, .history-item-file {
    color: #333;
    margin-bottom: 12px;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.history-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-item-stats {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 13px;
}

.char-count, .expires-in {
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-view-detail, .btn-download {
    background-color: #6c5ce7;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-view-detail:hover, .btn-download:hover {
    background-color: #5341d6;
}

/* 历史记录详情模态框样式 */
.history-detail-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.history-detail-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
}

.info-label {
    font-weight: bold;
    width: 100px;
    color: #555;
}

.history-content-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.content-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.content-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 16px;
}

.text-content {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
}

.btn-copy {
    background-color: #0984e3;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}

.btn-copy:hover {
    background-color: #0769b5;
}

.btn-copy.copied {
    background-color: #00b894;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
}

/* 错误建议样式 */
.error-suggestions {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    text-align: left;
}

.error-suggestions h5 {
    color: #495057;
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
}

.error-suggestions h5 i {
    color: #ffc107;
    margin-right: 8px;
}

.error-suggestions ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
}

.error-suggestions li {
    margin-bottom: 8px;
    line-height: 1.4;
    font-size: 13px;
}

.error-suggestions li:last-child {
    margin-bottom: 0;
}

.error-suggestions strong {
    color: #007bff;
    font-weight: 600;
}

/* 添加处理结果隐私提示样式 */
.privacy-note {
    font-size: 0.85rem;
    color: #664d03;
    background-color: #fff3cd;
    padding: 5px 10px;
    border-radius: 4px;
    border-left: 3px solid #ffc107;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
    flex-shrink: 0;
    max-width: 60%;
}

.privacy-note i {
    color: #ffc107;
}

.result-content {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.6;
    font-size: 1rem;
    color: #333;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 增强段落显示效果，确保Word复制时识别段落 */
.result-content p {
    margin: 0 0 1.2em 0;
    line-height: 1.6;
    text-align: justify;
    text-indent: 0;
    display: block;
    padding: 0;
    border: 0;
}

.result-content p:last-child {
    margin-bottom: 0;
}

.result-content br {
    line-height: 1.6;
    display: inline;
}

/* 确保段落间距在复制时也能被识别 */
.result-content p + p {
    margin-top: 1.2em;
}

/* 支付套餐样式 */
.payment-packages {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-package {
    background-color: #f8f9fb;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

.payment-package:hover {
    border-color: #6b5dc6;
    box-shadow: 0 3px 10px rgba(107, 93, 198, 0.1);
}

.payment-package.selected {
    border-color: #6b5dc6;
    background-color: rgba(107, 93, 198, 0.05);
    box-shadow: 0 3px 10px rgba(107, 93, 198, 0.15);
}

.payment-package .package-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.payment-package .package-name {
    font-weight: 600;
    color: #333;
    font-size: 1.05rem;
}

.payment-package .package-price {
    color: #f54c4c;
    font-weight: bold;
    font-size: 1.05rem;
}

.payment-package .package-points {
    color: #6b5dc6;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.payment-package .package-points i {
    color: #6366f1;
    margin-right: 4px;
}

.payment-package .package-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-top: auto;
}

.payment-package .package-tag {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ff5252;
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.payment-methods {
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f8f9fb;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: #07c160;
}

.payment-method.selected {
    border-color: #6b5dc6;
    background-color: rgba(107, 93, 198, 0.05);
}

.payment-extra-options {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.payment-extra-options p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.qrcode-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background-color: #f8f9fb;
}

#payment-qrcode {
    margin: 10px 0;
}

.payment-hint {
    font-size: 0.9rem;
    color: #666;
    margin: 10px 0;
    text-align: center;
}

.payment-status {
    font-size: 0.9rem;
    color: #ff9800;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.payment-status i {
    font-size: 1rem;
}

.payment-info {
    background-color: #f0f4f8;
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 10px;
    text-align: center;
}

.payment-info p {
    margin: 5px 0;
    font-size: 1rem;
}

.payment-info span {
    font-weight: 600;
    color: #6b5dc6;
}

.payment-success {
    text-align: center;
    padding: 30px 20px;
}

.payment-success i {
    font-size: 3rem;
    color: #4caf50;
    margin-bottom: 15px;
    display: block;
}

.payment-success h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.payment-success p {
    margin: 5px 0;
    color: #666;
}

.payment-success p span {
    font-weight: 600;
    color: #6b5dc6;
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    .payment-packages {
        grid-template-columns: 1fr;
    }
}

/* 文档处理功能已启用 */

/* 模式按钮可以正常切换 */

/* 文档处理相关组件已启用 */

.doc-dropzone.dragover {
    background-color: rgba(107, 93, 198, 0.1);
    border-color: #6b5dc6;
}

/* 反馈模态框样式 */
#feedback-modal .modal-content {
    max-width: 600px;
    width: 90%;
}

.feedback-content {
    padding: 20px 0;
}

.feedback-intro {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef2ff 100%);
    border-radius: 10px;
    border: 1px solid #e1e8ff;
}

.feedback-intro i {
    font-size: 2.5rem;
    color: #6b5dc6;
    margin-bottom: 15px;
    display: block;
}

.feedback-intro p {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

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

#feedback-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #445366;
    font-size: 14px;
}

#feedback-form select,
#feedback-form input,
#feedback-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
}

#feedback-form select:focus,
#feedback-form input:focus,
#feedback-form textarea:focus {
    outline: none;
    border-color: #6b5dc6;
    box-shadow: 0 0 0 3px rgba(107, 93, 198, 0.1);
}

#feedback-form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #8a9ba8;
    margin-top: 5px;
}

.feedback-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

.feedback-buttons .btn {
    min-width: 120px;
    padding: 12px 24px;
    font-weight: 600;
}

.feedback-buttons .btn-secondary {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.feedback-buttons .btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.feedback-buttons .btn-primary {
    background: linear-gradient(135deg, #3a7bd5 0%, #6d5dc6 100%);
    color: white;
    border: none;
}

.feedback-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #3273c1 0%, #5c4eb2 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 93, 198, 0.3);
}

.feedback-buttons .btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 反馈按钮样式 */
.btn-feedback {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
}

.btn-feedback:hover {
    background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-feedback i {
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #feedback-modal .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .feedback-buttons {
        flex-direction: column;
    }
    
    .feedback-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .feedback-intro {
        padding: 15px;
    }
    
    .feedback-intro i {
        font-size: 2rem;
    }
}

/* ========================================
   📱 MOBILE OPTIMIZATION - 手机端优化
   ======================================== */

/* 超小屏幕设备优化 (iPhone SE, 小屏手机) */
@media (max-width: 480px) {
    /* 全局调整 */
    body {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* 头部区域紧凑化 */
    .header {
        padding: 8px 15px;
        flex-direction: column;
        gap: 8px;
        position: relative;
    }
    
    .logo-container {
        width: 100%;
        justify-content: center;
    }
    
    .logo img {
        height: 32px;
        margin-right: 8px;
    }
    
    .logo-text {
        font-size: 20px;
        margin-right: 6px;
    }
    
    .logo-subtitle {
        font-size: 12px;
    }
    
    .user-info {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .points-display {
        justify-content: center;
        padding: 6px 12px;
        font-size: 13px;
    }

    /* 移动端积分和邀请按钮样式 */
    .nav-points {
        padding: 6px 12px;
        font-size: 13px;
    }

    .btn-invite {
        padding: 6px 12px !important;
        font-size: 13px !important;
        margin-left: 8px !important;
    }

    .btn-invite i {
        margin-right: 4px !important;
        font-size: 13px !important;
    }
    
    .header-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .header-buttons .btn {
        padding: 6px 10px;
        font-size: 12px;
        text-align: center;
    }
    
    /* 通知栏优化 */
    .notification-bar {
        padding: 8px 15px;
        font-size: 12px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .scrolling-notification-bar .notification-content {
        padding: 8px 10px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .scrolling-notification-bar .notification-controls {
        flex-direction: row;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .scrolling-notification-bar .notification-text {
        font-size: 12px;
        text-align: center;
    }

    .scrolling-notification-bar .notification-indicator {
        position: static;
        transform: none;
        margin-top: 5px;
        text-align: center;
    }

    .scrolling-notification-bar .keyboard-hint {
        display: none; /* 移动端隐藏键盘提示 */
    }
    
    /* 主内容区域 */
    .main-content {
        padding: 0 8px;
        margin-top: 10px;
    }
    
    /* 功能卡片优化 */
    .features-container {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 15px;
        padding: 0 10px;
    }

    .feature-card {
        padding: 12px 10px;
        margin: 0;
        min-height: 100px;
    }
    
    .feature-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .feature-title {
        font-size: 14px;
        margin-bottom: 4px;
    }
    
    .feature-desc {
        font-size: 11px;
        line-height: 1.4;
        margin-bottom: 6px;
    }
    
    .feature-price {
        font-size: 12px;
    }
    

    
    /* 文本处理区域优化 */
    .text-processing-area {
        padding: 15px 12px;
        gap: 15px;
        margin-bottom: 15px;
    }

    .doc-processing-area {
        padding: 15px 12px;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .section-title i {
        font-size: 16px;
    }
    
    /* 输入框优化 */
    #input-text {
        height: 180px;
        font-size: 14px;
        padding: 10px;
        line-height: 1.4;
    }
    
    .text-count {
        margin-top: 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .character-count, #estimated-points {
        font-size: 12px;
    }
    
    /* 输出区域优化 */
    .output-container {
        height: 180px;
        font-size: 14px;
        padding: 10px;
        line-height: 1.4;
    }
    
    .privacy-note {
        font-size: 11px;
        padding: 6px 8px;
        margin-top: 8px;
    }
    
    /* 按钮优化 */
    .btn {
        padding: 10px 15px;
        font-size: 13px;
        min-height: 44px; /* iOS推荐的最小触摸目标 */
    }
    
    .btn-large {
        padding: 12px 20px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .btn i {
        margin-right: 6px;
        font-size: 14px;
    }
    
    .processing-buttons {
        margin-bottom: 15px;
    }
    
    #start-processing {
        width: 100%;
        padding: 12px 20px;
        font-size: 15px;
        font-weight: 600;
    }
    
    .processing-tip {
        font-size: 11px;
        text-align: center;
        margin-top: 8px;
        padding: 8px;
    }
    
    .output-buttons {
        margin-top: 10px;
        justify-content: center;
    }
    
    #clear-btn, #copy-btn {
        min-width: 100px;
        padding: 8px 12px;
    }
    
    /* 页脚样式已移至index.html内联样式中，包含完整的响应式设计 */
    
    /* 模态框优化 */
    .modal-content {
        width: 95%;
        max-width: none;
        margin: 10px auto;
        padding: 15px;
        border-radius: 10px;
    }
    
    .modal h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .close-modal {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    
    /* 表单优化 */
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
        border-radius: 6px;
        min-height: 44px;
    }
    
    /* 标签页优化 */
    .tabs {
        margin-bottom: 15px;
    }
    
    .tab {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
        flex: 1;
        text-align: center;
    }
    
    /* 通知优化 */
    .notification {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
        padding: 12px 15px;
        font-size: 13px;
    }
    
    /* 充值选项优化 */
    .recharge-options {
        gap: 8px;
    }
    
    .recharge-option {
        padding: 12px 8px;
        flex-direction: column;
        text-align: center;
    }
    
    /* 卡密兑换优化 */
    .card-types {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 15px 0;
    }
    
    .card-type {
        padding: 8px 4px;
        font-size: 12px;
    }
    
    .card-type .type {
        font-size: 12px;
    }
    
    .card-type .value {
        font-size: 11px;
    }
    
    /* 支付相关优化 */
    .payment-packages {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .payment-package {
        padding: 12px;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 10px;
    }
    
    .payment-method {
        padding: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .qrcode-container {
        padding: 15px;
    }
    
    #payment-qrcode {
        width: 200px !important;
        height: 200px !important;
    }
    
    /* 反馈模态框优化 */
    .feedback-intro {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .feedback-intro i {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .feedback-intro p {
        font-size: 13px;
    }
    
    .feedback-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    
    .feedback-buttons .btn {
        width: 100%;
        min-width: auto;
        padding: 12px;
    }
    
    /* 帮助内容优化 */
    .help-content {
        padding: 10px 0;
    }

    /* 移动端二维码优化 */
    .wechat-qr-container {
        margin: 20px 0 10px 0;
        padding: 20px;
    }

    .wechat-qr-image {
        width: 180px;
        height: 180px;
    }

    .wechat-contact-compact {
        padding: 10px 15px;
        margin: 8px 0;
        gap: 8px;
    }

    .wechat-contact-compact i {
        font-size: 20px;
    }

    .wechat-contact-compact .wechat-id {
        font-size: 14px;
    }

    .wechat-contact {
        padding: 12px;
        margin: 15px 0;
    }

    .wechat-id {
        font-size: 16px;
        margin-top: 8px;
    }

    .help-tip {
        font-size: 12px;
        margin-top: 8px;
    }

    /* 移动端联系方式弹窗优化 */
    .contact-qr-section .wechat-qr-container {
        margin: 15px auto;
        padding: 15px;
        max-width: 240px;
    }

    .contact-qr-section .wechat-qr-image {
        width: 160px;
        height: 160px;
    }

    .contact-qr-section .wechat-contact-compact {
        margin: 10px auto;
        max-width: 200px;
        padding: 8px 12px;
    }
    
    /* 用户中心优化 */
    .user-center-content {
        padding: 5px 0;
    }
    
    .info-item {
        padding: 10px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-label {
        width: auto;
        font-size: 12px;
    }
    
    /* 登录相关优化 */
    .wechat-login-section {
        padding: 10px 5px;
    }

    .login-qrcode-container {
        min-width: 160px;
    }

    /* 移动端折叠按钮优化 */
    .traditional-login-toggle {
        padding: 10px 15px;
        font-size: 13px;
    }

    .traditional-login-form-wrapper.expanded {
        max-height: 350px;
        min-height: 160px;
    }
    
    .qr-loading {
        height: 160px;
    }
    
    .new-user-reward {
        font-size: 12px;
        padding: 8px 10px;
        margin-top: 15px;
    }
    
    /* 滚动条优化 */
    ::-webkit-scrollbar {
        width: 4px;
    }
    
    ::-webkit-scrollbar-thumb {
        border-radius: 2px;
    }
}

/* 极小屏幕优化 (小于 380px) */
@media (max-width: 380px) {
    .logo-text {
        font-size: 18px;
    }
    
    .logo-subtitle {
        font-size: 11px;
    }
    
    .feature-card {
        padding: 10px 8px;
    }
    
    .feature-title {
        font-size: 13px;
    }
    
    .feature-desc {
        font-size: 10px;
    }
    
    .text-processing-area {
        padding: 12px 8px;
    }

    .doc-processing-area {
        padding: 12px 8px;
    }
    
    #input-text, .output-container {
        height: 160px;
        font-size: 13px;
        padding: 8px;
    }
    
    .modal-content {
        padding: 12px;
        margin: 5px auto;
    }
    
    .btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .btn-large {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* 小屏幕邀请按钮优化 */
    .btn-invite {
        padding: 6px 10px !important;
        font-size: 12px !important;
        margin-left: 6px !important;
    }

    /* 超小屏幕只显示图标 */
    @media (max-width: 400px) {
        .btn-invite {
            padding: 6px 8px !important;
            min-width: auto !important;
        }

        .btn-invite .btn-text {
            display: none;
        }

        .btn-invite i {
            margin-right: 0 !important;
        }
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 6px 15px;
    }
    
    .text-processing-area {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .doc-processing-area {
        gap: 15px;
    }
    
    #input-text, .output-container {
        height: 120px;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* 触摸设备优化 */
@media (pointer: coarse) {
    .btn, .tab, .platform-option, .language-option, .feature-card {
        min-height: 44px;
    }
    
    .close-modal {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    
    /* 增加点击区域 */
    .header-buttons .btn {
        padding: 10px 12px;
    }
}

/* 减少动画以提升性能 */
@media (max-width: 480px) {
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .feature-card:hover {
        transform: none;
    }
}

/* 确保在移动端的可访问性 */
@media (max-width: 768px) {
    /* 增强对比度 */
    .btn-primary {
        background: linear-gradient(135deg, #2c5aa0 0%, #5a4fb5 100%);
    }
    
    /* 确保文字清晰 */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* 优化输入框在iOS上的表现 */
    input, textarea, select {
        appearance: none;
        -webkit-appearance: none;
        border-radius: 6px;
    }
    
    /* 防止iOS缩放 */
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* 活动截止提醒特殊样式 */
.promotion-alert {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.promotion-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.promotion-alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.3) !important;
    border-color: #ff3742 !important;
}

.promotion-alert .info-item-title {
    text-shadow: 0 1px 2px rgba(255, 71, 87, 0.2);
}

/* 活动提醒响应式设计 */
@media (max-width: 768px) {
    .promotion-alert .info-item-content p {
        font-size: 0.9rem;
        margin-bottom: 4px;
    }

    .promotion-alert .info-item-title {
        font-size: 0.95rem;
    }
}

/* ================================
   旗舰套餐特殊样式设计
   ================================ */

/* 旗舰套餐主体样式 */
.package-card.flagship-special {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border: 3px solid #ffd700;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
    transform: scale(1.02);
    z-index: 10;
}

/* 旗舰套餐头部布局优化 */
.package-card.flagship-special .package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* 顶部对齐 */
    margin-bottom: 10px;
    gap: 8px; /* 添加间距 */
}

/* 旗舰套餐价格容器优化 */
.package-card.flagship-special .package-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0; /* 防止价格区域被压缩 */
}

/* 旗舰套餐钻石图标 */
.package-card.flagship-special::before {
    content: '💎';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    animation: sparkle 2s infinite;
    z-index: 2;
}

/* 旗舰套餐闪烁动画 */
@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2) rotate(180deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.1) rotate(270deg);
        opacity: 0.8;
    }
}

/* 旗舰套餐光泽效果 */
.package-card.flagship-special::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer-flagship 3s infinite;
    z-index: 1;
}

@keyframes shimmer-flagship {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* 旗舰套餐悬停效果 */
.package-card.flagship-special:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 215, 0, 0.6);
    border-color: #ffb700;
}

/* 旗舰套餐标题样式 */
.package-card.flagship-special .package-name,
.package-card.flagship-special h4 {
    color: #b8860b;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(184, 134, 11, 0.3);
    font-size: 1.1em; /* 稍微减小字体以确保在一行显示 */
    white-space: nowrap; /* 防止换行 */
    overflow: hidden;
    text-overflow: ellipsis; /* 如果太长则显示省略号 */
}

/* 旗舰套餐价格样式 */
.package-card.flagship-special .current-price {
    color: #b8860b;
    font-weight: 900;
    font-size: 1.7em; /* 稍微减小当前价格字体 */
    text-shadow: 0 2px 4px rgba(184, 134, 11, 0.3);
    line-height: 1.2; /* 调整行高 */
}

.package-card.flagship-special .original-price {
    color: #8b7355;
    text-decoration: line-through;
    font-weight: 500;
    font-size: 0.75em; /* 减小原价字体大小 */
    margin-left: 4px;
}

/* 旗舰套餐标签特殊样式 */
.package-card.flagship-special .package-badge {
    background: linear-gradient(45deg, #ff6b6b, #ffd93d, #ff6b6b);
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: badge-glow 2s infinite alternate;
}

@keyframes badge-glow {
    0% { box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
    100% { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4); }
}

/* 旗舰套餐积分显示 */
.package-card.flagship-special .package-points,
.package-card.flagship-special .points-amount {
    color: #b8860b;
    font-weight: 700;
    font-size: 1.1em;
}

/* 旗舰套餐描述文字 */
.package-card.flagship-special .package-description {
    color: #8b7355;
    font-weight: 600;
    font-style: italic;
}

/* 旗舰套餐响应式设计 */
@media (max-width: 768px) {
    .package-card.flagship-special {
        transform: scale(1.01);
    }

    .package-card.flagship-special:hover {
        transform: scale(1.03);
    }

    .package-card.flagship-special::before {
        font-size: 24px;
        top: 10px;
        right: 10px;
    }

    .package-card.flagship-special .package-name,
    .package-card.flagship-special h4 {
        font-size: 1.0em; /* 移动端进一步减小字体 */
        white-space: nowrap;
    }

    .package-card.flagship-special .current-price {
        font-size: 1.4em; /* 移动端减小当前价格字体 */
    }

    .package-card.flagship-special .original-price {
        font-size: 0.7em; /* 移动端进一步减小原价字体 */
    }
}
