/* ========== 青龙担保 · 响应式样式 ========== */
:root {
  --blue: #2e63a8;
  --blue-link: #2f6fce;
  --blue-dark: #24518c;
  --green: #07c160;
  --green-dark: #06ad56;
  --bg: #f3f4f6;
  --text: #333333;
  --text-gray: #8a8f99;
  --border: #ebedf0;
  --footer-bg: #22304a;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(23, 43, 77, 0.06);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

::selection { background: #07c160; color: #fff; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(7, 193, 96, 0.45); border-radius: 3px; }

/* ========== 顶部导航 ========== */
.site-header {
  background: var(--blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo svg { width: 32px; height: 32px; }
.logo img { width: 32px; height: 32px; border-radius: 50%; }
.main-nav { display: flex; align-items: center; gap: 48px; font-size: 16px; }
.main-nav a { opacity: 0.92; display: flex; align-items: center; gap: 6px; }
.main-nav a:hover, .main-nav a.active { opacity: 1; font-weight: 600; }
.main-nav svg { width: 19px; height: 19px; }

/* ========== 主体布局（电脑端双栏） ========== */
.page-main {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 24px auto 40px;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 56px;
  align-items: stretch;
}

/* 规则内容区 */
.content-card {
  background: #fff;
  padding: 44px 56px 56px;
}
.rule-title {
  color: var(--blue);
  font-size: 26px;
  font-weight: 700;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid #ececec;
}
.rule-body p {
  font-size: 14px;
  line-height: 1.3;
  color: #333;
  margin-bottom: 20px;
}
.rule-body .link { color: var(--blue-link); }
.rule-body .link:hover { text-decoration: underline; }

.tip-box {
  margin-top: 36px;
  background: #fffbe6;
  border-left: 3px solid #f5c518;
  border-radius: 4px;
  padding: 14px 20px;
  color: #6b5d12;
  font-size: 13px;
  line-height: 1.9;
}

/* 侧栏 */
.side-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: #fff;
  padding: 40px 36px;
}
.side-card { padding: 0 10px; }
.side-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 18px;
}
.side-title svg { width: 24px; height: 24px; }
.side-card p.desc {
  color: #333;
  font-size: 16px;
  line-height: 2;
  text-align: center;
  margin-bottom: 18px;
}
.btn-center { text-align: center; }

.btn {
  display: block;
  width: 100%;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 12px 0;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.88; }
.btn-blue { background: var(--blue); border-radius: 6px; font-size: 20px; letter-spacing: 8px; padding: 20px 0; }
.btn-green { background: var(--green); }
.btn-plain {
  display: inline-block;
  width: auto;
  padding: 13px 44px;
  font-size: 16px;
  letter-spacing: 2px;
  border-radius: 6px;
}

.notice-text { font-size: 15px; color: #333; line-height: 2.1; }
.notice-text strong { color: #d4380d; }

/* ========== 页脚 ========== */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 20px 26px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}
.footer-col a { display: block; margin-bottom: 8px; font-size: 13px; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13px; margin-bottom: 8px; }
.copyright {
  max-width: 1080px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

/* ========== 登录页 ========== */
.auth-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: calc(100vh - 60px);
}
.auth-box {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 48px 24px 60px;
}
.auth-title { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { color: var(--green); font-size: 16px; margin-bottom: 36px; letter-spacing: 4px; }
.form-item { margin-bottom: 24px; }
.form-item label { display: block; font-size: 14px; color: #555; margin-bottom: 8px; }
.form-item input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #e3e5e8;
  padding: 12px 4px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.form-item input:focus { border-bottom-color: var(--green); }
.form-item .input-lock { position: relative; }
.form-item .input-lock svg {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #c1c6cd;
}
.forget-link { display: block; text-align: right; color: var(--green); font-size: 13px; margin: -10px 0 26px; }
.auth-submit {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 17px;
  letter-spacing: 6px;
  padding: 13px 0;
  cursor: pointer;
}
.auth-submit:hover { background: var(--green-dark); }
.auth-switch { text-align: center; margin-top: 28px; color: var(--text-gray); font-size: 14px; }
.auth-switch a { color: var(--green); font-weight: 600; margin-left: 6px; }

/* ========== 手机端首页专属 ========== */
.mobile-only { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }

  body { background: #fff; padding-bottom: 60px; }

  /* 手机端不显示顶部导航 */
  .site-header { display: none; }

  /* banner（图片链接） */
  .m-banner { position: relative; overflow: hidden; background: #0d1420; }
  .m-banner img { width: 100%; height: auto; display: block; }

  /* 滚动公告 */
  .m-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 14px;
    border-bottom: 1px solid #f2f3f5;
    overflow: hidden;
  }
  .m-notice svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
  .m-notice .marquee { flex: 1; overflow: hidden; white-space: nowrap; }
  .m-notice .marquee span {
    display: inline-block;
    padding-left: 100%;
    font-size: 13px;
    color: #555;
    animation: marquee 16s linear infinite;
  }
  @keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
  }

  .page-main {
    display: block;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  .content-card { box-shadow: none; padding: 20px 18px 28px; border-radius: 0; }
  .rule-title { font-size: 19px; padding-bottom: 12px; margin-bottom: 16px; }

  /* 手机端侧栏内容并入主列 */
  .side-col { gap: 0; background: transparent; padding: 0; }
  .m-action-area { padding: 22px 18px 30px; background: #fff; }
  .btn-guarantee { letter-spacing: 8px; padding: 14px 0; font-size: 17px; }
  .m-service {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    color: #555;
    font-size: 14px;
  }
  .m-service svg { width: 20px; height: 20px; color: var(--green); }
  .side-card { box-shadow: none; padding: 16px 18px; border-top: 8px solid var(--bg); }

  /* 底部导航 */
  .tabbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    height: 58px;
    background: #fff;
    border-top: 1px solid #ebedf0;
    display: flex;
    z-index: 100;
  }
  .tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #7a818c;
    font-size: 12px;
  }
  .tabbar a.active { color: var(--blue); font-weight: 600; }
  .tabbar svg { width: 22px; height: 22px; }

  /* 页脚简化 */
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .site-footer { padding-bottom: 76px; }

  /* 登录页（手机端） */
  .auth-box { padding-top: 60px; }
}
