@charset "utf-8";

/* ==========================================================================
   一楼一凤 66feng.cyou — 基础与设计 token
   ========================================================================== */
:root {
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --surface-2: #F9FAFB;
  --brand: #EC4899;
  --brand-600: #DB2777;
  --brand-deep: #BE185D;
  --brand-dark: #9D174D;
  --cta-ink: #FFFFFF;
  --cta-line: rgba(255, 221, 236, .9);
  --ink: #374151;
  --ink-2: #4B5563;
  --text: #4B5563;
  --muted: #5B616E;
  --muted-2: #7C828E;
  --line: #E5E7EB;
  --line-2: #F1F2F4;
  --radius: 6px;
  --radius-sm: 3px;
  --radius-cta: 8px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  --shadow-md: 0 10px 18px -10px rgba(17, 24, 39, .22);
  --container: 1280px;
  --header-h: 80px;
  --cta-h: 56px;
  --cta-gap: 12px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, "Microsoft YaHei", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  padding-bottom: calc(var(--cta-h) + 56px + env(safe-area-inset-bottom, 0px));
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 17px;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

li {
  margin-bottom: 6px;
}

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

a:hover {
  text-decoration: underline;
}

strong {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

.hidden-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background-color: var(--brand-deep);
  color: var(--cta-ink);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

.icon {
  width: 1em;
  height: 1em;
  display: block;
  fill: currentColor;
  flex: 0 0 auto;
}

/* ==========================================================================
   顶栏（复刻：fixed top-0 h-20 bg-white shadow）
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background-color: #FFFFFF;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 8px;
}

.topbar-left {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo img {
  width: 128px;
  height: auto;
  display: block;
}

.mainnav {
  display: none;
}

.topbar-right {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
}

.navbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background-color: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.navbtn:hover {
  color: var(--brand-600);
}

.searchbox {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 20rem;
  margin: 0 8px;
}

.searchbox-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
}

.searchbox-form input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background-color: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 10px 0;
}

.searchbox-form button {
  border: 0;
  background-color: transparent;
  color: var(--brand);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
}

.search-results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 320px;
  max-width: 76vw;
  max-height: 60vh;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 55;
}

.search-results[hidden] {
  display: none;
}

.search-results li {
  margin: 0;
}

.search-results a {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 15px;
}

.search-results a:hover,
.search-results a:focus-visible {
  background-color: var(--bg);
  color: var(--brand-deep);
  text-decoration: none;
}

.search-results .search-empty {
  padding: 10px;
  font-size: 14px;
  color: var(--muted-2);
}

/* 移动端抽屉 */
.drawer-veil {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, .45);
  z-index: 60;
}

.drawer-veil[hidden] {
  display: none;
}

.drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 268px;
  max-width: 84vw;
  background-color: var(--surface);
  box-shadow: var(--shadow-md);
  z-index: 61;
  display: flex;
  flex-direction: column;
  transform: translateX(-102%);
  transition: transform .24s cubic-bezier(.22, .8, .3, 1);
  overflow-y: auto;
}

.drawer[data-open="true"] {
  transform: translateX(0);
}

.drawer[hidden] {
  display: none;
}

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.drawer-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background-color: transparent;
  color: var(--muted);
  cursor: pointer;
}

.drawer-search {
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.drawer-search .searchbox {
  max-width: none;
  margin: 0;
}

.drawer-search .search-results {
  position: static;
  width: auto;
  max-width: none;
  border: 0;
  box-shadow: none;
  padding: 6px 0 0;
}

.drawer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-nav a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  color: var(--ink);
  font-size: 16px;
}

.drawer-nav a:hover,
.drawer-nav a:focus-visible {
  color: var(--brand-600);
  text-decoration: none;
}

/* ==========================================================================
   主体容器（复刻：bg-gray-100 px-3 pt-20）
   ========================================================================== */
.stage {
  padding-top: var(--header-h);
  padding-bottom: 8px;
}

.stage-inner {
  padding-top: 12px;
  padding-bottom: 24px;
}

/* 卡片区块（复刻 .card-wrapper：白底、6px 圆角、卡片阴影） */
.slab {
  background-color: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 12px;
}

.slab-pad {
  padding: 16px;
}

.slab-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.slab-head .icon {
  color: var(--brand);
}

.slab-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.slab-body {
  padding: 16px;
}

/* ==========================================================================
   首页快捷入口与城市（复刻 grid-cols-4 md:6 lg:12 gap-4）
   ========================================================================== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 8px;
  text-align: center;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 68px;
  padding: 6px 2px;
  border-radius: var(--radius-sm);
  color: var(--ink);
}

.quick-item:hover {
  text-decoration: none;
}

.quick-item .icon {
  width: 30px;
  height: 30px;
  color: var(--brand);
}

.quick-item:hover .icon,
.quick-item:hover .quick-label {
  color: var(--brand-600);
}

.quick-label {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 6px;
  text-align: center;
}

.city-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 2px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  background-color: var(--surface-2);
  border: 1px solid var(--line-2);
}

.city-item:hover {
  color: var(--brand-600);
  border-color: var(--brand);
  text-decoration: none;
}

.city-note {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.section-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 4px;
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
}

.section-note .icon {
  color: #EF4444;
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   信息流卡片（复刻横向卡：左文字 / 右 100×135 缩略位）
   ========================================================================== */
.feed {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 8px;
}

.feed-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  height: 100%;
}

.feed-card:hover {
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.feed-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.feed-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.feed-note {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 14px;
  color: var(--muted-2);
}

.feed-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.feed-region {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-600);
}

.feed-thumb {
  flex: 0 0 auto;
  width: 100px;
  min-height: 135px;
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  text-align: center;
}

.feed-thumb .icon {
  width: 26px;
  height: 26px;
  color: var(--brand);
}

.feed-thumb-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* 攻略卡（复刻纵向卡：标题 / 元信息 / 封面 / 地区） */
.story {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 12px;
}

.story-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background-color: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink-2);
  height: 100%;
}

.story-card:hover {
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.story-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.story-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  text-align: center;
}

.story-cover .icon {
  width: 28px;
  height: 28px;
  color: var(--brand);
}

.story-cover-text {
  font-size: 14px;
  color: var(--muted);
}

/* ==========================================================================
   内容内页两栏（复刻 md:flex-row，70% / 30%）
   ========================================================================== */
.split {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split-main,
.split-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 15px;
  margin-bottom: 10px;
}

.field-row:last-child {
  margin-bottom: 0;
}

.field-key {
  flex: 0 0 auto;
  min-width: 4.5em;
  font-weight: 600;
  color: var(--ink);
}

.field-val {
  flex: 1 1 12em;
  min-width: 0;
  color: var(--text);
}

.notice {
  padding: 14px 16px;
  background-color: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink-2);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 12px 4px 0;
  font-size: 14px;
  color: var(--muted);
}

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

.linkbox a {
  display: inline-block;
  padding: 8px 0;
  font-size: 15px;
  color: var(--muted);
}

.linkbox a:hover {
  color: var(--brand-600);
}

.ticklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ticklist li {
  padding: 10px 0;
  margin: 0;
  border-bottom: 1px solid var(--line-2);
}

.ticklist li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tick-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.tick-note {
  font-size: 14px;
  color: var(--muted);
}

.qa {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-2);
}

.qa:first-child {
  padding-top: 0;
}

.qa:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.qa h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.tablewrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

thead th {
  background-color: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  margin-top: 12px;
  background-color: #FFFFFF;
  box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, .06);
  padding: 24px 0 18px;
  text-align: center;
}

.pf-brand {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.pf-brand:hover {
  color: var(--brand-deep);
  text-decoration: none;
}

.pf-tagline {
  font-size: 14px;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 18px;
}

.pf-cols {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.pf-col h2 {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.pf-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pf-col li {
  margin: 0;
}

.pf-col a {
  display: inline-block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}

.pf-col a:hover {
  color: var(--brand-600);
}

.pf-legal {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted-2);
}

/* ==========================================================================
   固定 CTA：楼上灯火升起 + 楼沿细线画出
   ========================================================================== */
.site-cta {
  position: fixed;
  left: 50%;
  bottom: 12px;
  bottom: calc(var(--cta-gap) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 24px);
  min-height: var(--cta-h);
  padding: 12px 20px;
  border-radius: var(--radius-cta);
  background-color: var(--brand-deep);
  color: var(--cta-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 18px -8px rgba(190, 24, 93, .55);
}

.site-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(115% 150% at 50% -16%, rgba(255, 214, 232, .95) 0%, rgba(255, 214, 232, 0) 70%);
  opacity: 0;
  transform: scale(.96);
  pointer-events: none;
  animation: floorlight-rise 3s cubic-bezier(.22, .8, .3, 1) infinite;
}

.site-cta::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 2px;
  border-radius: 2px;
  background-color: var(--cta-line);
  transform: scaleX(0);
  transform-origin: left center;
  animation: floorline-draw 3s cubic-bezier(.22, .8, .3, 1) infinite;
}

.site-cta .cta-text {
  position: relative;
  z-index: 1;
}

.site-cta:hover,
.site-cta:focus {
  background-color: var(--brand-dark);
  text-decoration: none;
}

@keyframes floorlight-rise {
  0%,
  46% {
    opacity: 0;
    transform: scale(.96);
  }

  62% {
    opacity: .32;
    transform: scale(1.03);
  }

  80%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes floorline-draw {
  0%,
  52% {
    transform: scaleX(0);
    opacity: 1;
  }

  68% {
    transform: scaleX(1);
  }

  86%,
  100% {
    transform: scaleX(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before {
    animation: none;
    opacity: .18;
    transform: none;
  }

  .site-cta::after {
    animation: none;
    transform: scaleX(1);
    opacity: .5;
  }

  .drawer {
    transition: none;
  }
}

/* ==========================================================================
   断点（对齐抓取页实际使用的 640 / 768 / 1024 / 1280）
   ========================================================================== */
@media (min-width: 640px) {
  .quick-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .city-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-cover {
    aspect-ratio: 4 / 3;
  }

  .linkbox {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pf-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-cta {
    width: auto;
    min-width: 420px;
    max-width: 560px;
  }
}

@media (min-width: 768px) {
  .split {
    flex-direction: row;
    align-items: flex-start;
  }

  .split-main {
    flex: 1 1 auto;
    width: 70%;
  }

  .split-side {
    flex: 0 0 auto;
    width: 30%;
  }

  .pf-cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .mainnav {
    display: block;
    margin-left: 8px;
  }

  .mainnav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mainnav a {
    display: flex;
    align-items: center;
    height: var(--header-h);
    padding: 0 24px;
    font-size: 16px;
    color: var(--ink);
    white-space: nowrap;
  }

  .mainnav a:hover {
    color: var(--brand-600);
    text-decoration: none;
  }

  .mainnav a[aria-current="page"] {
    color: var(--brand);
    border-bottom: 2px solid var(--brand);
  }

  .feed {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .story {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .linkbox {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .mainnav a {
    padding: 0 24px;
  }
}
