:root {
    --primary-color: #58CC02;
    --secondary-color: #1CB0F6;
    --warning-color: #FF5252;
    --text-primary: #2D3748;
    --text-secondary: #718096;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 60px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 2rem 0;
    position: relative;
}

.logo {
    width: 240px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo-hidden {
    display: none;
}

.logo:hover {
    transform: scale(1.05);
}

/* 警告横幅 */
.alert-banner {
    background: var(--warning-color);
    color: white;
    padding: 12px 20px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-banner-text {
    text-align: center;
    flex-grow: 1;
}

/* 语言切换器样式 */
.language-switcher {
    display: flex;
    gap: 8px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lang-button {
    padding: 4px 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.lang-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.lang-button.active {
    background: rgba(255, 255, 255, 0.4);
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* 输入区域 */
.input-group {
    max-width: 480px;
    margin: 0 auto 2rem;
    transition: var(--transition);
}

/* 固定在底部的输入区域样式 */
.input-group.fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 15px;
    z-index: 100;
    max-width: 100%;
    border-top: 1px solid #E2E8F0;
}

/* 固定状态下的内部容器 */
.input-group.fixed .input-container {
    max-width: 480px;
    margin: 0 auto;
}

/* 登录方式选项卡 */
.login-tabs {
    display: flex;
    gap: 6px;
    max-width: 480px;
    margin: 0 auto 1.25rem;
    background: #F1F5F9;
    padding: 5px;
    border-radius: 12px;
}

.login-tab {
    flex: 1;
    padding: 10px 4px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.login-tab.active {
    background: #FFFFFF;
    color: var(--primary-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* 登录方式内容面板 */
.login-pane {
    display: none;
    max-width: 480px;
    margin: 0 auto;
}

.login-pane.active {
    display: block;
}

/* 短信验证码一行：输入框 + 发送按钮 */
.sms-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.sms-row .input-field {
    flex: 1;
}

.sms-row .secondary-button {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 14px 18px;
    margin-bottom: 1rem;
}

.input-field {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 16px;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(88, 204, 2, 0.2);
}

/* 按钮样式 */
.cta-button {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-button:hover {
    background: #4BB501;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 次要按钮样式 */
.secondary-button {
    padding: 10px 20px;
    background: transparent;
    color: var(--secondary-color);
    border: 1.5px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secondary-button:hover {
    background: rgba(28, 176, 246, 0.1);
    border-color: #1890D5;
    color: #1890D5;
}

.secondary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 提示文本样式 */
.hint-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.hint-text-icon {
    display: inline-block;
    margin-right: 4px;
}

/* 教程引导提示 */
.tutorial-guide {
    text-align: center;
    margin: 2rem auto 1rem;
    padding: 1.2rem 1.5rem;
    max-width: 600px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.tutorial-guide:hover {
    opacity: 0.7;
}

.tutorial-guide-text {
    font-size: 14px;
    color: #64748B;
    font-weight: 500;
    margin-bottom: 4px;
}

.tutorial-guide-arrow {
    font-size: 13px;
    color: #94A3B8;
}

/* 教程部分 */
.tutorial-section {
    margin-top: 2rem;
    padding: 2.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    position: relative;
    scroll-margin-top: 20px;
}

.tutorial-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.tutorial-title-icon {
    font-size: 28px;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 20px;
}

.tutorial-step {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.tutorial-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tutorial-step p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tutorial-image {
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tutorial-image:hover {
    transform: scale(1.02);
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

/* 加载动画 */
.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #EEE;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .logo {
        width: 200px;
    }
    
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
    
    .language-switcher {
        position: static;
        justify-content: center;
        margin-top: 8px;
        transform: none;
    }
    
    .alert-banner {
        flex-direction: column;
        padding: 12px;
    }
    
    .alert-banner-text {
        margin-bottom: 8px;
    }
    
    /* 响应式下固定输入框的样式调整 */
    .input-group.fixed {
        padding: 10px;
    }
}

/* 链接悬停效果 */
a[onclick="showWechat()"]:hover {
    text-decoration: underline;
    opacity: 0.9;
}

/* 微信弹窗样式 */
#wechatModal .modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
}

/* 为固定输入框腾出空间的占位符 */
.input-group-placeholder {
    display: none;
    height: 0;
    transition: height 0.3s ease;
}

.input-group-placeholder.active {
    display: block;
}

/* 状态信息增强样式 */
.status-container {
    max-width: 480px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.status-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.status-info {
    margin-bottom: 0.8rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.status-info:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.copy-button {
    background: none;
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: rgba(28, 176, 246, 0.1);
}

.copy-button:active {
    transform: scale(0.95);
}

.status-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--warning-color);
    text-align: center;
}

.status-info-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.status-info-value {
    color: var(--text-primary);
}

.status-error {
    color: var(--warning-color);
    text-align: center;
    font-weight: 600;
}

.hidden {
    display: none;
}

/* 全屏加载层样式 */
.page-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.page-loading .loader {
    margin-bottom: 1rem;
}

.page-loading.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 确保主内容在加载时不可见 */
.main-content {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-content.visible {
    opacity: 1;
}
