/* 禅释 · 此刻 - 模式选择页面对称设计 */

/* ========================================
   深色模式适配
   ======================================== */
[data-theme="dark"] #mode-screen {
    background: linear-gradient(160deg, var(--zen-cream) 0%, #2D2924 50%, #1D1914 100%);
}

[data-theme="dark"] .mode-subtitle {
    color: var(--zen-gray);
}

[data-theme="dark"] .mode-btn {
    background: var(--zen-white);
}

[data-theme="dark"] .mode-btn-content h3 {
    color: var(--zen-dark);
}

[data-theme="dark"] .mode-btn-content p {
    color: var(--zen-gray);
}

[data-theme="dark"] .guest-mode .mode-note {
    background: rgba(232, 200, 124, 0.15);
    color: #C8A87A;
}

[data-theme="dark"] .register-mode .mode-note {
    background: rgba(124, 184, 124, 0.12);
    color: #8BC88B;
}

[data-theme="dark"] .mode-hint {
    color: var(--zen-gray);
}

[data-theme="dark"] .divider-text {
    color: var(--zen-gray);
}

[data-theme="dark"] .divider-line {
    background: var(--zen-beige);
}

/* ========================================
   登录按钮 - 参考首页"进入"按钮风格
   ======================================== */

.login-section {
    width: 100%;
    margin-top: 16px;
}

.login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--zen-beige);
}

.divider-text {
    font-size: 12px;
    color: var(--zen-gray);
    opacity: 0.6;
}

/* 登录按钮 - 与首页"进入"按钮一致 */
.btn-login-primary {
    width: 100%;
    padding: 16px 32px;
    background: var(--zen-brown);
    color: var(--zen-white);
    border: none;
    border-radius: var(--radius-xl);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    letter-spacing: 2px;
}

.btn-login-primary:hover {
    background: var(--zen-gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-login-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

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

/* ========================================
   模式选择页面 - 对称双卡片设计
   ======================================== */

#mode-screen {
    background: linear-gradient(160deg, var(--zen-cream) 0%, #EDE8DC 50%, #E5DFD0 100%);
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.mode-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 380px;
    width: 100%;
}

.mode-zen-circle {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
}

.mode-zen-circle .zen-inner {
    width: 80px;
    height: 80px;
}

.mode-zen-circle .zen-symbol-img {
    width: 40px;
    height: 40px;
}

.mode-title {
    font-size: 36px;
    letter-spacing: 10px;
    margin-bottom: 6px;
}

.mode-subtitle {
    font-size: 16px;
    letter-spacing: 4px;
    margin-bottom: 40px;
    color: var(--zen-gray);
}

/* 对称双卡片容器 - 水平排列 */
.mode-options {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

/* 统一卡片基础样式 */
.mode-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 16px 24px;
    background: var(--zen-white);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

/* 顶部装饰条 */
.mode-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--zen-beige);
    transition: var(--transition-normal);
}

.mode-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.mode-btn:active {
    transform: translateY(-2px);
}

/* 图标区域 - 统一大小 */
.mode-btn-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: transparent;
    transition: var(--transition-normal);
    overflow: hidden;
}

.mode-btn:hover .mode-btn-icon {
    transform: scale(1.1);
    border-color: var(--zen-beige);
}

/* 图标图片样式 */
.mode-icon-img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

/* Emoji 图标样式 */
.mode-emoji {
    font-size: 40px;
    line-height: 1;
}

/* 内容区域 */
.mode-btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: center;
}

.mode-btn-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--zen-dark);
    letter-spacing: 2px;
}

.mode-btn-content p {
    font-size: 13px;
    color: var(--zen-gray);
    line-height: 1.5;
}

/* 标签样式 */
.mode-note {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    margin-top: 8px;
    font-weight: 500;
    display: inline-block;
}

/* 访客模式 - 淡雅风格 */
.guest-mode::before {
    background: var(--zen-beige);
}

.guest-mode .mode-btn-icon {
    background: transparent;
}

.guest-mode .mode-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.guest-mode .mode-note {
    background: rgba(232, 200, 124, 0.2);
    color: #B8956A;
}

/* 注册模式 - 强调风格 */
.register-mode::before {
    background: var(--zen-brown);
}

.register-mode {
    border-color: rgba(139, 115, 85, 0.15);
}

.register-mode .mode-btn-icon {
    background: transparent;
}

.register-mode .mode-note {
    background: rgba(124, 184, 124, 0.15);
    color: var(--success);
}

/* 推荐标签 */
.recommend-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--zen-brown);
    color: var(--zen-white);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: var(--radius-xl);
    letter-spacing: 1px;
    font-weight: 500;
    z-index: 2;
}

/* 底部提示 */
.mode-hint {
    font-size: 13px;
    color: var(--zen-gray);
    opacity: 0.7;
    letter-spacing: 1px;
}

.privacy-note {
    margin-top: 12px;
    font-size: 11px;
    color: var(--zen-gray);
    opacity: 0.5;
    text-align: center;
}

/* 响应式调整 */
@media (max-width: 380px) {
    .mode-options {
        gap: 12px;
    }
    
    .mode-btn {
        padding: 24px 12px 20px;
        min-height: 200px;
    }
    
    .mode-btn-icon {
        width: 64px;
        height: 64px;
    }
    
    .mode-emoji {
        font-size: 32px;
    }
    
    .mode-btn-content h3 {
        font-size: 16px;
    }
}
