:root {
    --primary: #1a73e8;
    --primary-dark: #0056b3;
    --text-dark: #333;
    --text-light: #666;
    --gray-light: #f5f7fa;
    --border-color: #e0e0e0;
    --success: #28a745;
    --error: #dc3545;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #e0eafc, #cfdef3);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    margin: 20px;
}

.content-area {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-area {
    flex: 1;
    background: linear-gradient(135deg, #1a73e8, #0056b3);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-area h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-area p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background-color: var(--gray-light);
    border-radius: 8px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 18px;
}

.feature-text h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: var(--text-dark);
}

.feature-text p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-title h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.form-title p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-dark);
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

.verification-group {
    display: flex;
    gap: 10px;
}

.verification-group input {
    flex: 1;
}

.verification-group button {
    padding: 0 15px;
    background-color: var(--gray-light);
    color: var(--primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.verification-group button:hover {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.verification-group button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--primary-dark);
}

.form-info {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-light);
}

.form-info a {
    color: var(--primary);
    text-decoration: none;
}

.form-info a:hover {
    text-decoration: underline;
}

.testimonial {
    background-color: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 10px;
}

.testimonial-author {
    font-weight: bold;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-light);
    position: relative;
}

.tab.active {
    color: var(--primary);
    font-weight: 500;
}

.tab.active:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: slideIn 0.3s;
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.close:hover {
    color: #333;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
    .container {
        flex-direction: column;
    }

    .hero-area {
        display: none;
    }

    .content-area {
        padding: 30px 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== 隐私政策弹窗 - 优化版 ==================== */
.privacy-modal {
    display: none; /* 核心修复：默认必须是隐藏的，防止页面忽闪 */
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privacy-modal.show {
    opacity: 1;
}

.privacy-modal-content {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-modal.show .privacy-modal-content {
    transform: translateY(0);
}

/* 头部设计 - 简洁现代 */
.privacy-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
}

.privacy-header-title {
    display: flex;
    flex-direction: column;
}

.privacy-header-title h2 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 700;
}

.privacy-header-title span {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.privacy-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 24px;
    line-height: 0;
    padding-bottom: 4px;
}

.privacy-close-btn:hover {
    background: #e0e0e0;
    color: #333;
    transform: rotate(90deg);
}

/* 内容滚动区 - 纸张质感 */
.privacy-scroll {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    background-color: #fafafa;
}

.privacy-body-inner {
    padding: 30px 40px;
    max-width: 700px;
    margin: 0 auto;
}

/* 滚动条美化 */
.privacy-scroll::-webkit-scrollbar {
    width: 6px;
}
.privacy-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.privacy-scroll::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 3px;
}
.privacy-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #9ca3af;
}

/* 章节样式 */
.privacy-section {
    margin-bottom: 30px;
    background: #fff;
}

.privacy-section h3 {
    display: flex;
    align-items: center;
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

/* 序号样式 */
.section-number {
    background-color: rgba(26, 115, 232, 0.1);
    color: var(--primary);
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 6px;
    margin-right: 10px;
}

.privacy-section p, .privacy-section li {
    font-size: 15px;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 10px;
    text-align: justify;
}

.privacy-section ul {
    padding-left: 24px;
    margin: 10px 0;
}

.privacy-section li {
    list-style-type: none;
    position: relative;
    margin-bottom: 8px;
}

/* 自定义列表圆点 */
.privacy-section li::before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: -18px;
    top: 0;
}

/* 底部联系卡片 */
.contact-card {
    background: linear-gradient(to right, #f8f9fa, #fff);
    border: 1px solid #e9ecef;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.contact-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.contact-card a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}
.contact-card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .privacy-body-inner {
        padding: 20px;
    }
    .privacy-header {
        padding: 15px 20px;
    }
}

.bind-phone-header {
    text-align: center;
    margin-bottom: 25px;
}

.bind-phone-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.15);
}

.bind-phone-header h2 {
    color: var(--text-dark);
    font-size: 22px;
    margin: 0 0 8px;
}

.bind-phone-header p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.security-benefits {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 1px solid #edf2f7;
}

.security-benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.security-benefit-item:last-child {
    margin-bottom: 0;
}

.security-benefit-item span {
    color: var(--success);
    margin-right: 8px;
    font-weight: bold;
    font-size: 16px;
}

.bind-btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}