/* ==========================================================================
   环球酒旅网 · 布局与样式增强
   ========================================================================== */

:root {
    --gtt-primary: #123f6d;
    --gtt-primary-dark: #0b2d50;
    --gtt-accent: #f26b38;
    --gtt-accent-soft: #fff1ea;
    --gtt-text: #22303f;
    --gtt-muted: #7a8896;
    --gtt-line: #e6ebf0;
    --gtt-bg: #f4f7fa;
    --gtt-radius: 10px;
    --gtt-shadow: 0 2px 14px rgba(18, 63, 109, .07);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--gtt-bg);
    color: var(--gtt-text);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--gtt-accent);
}

img {
    max-width: 100%;
}

/* ---------- 顶部导航区 ---------- */
.site-header,
.wp-site-blocks > header,
header.wp-template-part {
    background: #fff;
    box-shadow: 0 1px 0 var(--gtt-line);
}

.site-header .wp-block-navigation,
.wp-site-blocks header .wp-block-navigation {
    font-size: 15px;
}

.site-title a,
.wp-block-site-title a {
    color: var(--gtt-primary);
    font-weight: 800;
    letter-spacing: .5px;
}

/* ---------- 主容器 ---------- */
.gtt-hero,
.gtt-cat-grid,
.gtt-section,
.gtt-picks,
.gtt-two-col,
.gtt-archive-wrap,
.gtt-article-wrap {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* ---------- 焦点推荐区 ---------- */
.gtt-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.gtt-hero-lead {
    position: relative;
    border-radius: var(--gtt-radius);
    overflow: hidden;
    min-height: 420px;
    background: var(--gtt-primary-dark);
    box-shadow: var(--gtt-shadow);
}

.gtt-hero-lead-link {
    display: block;
    position: relative;
    height: 100%;
    min-height: 420px;
}

.gtt-hero-lead img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

.gtt-hero-lead-link:hover img {
    transform: scale(1.03);
}

.gtt-hero-lead-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 30px 26px;
    background: linear-gradient(to top, rgba(6, 24, 43, .92), rgba(6, 24, 43, .55) 55%, transparent);
    color: #fff;
}

.gtt-hero-lead-overlay .gtt-tag {
    display: inline-block;
    background: var(--gtt-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.gtt-hero-lead-overlay h2 {
    margin: 0 0 8px;
    font-size: 27px;
    line-height: 1.45;
    font-weight: 750;
    color: #fff;
}

.gtt-hero-lead-overlay p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gtt-hero-lead-overlay a:hover h2 {
    color: #fff;
}

.gtt-hero-list {
    background: #fff;
    border-radius: var(--gtt-radius);
    padding: 20px 22px;
    box-shadow: var(--gtt-shadow);
    display: flex;
    flex-direction: column;
}

.gtt-hero-list-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--gtt-primary);
    padding-bottom: 10px;
    margin-bottom: 8px;
}

.gtt-hero-list-head h3 {
    margin: 0;
    font-size: 19px;
    color: var(--gtt-primary);
    font-weight: 750;
}

.gtt-hero-list-head span {
    font-size: 11px;
    color: var(--gtt-accent);
    letter-spacing: 2px;
    font-weight: 700;
}

.gtt-hero-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gtt-hero-list li {
    border-bottom: 1px dashed var(--gtt-line);
}

.gtt-hero-list li:last-child {
    border-bottom: 0;
}

.gtt-hero-list li a {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--gtt-text);
}

.gtt-list-dot {
    flex: 0 0 5px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gtt-accent);
    margin-top: 9px;
}

.gtt-hero-list li a {
    position: relative;
}

.gtt-hero-list time {
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--gtt-muted);
    font-size: 12px;
    padding-top: 2px;
}

/* ---------- 栏目快捷入口 ---------- */
.gtt-cat-grid {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.gtt-cat-item {
    background: #fff;
    border: 1px solid var(--gtt-line);
    border-radius: 8px;
    padding: 16px 6px 13px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    transition: all .2s ease;
    box-shadow: var(--gtt-shadow);
}

.gtt-cat-item:hover {
    border-color: var(--gtt-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(18, 63, 109, .12);
}

.gtt-cat-item-icon {
    width: 36px;
    height: 36px;
    line-height: 36px;
    border-radius: 50%;
    background: var(--gtt-accent-soft);
    color: var(--gtt-accent);
    font-size: 17px;
    font-weight: 800;
}

.gtt-cat-item-name {
    font-size: 14px;
    font-weight: 650;
    color: var(--gtt-primary);
}

.gtt-cat-item-count {
    font-size: 11px;
    color: var(--gtt-muted);
}

/* ---------- 栏目区块 ---------- */
.gtt-section {
    margin-top: 34px;
}

.gtt-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--gtt-line);
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.gtt-section-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    position: relative;
    padding-left: 14px;
}

.gtt-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    height: 22px;
    width: 4px;
    border-radius: 2px;
    background: var(--gtt-accent);
}

.gtt-section-title h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 780;
    color: var(--gtt-primary);
    line-height: 1.4;
}

.gtt-section-title span {
    font-size: 12px;
    color: var(--gtt-muted);
}

.gtt-section-more {
    font-size: 13px;
    color: var(--gtt-muted);
    white-space: nowrap;
}

.gtt-section-more span {
    font-size: 18px;
    vertical-align: -1px;
    color: var(--gtt-accent);
}

.gtt-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gtt-card {
    background: #fff;
    border-radius: var(--gtt-radius);
    overflow: hidden;
    box-shadow: var(--gtt-shadow);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.gtt-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(18, 63, 109, .14);
}

.gtt-card-img {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e9eef3;
}

.gtt-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gtt-card:hover .gtt-card-img img {
    transform: scale(1.05);
}

.gtt-card-body {
    padding: 14px 15px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gtt-card-title {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.55;
    font-weight: 650;
    color: var(--gtt-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.gtt-card-title a:hover {
    color: var(--gtt-accent);
}

.gtt-card-excerpt {
    margin: 0 0 10px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--gtt-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.gtt-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: var(--gtt-muted);
    margin-top: auto;
    padding-top: 4px;
}

/* 列表型栏目 */
.gtt-list-rows {
    background: #fff;
    border-radius: var(--gtt-radius);
    box-shadow: var(--gtt-shadow);
    padding: 4px 20px;
}

.gtt-list-row {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gtt-line);
}

.gtt-list-row:last-child {
    border-bottom: 0;
}

.gtt-list-row-img {
    flex: 0 0 148px;
    width: 148px;
    height: 96px;
    border-radius: 6px;
    overflow: hidden;
    background: #e9eef3;
}

.gtt-list-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gtt-list-row-body {
    flex: 1;
    min-width: 0;
}

.gtt-list-row-body h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 650;
}

.gtt-list-row-body h3 a:hover {
    color: var(--gtt-accent);
}

.gtt-list-row-body p {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--gtt-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 两栏布局 ---------- */
.gtt-two-col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
    align-items: start;
    margin-top: 22px;
}

.gtt-main-col,
.gtt-side-col {
    min-width: 0;
}

.gtt-side-col {
    position: sticky;
    top: 16px;
}

.gtt-side-box {
    background: #fff;
    border-radius: var(--gtt-radius);
    box-shadow: var(--gtt-shadow);
    padding: 18px 20px;
    margin-bottom: 18px;
}

.gtt-side-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 2px solid var(--gtt-primary);
    padding-bottom: 8px;
    margin-bottom: 6px;
}

.gtt-side-head h3 {
    margin: 0;
    font-size: 18px;
    color: var(--gtt-primary);
    font-weight: 750;
}

.gtt-side-head span {
    font-size: 11px;
    color: var(--gtt-accent);
    font-weight: 700;
    letter-spacing: 2px;
}

.gtt-hot-list,
.gtt-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gtt-hot-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--gtt-line);
    font-size: 13.5px;
    line-height: 1.55;
}

.gtt-hot-list li:last-child,
.gtt-side-list li:last-child {
    border-bottom: 0;
}

.gtt-hot-num {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 3px;
    background: #eef2f6;
    color: var(--gtt-muted);
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
}

.gtt-hot-num.gtt-hot-top {
    background: var(--gtt-accent);
    color: #fff;
}

.gtt-side-list li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--gtt-line);
    font-size: 13.5px;
    line-height: 1.55;
}

.gtt-side-list time {
    flex: 0 0 auto;
    color: var(--gtt-muted);
    font-size: 12px;
}

/* ---------- 精选专题 ---------- */
.gtt-picks {
    margin-top: 34px;
    background: #fff;
    border-radius: var(--gtt-radius);
    padding: 20px;
    box-shadow: var(--gtt-shadow);
}

.gtt-picks-head {
    border-bottom: 2px solid var(--gtt-line);
    padding-bottom: 10px;
    margin-bottom: 16px;
}

.gtt-picks-head h2 {
    margin: 0;
    font-size: 21px;
    color: var(--gtt-primary);
    font-weight: 780;
}

.gtt-picks-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.gtt-pick {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    aspect-ratio: 4 / 3;
}

.gtt-pick img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.gtt-pick:hover img {
    transform: scale(1.05);
}

.gtt-pick-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 34px 14px 12px;
    background: linear-gradient(to top, rgba(6, 24, 43, .9), transparent);
    color: #fff;
}

.gtt-pick-caption h3 {
    margin: 0 0 2px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gtt-pick-caption span {
    font-size: 11px;
    color: rgba(255, 255, 255, .75);
}

/* ---------- 栏目归档页 ---------- */
.archive .site-main,
.archive .wp-site-blocks main,
body.archive main {
    max-width: 1200px;
    margin: 22px auto 40px;
    padding: 0 16px;
}

.archive .page-header {
    margin-bottom: 22px;
}

.archive .page-title {
    font-size: 28px;
    color: var(--gtt-primary);
    font-weight: 780;
}

.archive .wp-block-query-title {
    font-size: 28px;
    color: var(--gtt-primary);
    font-weight: 780;
    line-height: 1.4;
    margin: 0 0 10px;
}

.archive .page-header .taxonomy-description,
.gtt-archive-desc {
    color: var(--gtt-muted);
    font-size: 14px;
}

.archive .wp-block-query-title + p,
.archive .wp-block-query-title + div,
.archive .wp-block-query-title ~ .taxonomy-description {
    color: var(--gtt-muted);
    font-size: 14px;
    margin-top: 0;
}

.gtt-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.archive .wp-block-post-template {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive .wp-block-post {
    background: #fff;
    border-radius: var(--gtt-radius);
    overflow: hidden;
    box-shadow: var(--gtt-shadow);
    display: flex;
    flex-direction: column;
}

.archive .wp-block-post-featured-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.archive .wp-block-post-title {
    padding: 14px 16px 0;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 650;
}

.archive .wp-block-post-excerpt {
    padding: 6px 16px 12px;
    color: var(--gtt-muted);
    font-size: 13px;
}

.archive .wp-block-post-date {
    padding: 0 16px 14px;
    color: var(--gtt-muted);
    font-size: 12px;
}

/* ---------- 文章详情页 ---------- */
.single-post main,
.single main {
    max-width: 1200px;
    margin: 22px auto 40px;
    padding: 32px 40px 40px;
    background: #fff;
    border-radius: var(--gtt-radius);
    box-shadow: var(--gtt-shadow);
}

.gtt-article-wrap {
    background: #fff;
    border-radius: var(--gtt-radius);
    box-shadow: var(--gtt-shadow);
    padding: 32px 40px 40px;
}

.gtt-article-wrap h1,
.single-post .wp-block-post-title,
.single-post .entry-title {
    font-size: 30px;
    line-height: 1.5;
    font-weight: 780;
    color: var(--gtt-primary);
    margin: 0 0 14px;
}

.gtt-post-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    background: #f6f9fc;
    border-left: 3px solid var(--gtt-accent);
    border-radius: 4px;
    padding: 9px 14px;
    margin: 0 0 22px;
    font-size: 13px;
    color: var(--gtt-muted);
}

.gtt-post-bar-cat {
    color: var(--gtt-primary);
    font-weight: 650;
}

.gtt-post-bar-views {
    margin-left: auto;
}

.gtt-post-bar-views strong {
    color: var(--gtt-accent);
    font-size: 16px;
}

.single-post .wp-block-post-content,
.single-post .entry-content {
    font-size: 16px;
    line-height: 1.95;
    color: #354252;
}

.single-post .wp-block-post-content p,
.single-post .entry-content p {
    margin: 0 0 1.4em;
    text-align: justify;
}

.single-post .wp-block-post-content img,
.single-post .entry-content img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.single-post .wp-block-post-content figcaption,
.single-post .entry-content figcaption {
    text-align: center;
    font-size: 12px;
    color: var(--gtt-muted);
    margin-top: -4px;
}

.single-post .wp-block-post-content h2,
.single-post .entry-content h2 {
    font-size: 21px;
    color: var(--gtt-primary);
    font-weight: 750;
    margin: 30px 0 12px;
    padding-left: 12px;
    border-left: 4px solid var(--gtt-accent);
}

/* ---------- 页脚 ---------- */
.site-footer,
.wp-site-blocks > footer {
    background: var(--gtt-primary-dark) !important;
    color: rgba(255, 255, 255, .75);
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    margin-top: 40px;
}

.site-footer a,
.wp-site-blocks > footer a {
    color: rgba(255, 255, 255, .85);
}

/* ---------- 通用小工具 ---------- */
.wp-block-search__button {
    background: var(--gtt-accent);
    color: #fff;
    border: 0;
    border-radius: 0 4px 4px 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
    .gtt-cat-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .gtt-card-grid,
    .gtt-picks-track {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .archive .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .gtt-hero,
    .gtt-two-col {
        grid-template-columns: 1fr;
    }
    .gtt-hero-lead,
    .gtt-hero-lead-link,
    .gtt-hero-lead img {
        min-height: 320px;
    }
    .gtt-side-col {
        position: static;
    }
    .gtt-article-wrap {
        padding: 24px 20px 30px;
    }
}

@media (max-width: 680px) {
    .gtt-cat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .gtt-card-grid,
    .gtt-picks-track,
    .archive .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gtt-hero-lead-overlay h2 {
        font-size: 21px;
    }
    .gtt-hero-lead,
    .gtt-hero-lead-link,
    .gtt-hero-lead img {
        min-height: 260px;
    }
    .gtt-list-row-img {
        flex-basis: 104px;
        width: 104px;
        height: 74px;
    }
    .gtt-list-row-body h3 {
        font-size: 14px;
    }
    .gtt-article-wrap h1,
    .single-post .wp-block-post-title,
    .single-post .entry-title {
        font-size: 23px;
    }
    .gtt-article-wrap {
        padding: 20px 16px 26px;
    }
    .single-post .wp-block-post-content,
    .single-post .entry-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .gtt-card-grid,
    .gtt-picks-track,
    .archive .wp-block-post-template {
        grid-template-columns: 1fr;
    }
    .gtt-cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
