/* 奈湖兼客户管理系统 - 简洁商务风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", Roboto, sans-serif; background: #eaf1f6; color: #2c3e50; font-size: 14px; line-height: 1.6; }
a { color: #155a8a; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 登录页 ===== */
.auth-page { min-height: 100vh; display: flex; }
.auth-left { flex: 1; background: linear-gradient(160deg, #0f3557 0%, #123f63 55%, #155a8a 100%); color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 48px; position: relative; overflow: hidden; }
.auth-left::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); right: -90px; top: -90px; }
.auth-left::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); right: 60px; bottom: -70px; }
.auth-brand { font-size: 26px; font-weight: 700; letter-spacing: 2px; position: relative; z-index: 1; }
.auth-brand small { display: block; font-size: 12px; letter-spacing: 6px; color: rgba(255,255,255,.65); font-weight: 400; margin-top: 6px; }
.auth-slogan { margin-top: 36px; font-size: 18px; line-height: 1.9; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.auth-slogan span { color: #7fb8dd; }
.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 32px; }
.auth-card { background: #fff; width: 100%; max-width: 400px; border-radius: 12px; box-shadow: 0 8px 30px rgba(15,53,87,.1); padding: 36px 32px; }
.auth-card h1 { font-size: 22px; color: #0f3557; text-align: center; }
.auth-card .sub { text-align: center; color: #8a94a6; font-size: 13px; margin: 6px 0 24px; }
.auth-tabs { display: flex; border-bottom: 1px solid #e8edf2; margin-bottom: 22px; }
.auth-tab { flex: 1; text-align: center; padding: 10px 0; color: #8a94a6; font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.auth-tab.active { color: #155a8a; border-bottom-color: #155a8a; }
.auth-tab:hover { text-decoration: none; }
.auth-footer { text-align: center; color: #9aa7b4; font-size: 12px; margin-top: 22px; }
.auth-version { position: fixed; right: 16px; bottom: 12px; color: #9aa7b4; font-size: 12px; }
@media (max-width: 760px) { .auth-left { display: none; } }

/* ===== 表单与按钮 ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.form-group input[type=text], .form-group input[type=password], .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #d0d7de; border-radius: 6px; font-size: 14px; outline: none; background: #fbfcfe; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #155a8a; background: #fff; box-shadow: 0 0 0 3px rgba(21,90,138,.12); }
.checkbox-group label { font-weight: 400; color: #5a6b7c; font-size: 13px; }
.btn { display: inline-block; padding: 9px 18px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; cursor: pointer; text-align: center; font-weight: 600; line-height: 1.4; }
.btn:hover { text-decoration: none; }
.btn-primary { background: #155a8a; color: #fff; border-color: #155a8a; }
.btn-primary:hover { background: #0f4568; }
.btn-outline { background: transparent; border: 1px solid #155a8a; color: #155a8a; }
.btn-outline:hover { background: #155a8a; color: #fff; }
.btn-light { background: #fff; border: 1px solid #d0d7de; color: #2c3e50; }
.btn-light:hover { background: #f0f4f8; }
.btn-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; }
.err { background: #fef2f2; color: #dc2626; font-size: 13px; padding: 10px 12px; border-radius: 6px; margin-bottom: 16px; }
.ok { background: #f0fdf4; color: #15803d; font-size: 13px; padding: 10px 12px; border-radius: 6px; margin-bottom: 16px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; font-size: 13px; }

/* ===== 个人中心 ===== */
.topbar { background: #0f3557; color: #fff; }
.topbar-in { max-width: 880px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
.topbar .welcome { font-size: 15px; }
.topbar .welcome b { color: #8ec2e8; }
.page { max-width: 880px; margin: 0 auto; padding: 24px 20px 60px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(15,53,87,.06); padding: 18px 16px; border-top: 3px solid #155a8a; }
.stat .k { font-size: 12px; color: #8a94a6; }
.stat .v { font-size: 20px; font-weight: 700; color: #0f3557; margin-top: 6px; }
.badge { display: inline-block; background: #eef2f7; color: #5a6b7c; font-size: 12px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.card { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(15,53,87,.06); padding: 20px; margin-bottom: 20px; }
.card h2 { font-size: 16px; color: #0f3557; padding-bottom: 12px; border-bottom: 1px solid #eef2f7; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.empty { text-align: center; color: #9aa7b4; padding: 28px 0; font-size: 14px; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
table.list th { text-align: left; color: #8a94a6; font-weight: 600; padding: 8px 6px; border-bottom: 1px solid #eef2f7; }
table.list td { padding: 10px 6px; border-bottom: 1px solid #f2f5f8; vertical-align: top; }
.status { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 20px; font-weight: 600; }
.status-wait { background: #fef3c7; color: #92400e; }
.status-done { background: #dcfce7; color: #166534; }
.status-open { background: #dbeafe; color: #1e40af; }

/* ===== 弹窗 ===== */
.modal-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 50; align-items: center; justify-content: center; padding: 20px; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 12px; width: 100%; max-width: 440px; padding: 24px; }
.modal h3 { font-size: 17px; color: #0f3557; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.modal .x { cursor: pointer; color: #9aa7b4; font-size: 20px; line-height: 1; }

/* ===== 协议页 ===== */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.doc .card h1 { font-size: 20px; color: #0f3557; margin-bottom: 6px; }
.doc .card p { margin: 10px 0; color: #3c4a5a; }
.doc .card h3 { margin: 18px 0 6px; color: #0f3557; font-size: 15px; }

/* ===== 管理后台 ===== */
.admin-nav { background: #0f3557; color: #fff; padding: 0 20px; }
.admin-nav-in { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 4px; height: 52px; }
.admin-nav a { color: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 6px; font-size: 14px; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.admin-nav .spacer { flex: 1; }
