/* 商标注册网上查询系统中心 - 前台样式 */
:root {
  --primary: #1f6fb2;
  --primary-dark: #144d80;
  --primary-light: #eaf3fb;
  --accent: #f5a623;
  --text-main: #252f38;
  --text-sub: #6b7a88;
  --border: #dfe7ee;
  --bg: #f4f7fa;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(20, 77, 128, 0.12);
}

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); cursor: pointer; }
a:hover { text-decoration: underline; }

/* ===== 顶部 ===== */
.site-header {
  background: linear-gradient(135deg, #143f6b 0%, #1f6fb2 70%, #2f8ad0 100%);
  color: #fff;
  padding: 14px 0 34px;
  position: relative;
  overflow: hidden;
}
.site-header::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.header-bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.92;
}
.header-title {
  max-width: 1080px;
  margin: 26px auto 0;
  padding: 0 24px;
  text-align: center;
}
.brand-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -1px;
}
.header-title h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 2px;
}
.header-title .subtitle {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 3px;
  opacity: 0.85;
}

/* ===== 导航 ===== */
.main-nav {
  max-width: 1080px;
  margin: -18px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.main-nav .nav-inner {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}
.nav-link {
  flex: 1;
  min-width: 150px;
  padding: 15px 10px;
  text-align: center;
  font-size: 15px;
  color: var(--text-main);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--primary-light);
  font-weight: 600;
}

/* ===== 主体 ===== */
.query-wrap {
  max-width: 1080px;
  width: 100%;
  margin: 34px auto 0;
  padding: 0 24px;
  flex: 1;
}

.notice-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow);
}
.notice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #b26a00;
}
.notice-title svg { flex-shrink: 0; }
.notice-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-sub);
}

.query-form {
  margin-top: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 40px 30px;
}
.field { margin-bottom: 26px; }
.field-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}
.star { color: #e5484d; margin-right: 2px; }

.radio-group { display: flex; flex-wrap: wrap; gap: 34px; justify-content: center; }
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}
.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #b9c6d2;
  border-radius: 50%;
  position: relative;
  transition: border-color 0.15s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.radio-group input[type="radio"]:checked { border-color: var(--primary); }
.radio-group input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}
.radio-group input[type="radio"]:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.name-input {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fbfdff;
}
.name-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.14);
}
.name-input.err {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}
.field-error {
  margin-top: 6px;
  font-size: 12px;
  color: #e5484d;
  display: none;
}
.field-error.show { display: block; }

.btn-row {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 6px;
}
.btn {
  min-width: 150px;
  height: 46px;
  padding: 0 32px;
  border: none;
  border-radius: 23px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #1f6fb2, #2f8ad0);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 111, 178, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(31, 111, 178, 0.45); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-plain {
  background: #fff;
  color: var(--text-sub);
  border: 1.5px solid var(--border);
}
.btn-plain:hover { color: var(--primary); border-color: var(--primary); }

.delay-tip {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-sub);
}
.delay-tip .consult { color: var(--primary); font-weight: 600; }

/* ===== 弹窗 ===== */
.mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 35, 55, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.mask.show { display: flex; }
.panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(15, 35, 55, 0.3);
  width: 100%;
  max-width: 460px;
  padding: 28px 30px 24px;
  animation: pop 0.25s ease;
  max-height: 86vh;
  overflow: auto;
}
@keyframes pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.panel h3 {
  font-size: 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel .spinner {
  width: 34px;
  height: 34px;
  margin: 18px auto;
  border: 3px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result-box {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-main);
}
.result-box .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  margin-right: 6px;
}
.tag.ok { background: #e5f6ec; color: #1a7f45; }
.tag.warn { background: #fdf0e0; color: #b26a00; }
.tag.danger { background: #fdeaea; color: #c0392b; }
.result-box .demo-note {
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-sub);
}
.matched-list {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.matched-list .m-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.matched-list .m-item:last-child { border-bottom: none; }
.matched-list .m-name { font-weight: 600; }
.matched-list .m-meta { color: var(--text-sub); font-size: 12px; }
.panel .btn-row { margin-top: 20px; }

/* 咨询/验证表单 */
.form-line { margin-bottom: 14px; }
.form-line label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-line input, .form-line textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-line input:focus, .form-line textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 111, 178, 0.14);
}
.form-line textarea { min-height: 90px; resize: vertical; }
.form-line input.phone-fixed {
  background: #eef2f6;
  color: #334;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: not-allowed;
  border-color: #d7dee6;
}
.form-line input.phone-fixed:focus {
  border-color: var(--border);
  box-shadow: none;
}
.form-ok {
  text-align: center;
  padding: 14px 0 4px;
  color: #1a7f45;
  font-size: 15px;
  font-weight: 600;
}

/* ===== 提示条 ===== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: #16324a;
  color: #fff;
  padding: 10px 22px;
  border-radius: 22px;
  font-size: 14px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(15, 35, 55, 0.3);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: #c0392b; }

/* ===== 公共留言墙 ===== */
.msg-wall {
  max-width: 1080px;
  width: 100%;
  margin: 30px auto 0;
  padding: 0 24px;
}
.msg-wall-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}
.msg-wall-list {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 20px;
  max-height: 320px;
  overflow-y: hidden;
}
.msg-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.msg-item:last-child { border-bottom: none; }
.msg-item .m-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.msg-item .m-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary);
}
.msg-item .m-phone {
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 400;
  margin-left: 8px;
}
.msg-item .m-time {
  font-size: 12px;
  color: var(--text-sub);
}
.msg-item .m-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-main);
}
.msg-wall-empty {
  text-align: center;
  color: var(--text-sub);
  padding: 18px 0;
  font-size: 13px;
}

/* ===== 页脚 ===== */
.site-footer {
  margin-top: 44px;
  background: #16324a;
  color: #c8d6e2;
  padding: 26px 24px 20px;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  max-width: 1080px;
  margin: 0 auto 14px;
}
.footer-links a {
  color: #c8d6e2;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.footer-links a:hover { color: #fff; text-decoration: none; }
.site-footer .copyright { font-size: 12px; opacity: 0.75; }

/* ===== 响应式 ===== */
@media (max-width: 720px) {
  .header-title h1 { font-size: 22px; letter-spacing: 1px; }
  .nav-link { min-width: 120px; font-size: 14px; }
  .query-form { padding: 24px 18px; }
  .radio-group { gap: 18px; }
  .btn { min-width: 120px; height: 42px; font-size: 15px; }
  .btn-row { gap: 14px; }
}
