/*
Theme Name: Personal Clearance Notes
Theme URI: https://example.com/
Author: Codex
Author URI: https://example.com/
Description: A restrained WordPress theme for a personal customs-clearance knowledge site with article publishing, contact consultation, and备案 display areas.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: personal-clearance-notes
*/

:root {
  --ink: #1e2a32;
  --muted: #66727d;
  --line: #dce4e8;
  --paper: #f6f8f7;
  --white: #ffffff;
  --accent: #236857;
  --accent-strong: #15483d;
  --signal: #c7553c;
  --soft: #eaf2ef;
  --shadow: 0 18px 44px rgba(28, 43, 49, 0.09);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--accent);
  border-radius: 8px;
  font-size: 18px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.main-nav-list {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.main-nav-list li {
  list-style: none;
}

.main-nav a {
  color: var(--ink);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  color: var(--white);
  background: var(--accent);
  border-radius: 8px;
  font-weight: 700;
}

.hero {
  background:
    linear-gradient(90deg, rgba(246, 248, 247, 0.98) 0%, rgba(246, 248, 247, 0.9) 45%, rgba(246, 248, 247, 0.42) 100%),
    url("assets/port-clearance-bg.jpg") center center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(100% - 32px, var(--max));
  min-height: 520px;
  margin: 0 auto;
  padding: 72px 0 64px;
  display: grid;
  align-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--signal);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.24;
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(34px, 5vw, 58px);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 20px 0 0;
  color: #3e4a52;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 700;
}

.button.primary {
  color: var(--white);
  background: var(--accent);
}

.button.secondary {
  color: var(--accent-strong);
  background: var(--white);
}

.section {
  padding: 56px 0;
}

.section.alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-head p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.topic,
.post-card,
.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.topic {
  position: relative;
  overflow: hidden;
  min-height: 178px;
  padding: 22px;
}

.topic::after {
  position: absolute;
  right: -34px;
  bottom: -40px;
  width: 150px;
  height: 150px;
  content: "";
  background: var(--soft);
  border-radius: 50%;
  opacity: 0.72;
}

.topic-visual {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
}

.topic h3,
.topic p {
  position: relative;
  z-index: 1;
}

.topic p,
.post-card p,
.entry-meta,
.empty-copy {
  color: var(--muted);
}

.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.post-card {
  min-height: 236px;
  padding: 22px;
}

.post-card h3 {
  font-size: 20px;
}

.post-card p {
  margin-bottom: 0;
}

.entry-meta {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
}

.contact-band {
  background: #1f3934;
  color: var(--white);
}

.contact-band .wrap {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.contact-band p {
  color: #d6e5df;
}

.contact-panel {
  padding: 22px;
  color: var(--ink);
}

.contact-number {
  display: block;
  margin: 8px 0 16px;
  color: var(--accent-strong);
  font-size: 24px;
  font-weight: 800;
}

.qr {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.content {
  width: min(100% - 32px, 880px);
  margin: 0 auto;
  padding: 56px 0;
}

.content article,
.page-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: min(7vw, 52px);
  box-shadow: var(--shadow);
}

.content h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.entry-content {
  margin-top: 28px;
}

.entry-content h2 {
  margin-top: 34px;
  font-size: 25px;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.25em;
}

.site-footer {
  padding: 30px 0;
  color: #d9e3df;
  background: #22302d;
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-footer a {
  color: #eef6f2;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .main-nav-list {
    flex: 0 0 auto;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(246, 248, 247, 0.98) 0%, rgba(246, 248, 247, 0.9) 52%, rgba(246, 248, 247, 0.62) 100%),
      url("assets/port-clearance-bg.jpg") center bottom / cover no-repeat;
  }

  .hero-inner {
    min-height: 560px;
    align-content: start;
  }

  .grid,
  .post-list,
  .contact-band .wrap {
    grid-template-columns: 1fr;
  }

  .section-head,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
