/*
Theme Name: Agenting Travel
Theme URI: http://agenting.luoyangw.xyz
Description: 安格廷旅行社定制子主题，基于 Twenty Twenty-Five。全站编辑，含首页、线路、目的地、关于、联系四类版式。
Author: Agenting
Template: twentytwentyfive
Version: 1.0.0
Text Domain: agenting-travel
*/

/* ========== 基础变量 ========== */
:root {
  --ag-radius-sm: 10px;
  --ag-radius: 16px;
  --ag-radius-lg: 24px;
  --ag-shadow-sm: 0 1px 2px rgba(18, 33, 31, .05), 0 6px 18px -12px rgba(18, 33, 31, .22);
  --ag-shadow: 0 2px 4px rgba(18, 33, 31, .04), 0 24px 48px -28px rgba(18, 33, 31, .3);
  --ag-line: #e6dfd1;
  --ag-max: 1240px;
}

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

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: #e2623c; color: #fff; }

h1, h2, h3, h4 { text-wrap: balance; }

/* ========== 通用版式类 ========== */
.ag-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #c24a28;
  margin-bottom: 6px !important;
}
.ag-eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: #e2623c;
  display: inline-block;
}

.ag-lead {
  font-size: 16.5px;
  line-height: 1.85;
  color: #5d6c68;
  max-width: 640px;
}

.ag-section { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(56px, 7vw, 104px); }
.ag-section-sand { background: #f6f1e8; }
.ag-section-ink { background: #12211f; color: #f6f1e8; }

.ag-head { margin-bottom: clamp(28px, 3.4vw, 52px); }

/* 章节标题下方细描边 */
.ag-hairline {
  border-top: 1px solid var(--ag-line);
  margin: 0;
}

/* ========== 页头 ========== */
.ag-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--ag-line);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.ag-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 74px;
}

.ag-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
  color: #12211f !important;
  text-decoration: none !important;
  margin: 0 !important;
  flex-shrink: 0;
}
.ag-logo::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: #e2623c;
  display: inline-block;
  transform: translateY(1px);
}

.ag-nav { font-size: 15px !important; }
.ag-nav a { color: #2f3d3a; text-decoration: none; font-weight: 500; padding: 6px 2px; }
.ag-nav a:hover { color: #c24a28; }

.ag-header-cta .wp-block-button__link { font-size: 14px !important; padding: .62rem 1.25rem !important; }

/* ========== 首屏 ========== */
.ag-hero .wp-block-cover__image-background { object-position: center 42%; }
.ag-hero .wp-block-cover__inner-container { padding-left: clamp(18px, 4vw, 56px); padding-right: clamp(18px, 4vw, 56px); }

.ag-hero h1 {
  font-size: clamp(30px, 4.6vw, 56px) !important;
  line-height: 1.16 !important;
  letter-spacing: -.025em !important;
  color: #ffffff !important;
  max-width: 15em;
  margin: 0 0 18px !important;
}
.ag-hero .ag-lead { color: rgba(255, 255, 255, .86) !important; max-width: 34em; }
.ag-hero .ag-eyebrow { color: #ffb59b !important; }
.ag-hero .ag-eyebrow::before { background: #ffb59b; }

.ag-hero-stats { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: clamp(24px, 4vw, 44px); padding-top: 22px; }
.ag-stat-num {
  font-size: clamp(22px, 2.4vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: -.02em;
}
.ag-stat-label {
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, .68) !important;
  margin: 4px 0 0 !important;
  letter-spacing: .04em;
}

/* ========== 目的地卡片 ========== */
.ag-dest .wp-block-cover {
  border-radius: var(--ag-radius);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
  box-shadow: var(--ag-shadow-sm);
}
.ag-dest .wp-block-cover:hover { transform: translateY(-4px); box-shadow: var(--ag-shadow); }
.ag-dest .wp-block-cover__image-background { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ag-dest .wp-block-cover:hover .wp-block-cover__image-background { transform: scale(1.05); }

.ag-dest h3 {
  font-size: 20px !important;
  color: #fff !important;
  margin: 0 0 4px !important;
  letter-spacing: .01em;
}
.ag-dest .ag-dest-meta {
  font-size: 12.5px !important;
  color: rgba(255, 255, 255, .78) !important;
  margin: 0 !important;
  letter-spacing: .06em;
}

/* ========== 线路卡片 ========== */
.ag-card {
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  overflow: hidden;
  height: 100%;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease;
  box-shadow: var(--ag-shadow-sm);
}
.ag-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ag-shadow);
  border-color: #d8cfba;
}
.ag-card .wp-block-image { margin: 0 !important; }
.ag-card .wp-block-image img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ag-card:hover .wp-block-image img { transform: scale(1.045); }
.ag-card .wp-block-image picture, .ag-card img { display: block; width: 100%; }

.ag-card-body { padding: 22px 22px 24px !important; }

.ag-chip, .ag-chips {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f6f1e8;
  color: #0f4a47;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 0 6px 10px 0 !important;
}
.ag-chips span + span { margin-left: 6px; }
.ag-chips span { display: inline-block; }

.ag-card h3 { font-size: 19.5px !important; line-height: 1.45 !important; margin: 2px 0 8px !important; }
.ag-card .ag-card-desc { font-size: 14.5px; line-height: 1.75; color: #5d6c68; margin-bottom: 16px !important; }

.ag-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--ag-line);
  padding-top: 14px;
  margin-top: auto;
}
.ag-price { font-size: 13px; color: #7b8683; margin: 0 !important; }
.ag-price strong { font-size: 24px; color: #c24a28; font-weight: 700; letter-spacing: -.02em; }
.ag-price strong::before { content: "¥"; font-size: 14px; margin-right: 2px; font-weight: 600; }

.ag-more {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f4a47 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.ag-more::after { content: " →"; }

/* ========== 优势 / 流程 ========== */
.ag-feature-num {
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .14em;
  color: #e2623c;
  margin: 0 0 10px !important;
}
.ag-feature h3 { font-size: 18px !important; margin: 0 0 8px !important; }
.ag-feature p { font-size: 14.5px; line-height: 1.75; color: #5d6c68; margin: 0 !important; }

.ag-step h3 { font-size: 17px !important; margin: 0 0 6px !important; }
.ag-step p { font-size: 14px; line-height: 1.7; color: #5d6c68; margin: 0 !important; }

/* ========== 评价 ========== */
.ag-quote {
  background: #fff;
  border: 1px solid var(--ag-line);
  border-radius: var(--ag-radius);
  padding: 26px 24px !important;
  height: 100%;
}
.ag-quote p { font-size: 15px; line-height: 1.85; color: #24332f; margin: 0 0 14px !important; }
.ag-quote-by { font-size: 13px; color: #7b8683; margin: 0 !important; letter-spacing: .02em; }

/* ========== 常见问题 ========== */
.ag-faq details {
  border-bottom: 1px solid var(--ag-line);
  padding: 18px 0;
}
.ag-faq details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.ag-faq details summary::-webkit-details-marker { display: none; }
.ag-faq details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 20px;
  font-weight: 400;
  color: #e2623c;
  transition: transform .2s ease;
}
.ag-faq details[open] summary::after { content: "−"; }
.ag-faq details p { font-size: 14.5px; line-height: 1.8; color: #5d6c68; margin: 12px 0 0 !important; padding-right: 32px; }

/* ========== 咨询条 ========== */
.ag-cta { border-radius: var(--ag-radius-lg); overflow: hidden; }
.ag-cta h2 { color: #ffffff !important; font-size: clamp(24px, 2.8vw, 34px) !important; margin: 0 0 10px !important; }
.ag-cta p { color: rgba(255, 255, 255, .8) !important; margin: 0 !important; font-size: 15px; }
.ag-cta .wp-block-button__link { background: #e2623c !important; }

/* ========== 页脚 ========== */
.ag-footer { background: #12211f; color: #cfd8d5; padding-top: clamp(48px, 6vw, 80px) !important; padding-bottom: 26px !important; }
.ag-footer h4, .ag-footer .ag-footer-title {
  font-size: 13px !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #f6f1e8 !important;
  font-weight: 600;
  margin: 0 0 14px !important;
}
.ag-footer p, .ag-footer a { color: #a9b7b3 !important; font-size: 14px; line-height: 1.9; text-decoration: none !important; }
.ag-footer a:hover { color: #ffb59b !important; }
.ag-footer-brand p { color: #a9b7b3 !important; font-size: 14px; line-height: 1.85; max-width: 22em; }
.ag-footer-brand .ag-logo { color: #f6f1e8 !important; font-size: 18px !important; margin-bottom: 12px !important; }
.ag-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 18px; }
.ag-footer-bottom p { font-size: 12.5px !important; color: #7d8b87 !important; margin: 0 !important; }

/* ========== 内页 ========== */
.ag-page-head { padding-top: clamp(40px, 5vw, 68px); padding-bottom: clamp(20px, 2.6vw, 34px); }
.ag-page-title { font-size: clamp(26px, 3.4vw, 40px) !important; letter-spacing: -.02em !important; margin: 0 !important; }
.ag-page-sub { font-size: 15px; color: #5d6c68; margin-top: 12px; max-width: 44em; }

.ag-prose { font-size: 16.5px; line-height: 1.95; color: #24332f; }
.ag-prose p { margin-bottom: 1.2em; }
.ag-prose h2 { font-size: 24px !important; margin-top: 2.2em !important; }
.ag-prose h3 { font-size: 19px !important; margin-top: 1.8em !important; }
.ag-prose ul, .ag-prose ol { padding-left: 1.2em; }
.ag-prose img { border-radius: var(--ag-radius); }

/* 归档 / 列表 */
.ag-archive-title { font-size: clamp(26px, 3.2vw, 38px) !important; margin: 0 0 10px !important; }
.ag-archive-count { font-size: 13px; color: #7b8683; letter-spacing: .04em; }

.ag-loop .wp-block-post-template { gap: 26px; }
.ag-loop .wp-block-post { margin: 0; }
.ag-loop .wp-block-post-title { font-size: 18px !important; line-height: 1.5 !important; margin: 14px 0 6px !important; }
.ag-loop .wp-block-post-title a { text-decoration: none !important; color: #12211f !important; }
.ag-loop .wp-block-post-excerpt__excerpt { font-size: 14px; color: #5d6c68; line-height: 1.75; }
.ag-loop .wp-block-post-featured-image img { border-radius: var(--ag-radius); aspect-ratio: 4 / 3; object-fit: cover; }

/* 单篇 */
.ag-single-head { padding-top: clamp(36px, 4.5vw, 60px); }
.ag-single-title { font-size: clamp(26px, 3.2vw, 38px) !important; letter-spacing: -.02em !important; }
.ag-single-meta { font-size: 13px; color: #7b8683; letter-spacing: .03em; }
.ag-single-meta a { color: #0f4a47 !important; text-decoration: none; }

/* 404 */
.ag-404 { padding-top: clamp(70px, 10vw, 140px); padding-bottom: clamp(70px, 10vw, 140px); text-align: center; }
.ag-404 .ag-404-num {
  font-size: clamp(64px, 12vw, 140px) !important;
  font-weight: 700;
  letter-spacing: -.04em;
  color: #e2623c !important;
  line-height: 1 !important;
  margin: 0 0 8px !important;
}

/* ========== 按钮补充 ========== */
.is-style-ag-ghost .wp-block-button__link {
  background: transparent !important;
  color: #0f4a47 !important;
  border: 1px solid #cdc4b1 !important;
}
.is-style-ag-ghost .wp-block-button__link:hover { border-color: #0f4a47 !important; background: #0f4a47 !important; color: #fff !important; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .ag-header-inner { min-height: 66px; gap: 12px; }
  .ag-header-cta { display: none; }
  .ag-logo { font-size: 17px !important; }
  .ag-hero h1 { max-width: 100%; }
  .ag-card-body { padding: 18px 18px 20px !important; }
  .ag-price strong { font-size: 21px; }
}

@media (max-width: 600px) {
  .ag-lead { font-size: 15px; }
  .ag-footer { padding-bottom: 18px !important; }
  .ag-cta { border-radius: 0; }
  .ag-hero-stats { padding-top: 16px; }
}

/* 首屏描边按钮反白 */
.ag-hero .is-style-ag-ghost .wp-block-button__link {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .55) !important;
}
.ag-hero .is-style-ag-ghost .wp-block-button__link:hover {
  background: #fff !important;
  color: #12211f !important;
  border-color: #fff !important;
}

.ag-more-wrap { margin: 0 !important; }
.ag-page-intro { padding-bottom: 10px; }
.ag-page-intro .ag-lead { max-width: none; }
.ag-contact-cols h3 { font-size: 16px !important; margin-bottom: 8px !important; }
.ag-contact-cols p { font-size: 14.5px; line-height: 1.85; color: #5d6c68; }

/* 打印 */
@media print {
  .ag-header, .ag-footer, .ag-cta { display: none; }
}

/* ========== 阿根廷版：首屏对齐修正 ========== */
.ag-hero h1 { max-width: 11.2em; }
.ag-hero .wp-block-cover__inner-container > .wp-block-group {
  margin-left: 0 !important;
  margin-right: auto !important;
  width: 100%;
}
.ag-hero .ag-lead { text-align: left; margin-left: 0 !important; margin-right: auto !important; }
.ag-hero .wp-block-buttons { justify-content: flex-start !important; }
.ag-hero .wp-block-cover__background { background: linear-gradient(100deg, rgba(8,20,18,.92) 0%, rgba(8,20,18,.72) 42%, rgba(8,20,18,.28) 100%); }

/* ========== 资讯区 ========== */
.ag-section-ink .ag-eyebrow { color: #ffb59b !important; }
.ag-section-ink .ag-eyebrow::before { background: #ffb59b; }
.ag-section-ink h2 { color: #f6f1e8 !important; }
.ag-news-note {
  font-size: 13.5px !important;
  line-height: 1.8;
  color: rgba(246, 241, 232, .66) !important;
  margin: 0 !important;
}
.ag-news-meta {
  font-size: 11.5px !important;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c24a28 !important;
  margin: 0 0 6px !important;
}
.ag-news .ag-card h3 a { color: inherit; text-decoration: none; }
.ag-news .ag-card h3 a:hover { color: #0f4a47; }
.ag-news .ag-card-body { padding: 20px 22px 24px; }

/* ========== 首屏通栏 ========== */
.ag-hero.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* ========== 正文左对齐（避免 constrained 布局自动居中） ========== */
.ag-lead { margin-left: 0 !important; margin-right: auto !important; }
.wp-block-post-content .ag-lead { margin-left: 0 !important; }

/* ========== 线路归档修正 ========== */
.ag-page-head { padding-top: clamp(36px, 5vw, 72px); }
.ag-page-head .ag-lead { max-width: 760px; }
.ag-loop .ag-card { display: flex; flex-direction: column; height: 100%; }
.ag-loop .ag-card h3 { font-size: 18px !important; }
.ag-loop .ag-card h3 a { color: #12211f; text-decoration: none; }
.ag-loop .ag-card h3 a:hover { color: #c24a28; }
.ag-pager { margin-top: clamp(24px, 3vw, 40px); }

/* ========== 线路详情信息条 ========== */
.ag-tour-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  margin: 0 0 32px;
  background: #f6f1e8;
  border: 1px solid var(--ag-line);
  border-radius: 14px;
}
.ag-tour-facts-list { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ag-tour-facts-list .ag-chip { margin: 0 !important; }
.ag-fact-price {
  font-size: 19px !important;
  font-weight: 700;
  color: #c24a28;
  margin-left: 4px;
}
.ag-btn-solid {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  background: #c24a28;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.ag-btn-solid:hover { background: #a83a1c; }
@media (max-width: 600px) {
  .ag-tour-facts { flex-direction: column; align-items: flex-start; }
}

/* 详情页信息条里的标签与底色区分 */
.ag-tour-facts .ag-chip {
  background: #ffffff;
  border: 1px solid var(--ag-line);
  color: #0f4a47;
}
