/* ==========================================================================
   首页新增板块（2026-10-21 第二轮）
   搜索条 / 城市墙 / 主题探索 / AI 规划 / 快捷入口
   —— 只服务 gansu.html；首屏与热门推荐沿用原有样式
   ========================================================================== */

/* ---------- 搜索条 ---------- */
.hsearch { position: relative; z-index: 5; margin-top: -2.6rem; }
.hsearch__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.2rem; align-items: center;
    padding: 1rem 1.1rem 1rem 1.4rem;
    background: rgba(252, 248, 240, .97);
    border: 1px solid rgba(38, 61, 56, .12);
    border-radius: 1.1rem;
    box-shadow: 0 22px 50px rgba(30, 24, 16, .14);
    backdrop-filter: blur(10px);
}
.hsearch__form { display: flex; gap: .6rem; align-items: center; }
.hsearch__field {
    flex: 1 1 auto; min-width: 0;
    display: flex; align-items: center; gap: .55rem;
    padding: .55rem .9rem;
    background: #fff; border: 1px solid rgba(38, 61, 56, .16); border-radius: 9999px;
}
.hsearch__field svg { width: 16px; height: 16px; color: var(--gray-400); flex: none; }
.hsearch__field input {
    flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: none;
    font-size: .95rem; color: var(--dark);
}
.hsearch__go {
    flex: none; padding: .55rem 1.2rem; border: 0; border-radius: 9999px;
    background: var(--primary); color: #fff; font-size: .9rem; font-weight: 600; cursor: pointer;
    transition: background .2s ease;
}
.hsearch__go:hover { background: var(--primary-light); }
.hsearch__sug {
    position: absolute; left: 0; right: 0; top: calc(100% + .4rem);
    background: #fff; border: 1px solid rgba(38, 61, 56, .12);
    border-radius: .8rem; box-shadow: 0 18px 40px rgba(30, 24, 16, .16);
    overflow: hidden; z-index: 20;
}
.hsearch__sug[hidden] { display: none; }
.hsearch__sug a {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .62rem 1rem; font-size: .9rem; color: var(--dark); text-decoration: none;
}
.hsearch__sug a:hover, .hsearch__sug a:focus-visible { background: rgba(216, 180, 116, .14); }
.hsearch__sug small { color: var(--gray-500); }
.hsearch__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; font-size: .8rem; }
.hsearch__tags span { color: var(--gray-500); letter-spacing: .08em; }
.hsearch__tags a {
    color: var(--gray-600); text-decoration: none;
    padding: .12rem .55rem; border-radius: 9999px;
    border: 1px solid rgba(38, 61, 56, .12);
    transition: border-color .2s ease, color .2s ease;
}
.hsearch__tags a:hover { border-color: var(--accent); color: var(--ochre); }
.hsearch__map {
    display: inline-flex; align-items: center; gap: .8rem;
    padding: .8rem 1.1rem; border-radius: .9rem;
    background: linear-gradient(135deg, #1d3b36, #162b27);
    color: #f4ead2; text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hsearch__map:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(25, 59, 56, .28); }
.hsearch__map svg { width: 22px; height: 22px; color: var(--accent); }
.hsearch__map b { display: block; font-size: .9rem; letter-spacing: .06em; }
.hsearch__map small { font-size: .72rem; color: rgba(244, 234, 210, .72); }

/* ---------- 居中带纹样标题 ---------- */
.sec-head2 { text-align: center; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.sec-head2 h2 {
    margin: 0; display: inline-flex; align-items: center; gap: .9rem;
    font-family: var(--font-serif, "Noto Serif SC", serif);
    font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: .1em; color: var(--dark);
}
.sec-head2 h2::before, .sec-head2 h2::after {
    content: ""; width: clamp(28px, 5vw, 64px); height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 124, 62, .7));
}
.sec-head2 h2::after { background: linear-gradient(90deg, rgba(168, 124, 62, .7), transparent); }
.sec-head2 p { margin: .7rem 0 0; font-size: .92rem; letter-spacing: .12em; color: var(--gray-500); }

/* ---------- 城市墙 ---------- */
.citywall { background: var(--light); padding: clamp(3rem, 5vw, 4.4rem) 0; }
.citywall__grid {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(.7rem, 1.1vw, 1rem);
}
.cwcard {
    position: relative; display: block; overflow: hidden; border-radius: .7rem;
    text-decoration: none; box-shadow: 0 10px 26px rgba(30, 24, 16, .1);
    aspect-ratio: 1 / 1.12; background: #ded3bf;
}
.cwcard img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}
.cwcard::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(18, 14, 9, .78), rgba(18, 14, 9, .05) 52%, transparent);
}
.cwcard:hover img, .cwcard:focus-visible img { transform: scale(1.05); }
.cwcard__t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: .9rem 1rem 1rem; }
.cwcard__t b {
    display: block; font-family: var(--font-serif, "Noto Serif SC", serif);
    font-size: 1.1rem; letter-spacing: .14em; color: #fdf5e4;
}
.cwcard__t small { display: block; margin-top: .2rem; font-size: .72rem; letter-spacing: .1em; color: rgba(253, 245, 228, .72); }
.cwcard--more {
    display: grid; place-content: center; text-align: center;
    background: rgba(255, 255, 255, .5);
    border: 1px dashed rgba(38, 61, 56, .25); box-shadow: none;
}
.cwcard--more::after { display: none; }
.cwcard--more svg { width: 26px; height: 26px; color: var(--ochre); margin: 0 auto .5rem; }
.cwcard--more b { color: var(--dark); font-size: .92rem; letter-spacing: .1em; }
.cwcard--more small { color: var(--gray-500); font-size: .72rem; }

/* ---------- 主题探索 ---------- */
.themes { padding: clamp(3rem, 5vw, 4.4rem) 0; background: #fbf7ef; }
.themes__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.7rem, 1.1vw, 1rem); }
.thcard {
    position: relative; overflow: hidden; border-radius: .7rem;
    aspect-ratio: 3 / 4; text-decoration: none;
    box-shadow: 0 12px 30px rgba(30, 24, 16, .12);
}
.thcard img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.thcard::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, rgba(16, 12, 8, .82), rgba(16, 12, 8, .18) 55%, transparent);
}
.thcard:hover img { transform: scale(1.05); }
.thcard__t { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1rem; }
.thcard__t b { display: block; font-family: var(--font-serif, serif); font-size: 1rem; letter-spacing: .12em; color: #fdf5e4; }
.thcard__t small { display: block; margin-top: .3rem; font-size: .72rem; line-height: 1.6; color: rgba(253, 245, 228, .7); }
.thcard__go {
    position: absolute; right: .9rem; bottom: .95rem; z-index: 2;
    width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(253, 245, 228, .5); color: #fdf5e4;
}
.thcard__go svg { width: 12px; height: 12px; }

/* ---------- AI 规划 ---------- */
.aiband { position: relative; overflow: hidden; background: #f7f0e3; padding: clamp(3rem, 5vw, 4.4rem) 0; }
.aiband__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(1.4rem, 3vw, 3rem); align-items: center; }
.aiband__copy h2 {
    margin: 0 0 .7rem; font-family: var(--font-serif, serif);
    font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.35; letter-spacing: .05em; color: var(--dark);
}
.aiband__copy > p { margin: 0 0 1.4rem; font-size: .93rem; line-height: 1.9; color: var(--secondary); max-width: 34rem; }
.aiband__list { display: grid; gap: .8rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.aiband__list li {
    display: flex; gap: .7rem; align-items: flex-start;
    padding: .8rem .95rem; background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(38, 61, 56, .08); border-radius: .7rem;
}
.aiband__list svg { width: 18px; height: 18px; color: var(--ochre); flex: none; margin-top: .15rem; }
.aiband__list b { display: block; font-size: .88rem; color: var(--dark); }
.aiband__list small { font-size: .8rem; color: var(--gray-600); }
.aiband .aiband__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    width: auto; min-width: max-content; flex: 0 0 auto; align-self: flex-start;
    white-space: nowrap; word-break: keep-all;
    padding: .95rem 1.9rem; border-radius: 9999px;
    background: var(--primary); color: #fff; text-decoration: none;
    font-size: 1rem; font-weight: 600; letter-spacing: .06em;
    transition: transform .2s ease, background .2s ease;
}
.aiband .aiband__btn:hover { transform: translateY(-2px); background: var(--primary-light); }
.aiband__btn svg { width: 18px; height: 18px; flex: none; }
.aiband__pic img { width: 100%; height: auto; display: block; border-radius: .9rem; box-shadow: 0 22px 50px rgba(30, 24, 16, .18); }
.aiband__pic figcaption { margin: .7rem 0 0; font-size: .75rem; color: var(--gray-500); text-align: right; }

/* ---------- 快捷入口 ---------- */
.quick { background: #14302c; padding: 1.5rem 0 1.7rem; }
.quick__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.quick a {
    display: flex; flex-direction: column; align-items: center; gap: .45rem;
    text-decoration: none; text-align: center;
    color: rgba(246, 234, 208, .86);
    transition: color .2s ease, transform .2s ease;
}
.quick a:hover { color: #fff; transform: translateY(-2px); }
.quick svg { width: 20px; height: 20px; color: var(--accent); }
.quick b { font-size: .84rem; letter-spacing: .1em; font-weight: 500; }
.quick small { font-size: .7rem; color: rgba(246, 234, 208, .55); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .citywall__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .themes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .quick__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.2rem; }
}
@media (max-width: 860px) {
    .hsearch { margin-top: -1.4rem; }
    .hsearch__inner { grid-template-columns: 1fr; padding: 1rem; }
    .hsearch__map { justify-content: center; }
    .aiband__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .citywall__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .themes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .citywall img, .thcard img { transition: none !important; }
}
