/* ===== 海洋号卡 - 品牌杂志风 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f8f7f4;
  color: #1c1917;
  line-height: 1.7;
}
a { color: #1a365d; text-decoration: none; transition: color .2s; }
a:hover { color: #b91c1c; }
img { max-width: 100%; height: auto; }

/* ===== Header / Logo ===== */
.header {
  background: #fff;
  border-bottom: 1px solid #e8e6e1;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon { font-size: 1.3rem; }
.logo-text {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a365d;
  letter-spacing: 2px;
}
.logo-tag {
  font-size: .65rem;
  color: #b91c1c;
  border: 1px solid #b91c1c;
  border-radius: 3px;
  padding: 0 6px;
  line-height: 1.5;
  margin-left: 2px;
}
.header-nav { display: flex; gap: 2px; align-items: center; }
.header-nav a {
  padding: 6px 12px;
  font-size: .82rem;
  color: #52525b;
  border-radius: 4px;
  transition: all .2s;
}
.header-nav a:hover { color: #1a365d; background: #f4f3f0; }
.header-nav a.active { color: #1a365d; font-weight: 600; background: #f4f3f0; }
.header-nav .store-nav {
  background: #1a365d;
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 500;
}
.header-nav .store-nav:hover { background: #b91c1c; }

/* ===== Container ===== */
.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* ===== Hero 文章 ===== */
.hero-article {
  display: block;
  background: #fff;
  margin: 24px 0 32px;
  padding: 32px;
  transition: transform .2s;
}
.hero-article:hover { transform: translateY(-2px); }
.hero-label {
  font-size: .7rem;
  color: #b91c1c;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-title {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1a365d;
  margin-bottom: 8px;
}
.hero-meta { font-size: .78rem; color: #a1a1aa; margin-bottom: 12px; }
.hero-excerpt { font-size: .9rem; color: #52525b; line-height: 1.6; margin-bottom: 12px; }
.hero-read { font-size: .85rem; color: #1a365d; font-weight: 500; }
.hero-article:hover .hero-read { color: #b91c1c; }

@media (max-width: 480px) {
  .hero-article { padding: 20px; margin: 16px 0 24px; }
  .hero-title { font-size: 1.2rem; }
}

/* ===== Section Head ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #1a365d;
}
.section-head h2 {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a365d;
}
.section-head .more-link { font-size: .78rem; color: #71717a; }
.section-head .more-link:hover { color: #b91c1c; }

/* ===== 文章网格 ===== */
.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 560px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  background: #fff;
  padding: 20px;
  transition: transform .2s;
}
.article-card:hover { transform: translateY(-2px); }
.article-card-date { font-size: .72rem; color: #a1a1aa; margin-bottom: 6px; }
.article-card-title {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.5;
  color: #1a365d;
  margin: 8px 0;
}
.article-card-excerpt { font-size: .82rem; color: #71717a; line-height: 1.6; }

/* ===== 标签 ===== */
.article-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 4px; }
.tag {
  font-size: .62rem; padding: 1px 8px; border-radius: 3px;
  letter-spacing: 0.5px; display: inline-block;
}
.tag-op { background: #eef2ff; color: #4338ca; }
.tag-移动 { background: #dcfce7; color: #166534; }
.tag-联通 { background: #dbeafe; color: #1e40af; }
.tag-电信 { background: #fef3c7; color: #92400e; }
.tag-广电 { background: #f3e8ff; color: #6b21a8; }
.tag-area { background: #f4f3f0; color: #71717a; }
.tag-loc { background: #fff1f2; color: #be123c; }

/* ===== 文章内页 ===== */
.article-page {
  max-width: 720px; margin: 0 auto; padding: 32px 16px;
}
.article-page .back-link { display: inline-block; font-size: .82rem; color: #71717a; margin-bottom: 20px; }
.article-page .back-link:hover { color: #b91c1c; }
.article-page h1 {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: 1.5rem; font-weight: 700; line-height: 1.4;
  color: #1a365d; margin-bottom: 12px;
}
.article-meta-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e8e6e1;
}
.meta-date { font-size: .82rem; color: #a1a1aa; }
.content { font-size: .92rem; line-height: 2; color: #27272a; }
.content h2 {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: 1.1rem; font-weight: 700;
  color: #1a365d; margin: 28px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #e8e6e1;
}
.content h2:first-child { margin-top: 4px; }
.content strong { color: #1a365d; }
.content blockquote {
  border-left: 3px solid #b91c1c; padding: 12px 16px; margin: 16px 0;
  background: #fafaf9; color: #52525b; font-size: .88rem;
}
.content ul { padding-left: 20px; margin: 12px 0; }
.content a { color: #1a365d; border-bottom: 1px solid #d4d4d8; }
.content a:hover { color: #b91c1c; border-bottom-color: #b91c1c; }
.store-cta { margin-top: 28px; padding: 20px; background: #fafaf9; border: 1px solid #e8e6e1; text-align: center; }
.store-cta p { font-size: .88rem; color: #71717a; margin-bottom: 12px; }

/* ===== 分享栏 ===== */
.share-bar {
  display: flex; align-items: center; gap: 8px;
  margin: 24px 0; padding: 12px 0; border-top: 1px solid #e8e6e1; border-bottom: 1px solid #e8e6e1;
}
.share-label { font-size: .78rem; color: #a1a1aa; margin-right: 4px; }
.share-btn {
  display: inline-block; padding: 4px 12px;
  font-size: .75rem; border: 1px solid #e8e6e1;
  background: #fff; color: #52525b; cursor: pointer;
  transition: all .2s; text-decoration: none; border-radius: 3px;
}
.share-btn:hover { border-color: #1a365d; color: #1a365d; }

/* ===== 商品推荐条 ===== */
.prod-strip-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.rec-card {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s;
}
.rec-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.rec-card img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}
.rec-card-body { padding: 12px; }
.rec-card-name {
  font-size: .88rem;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}
.rec-card-meta {
  font-size: .75rem;
  color: #888;
  margin-top: 4px;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 8px 24px; font-size: .82rem;
  background: #1a365d; color: #fff;
  transition: background .2s; border: none; cursor: pointer;
}
.btn:hover { background: #b91c1c; color: #fff; }
.btn-sm { padding: 6px 16px; font-size: .75rem; }

/* ===== 商品页 ===== */
.prod-page {
  max-width: 800px; margin: 0 auto; padding: 24px 16px 60px;
}
.prod-page h1 {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: 1.3rem; font-weight: 700; color: #1a365d; margin-bottom: 4px;
}
.prod-page .subtitle { font-size: .82rem; color: #71717a; margin-bottom: 20px; }
.filter-bar {
  display: flex; gap: 6px; padding: 8px 0;
  overflow-x: auto; scrollbar-width: none; flex-wrap: wrap;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0; padding: 4px 12px; font-size: .75rem;
  background: #fff; border: 1px solid #e4e4e7; color: #71717a;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.filter-btn.active { background: #1a365d; color: #fff; border-color: #1a365d; }
.filter-btn:hover { border-color: #1a365d; }
.search-box { display: flex; gap: 6px; margin: 8px 0 12px; }
.search-box input {
  flex: 1; padding: 8px 12px; border: 1px solid #e4e4e7; font-size: .85rem; outline: none;
}
.search-box input:focus { border-color: #71717a; }
.search-box button { padding: 8px 16px; background: #1a365d; color: #fff; border: none; font-size: .82rem; cursor: pointer; }

.prod-list { display: flex; flex-direction: column; gap: 10px; }
.prod-card {
  background: #fff; display: flex; gap: 14px; padding: 14px; cursor: pointer; transition: transform .2s;
}
.prod-card:hover { transform: translateY(-1px); }
.prod-card img { width: 100px; height: 100px; object-fit: cover; flex-shrink: 0; background: #e8e6e1; }
.prod-card .info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.prod-card .name { font-size: .9rem; font-weight: 600; color: #1a365d; }
.prod-card .tags { display: flex; gap: 4px; margin-top: 6px; }
.prod-card .tag { font-size: .65rem; padding: 2px 8px; background: #f4f3f0; color: #71717a; }
.prod-card .prod-taocan { font-size: .8rem; color: #71717a; margin-top: 4px; }
.prod-card .area { font-size: .75rem; color: #a1a1aa; margin-top: 4px; }

/* ===== 归档页 ===== */
.archive-page { max-width: 720px; margin: 0 auto; padding: 24px 16px 60px; }
.archive-page h1 {
  font-family: "Noto Serif SC", "STSong", serif;
  font-size: 1.3rem; font-weight: 700; color: #1a365d;
}
.archive-subtitle { font-size: .85rem; color: #71717a; margin-bottom: 16px; }
.archive-list { list-style: none; }
.archive-item {
  padding: 14px 0; border-bottom: 1px solid #e8e6e1;
}
.archive-item a {
  font-size: .95rem; font-weight: 500; display: block; margin-bottom: 4px;
}
.archive-date { font-size: .78rem; color: #a1a1aa; margin-right: 8px; }
.archive-tags { margin-top: 4px; }

/* ===== 模态框 ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 300;
  justify-content: center; align-items: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-content { background: #fff; max-width: 420px; width: 100%; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 20px 0; }
.modal-header h3 { font-size: 1rem; color: #1a365d; flex: 1; padding-right: 12px; }
.modal-close { width: 28px; height: 28px; border: none; background: none; font-size: 1.2rem; cursor: pointer; color: #a1a1aa; }
.modal-body { padding: 16px 20px; }
.modal-body img { width: 100%; margin-bottom: 12px; }
.modal-body .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: .82rem; }
.modal-body .label { color: #71717a; }
.modal-body .value { font-weight: 500; color: #1c1917; }
.modal-footer { padding: 0 20px 20px; display: flex; gap: 8px; }

/* ===== 页脚 ===== */
.footer {
  text-align: center; padding: 32px 16px; margin-top: 32px;
  border-top: 1px solid #e8e6e1;
}
.footer-inner { max-width: 720px; margin: 0 auto; }
.footer-brand {
  font-family: "Noto Serif SC", serif; font-size: .9rem;
  color: #1a365d; margin-bottom: 4px;
}
.footer p { font-size: .72rem; color: #a1a1aa; }
.footer a { color: #1a365d; }

/* ===== 空/加载态 ===== */
.empty-state { text-align: center; padding: 40px 20px; color: #a1a1aa; }
.empty-state .icon { font-size: 2rem; margin-bottom: 8px; }
.empty-state p { font-size: .85rem; }

/* ===== 动画 ===== */
.fade-in { animation: fadeIn .3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
