/* 船队页、船页这类落地页（后端 app/services/seo_pages.py 出 HTML，Vercel 转发 /ships）。
   颜色全用 styles.css 的变量：浅色蓝白、深色深蓝铜金；这里只管版式。 */
.seo-page .brand { color: inherit; text-decoration: none; }
.brand-name { font: 400 18px/1.1 var(--serif); letter-spacing: .08em; color: var(--brass-2); white-space: nowrap; }
.brand-name small { display: block; font: 400 10px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
body.light .brand-name { color: #1B2536; }
body.light .brand-name small { color: #737D8E; }
.seo-page .top .meta { margin-left: auto; }
.seo-page .top a.btn, .seo-actions a.btn { text-decoration: none; }

.seo { max-width: 1080px; margin: 0 auto; padding: 22px 24px 48px; color: var(--text); font-size: 14px; }
.seo a { color: var(--brass); text-decoration: none; }
.seo a:hover { color: var(--brass-2); text-decoration: underline; }
.crumbs { font-size: 12px; color: var(--muted); }
.crumbs span { margin: 0 4px; }
.crumbs a { color: var(--muted); }

.seo-head { margin: 26px 0 18px; }
.seo-head h1 { font: 600 32px/1.2 var(--serif); letter-spacing: .03em; margin-top: 8px; color: var(--text); }
.seo-head h1 .en { font-size: .62em; color: var(--muted); letter-spacing: .04em; margin-left: .3em; }
.lede { max-width: 780px; margin-top: 12px; line-height: 1.85; color: var(--text-2); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 28px; margin: 6px 0 4px; }
.facts div { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.facts dt { font-size: 11.5px; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin-top: 3px; line-height: 1.6; }
.seo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.seo-actions a.btn:hover { text-decoration: none; }

.seo section h2, .seo-more h2 { font: 400 21px/1.3 var(--serif); letter-spacing: .03em; margin: 36px 0 10px; color: var(--text); }
.seo h3 { font: 500 14.5px/1.4 var(--sans); margin: 24px 0 6px; color: var(--text); }
.seo h3 small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }

.seo-table { width: 100%; border-collapse: collapse; min-width: 0; }  /* styles.css 给 table 设了 1040px 最小宽度（后台大表用），落地页不要 */
.seo-table th { text-align: left; font-size: 11.5px; font-weight: 500; letter-spacing: .06em; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.seo-table td { padding: 11px 10px 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.55; }
.seo-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; white-space: normal; overflow-wrap: anywhere; }
.seo-table td.mono { white-space: nowrap; }
.seo-table .en { color: var(--muted); font-size: 12.5px; }
.voyages td:first-child { white-space: nowrap; }

.nw { white-space: nowrap; }  /* 标题里的日期、「4 晚」不拆开，不然「晚」会单独掉到下一行 */
.itinerary { padding-left: 22px; columns: 2 260px; column-gap: 32px; }
.itinerary li { line-height: 2; break-inside: avoid; }
.itinerary li small { color: var(--muted); font-size: 11.5px; margin-left: 4px; }
.inventory > p { color: var(--text-2); line-height: 1.8; margin-bottom: 6px; }
.seo-near a { white-space: normal; margin-right: 0; }
.seo-note ul { padding-left: 18px; }
.seo-note li { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.seo-more p { line-height: 2.1; }
.seo-more a { margin-right: 16px; display: inline-block; max-width: 100%; }  /* 不用 nowrap：专题标题长，手机上会把整页撑出横向滚动 */
.seo-page footer { text-align: center; color: var(--muted); }
.seo-page footer a { color: inherit; }

/* 手机：表格改成一航次一块，每格前面带列名 */
@media (max-width: 720px) {
  .seo { padding: 14px 16px 40px; }
  .seo-head h1 { font-size: 25px; }
  .seo-head h1 .en { display: block; margin: 4px 0 0; font-size: .6em; }
  .seo-table, .seo-table tbody { display: block; }
  .seo-table thead { display: none; }
  .seo-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .seo-table td { display: block; padding: 0; border: 0; }
  .seo-table td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); }
  .seo-table td[data-label="航线"], .seo-table td[data-label="船"], .seo-table td[data-label="最低价航次"] { grid-column: 1 / -1; }
}

/* 标题下面的「找我们订」入口（book.js），手机上不滚动就能看到 */
.seo-book { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; font-size: 12.5px; color: var(--text-2); }
.seo-book .sep { margin: 0 6px; color: var(--muted); }

/* 专题页 /guides：正文是说明文，列表和来源链接的版式 */
.guide { max-width: 820px; }
.guide section p { max-width: 780px; margin: 8px 0; line-height: 1.85; color: var(--text-2); }
.guide ul, .guide ol { max-width: 780px; margin: 8px 0; padding-left: 20px; line-height: 1.85; color: var(--text-2); }
.guide li + li { margin-top: 4px; }
.guide .seo-table { margin: 10px 0 4px; }
.guide .voyage-list > p { margin-bottom: 10px; }
.guide .voyage-list > p a { white-space: normal; }
.guide .seo-more { margin-top: 0; }
.guide-sources li small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.guide-sources p { color: var(--muted); font-size: 12.5px; }
.guide-list { list-style: none; padding: 0; margin: 8px 0; }
.guide-list li { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.guide-list li a { font-size: 16px; }
.guide-list li small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
@media (max-width: 720px) {
  .seo-table td.wide { grid-column: 1 / -1; }
}
.guide-table tr.group td { padding: 16px 0 6px; font-size: 12.5px; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); }
@media (max-width: 720px) {
  .guide-table tr.group { display: block; padding: 16px 0 6px; border-bottom: 1px solid var(--line); }
  .guide-table tr.group td { padding: 0; border: 0; }
  .guide-table tr.group td::before { content: none; }
}

/* 航次页的价差和常见问题（第二轮第 7 条） */
.price-gaps ul { max-width: 780px; margin: 8px 0; padding-left: 20px; line-height: 1.9; color: var(--text-2); }
.price-gaps > p { color: var(--muted); font-size: 12.5px; }
.faq p { max-width: 780px; margin: 4px 0 0; line-height: 1.85; color: var(--text-2); }
