* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", sans-serif; font-size: 14px; color: #333; background: #f5f5f5; }
.wp { width: 960px; margin: 0 auto; }
.nav { background: #333; padding: 15px 0; }
.nav .wp { display: flex; justify-content: space-between; align-items: center; }
.nav .logo { color: #fff; font-size: 18px; text-decoration: none; }
.nav-list { list-style: none; display: flex; gap: 20px; }
.nav-list a { color: #fff; text-decoration: none; }
.nav-list a:hover { color: #48bb78; }
.mainbox { display: flex; gap: 20px; margin-top: 20px; }
.leftside, .side { width: 200px; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.rightside { flex: 1; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.side-title { font-size: 16px; font-weight: bold; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.side-menu { list-style: none; }
.side-menu li { margin-bottom: 10px; }
.side-menu a { display: block; padding: 8px; text-decoration: none; color: #666; border-radius: 4px; }
.side-menu a:hover, .side-menu .active a { background: #48bb78; color: #fff; }
.form-box { width: 400px; margin: 50px auto; background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.form-box h2 { text-align: center; margin-bottom: 20px; color: #333; }
.form-item { margin-bottom: 15px; }
.form-item label { display: block; margin-bottom: 5px; font-weight: bold; }
.form-item input, .form-item select, .form-item textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form-item textarea { height: 80px; resize: none; }
.btn-primary { width: 100%; padding: 12px; background: #48bb78; color: #fff; border: none; border-radius: 4px; font-size: 16px; cursor: pointer; }
.btn-primary:hover { background: #38a169; }
.btn { display: inline-block; padding: 8px 16px; background: #48bb78; color: #fff; text-decoration: none; border-radius: 4px; margin-right: 10px; margin-bottom: 10px; }
.btn:hover { background: #38a169; }
.toast-msg {
    padding: 10px 15px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.success-msg {
    background: #f0fff4;
    border-color: #c6f6d5;
    color: #22543d;
}
.error-msg {
    background: #fff5f5;
    border-color: #fed7d7;
    color: #742a2a;
}
.toast-msg.auto-hide {
    max-height: 200px;
    overflow: hidden;
    animation: toastFadeOut 0.45s ease-in 3.5s forwards;
}
@keyframes toastFadeOut {
    to {
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        margin-bottom: 0;
        border-width: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
    }
}
.mgb { margin-bottom: 15px; }
.clearfix::after { content: ''; display: table; clear: both; }
.bigtitle { font-size: 18px; font-weight: bold; margin-bottom: 15px; }
.oauth-list { display: flex; flex-direction: column; gap: 12px; }
.oauth-item { padding: 12px 20px; background: #f5f5f5; border-radius: 6px; display: flex; align-items: center; justify-content: space-between; }

.oauth-login { margin-top: 20px; }
.oauth-btn {
    display: inline-block;
    padding: 12px 26px;
    text-align: center;
    border-radius: 12px;
    margin: 0 8px;
    color: #19b73c;
    border: 1px solid #eee;
    text-decoration: none;
    font-size: 12px;
}
.oauth-btn:hover { opacity: 0.8; }



.oauth-item a { text-decoration: none; color: #1976d2; }

.oauth-name { color: #555; }
.btn-unbind { padding: 4px 14px; background: #e53e3e; color: #fff; border: none; border-radius: 4px; font-size: 13px; cursor: pointer; }
.btn-unbind:hover { background: #c53030; }
.oauth-empty { color: #999; padding: 20px; text-align: center; }
h2 { margin-bottom: 15px; color: #333; }

/* ═══════════════════════════════════════════════════════════════════
   ccc 布局结构适配（千木蓝 + ccc layout.html DOM）
   ═══════════════════════════════════════════════════════════════════ */

/* 品牌主色：千木蓝（覆盖 bbb 的 emerald 绿） */
:root {
  --qm-blue:   #1976d2;
  --qm-blue-dark: #1565c0;
  --qm-blue-light:#e3f2fd;
}
body { background: #f4f6f9; }

/* 头部导航栏：千木蓝渐变背景 */
.site-header {
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; height: 58px; gap: 28px;
}
.site-header .brand {
  color: #fff; font-size: 20px; font-weight: 700;
  text-decoration: none; letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.site-nav { display: flex; gap: 4px; flex: 1; }
.site-nav a {
  color: rgba(255,255,255,.9); text-decoration: none;
  padding: 6px 14px; border-radius: 4px; font-size: 14px;
  transition: background .2s;
}
.site-nav a:hover { background: rgba(255,255,255,.18); color: #fff; }
.user-menu { margin-left: auto; color: rgba(255,255,255,.9); font-size: 14px; }
.user-menu a { color: #fff; text-decoration: none; }
.user-menu a:hover { text-decoration: underline; }

/* 主体容器 */
.site-body {
  max-width: 1200px; margin: 24px auto; padding: 0 20px;
}
.site-body > main { background: #fff; padding: 24px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }

/* 登录/注册/忘记密码页：居中卡片 */
.site-body .form-box {
  width: 400px; margin: 60px auto;
  background: #fff; padding: 36px 32px;
  border-radius: 12px; box-shadow: 0 4px 24px rgba(25,118,210,.12);
  border-top: 3px solid #1976d2;
}
.site-body .form-box h2 {
  text-align: center; font-size: 20px; color: #1976d2; margin-bottom: 24px;
}
.site-body .form-item label { font-size: 13px; color: #555; }
.site-body .form-item input {
  border: 1px solid #ddd; border-radius: 6px; padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s;
}
.site-body .form-item input:focus {
  border-color: #1976d2; box-shadow: 0 0 0 3px rgba(25,118,210,.1); outline: none;
}
.site-body .btn-primary {
  background: linear-gradient(135deg, #1976d2, #1565c0);
  border-radius: 6px; font-weight: 600; letter-spacing: 2px;
  box-shadow: 0 2px 6px rgba(25,118,210,.3);
}
.site-body .btn-primary:hover { background: linear-gradient(135deg, #1565c0, #0d47a1); }

/* 通用按钮 — 显式白色字体，避免级联覆盖导致看不清 */
.btn { background: #1976d2; color: #fff; text-decoration: none; border: none; border-radius: 6px; }
.btn:hover { background: #1565c0; color: #fff; }

/* 卡片容器（会员中心子页） */
.site-body .mainbox { margin-top: 0; gap: 16px; }
.site-body .side,
.site-body .rightside { border-radius: 10px; border: 1px solid #eee; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.site-body .side-title { color: #1976d2; font-weight: 600; }
.site-body .side-menu a:hover,
.site-body .side-menu .active a { background: #1976d2; color: #fff; }

/* 消息提示 */
.error-msg { border-radius: 6px; font-size: 13px; }
.success-msg { border-radius: 6px; font-size: 13px; }

/* 页脚 */
.site-footer {
  border-top: 1px solid #eee; background: #fff;
  padding: 16px 0; text-align: center; color: #999; font-size: 12px;
  margin-top: 40px;
}
.site-footer .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* OAuth 按钮：千木蓝调 */
.oauth-btn { color: #1976d2; border-radius: 8px; }
.oauth-btn:hover { border-color: #1976d2; }

/* 响应式 */
@media (max-width: 768px) {
  .header-inner { height: 50px; gap: 12px; padding: 0 14px; }
  .site-header .brand { font-size: 16px; }
  .site-nav { display: none; }
  .site-body { padding: 0 12px; margin-top: 14px; }
  .site-body .form-box { width: calc(100% - 24px); margin: 30px auto; padding: 24px 20px; }
  .site-body .mainbox { flex-direction: column; }
  .site-body .side { width: 100%; }
}

/* ═══ baogao773 方案 H：二级下拉（per-sys 呈现深度预裁剪 ≤2 级）═══ */
.nav li,#menu.menu li{position:relative}
.nav .nav-child,.menu .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:99;min-width:150px;margin:0;padding:6px 0;list-style:none;background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 6px 20px rgba(0,0,0,.10)}
.nav li:hover>.nav-child,.menu li:hover>.sub-menu{display:block}
.nav .nav-child li a,.menu .sub-menu li a{display:block;padding:8px 16px;white-space:nowrap;color:#374151;text-decoration:none}
.nav .nav-child li a:hover,.menu .sub-menu li a:hover{background:#f5f6f8}
.nav li.current-parent>a{font-weight:600}
