/* ==========================================================
   会员认证页面样式（登录/注册/找回密码）
   风格与 newdefault 首页保持一致
   ========================================================== */
:root {
    --primary: #b71c1c;
    --primary-hover: #951616;
    --text-title: #111;
    --text-main: #222;
    --text-sub: #666;
    --text-light: #999;
    --bg-body: #f4f5f7;
    --bg-card: #fff;
    --border-color: #e4e7ed;
    --border-light: #f0f0f0;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif CN", STSong, serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 15px; line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
a:hover { color: var(--primary); }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font-family: inherit; outline: none; border: none; background: none; }
input:focus { outline: none; }

/* --- 顶栏 --- */
.auth-topbar { 
    background: #fafafa; 
    border-bottom: 1px solid var(--border-color); 
    font-size: 12px; 
    color: var(--text-sub); 
    height: 32px; 
    display: flex; 
    align-items: center; 
}
.auth-topbar .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 16px; 
}
.auth-topbar a:hover { color: var(--primary); }
.auth-topbar-right a { margin-left: 15px; }

/* --- 头部 --- */
.auth-header { 
    background: var(--bg-card); 
    padding: 15px 0; 
    border-bottom: 1px solid var(--border-color); 
}
.auth-header .container { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    width: 100%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 16px; 
}
.auth-logo { display: flex; align-items: center; }
.auth-logo > * + * { margin-left: 12px; }
.auth-logo-mark { 
    width: 44px; 
    height: 44px; 
    background: var(--primary); 
    color: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-family: var(--font-serif); 
    font-size: 28px; 
    font-weight: 700; 
    border-radius: 4px; 
}
.auth-logo-text .zh { 
    font-family: var(--font-serif); 
    font-size: 26px; 
    font-weight: 700; 
    color: var(--text-title); 
    letter-spacing: 1px; 
    line-height: 1.2; 
}
.auth-logo-text .en { 
    font-size: 11px; 
    color: var(--text-light); 
    letter-spacing: 1px; 
    text-transform: uppercase; 
}
.auth-nav { display: flex; gap: 8px; }
.auth-nav a { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    padding: 8px 20px; 
    font-size: 14px; 
    color: var(--text-sub); 
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all .2s;
}
.auth-nav a:hover { 
    color: var(--primary); 
    border-color: var(--primary);
    background: #fef2f3;
}
.auth-nav a.current { 
    background: var(--primary); 
    color: #fff; 
    border-color: var(--primary);
}
.auth-nav a.current:hover {
    background: var(--primary-hover);
}

/* --- 主内容区 --- */
.auth-main { 
    flex: 1;
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 40px 16px;
}
.auth-container {
    width: 100%;
    max-width: 420px;
}

/* --- 认证卡片 --- */
.auth-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 4px;
    overflow: hidden;
}
.auth-card-head { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    padding: 0 24px; 
    height: 52px; 
    border-bottom: 1px solid var(--border-light); 
}
.auth-card-head .title { 
    display: flex; 
    align-items: center; 
    font-family: var(--font-serif); 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--text-title); 
}
.auth-card-head .title::before { 
    content: ""; 
    width: 4px; 
    height: 18px; 
    margin-right: 10px; 
    background: var(--primary); 
    border-radius: 1px; 
}
.auth-card-body { 
    padding: 28px 24px; 
}

/* --- 表单样式 --- */
.auth-form-item { 
    margin-bottom: 18px; 
}
.auth-form-item:last-child { 
    margin-bottom: 0; 
}
.auth-form-item label { 
    display: block; 
    font-size: 13px; 
    color: var(--text-sub); 
    margin-bottom: 6px; 
}
.auth-input { 
    width: 100%; 
    height: 42px; 
    padding: 0 14px; 
    border: 1px solid var(--border-color); 
    border-radius: 4px; 
    font-size: 14px; 
    color: var(--text-main);
    transition: border-color .2s, box-shadow .2s;
}
.auth-input:hover { 
    border-color: #c0c4cc; 
}
.auth-input:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 2px rgba(183, 28, 28, 0.1);
}
.auth-input-code { 
    display: flex; 
    gap: 10px; 
}
.auth-input-code .auth-input { 
    flex: 1; 
}
.auth-code-img { 
    height: 42px; 
    cursor: pointer; 
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* --- 提交按钮 --- */
.auth-submit { 
    width: 100%; 
    height: 44px; 
    background: var(--primary); 
    color: #fff; 
    font-size: 15px; 
    font-weight: 500;
    border: none;
    border-radius: 4px; 
    cursor: pointer; 
    transition: background .2s;
}
.auth-submit:hover { 
    background: var(--primary-hover); 
}

/* --- 辅助链接 --- */
.auth-links { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    margin-top: 16px; 
    font-size: 13px; 
    color: var(--text-light);
}
.auth-links a { 
    color: var(--primary); 
}
.auth-links a:hover { 
    text-decoration: underline; 
}

/* --- 分隔线 --- */
.auth-divider { 
    display: flex; 
    align-items: center; 
    margin: 24px 0 18px;
    font-size: 12px;
    color: var(--text-light);
}
.auth-divider::before,
.auth-divider::after { 
    content: ""; 
    flex: 1; 
    height: 1px; 
    background: var(--border-light); 
}
.auth-divider span { 
    padding: 0 12px; 
}

/* --- 第三方登录 --- */
.auth-social { 
    display: flex; 
    justify-content: center;
    gap: 16px; 
}
.auth-social a { 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; 
    height: 40px; 
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all .2s;
}
.auth-social a:hover { 
    border-color: var(--primary);
    background: #fef2f3;
}
.auth-social a img { 
    width: 22px; 
    height: 22px; 
}

/* --- 协议勾选 --- */
.auth-agreement { 
    display: flex; 
    align-items: flex-start;
    font-size: 13px; 
    color: var(--text-sub);
    margin-top: 16px;
}
.auth-agreement input[type="checkbox"] { 
    margin-right: 6px; 
    margin-top: 3px;
    accent-color: var(--primary);
}
.auth-agreement a { 
    color: var(--primary); 
}

/* --- 步骤条 --- */
.auth-steps { 
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 16px 24px;
    background: #fafafa;
    border-bottom: 1px solid var(--border-light);
}
.auth-steps span { 
    font-size: 13px; 
    color: var(--text-light); 
    padding: 0 8px;
}
.auth-steps span.current { 
    color: var(--primary); 
    font-weight: 600;
}
.auth-steps .arrow { 
    color: #d0d0d0; 
    font-size: 12px;
}

/* --- 提示信息 --- */
.auth-tip { 
    padding: 12px 16px; 
    background: #fef2f3;
    border: 1px solid #fde2e2;
    border-radius: 4px;
    font-size: 13px; 
    color: var(--primary);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.auth-tip strong { 
    color: var(--text-title);
}
.auth-tip-success { 
    background: #f0f9eb;
    border-color: #e1f3d8;
    color: #67c23a;
}

/* --- 找回密码方式选择 --- */
.auth-reset-options { 
    padding: 8px 0;
}
.auth-reset-option { 
    display: flex; 
    align-items: center; 
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 12px;
    transition: all .2s;
}
.auth-reset-option:hover { 
    border-color: var(--primary);
    background: #fef2f3;
}
.auth-reset-option:last-child { 
    margin-bottom: 0;
}
.auth-reset-option-icon { 
    width: 44px; 
    height: 44px; 
    background: var(--primary); 
    color: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%;
    margin-right: 16px;
    font-size: 20px;
}
.auth-reset-option-info { 
    flex: 1;
}
.auth-reset-option-info h4 { 
    font-size: 15px; 
    font-weight: 600; 
    color: var(--text-title);
    margin-bottom: 4px;
}
.auth-reset-option-info p { 
    font-size: 12px; 
    color: var(--text-light);
}
.auth-reset-option-btn { 
    padding: 8px 16px; 
    background: var(--primary); 
    color: #fff; 
    font-size: 13px; 
    border-radius: 4px;
    transition: background .2s;
}
.auth-reset-option-btn:hover { 
    background: var(--primary-hover);
    color: #fff;
}

/* --- 页脚 --- */
.auth-footer { 
    background: #2b2b2b; 
    color: #aaa; 
    font-size: 12px; 
    text-align: center;
    padding: 20px 16px;
}
.auth-footer a { 
    color: #ddd; 
}
.auth-footer a:hover { 
    color: #fff; 
}

/* --- 响应式 --- */
@media (max-width: 768px) {
    .auth-header .container { gap: 12px; }
    .auth-logo-mark { width: 36px; height: 36px; font-size: 22px; }
    .auth-logo-text .zh { font-size: 20px; }
    .auth-logo-text .en { display: none; }
    .auth-nav a { padding: 6px 14px; font-size: 13px; }
    .auth-main { padding: 24px 16px; }
    .auth-card-head { padding: 0 16px; height: 46px; }
    .auth-card-head .title { font-size: 16px; }
    .auth-card-body { padding: 20px 16px; }
    .auth-reset-option { flex-wrap: wrap; }
    .auth-reset-option-icon { margin-bottom: 10px; }
    .auth-reset-option-btn { margin-top: 10px; width: 100%; text-align: center; }
}
@media (max-width: 480px) {
    .auth-topbar { display: none; }
    .auth-card-head { padding: 0 14px; height: 42px; }
    .auth-card-body { padding: 18px 14px; }
    .auth-input { height: 40px; font-size: 13px; }
    .auth-submit { height: 42px; font-size: 14px; }
}
