/* 海角社区 全站样式 */
:root {
  --brand-blue: #1677EE;
  --bright-blue: #3395FF;
  --deep-blue: #075FC6;
  --dark-blue: #08488D;
  --navy: #0A315E;
  --footer-bg: #071D37;
  --white: #FFFFFF;
  --light-bg: #F7FAFF;
  --soft-blue: #EDF5FF;
  --pale-blue: #E5F1FF;
  --title: #16243A;
  --body: #3C485A;
  --secondary: #6B7787;
  --muted: #929BA8;
  --light-text: #DCEEFF;
  --border: rgba(22,119,238,0.12);
  --dark-border: rgba(255,255,255,0.12);
  --shadow: 0 12px 34px rgba(30,72,120,0.08);
  --brand-shadow: 0 14px 40px rgba(22,119,238,0.14);
  --btn-gradient: linear-gradient(135deg,#3998FF 0%,#1677EE 55%,#075FC6 100%);
  --max-width: 1320px;
  --content-width: 1100px;
  --article-width: 780px;
  --nav-height: 72px;
  --mobile-nav-height: 62px;
  --bottom-nav-height: 58px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--deep-blue);
}

a:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== 顶部导航 ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--title);
}

.brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.brand-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--title);
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.desktop-nav a {
  padding: 8px 14px;
  font-size: 15px;
  color: var(--body);
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.desktop-nav a:hover {
  background: var(--soft-blue);
  color: var(--brand-blue);
}

.desktop-nav a.active {
  background: var(--pale-blue);
  color: var(--brand-blue);
  font-weight: 500;
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--brand-blue);
  border-radius: 50%;
}

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

.header-actions a,
.header-actions button {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--body);
  font-size: 14px;
  padding: 0 12px;
}

.header-actions a:hover,
.header-actions button:hover {
  background: var(--soft-blue);
  color: var(--brand-blue);
}

.btn-menu {
  display: none;
}

.btn-search {
  font-size: 15px;
}

/* 手机顶部 */
.mobile-header {
  display: none;
  height: var(--mobile-nav-height);
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 12px;
}

.mobile-header .brand-logo {
  height: 30px;
}

.mobile-header .brand-name {
  font-size: 16px;
}

.mobile-header button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--title);
  font-size: 20px;
}

.mobile-header button:hover {
  background: var(--soft-blue);
}

/* ========== 主内容 ========== */
main {
  min-height: 60vh;
}

/* Hero Banner */
.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  max-height: 520px;
  background: linear-gradient(135deg, #0A315E 0%, #1677EE 50%, #3395FF 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 24px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
  line-height: 1.25;
}

.hero-content p {
  font-size: 18px;
  color: #DCEEFF;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: var(--btn-gradient);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  box-shadow: var(--brand-shadow);
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(22,119,238,0.22);
  color: #FFFFFF !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: rgba(255,255,255,0.18);
  color: #FFFFFF !important;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  min-height: 48px;
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.28);
  color: #FFFFFF !important;
}

/* 四格导航 */
.quick-nav {
  padding: 36px 0 20px;
  background: var(--light-bg);
}

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

.quick-nav-item {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.quick-nav-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--brand-shadow);
}

.quick-nav-item .icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: var(--pale-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--brand-blue);
}

.quick-nav-item h3 {
  font-size: 17px;
  color: var(--title);
  margin-bottom: 6px;
  font-weight: 600;
}

.quick-nav-item p {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.5;
}

/* 通用区块 */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--light-bg);
}

.section-header {
  margin-bottom: 36px;
  text-align: center;
}

.section-header h2 {
  font-size: 30px;
  color: var(--title);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.section-header p {
  font-size: 16px;
  color: var(--secondary);
  max-width: 640px;
  margin: 0 auto;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 15px;
  color: var(--brand-blue);
  font-weight: 500;
}

/* 今日值得看 */
.featured-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.featured-main {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.featured-main .media-slot {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #E5F1FF, #F7FAFF);
  position: relative;
}

.featured-main .content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-main h3 {
  font-size: 20px;
  color: var(--title);
  margin-bottom: 10px;
  line-height: 1.4;
}

.featured-main p {
  font-size: 15px;
  color: var(--body);
  flex: 1;
  line-height: 1.65;
}

.featured-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.featured-card {
  background: var(--white);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  flex: 1;
}

.featured-card h3 {
  font-size: 17px;
  color: var(--title);
  margin-bottom: 8px;
  line-height: 1.4;
}

.featured-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

.featured-short {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.short-card {
  background: var(--white);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--border);
}

.short-card h4 {
  font-size: 15px;
  color: var(--title);
  margin-bottom: 6px;
}

.short-card p {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.55;
}

/* 城市生活志 feature */
.city-feature {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}

.city-feature-image {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #EDF5FF, #E5F1FF);
  position: relative;
  box-shadow: var(--shadow);
}

.city-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.city-feature-text h2 {
  font-size: 28px;
  color: var(--title);
  margin-bottom: 16px;
  line-height: 1.3;
}

.city-feature-text p {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 14px;
  line-height: 1.7;
}

/* 时间板 周末 */
.time-boards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.time-board {
  background: var(--white);
  border-radius: 14px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.time-board .time-label {
  font-size: 13px;
  color: var(--brand-blue);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.time-board h3 {
  font-size: 17px;
  color: var(--title);
  margin-bottom: 10px;
}

.time-board p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* 兴趣网格 */
.interest-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.interest-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.interest-item:hover {
  border-color: rgba(22,119,238,0.3);
  box-shadow: var(--shadow);
}

.interest-item h3 {
  font-size: 16px;
  color: var(--title);
  margin-bottom: 6px;
}

.interest-item p {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.5;
}

/* 经验列表 */
.experience-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.experience-item {
  background: var(--white);
  border-radius: 12px;
  padding: 22px;
  border: 1px solid var(--border);
}

.experience-item h3 {
  font-size: 17px;
  color: var(--title);
  margin-bottom: 10px;
  line-height: 1.4;
}

.experience-item p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.65;
}

/* 故事 */
.story-main {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}

.story-main h3 {
  font-size: 22px;
  color: var(--title);
  margin-bottom: 14px;
  line-height: 1.35;
}

.story-main p {
  font-size: 16px;
  color: var(--body);
  line-height: 1.75;
  margin-bottom: 12px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.story-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

.story-card h4 {
  font-size: 16px;
  color: var(--title);
  margin-bottom: 8px;
}

.story-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.6;
}

/* 热议主题 */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.topic-item {
  background: var(--white);
  border-radius: 12px;
  padding: 22px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.topic-item:hover {
  border-color: rgba(22,119,238,0.35);
}

.topic-item h3 {
  font-size: 17px;
  color: var(--title);
  margin-bottom: 8px;
  line-height: 1.4;
}

.topic-item p {
  font-size: 14px;
  color: var(--secondary);
  line-height: 1.6;
}

/* 指南 */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-card {
  background: var(--white);
  border-radius: 12px;
  padding: 22px;
  border: 1px solid var(--border);
}

.guide-card h3 {
  font-size: 16px;
  color: var(--title);
  margin-bottom: 10px;
}

.guide-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.65;
}

/* 影集 */
.album-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.media-slot {
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(160deg, #E5F1FF 0%, #F7FAFF 60%, #FFFFFF 100%);
  position: relative;
  border: 1px solid var(--border);
}

.media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-slot.wide {
  aspect-ratio: 16 / 9;
}

.media-slot.medium {
  aspect-ratio: 4 / 3;
}

.media-slot.small {
  aspect-ratio: 1 / 1;
}

.album-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.album-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

/* APP 预览 */
.app-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.app-preview-image {
  max-height: 480px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.app-preview-image img {
  max-height: 480px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.app-text h2 {
  font-size: 28px;
  color: var(--title);
  margin-bottom: 16px;
}

.app-text p {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 14px;
  line-height: 1.7;
}

.app-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.app-feature {
  background: var(--soft-blue);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--title);
}

/* 脉搏信息条 */
.pulse-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pulse-item {
  background: var(--white);
  border-radius: 10px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pulse-item .tag {
  flex-shrink: 0;
  font-size: 12px;
  padding: 4px 10px;
  background: var(--pale-blue);
  color: var(--brand-blue);
  border-radius: 6px;
  font-weight: 500;
}

.pulse-item p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.55;
}

/* 安全区块 */
.security-block {
  background: var(--navy);
  border-radius: 16px;
  padding: 40px;
  color: #FFFFFF;
}

.security-block h2 {
  font-size: 26px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.security-block p {
  font-size: 15px;
  color: var(--light-text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.security-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.security-list li {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  color: #DCEEFF;
  border: 1px solid var(--dark-border);
}

/* 隐私 */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.privacy-card {
  background: var(--white);
  border: 1px solid rgba(22,119,238,0.15);
  border-radius: 12px;
  padding: 22px;
}

.privacy-card h3 {
  font-size: 16px;
  color: var(--title);
  margin-bottom: 10px;
}

.privacy-card p {
  font-size: 14px;
  color: var(--body);
  line-height: 1.65;
}

/* 内页通用 */
.page-hero {
  padding: 48px 0 32px;
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: 36px;
  color: var(--title);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
}

.page-hero .lead {
  font-size: 17px;
  color: var(--secondary);
  max-width: 720px;
  line-height: 1.65;
}

.page-content {
  padding: 48px 0 64px;
}

.page-content h2 {
  font-size: 24px;
  color: var(--title);
  margin: 36px 0 16px;
  line-height: 1.35;
}

.page-content h3 {
  font-size: 19px;
  color: var(--title);
  margin: 28px 0 12px;
}

.page-content p {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 16px;
  line-height: 1.75;
  max-width: 820px;
}

.page-content ul, .page-content ol {
  margin: 16px 0 24px 24px;
  max-width: 780px;
}

.page-content li {
  font-size: 15px;
  color: var(--body);
  margin-bottom: 10px;
  line-height: 1.65;
  list-style: disc;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.content-card h3 {
  font-size: 18px;
  color: var(--title);
  margin-bottom: 12px;
}

.content-card p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* FAQ */
.faq-list details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 0;
}

.faq-list summary {
  padding: 18px 22px;
  font-size: 16px;
  color: var(--title);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-list summary::after {
  content: "+";
  font-size: 20px;
  color: var(--brand-blue);
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 22px 20px;
  font-size: 15px;
  color: var(--body);
  line-height: 1.7;
}

/* ========== Mega Menu ========== */
.mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.mega-menu.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.mega-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,29,55,0.45);
}

.mega-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 920px;
  height: 100%;
  background: var(--white);
  box-shadow: -12px 0 40px rgba(0,0,0,0.12);
  overflow-y: auto;
  padding: 32px 40px 48px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.mega-menu.open .mega-panel {
  transform: translateX(0);
}

.mega-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.mega-header .brand {
  gap: 12px;
}

.mega-close {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--title);
  background: var(--soft-blue);
}

.mega-close:hover {
  background: var(--pale-blue);
}

.mega-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.mega-group h4 {
  font-size: 13px;
  color: var(--brand-blue);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.mega-group a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: var(--title);
  border-bottom: 1px solid transparent;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.mega-group a:hover {
  color: var(--brand-blue);
}

/* 搜索面板 */
.search-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2100;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.search-panel.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.search-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7,29,55,0.5);
}

.search-box {
  position: relative;
  max-width: 640px;
  margin: 120px auto 0;
  padding: 0 24px;
}

.search-box input {
  width: 100%;
  height: 56px;
  border-radius: 14px;
  border: none;
  padding: 0 56px 0 24px;
  font-size: 17px;
  background: var(--white);
  box-shadow: 0 16px 48px rgba(0,0,0,0.15);
  color: var(--title);
}

.search-box input:focus {
  outline: 2px solid var(--brand-blue);
}

.search-close {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--secondary);
}

/* 手机底部导航 */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(255,255,255,0.97);
  border-top: 1px solid var(--border);
  z-index: 900;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}

.mobile-bottom-nav-inner {
  display: flex;
  height: var(--bottom-nav-height);
  align-items: center;
  justify-content: space-around;
}

.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  color: var(--secondary);
  min-height: 48px;
  padding: 6px 0;
}

.mobile-bottom-nav a.active {
  color: var(--brand-blue);
}

.mobile-bottom-nav a span.icon {
  font-size: 20px;
  line-height: 1;
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--footer-bg);
  color: #DCEEFF;
  padding: 56px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}

.footer-brand-en {
  font-size: 12px;
  color: #A8C4E0;
  letter-spacing: 0.08em;
  margin-left: 4px;
}

.footer-desc {
  font-size: 14px;
  color: #A8C4E0;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 14px;
  color: #FFFFFF;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #A8C4E0;
  padding: 6px 0;
  min-height: 36px;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #7A96B4;
}

/* 工具类 */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }

/* ========== 响应式 ========== */
@media (max-width: 1280px) {
  .container, .header-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .featured-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .interest-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1024px) {
  .desktop-nav {
    gap: 2px;
  }
  .desktop-nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
  .hero-content h1 {
    font-size: 40px;
  }
  .city-feature {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .time-boards {
    grid-template-columns: repeat(2, 1fr);
  }
  .interest-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .app-section {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .mega-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    display: none;
  }
  .mobile-header {
    display: block;
  }
  .btn-menu {
    display: flex;
  }
  .hero-banner {
    aspect-ratio: 16 / 10;
    max-height: 380px;
  }
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-content p {
    font-size: 15px;
  }
  .quick-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .featured-short {
    grid-template-columns: 1fr;
  }
  .city-feature {
    grid-template-columns: 1fr;
  }
  .city-feature-image {
    order: -1;
  }
  .time-boards {
    grid-template-columns: 1fr;
  }
  .interest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .experience-list {
    grid-template-columns: 1fr;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .topics-grid {
    grid-template-columns: 1fr;
  }
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .album-layout {
    grid-template-columns: 1fr;
  }
  .album-bottom {
    grid-template-columns: 1fr;
  }
  .app-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-preview-image {
    max-height: 360px;
  }
  .app-preview-image img {
    max-width: 280px;
  }
  .app-features {
    grid-template-columns: 1fr;
  }
  .security-list {
    grid-template-columns: 1fr;
  }
  .privacy-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: 28px;
  }
  .section-header h2 {
    font-size: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .mega-panel {
    max-width: 100%;
    padding: 24px 20px 40px;
  }
  .mega-groups {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .mobile-bottom-nav {
    display: block;
  }
  body {
    padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px));
  }
  main {
    padding-bottom: 20px;
  }
}

@media (max-width: 560px) {
  .hero-content h1 {
    font-size: 28px;
  }
  .quick-nav-item {
    padding: 20px 14px;
  }
  .quick-nav-item h3 {
    font-size: 15px;
  }
  .section {
    padding: 40px 0;
  }
  .page-hero {
    padding: 36px 0 24px;
  }
  .page-hero h1 {
    font-size: 26px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* 打印与无障碍 */
@media print {
  .site-header, .mobile-header, .mobile-bottom-nav, .mega-menu, .search-panel {
    display: none !important;
  }
  body {
    padding: 0;
  }
}
