/* 网络代码知识产权认证平台 - 共享样式 (Stripe 风格：简洁 / 柔和渐变 / 留白) */
:root {
  --brand: #2563eb;
  --brand-2: #4f46e5;
  --brand-soft: #eff6ff;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e6eaf2;
  --bg: #f6f8fc;
  --card: #ffffff;
  --ok: #16a34a;
  --ok-bg: #dcfce7;
  --warn: #d97706;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(37, 99, 235, .14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶部导航 */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: var(--shadow-lg);
}
.brand small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: .92rem; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--brand); text-decoration: none; }

/* 布局 */
.wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }
.container { max-width: 880px; margin: 0 auto; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #eef2ff 0%, #f6f8fc 60%, #fdf2f8 100%);
  border: 1px solid var(--line); border-radius: 22px;
  padding: 56px 40px; text-align: center;
}
.hero h1 { font-size: 2.1rem; margin: 16px 0 10px; letter-spacing: -.02em; }
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 620px; margin: 0 auto 28px; }
.hero .badge-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .82rem; color: var(--muted); font-weight: 600;
  box-shadow: var(--shadow);
}
.gradient-text {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: .18s; line-height: 1;
}
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-warn { background: #fff; border-color: var(--warn); color: var(--warn); }
.btn-warn:hover { background: var(--warn); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-sm { padding: 5px 12px; font-size: .8rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* 卡片 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.card + .card { margin-top: 20px; }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 14px; }

/* 功能网格 */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 36px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: .2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dbe4ff; }
.feature .ic {
  width: 44px; height: 44px; border-radius: 11px; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: .9rem; }

/* 表单 */
.form-row { margin-bottom: 18px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink-2); }
label .req { color: #ef4444; }
input[type=text], input[type=date], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .95rem; background: #fff; color: var(--ink); transition: .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 协议 */
.agree-box {
  border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe;
  padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
}
.agree-box input { width: 18px; height: 18px; margin-top: 3px; flex: 0 0 auto; }
.agree-box label { font-weight: 500; font-size: .9rem; margin: 0; color: var(--ink-2); }

/* 上传 */
.dropzone {
  border: 2px dashed #cdd7ea; border-radius: 12px; padding: 26px; text-align: center;
  background: #fbfcff; transition: .18s; cursor: pointer;
}
.dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.file-list { list-style: none; padding: 0; margin: 14px 0 0; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 13px; background: #fff; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 8px; font-size: .88rem;
}
.file-list .nm { display: flex; align-items: center; gap: 9px; overflow: hidden; }
.file-list .sz { color: var(--muted); font-size: .8rem; flex: 0 0 auto; }
.file-list .del { color: #ef4444; cursor: pointer; font-weight: 700; }

/* 代码块 */
.lang-tabs { display: flex; gap: 6px; margin-bottom: 0; flex-wrap: wrap; }
.lang-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 7px 14px; border-radius: 9px 9px 0 0; cursor: pointer; font-size: .85rem; font-weight: 600;
}
.lang-tabs button.active { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.code-box { position: relative; }
pre.code {
  margin: 0; background: #0f172a; color: #e2e8f0; border-radius: 0 12px 12px 12px;
  padding: 18px; overflow: auto; font-size: .82rem; line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; max-height: 360px;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.12); color: #fff;
  border: none; border-radius: 7px; padding: 5px 11px; font-size: .78rem; cursor: pointer;
}
.copy-btn:hover { background: rgba(255,255,255,.22); }

/* 验证结果 */
.cert-card { border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.cert-head { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 22px 26px; }
.cert-head .st { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.cert-head h2 { margin: 12px 0 4px; font-size: 1.3rem; }
.cert-head .meta { opacity: .9; font-size: .9rem; }
.cert-body { padding: 24px 26px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-all; }
.kv dd.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.kv dd.st-ok { color: #15803d; }
.kv dd.st-pending { color: #b45309; font-weight: 700; }

.pub-files { margin-top: 18px; }
.pub-files li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }

/* 提示条 */
.notice { padding: 12px 16px; border-radius: 10px; font-size: .9rem; margin-bottom: 18px; }
.notice-ok { background: var(--ok-bg); color: #14532d; }
.notice-err { background: #fee2e2; color: #991b1b; }
.notice-info { background: var(--brand-soft); color: #1e3a8a; }

/* 页脚 */
.footer { text-align: center; color: var(--muted-2); font-size: .85rem; padding: 30px 0; }

/* 协议文本 */
.doc { max-width: 760px; margin: 0 auto; }
.doc h2 { font-size: 1.2rem; margin-top: 28px; }
.doc h3 { font-size: 1rem; margin-top: 20px; color: var(--ink-2); }
.doc p, .doc li { color: #334155; font-size: .94rem; }

@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
  .hero { padding: 40px 22px; }
  .hero h1 { font-size: 1.6rem; }
  .kv { grid-template-columns: 90px 1fr; }
}
