:root {
  --bg: #f2f2f2;
  --surface: #ffffff;
  --text: #444444;
  --text-strong: #333333;
  --text-muted: #666666;
  --text-soft: #6b6b6b;
  --accent: #ff3399;
  --accent-soft: #ffebf5;
  --accent-hot: #ff5cad;
  --border: #ebeef5;
  --border-input: #dcdfe6;
  --header-h: 80px;
  --cta-h: 64px;
  --content-pad: 10px;
  --radius: 4px;
  --font: Avenir, Helvetica, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  --shadow-soft: 0 1px 3px #d3d3d3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  padding-bottom: calc(var(--cta-h) + 36px);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 22px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 17px;
}

p {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 10px var(--content-pad);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle,
.nav-close-btn {
  display: none;
  border: 1px solid var(--border-input);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand img {
  width: 120px;
  height: 30px;
  object-fit: contain;
}

.brand__text {
  display: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 18px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.primary-nav a {
  padding: 24px 16px;
  color: var(--text-muted);
  font-size: 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.primary-nav a.is-active,
.primary-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.header-search {
  display: flex;
  align-items: stretch;
  max-width: 240px;
  width: 100%;
}

.header-search input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid var(--border-input);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 0 15px;
  font-size: 14px;
  color: #606266;
  background: var(--surface);
  font-family: Arial, sans-serif;
}

.header-search button {
  width: 44px;
  border: 1px solid var(--border-input);
  background: #f5f7fa;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  color: var(--text-muted);
}

.header-auth {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-auth a,
.header-auth span {
  padding: 24px 12px;
  color: var(--text-muted);
  font-size: 16px;
  white-space: nowrap;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 35;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  max-height: calc(100vh - var(--header-h) - var(--cta-h) - 24px);
  overflow: auto;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--text-muted);
  font-size: 16px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a.is-active,
.mobile-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px var(--content-pad) calc(var(--cta-h) + 48px);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 8px 0;
  color: var(--text-muted);
}

.card__body {
  padding: 12px 16px;
}

.notice {
  text-align: center;
  color: #c41870;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.7;
}

.notice a {
  color: #c41870;
  text-decoration: underline;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 8px 4px;
}

.quick-item {
  text-align: center;
  padding: 10px 4px;
  color: var(--text-strong);
}

.quick-item__icon {
  width: 2.3em;
  height: 2.3em;
  margin: 0 auto 6px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.quick-item__icon--blue { background: #1982c4; }
.quick-item__icon--orange { background: #fb5607; }
.quick-item__icon--pink { background: #ff006e; }
.quick-item__icon--cyan { background: #1195db; }

.quick-item__label {
  font-size: 12px;
  color: var(--text-strong);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  padding: 8px 10px;
}

.chip-row__label {
  width: 85px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  margin: 5px;
}

.chip-row__list {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.chip-row__list a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
  width: 16.666%;
  max-width: 16.666%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-btn {
  display: inline-block;
  margin: 4px 10px 10px;
  padding: 4px 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--surface);
  cursor: pointer;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tabs button {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 14px;
  padding: 4px 8px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}

.tabs button.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.feed-list {
  display: grid;
  gap: 0;
}

.feed-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
}

.feed-card:last-child {
  border-bottom: 0;
}

.feed-card__body {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.feed-card__title {
  color: var(--text-strong);
  font-size: 16px;
  padding: 16px 8px 8px 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-card__meta {
  padding: 0 8px 8px 16px;
  color: var(--text-soft);
  font-size: 14px;
  display: flex;
  gap: 12px;
}

.feed-card__desc {
  padding: 0 8px 8px 16px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-card__loc {
  padding: 8px 8px 16px 16px;
  font-size: 14px;
  color: var(--accent);
}

.feed-card__thumb {
  width: 100px;
  height: 132px;
  margin: 13px 16px 16px 0;
  border-radius: var(--radius);
  object-fit: cover;
  background: linear-gradient(145deg, #ffe0ef, #f2f2f2);
  flex-shrink: 0;
}

.prose {
  padding: 16px;
}

.prose > :last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 12px;
}

.entry-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  background: #fffafc;
}

.entry-card h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 16px;
}

.entry-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.faq details {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}

.faq details:first-child {
  border-top: 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-strong);
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.static-note {
  margin-top: 10px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px dashed var(--border-input);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
}

.search-panel {
  display: none;
  margin-top: 8px;
}

.search-panel.is-open {
  display: block;
}

.search-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-panel li {
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.search-panel a {
  display: block;
  padding: 10px 4px;
  color: var(--text-strong);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 24px var(--content-pad) calc(var(--cta-h) + 40px);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.site-footer__brand a {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-footer__nav a {
  color: var(--text-muted);
}

.site-cta {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: min(520px, calc(100vw - 28px));
  padding: 14px 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff4da6 0%, #ff3399 55%, #e02986 100%);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(255, 51, 153, 0.28);
  overflow: hidden;
  isolation: isolate;
}

.site-cta:hover,
.site-cta:focus-visible {
  color: #fff !important;
  filter: brightness(1.03);
}

.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 20% 120%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 40%);
  opacity: 0.55;
  animation: harbor-tide-seep 3.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  pointer-events: none;
  z-index: 0;
}

.site-cta::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 8px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transform: scaleX(0.96);
  transform-origin: center;
  opacity: 0.4;
  animation: pier-press 3.2s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
  pointer-events: none;
  z-index: 1;
}

.site-cta > span {
  position: relative;
  z-index: 2;
}

@keyframes harbor-tide-seep {
  0%,
  18% {
    opacity: 0.28;
    transform: translateY(10%) scale(1.02);
  }
  42% {
    opacity: 0.72;
    transform: translateY(0) scale(1);
  }
  70%,
  100% {
    opacity: 0.35;
    transform: translateY(4%) scale(1.01);
  }
}

@keyframes pier-press {
  0%,
  20% {
    transform: scaleX(0.96) translateY(0);
    opacity: 0.35;
  }
  45% {
    transform: scaleX(1) translateY(1px);
    opacity: 0.9;
  }
  75%,
  100% {
    transform: scaleX(0.97) translateY(0);
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before,
  .site-cta::after {
    animation: none;
  }

  .site-cta::before {
    opacity: 0.45;
    transform: none;
  }

  .site-cta::after {
    transform: scaleX(0.85);
    opacity: 0.7;
  }
}

@media (max-width: 991px) {
  .header-search {
    display: none;
  }

  .chip-row__list a {
    width: 25%;
    max-width: 25%;
  }
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav,
  .header-auth {
    display: none;
  }

  .brand img {
    width: 108px;
    height: 28px;
  }

  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .feed-card__thumb {
    width: 84px;
    height: 112px;
  }

  .chip-row__list a {
    width: 25%;
    max-width: 25%;
  }

  .site-cta {
    min-height: 52px;
    font-size: 15px;
    width: calc(100vw - 28px);
  }
}

@media (min-width: 576px) {
  .site-main,
  .site-header__inner,
  .site-footer__inner {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .site-main,
  .site-header__inner,
  .site-footer__inner {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .site-main,
  .site-header__inner,
  .site-footer__inner {
    max-width: 960px;
  }

  .chip-row__list a {
    width: 10%;
    max-width: 10%;
  }
}

@media (min-width: 1200px) {
  .site-main,
  .site-header__inner,
  .site-footer__inner {
    max-width: 1140px;
  }
}
