/* ===== Hidden elements (date-nav & search-bar moved into marquee/removed) ===== */
#date-nav, #search-bar { display: none !important; }

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #F8F5F0;
  color: #23232A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #C82323 url('header-bg.jpg') center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 14px;
  max-width: 720px;
  margin: 0 auto;
}

.header-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.header-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.city-select-pill {
  display: inline-flex;
  align-items: center;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 24px;
  padding: 6px 14px;
  flex-shrink: 0;
}

.header-title {
  font-size: 36px;
  font-weight: 900;
  white-space: nowrap;
  letter-spacing: 5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-family: "Noto Sans SC", sans-serif;
  transform: skewX(-4deg);
}

.header-date {
  font-size: 14px;
  color: rgba(255,220,220,0.9);
  margin-top: 6px;
}

.back-btn {
  font-size: 18px;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0.9;
  margin-right: 10px;
  transition: opacity 0.15s;
}
.back-btn:hover { opacity: 1; }

.header-logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.city-select {
  background: transparent;
  color: #fff;
  border: none;
  padding: 0 18px 0 0;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='rgba(255,255,255,0.9)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  font-family: inherit;
}
.city-select option { color: #333; background: #fff; font-size: 15px; }

.header-gold-line {
  height: 4px;
  background: linear-gradient(90deg, #F0C83C, #e6b832, #F0C83C);
}

/* ===== Date Navigator ===== */
.date-nav {
  background: #FFFDF7;
  border-bottom: 1px solid #E8E6E0;
}

.date-nav-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 16px;
}

.date-nav-btn {
  background: none;
  border: 1px solid #D0CEC8;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  color: #5A5A64;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.date-nav-btn:hover:not(:disabled) {
  background: #F0EDE6;
  border-color: #B0AEA8;
}
.date-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.date-display {
  font-size: 15px;
  font-weight: 600;
  color: #3A3A40;
  white-space: nowrap;
  min-width: 160px;
  text-align: center;
}

/* ===== Search Bar ===== */
.search-bar {
  background: #FFFDF7;
  border-bottom: 1px solid #E8E6E0;
  position: sticky;
  top: 0;
  z-index: 98;
}

.search-bar-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
}

.search-input {
  flex: 1;
  height: 38px;
  padding: 0 14px;
  border: 1.5px solid #E0DDD6;
  border-radius: 20px;
  font-size: 14px;
  background: #fff;
  color: #23232A;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}
.search-input:focus {
  border-color: #C82323;
}
.search-input::placeholder {
  color: #B0AEA8;
}

.search-btn {
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 20px;
  background: #C82323;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  font-family: inherit;
}
.search-btn:hover {
  background: #a91e1e;
}

/* ===== Weather Marquee ===== */
.weather-marquee {
  overflow: hidden;
  background: #F0F8FF;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 6px 0;
  border-left: 4px solid #1E8C64;
}

.weather-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 20s linear infinite;
}

.weather-marquee-content {
  display: inline-block;
  padding: 0 40px;
  font-size: 13px;
  color: #23232A;
  line-height: 1.6;
  flex-shrink: 0;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Carousel ===== */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 200px;
  margin-bottom: 14px;
  cursor: pointer;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.carousel-slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent 0%, rgba(0,0,0,0.55) 100%);
}

.carousel-slide-cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.carousel-slide-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  right: 14px;
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* ===== Category Section ===== */
.cat-section {
  margin-bottom: 16px;
}

/* ===== Category Banner Grid ===== */
.cat-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 8px 0;
}

.cat-banner-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 120px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cat-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.cat-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 14px;
}

.cat-banner-header {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-banner-icon {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 3px;
  backdrop-filter: blur(4px);
}
.cat-banner-icon svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.cat-banner-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cat-banner-count {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin-left: auto;
}

.cat-banner-title {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: opacity 0.15s;
}
.cat-banner-title:hover {
  opacity: 0.85;
  text-decoration: underline;
}

@media (max-width: 380px) {
  .cat-banner-grid { grid-template-columns: 1fr; }
  .cat-banner-card { height: 100px; }
}

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

.cat-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s;
}
.cat-grid-item:hover {
  transform: translateY(-2px);
}

.cat-grid-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.15s, transform 0.15s;
}
.cat-grid-icon svg {
  display: block;
}
.cat-grid-item:hover .cat-grid-icon {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: scale(1.05);
}

.cat-grid-label {
  font-size: 12px;
  color: #3A3A40;
  font-weight: 500;
  text-align: center;
}

/* More categories pills */
.cat-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border: 1.5px solid;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cat-pill:hover {
  background: currentColor;
  color: #fff !important;
}
.cat-pill:hover .cat-pill-count {
  color: rgba(255,255,255,0.7);
}
.cat-pill-count {
  font-size: 11px;
  opacity: 0.6;
}

/* ===== Category View ===== */
.cat-view-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 4px 12px;
}

.cat-view-icon {
  display: flex;
  align-items: center;
}
.cat-view-icon svg {
  width: 24px;
  height: 24px;
}

.cat-view-title {
  font-size: 20px;
  font-weight: 700;
  color: #23232A;
}

.cat-view-count {
  font-size: 13px;
  color: #A0A0A5;
  margin-left: auto;
}

.cat-date-separator {
  font-size: 13px;
  color: #A0A0A5;
  font-weight: 600;
  padding: 12px 4px 6px;
  border-bottom: 1px solid #E8E6E0;
  margin-bottom: 8px;
}

.cat-loading {
  text-align: center;
  padding: 40px;
  color: #A0A0A5;
  font-size: 15px;
}

/* ===== Search Results ===== */
.search-result-header {
  font-size: 18px;
  font-weight: 700;
  color: #23232A;
  padding: 16px 4px 4px;
}

.search-result-count {
  font-size: 13px;
  color: #A0A0A5;
  padding: 0 4px 12px;
}

/* ===== Container ===== */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 12px 32px;
  min-height: calc(100vh - 100px);
}

/* ===== Content transition ===== */
.content-wrapper {
  transition: opacity 0.2s ease;
}
.content-wrapper.fade-out {
  opacity: 0;
}

/* ===== No Data Message ===== */
.no-data-msg {
  text-align: center;
  padding: 80px 24px;
  color: #A0A0A5;
}
.no-data-msg .no-data-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.no-data-msg .no-data-text {
  font-size: 18px;
  font-weight: 600;
  color: #888;
}
.no-data-msg .no-data-sub {
  font-size: 14px;
  margin-top: 8px;
}

/* ===== Info Gap Card (kept for legacy) ===== */
.info-gap-card {
  background: #FFF8E6;
  border: 2px solid #F0BE3C;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.info-gap-title {
  font-size: 15px;
  font-weight: 700;
  color: #B46400;
  margin-bottom: 8px;
}

.info-gap-item {
  font-size: 14px;
  color: #5A5A64;
  margin-bottom: 4px;
  padding-left: 12px;
  position: relative;
  line-height: 1.6;
}
.info-gap-item::before {
  content: "·";
  position: absolute;
  left: 0;
  color: #B46400;
  font-weight: 700;
}

.info-gap-clickable {
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 6px;
  padding: 6px 12px 6px 20px;
  margin: 0 -4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.info-gap-clickable::before {
  left: 8px;
}
.info-gap-clickable:hover {
  background: rgba(180, 100, 0, 0.08);
}

.info-gap-arrow {
  font-size: 18px;
  color: #B46400;
  margin-left: 8px;
  flex-shrink: 0;
  font-weight: 700;
}

/* ===== News Card ===== */
.news-card {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}
.news-card:active {
  transform: translateY(0);
}

.news-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.cat-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.urgency-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.news-title {
  font-size: 16px;
  font-weight: 700;
  color: #23232A;
  line-height: 1.4;
}

.news-body {
  font-size: 14px;
  color: #5A5A64;
  margin-top: 6px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-source {
  font-size: 12px;
  color: #A0A0A5;
  margin-top: 6px;
}

/* ===== Infinite Scroll ===== */
.date-separator-line {
  display: flex;
  align-items: center;
  margin: 20px 0 12px;
  gap: 12px;
}

.date-separator-line::before,
.date-separator-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #DCDAD4;
}

.date-separator-text {
  font-size: 13px;
  font-weight: 600;
  color: #A0A0A5;
  white-space: nowrap;
}

.infinite-scroll-sentinel {
  height: 1px;
}

.infinite-scroll-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  color: #A0A0A5;
  font-size: 14px;
}

.loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #E0DDD6;
  border-top-color: #C82323;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.infinite-scroll-end {
  text-align: center;
  padding: 20px;
  color: #B0AEA8;
  font-size: 13px;
}

/* ===== Detail Page ===== */
.detail-page {
  padding: 0 0 24px;
}

.detail-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.detail-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.detail-tags .cat-tag {
  font-size: 13px;
  padding: 4px 14px;
  border-radius: 12px;
}
.detail-tags .urgency-tag {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
}

.detail-title {
  font-size: 24px;
  font-weight: 800;
  color: #23232A;
  line-height: 1.5;
  margin: 0 0 14px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.detail-source-badge {
  font-size: 13px;
  padding: 3px 10px;
  border: 1.5px solid;
  border-radius: 14px;
  font-weight: 600;
}

.detail-date {
  font-size: 13px;
  color: #A0A0A5;
}

.detail-share-btn {
  font-size: 13px;
  padding: 3px 10px;
  border: 1.5px solid #C82323;
  border-radius: 14px;
  font-weight: 600;
  color: #C82323;
  background: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.detail-share-btn:hover {
  background: #C82323;
  color: #fff;
}

.detail-divider {
  border: none;
  border-top: 1px solid #EDEDEB;
  margin: 0 0 20px;
}

.detail-article {
  margin-bottom: 4px;
}

.detail-paragraph {
  text-indent: 2em;
  font-size: 16px;
  color: #3a3a40;
  line-height: 1.9;
  margin: 0 0 18px;
  text-align: justify;
}
.detail-paragraph:last-child {
  margin-bottom: 0;
}

/* ===== Original Article Link ===== */
.detail-bottom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 8px;
}

.detail-original-link {
  display: inline-block;
  padding: 10px 20px;
  border: 1.5px solid;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.detail-original-link:hover {
  color: #fff !important;
}

.detail-share-inline-btn {
  display: inline-block;
  padding: 10px 20px;
  border: 1.5px solid;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}

.detail-nav {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.detail-nav-btn {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid #E8E6E2;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  color: #5A5A64;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  max-width: 50%;
}
.detail-nav-btn:first-child {
  justify-content: flex-start;
}
.detail-nav-btn:last-child {
  justify-content: flex-end;
  text-align: right;
}
.detail-nav-btn:hover:not(:disabled) {
  background: #f8f6f2;
  border-color: #ccc;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.detail-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.nav-arrow {
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid #DCDAD4;
  padding: 20px 0 8px;
  text-align: center;
  margin-top: 20px;
}

.footer-share {
  font-size: 14px;
  color: #5A5A64;
  margin-bottom: 12px;
}

.footer-disclaimer {
  font-size: 11px;
  color: #A0A0A5;
  line-height: 1.5;
  padding: 0 16px;
}

/* ===== Share Modal ===== */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.share-modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 20px 24px;
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding: 0 4px;
}

.share-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #23232A;
}

.share-modal-close {
  background: #f0eee9;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #999;
  transition: all 0.15s;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-modal-close:hover { background: #e5e2dc; color: #333; }

/* Share options (WeChat + Moments) */
/* Share action buttons */
.share-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 14px 0 4px;
}

.share-action-btn {
  flex: 1 1 calc(33% - 8px);
  min-width: 90px;
  padding: 12px 4px;
  border: 1.5px solid #E8E6E0;
  border-radius: 12px;
  background: #FAFAF8;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #3A3A40;
  transition: all 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.share-action-btn:hover {
  background: #F0EDE6;
  border-color: #C82323;
  color: #C82323;
}

/* Share guide overlay */
.share-guide {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  cursor: pointer;
}
.share-guide-arrow {
  position: absolute;
  top: 8px;
  right: 24px;
  animation: guideArrowBounce 1.2s ease-in-out infinite;
}
@keyframes guideArrowBounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(3px, -5px); }
}
.share-guide-center {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.share-guide-dots-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.share-guide-label {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}
.share-guide-dots-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.share-guide-icons {
  display: flex;
  gap: 48px;
}
.share-guide-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.share-guide-icon-item img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}
.share-guide-icon-item span {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  font-weight: 500;
}

/* Share toast */
.share-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10001;
  background: rgba(0,0,0,0.75);
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  text-align: center;
}

.share-canvas-wrapper {
  flex: 1;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid #EDEDEB;
  background: #F8F5F0;
}

.share-canvas-wrapper canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 11px;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .header-content { padding: 12px 12px 10px; }
  .header-title { font-size: 28px; letter-spacing: 4px; }
  .city-select-pill { padding: 5px 10px; }
  .city-select { font-size: 15px; }
  .header-logo { height: 60px; }
  .city-select { font-size: 16px; padding-right: 16px; }
  .header-date { font-size: 11px; margin-top: 4px; }
  .city-select { font-size: 13px; padding: 4px 22px 4px 6px; }
  .container { padding: 8px 8px 24px; }
  .detail-title { font-size: 20px; }
  .detail-card { padding: 20px 16px 18px; }
  .detail-paragraph {
  text-indent: 2em; font-size: 15px; }
  .detail-nav-btn { padding: 12px 10px; font-size: 12px; }
  .news-title { font-size: 15px; }
  .news-body { font-size: 13px; }
  .date-nav-inner { gap: 10px; padding: 6px 12px; }
  .date-display { font-size: 14px; min-width: 140px; }
  .carousel-container { height: 180px; }
  .carousel-slide-title { font-size: 14px; }
}

@media (min-width: 600px) and (max-width: 900px) {
  .container { padding: 16px 24px 32px; }
}

@media (min-width: 900px) {
  .container { padding: 16px 16px 40px; }
}

/* ===== Floating Home Button ===== */
.fab-home {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.25s;
  color: #B8860B;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.fab-home:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(0,0,0,0.16);
}
.fab-home:active {
  transform: scale(0.95);
}

@media (min-width: 600px) {
  .fab-home { bottom: 32px; right: 28px; width: 52px; height: 52px; }
}

/* v13 */

/* ===== Explore Other Cities ===== */
.explore-section {
  margin: 16px 0;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  background: linear-gradient(135deg, #fafbff 0%, #f5f0ff 100%);
  border-radius: 12px;
}
.explore-header {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  padding: 0 16px 12px;
}
.explore-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.explore-scroll::-webkit-scrollbar { display: none; }
.explore-card {
  flex: 0 0 140px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  padding: 14px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #f0f0f0;
}
.explore-card:active {
  transform: scale(0.97);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.explore-card-emoji { font-size: 28px; margin-bottom: 6px; }
.explore-card-city { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 6px; }
.explore-card-title {
  font-size: 12px; color: #888; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.explore-all {
  text-align: center; font-size: 14px; color: #666; padding: 8px 0 4px; cursor: pointer;
}
.explore-all:active { color: #333; }

/* Detail page teaser */
.explore-teaser {
  margin: 12px 0; padding: 14px 16px;
  background: linear-gradient(135deg, #f8f6ff 0%, #f0f4ff 100%);
  border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  border: 1px solid #e8e4f0; transition: transform 0.2s;
}
.explore-teaser:active { transform: scale(0.98); }
.explore-teaser-label { font-size: 14px; color: #555; white-space: nowrap; }
.explore-teaser-title { font-size: 14px; color: #333; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.explore-teaser-arrow { font-size: 16px; color: #999; margin-left: 4px; }

/* All Cities Overlay */
.all-cities-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.all-cities-overlay.visible { opacity: 1; }
.all-cities-panel {
  background: #fff; border-radius: 16px 16px 0 0;
  width: 100%; max-width: 500px; max-height: 70vh; overflow-y: auto;
  padding: 20px 16px 40px;
  transform: translateY(100%); transition: transform 0.3s;
}
.all-cities-overlay.visible .all-cities-panel { transform: translateY(0); }
.all-cities-header {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 18px; font-weight: 700; margin-bottom: 16px; color: #222;
}
.all-cities-close { background: none; border: none; font-size: 20px; color: #999; cursor: pointer; padding: 4px 8px; }
.all-cities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.all-city-item {
  padding: 12px 8px; text-align: center; background: #f8f8f8;
  border-radius: 10px; font-size: 14px; color: #333; cursor: pointer; transition: background 0.2s;
}
.all-city-item:active { background: #eee; }
