/* =====================================================
   卡密验证系统 - 前端样式
   ===================================================== */

:root {
    --primary-blue: #2196F3;
    --primary-dark: #1976D2;
    --bg-light: #e8f4fc;
    --bg-white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --warning-red: #e53935;
    --warning-bg: #fff3e0;
    --success-green: #4caf50;
    --border-color: #e0e0e0;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #e1f5fe 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    min-height: 100vh;
}

/* 页面切换 */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* 验证页面卡片 */
.card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.card-header h1 {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.card-body {
    padding: 24px 20px;
}

.input-label {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 500;
}

.input-field {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

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

/* 错误信息 */
.error-message {
    background: #ffebee;
    border-left: 4px solid var(--warning-red);
    padding: 12px 16px;
    margin-top: 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 14px;
    color: var(--warning-red);
}

.attempts-warning {
    background: #fff8e1;
    border-left: 4px solid #ff9800;
    padding: 12px 16px;
    margin-top: 12px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    color: #e65100;
}

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* 管理后台链接 */
.admin-link {
    text-align: center;
    margin-top: 24px;
}

.admin-link a {
    color: var(--text-light);
    font-size: 13px;
    text-decoration: none;
}

.admin-link a:hover {
    color: var(--primary-blue);
    text-decoration: underline;
}

/* 商品详情页面 */
.product-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    padding: 16px 20px;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -16px -16px 0 -16px;
    width: calc(100% + 32px);
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.back-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.product-header h1 {
    flex: 1;
    color: white;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    margin-right: 36px;
}

.product-content {
    background: var(--bg-white);
    padding: 16px;
    margin: 0 -16px;
}

/* 状态卡片 */
.status-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    color: white;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
}

/* 所有卡密类型统一使用紫色渐变 */

.status-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* 倒计时区域 */
.countdown-section {
    text-align: center;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.85;
    margin-bottom: 10px;
}

.countdown-icon {
    width: 14px;
    height: 14px;
}

.countdown-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 42px;
}

.countdown-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.countdown-unit {
    font-size: 10px;
    opacity: 0.75;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.countdown-separator {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.5;
    margin-top: -10px;
}

.expire-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
}

/* 状态信息区域 */
/* 顶部状态栏 */
.top-status-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18);
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

.status-badge.status-warning .status-dot {
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
}

.status-badge.status-danger .status-dot {
    background: #f87171;
    box-shadow: 0 0 8px #f87171;
    animation: none;
}

/* 单次使用时间倒计时 */
.session-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    background: rgba(255,255,255,0.1);
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.session-main {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-label {
    font-size: 14px;
}

.session-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.session-tip {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 8px;
    text-align: center;
}

/* 使用次数信息 */
.usage-info-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    padding: 8px 14px;
    border-radius: 14px;
}

.usage-divider {
    opacity: 0.4;
}

.remaining-highlight {
    font-weight: 700;
    font-size: 14px;
    color: #4ade80;
}

.next-access-highlight {
    font-weight: 700;
    color: #fbbf24;
}

/* 状态提示 */
.status-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.status-tip svg {
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

/* 永久有效徽章 */
.forever-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 0;
}

.forever-badge svg {
    opacity: 0.9;
    width: 20px;
    height: 20px;
}

.forever-badge span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 文档内容区域 */
.document-content {
    padding: 16px 0;
    font-size: 15px;
    line-height: 1.8;
}

.document-content h1,
.document-content h2,
.document-content h3 {
    margin: 24px 0 16px;
    color: var(--text-dark);
}

.document-content h1 {
    font-size: 22px;
}

.document-content h2 {
    font-size: 18px;
}

.document-content h3 {
    font-size: 16px;
}

.document-content p {
    margin-bottom: 16px;
}

.document-content ul,
.document-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.document-content li {
    margin-bottom: 8px;
}

.document-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.document-content img:hover {
    transform: scale(1.02);
}

.document-content a {
    color: var(--primary-blue);
    text-decoration: none;
}

.document-content a:hover {
    text-decoration: underline;
}

/* 链接预览卡片 - 类似飞书风格 */
.link-preview-embed {
    margin: 16px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    background: #fafafa;
}

.link-preview-embed:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow);
}

.link-preview-embed .link-preview-card {
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
}

.link-preview-embed .lp-image {
    width: 140px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e0e0e0;
}

.link-preview-embed .lp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-preview-embed .lp-content {
    flex: 1;
    padding: 12px 16px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-preview-embed .lp-site {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 6px;
}

.link-preview-embed .lp-favicon {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.link-preview-embed .lp-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-preview-embed .lp-desc {
    font-size: 13px;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

/* 旧版简单链接预览（兼容） */
.link-preview-card {
    display: block;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 16px 0;
    text-decoration: none;
    background: #fafafa;
    transition: all 0.2s ease;
}

.link-preview-card:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--shadow);
}

.link-preview-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.link-preview-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.link-preview-url {
    font-size: 12px;
    color: var(--text-light);
}

/* 移动端适配 */
@media (max-width: 480px) {
    .link-preview-embed .link-preview-card {
        flex-direction: column;
    }
    
    .link-preview-embed .lp-image {
        width: 100%;
        height: 160px;
    }
}

/* 视频嵌入 */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    margin: 16px 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 网页嵌入容器 - 前端展示 */
.embed-container {
    margin: 16px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.embed-container:hover {
    border-color: var(--primary-blue);
}

.embed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f5f5f5;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    flex-shrink: 0;
}

.embed-url {
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 8px;
}

.embed-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.embed-open-btn {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.embed-open-btn:hover {
    background: rgba(33, 150, 243, 0.1);
}

/* 前端隐藏删除按钮和调节手柄 */
.embed-delete-btn,
.embed-resize-handle,
.embed-size-label {
    display: none;
}

.embed-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fff;
    display: block;
}

/* 附件区域 */
.attachments-section {
    margin: 24px 0;
    padding-top: 16px;
    border-top: 1px dashed var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-blue);
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.attachment-item:hover {
    border-color: var(--primary-blue);
}

.attachment-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.attachment-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.attachment-info {
    flex: 1;
}

.attachment-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.attachment-size {
    font-size: 12px;
    color: var(--text-light);
}

.attachment-download {
    padding: 8px 16px;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.attachment-download:hover {
    background: var(--primary-dark);
}

/* 底部提示 */
.footer-notice {
    text-align: center;
    padding: 20px 0;
    border-top: 1px dashed var(--border-color);
    margin-top: 20px;
}

.footer-notice p {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.view-count {
    font-size: 11px;
    color: var(--text-light);
}

.link-blue {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
}

.link-blue:hover {
    text-decoration: underline;
}

/* Toast 提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

/* 模态框 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius);
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.link-preview-content {
    padding: 24px;
    min-width: 320px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.image-preview-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview-content img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
}

/* 加载状态 */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 响应式调整 */
@media (max-width: 360px) {
    .container {
        padding: 12px;
    }
    
    .card-header h1,
    .product-header h1 {
        font-size: 15px;
    }
}

/* 卡密类型提示弹窗 */
.card-type-modal-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    color: white;
    max-width: 320px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.card-type-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-type-modal-icon svg {
    width: 32px;
    height: 32px;
}

.card-type-modal-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.card-type-modal-tip {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 24px;
    text-align: center;
}

.card-type-modal-btn {
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.card-type-modal-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* 所有卡密类型弹窗统一使用紫色渐变 */

/* 文档内容倒计时遮罩 */
.document-content-wrapper {
    position: relative;
}

.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    min-height: 300px;
}

.countdown-overlay-content {
    text-align: center;
    color: white;
    padding: 40px 20px;
}

.countdown-overlay-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.countdown-overlay-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.countdown-overlay-timer {
    font-family: 'JetBrains Mono', monospace;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.countdown-overlay-tip {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
    text-align: center;
}

/* 卡密冻结弹窗 */
.frozen-modal-content {
    position: relative;
    background: linear-gradient(135deg, #6b7280 0%, #374151 100%);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    color: white;
    max-width: 320px;
    box-shadow: 0 20px 60px rgba(107, 114, 128, 0.5);
    animation: modalSlideIn 0.3s ease;
}

.frozen-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.frozen-modal-icon svg {
    width: 32px;
    height: 32px;
    color: #fbbf24;
}

.frozen-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.frozen-modal-message {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 24px;
    text-align: center;
}

.frozen-modal-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.frozen-modal-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-2px);
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #01579b 100%);
    }
}

/* 会话结束弹窗 */
#session-end-modal {
    align-items: center;
    justify-content: center;
}

.session-end-modal-content {
    position: relative;
    z-index: 1001;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    color: white;
    max-width: 320px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
    animation: modalSlideIn 0.3s ease;
}

.session-end-icon {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.session-end-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.session-end-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.session-end-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.session-end-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
