/* ============================================================
   苏州如果专利代理有限公司 官网全站样式
   品牌色：深蓝 #0B3B8C（专业/信赖） + 金 #C9A24B（品质）
   ============================================================ */
:root {
  --brand: #0b3b8c;
  --brand-dark: #082c68;
  --brand-light: #1a5cc4;
  --accent: #c9a24b;
  --accent-light: #e8d5a8;
  --text: #202124;
  --text-2: #5f6368;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(11, 59, 140, 0.08);
  --maxw: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: -1px;
}
.logo-img {
  width: 52px; height: 52px; border-radius: 12px;
  object-fit: contain; flex-shrink: 0;
}
.logo-text { line-height: 1.25; }
.logo-text strong { display: block; font-size: 20px; color: var(--brand); }
.logo-text span { display: block; font-size: 13px; color: var(--text-2); letter-spacing: 1px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; color: var(--text);
  transition: all 0.2s;
}
.main-nav a:hover { color: var(--brand); background: var(--bg-soft); }
.main-nav a.active { color: var(--brand); font-weight: 600; }
.nav-cta {
  margin-left: 10px; padding: 9px 20px !important; border-radius: 999px !important;
  background: var(--brand); color: #fff !important; font-weight: 500;
}
.nav-cta:hover { background: var(--brand-dark) !important; }
.nav-oa { border: 1px solid var(--border); border-radius: 999px !important; padding: 8px 18px !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0b3b8c 0%, #113f96 55%, #1a5cc4 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px;
  border-radius: 50%; background: radial-gradient(circle, rgba(201,162,75,.25), transparent 65%);
}
.hero-inner { padding: 90px 0 100px; position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block; padding: 6px 16px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; font-size: 13px; letter-spacing: 2px; margin-bottom: 22px; color: var(--accent-light);
}
.hero h1 { font-size: 44px; line-height: 1.3; font-weight: 700; max-width: 720px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { margin-top: 18px; font-size: 18px; color: rgba(255,255,255,.85); max-width: 640px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 500; cursor: pointer; border: none; transition: all 0.25s;
}
.btn-gold { background: var(--accent); color: #2b2005; }
.btn-gold:hover { background: #d9b45f; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.hero-stats { display: flex; gap: 56px; margin-top: 64px; flex-wrap: wrap; }
.hero-stats .stat b { font-size: 34px; font-family: Inter, sans-serif; color: var(--accent); }
.hero-stats .stat span { display: block; font-size: 14px; color: rgba(255,255,255,.75); margin-top: 2px; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section.soft { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.sec-head .tag { color: var(--accent); font-size: 14px; letter-spacing: 3px; font-weight: 600; }
.sec-head h2 { font-size: 32px; margin-top: 8px; color: var(--brand-dark); }
.sec-head p { margin-top: 12px; color: var(--text-2); }

/* 卡片网格 */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: all 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8effc, #f2f6fd); font-size: 26px; margin-bottom: 18px;
}
.card h3 { font-size: 19px; color: var(--brand-dark); margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--text-2); }
.card .more { display: inline-block; margin-top: 14px; font-size: 14px; color: var(--brand); font-weight: 500; }

/* ---------- 合作单位 Logo 网格 ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.partner-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  min-height: 80px;
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.partner-card img {
  max-width: 100%;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- 页面横幅 ---------- */
.page-banner {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand-light));
  color: #fff; padding: 64px 0;
}
.page-banner h1 { font-size: 34px; }
.page-banner p { margin-top: 8px; color: rgba(255,255,255,.8); }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.breadcrumb a:hover { color: #fff; }

/* ---------- 团队 ---------- */
.member { text-align: center; }
.avatar {
  width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff; font-size: 36px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.member h3 { font-size: 18px; }
.member .role { color: var(--accent); font-size: 13.5px; font-weight: 600; margin: 4px 0 10px; }
.member p { font-size: 13.5px; color: var(--text-2); text-align: left; }

/* ---------- 新闻 ---------- */
.news-item {
  display: flex; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--border); align-items: flex-start;
}
.news-date {
  flex: 0 0 84px; text-align: center; background: var(--bg-soft); border-radius: 10px; padding: 12px 0;
}
.news-date b { display: block; font-size: 26px; color: var(--brand); font-family: Inter, sans-serif; }
.news-date span { font-size: 12.5px; color: var(--text-2); }
.news-body h3 { font-size: 18px; margin-bottom: 8px; }
.news-body h3 a:hover { color: var(--brand); }
.news-body p { font-size: 14.5px; color: var(--text-2); }
.news-cat {
  display: inline-block; font-size: 12px; color: var(--brand); background: #e8effc;
  border-radius: 4px; padding: 2px 8px; margin-bottom: 8px;
}

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label.f-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
label.f-label i { color: #d93025; font-style: normal; }
input.f-input, select.f-input, textarea.f-input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; font-family: inherit; transition: border 0.2s; background: #fff;
}
input.f-input:focus, select.f-input:focus, textarea.f-input:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(11,59,140,.1);
}
.form-note { font-size: 13px; color: var(--text-2); }
.form-ok {
  display: none; background: #e6f4ea; color: #188038; border-radius: 8px;
  padding: 14px 18px; font-size: 14.5px; margin-top: 16px;
}

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 7px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--accent);
}
.tl-item b { color: var(--brand); font-size: 17px; }
.tl-item p { color: var(--text-2); font-size: 14.5px; margin-top: 4px; }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-dark), var(--brand));
  border-radius: 18px; color: #fff; padding: 48px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 26px; }
.cta-band p { color: rgba(255,255,255,.8); margin-top: 6px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0a1f42; color: rgba(255,255,255,.75); padding: 64px 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 16px; }
.site-footer li { list-style: none; margin-bottom: 10px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 13px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- 浮动咨询 ---------- */
.float-consult {
  position: fixed; right: 22px; bottom: 90px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #2b2005;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  box-shadow: 0 6px 20px rgba(201,162,75,.45); cursor: pointer; transition: transform .2s;
}
.float-consult:hover { transform: scale(1.08); }

/* ---------- 表格 ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { background: var(--bg-soft); text-align: left; padding: 12px 16px; color: var(--text-2); font-weight: 600; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--border); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 680px) {
  .main-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: #fff; padding: 16px 20px 24px;
    border-bottom: 1px solid var(--border); gap: 6px; align-items: stretch;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .hero-inner { padding: 60px 0 70px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 28px; }
  .section { padding: 56px 0; }
  .cta-band { padding: 34px 26px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .news-item { gap: 14px; }
}
