:root {
    --accent: #e8423f;
    --accent-soft: #fff0ef;
    --ink: #202124;
    --muted: #6f7378;
    --line: #e8e9eb;
    --surface: #ffffff;
    --page: #f6f7f8;
    --green: #237a57;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--page);
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    line-height: 1.5;
}

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

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}

.header-inner,
main,
.site-footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--accent);
    border-radius: 8px;
    font-weight: 700;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 18px;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.desktop-nav a {
    color: #404348;
    font-size: 15px;
}

.desktop-nav a:hover,
.section-heading > a:hover,
.topic-links a:hover {
    color: var(--accent);
}

main {
    padding: 32px 0 56px;
}

.intro {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1.2fr);
    align-items: end;
    gap: 48px;
    margin-bottom: 24px;
}

.intro h1 {
    margin: 0 0 6px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    letter-spacing: 0;
}

.intro p,
.section-heading p {
    margin: 0;
    color: var(--muted);
}

.site-search {
    position: relative;
    height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 5px 5px 16px;
    background: var(--surface);
    border: 1px solid #d9dbde;
    border-radius: 8px;
}

.site-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 66, 63, 0.12);
}

.site-search > img {
    width: 22px;
    height: 22px;
}

.site-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

.site-search button {
    height: 40px;
    min-width: 72px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--accent);
    cursor: pointer;
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 70;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(30, 35, 40, 0.15);
}

.search-results[hidden] {
    display: none;
}

.search-group-title {
    padding: 8px 10px 4px;
    color: var(--muted);
    font-size: 12px;
}

.search-results a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
}

.search-results a:hover {
    background: var(--page);
}

.search-results small {
    color: var(--muted);
    white-space: nowrap;
}

.banner-section {
    margin-bottom: 28px;
}

.static-banner {
    height: clamp(190px, 25vw, 300px);
    display: block;
    overflow: hidden;
    background: #e9edf0;
    border-radius: 8px;
}

.static-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.quick-section,
.scenic-section,
.latest-section {
    margin-top: 36px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0;
}

.section-heading p {
    margin-top: 3px;
    font-size: 14px;
}

.section-heading > a {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 14px;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
}

.quick-grid a {
    min-height: 94px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 150ms ease, transform 150ms ease;
}

.quick-grid a:hover {
    border-color: #f0aaa7;
    transform: translateY(-2px);
}

.quick-grid img {
    width: 34px;
    height: 34px;
}

.quick-grid span {
    font-size: 14px;
}

.scenic-heading {
    margin-bottom: 12px;
}

.segmented-control {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    background: #eceeef;
    border-radius: 8px;
}

.segmented-control button {
    min-width: 68px;
    padding: 7px 14px;
    border: 0;
    border-radius: 6px;
    color: #565a60;
    background: transparent;
    cursor: pointer;
}

.segmented-control button.is-active {
    color: var(--accent);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.status-message {
    padding: 28px 0;
    color: var(--muted);
}

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

.scenic-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.scenic-card:hover {
    border-color: #d0d2d5;
}

.scenic-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    background: #eceeef;
}

.scenic-card-body {
    padding: 13px;
}

.scenic-card h3 {
    min-width: 0;
    margin: 0 0 7px;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scenic-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.scenic-grade {
    color: var(--green);
    font-weight: 600;
}

.topic-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.topic-links a {
    min-width: 0;
    padding: 13px 2px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topic-links a:nth-last-child(-n + 2) {
    border-bottom: 0;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px 32px;
    padding: 28px 0 36px;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.site-footer strong {
    color: var(--ink);
}

.site-footer p {
    margin: 3px 0 0;
    font-size: 13px;
}

.site-footer nav {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.site-footer small {
    grid-column: 1 / -1;
}

.mobile-nav {
    display: none;
}

@media (max-width: 820px) {
    .header-inner,
    main,
    .site-footer {
        width: min(100% - 24px, 680px);
    }

    .desktop-nav {
        display: none;
    }

    main {
        padding-top: 20px;
        padding-bottom: 94px;
    }

    .intro {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .intro h1 {
        font-size: 30px;
    }

    .static-banner {
        height: clamp(138px, 35vw, 220px);
    }

    .quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .scenic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        height: calc(62px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding: 6px 8px env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--line);
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        color: #555a60;
        font-size: 11px;
    }

    .mobile-nav a.is-active {
        color: var(--accent);
    }

    .mobile-nav img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        min-height: 58px;
    }

    .brand small {
        display: none;
    }

    .intro-copy p {
        font-size: 14px;
    }

    .site-search {
        height: 48px;
    }

    .site-search button {
        min-width: 62px;
        height: 36px;
    }

    .banner-section {
        margin-left: -12px;
        margin-right: -12px;
    }

    .static-banner {
        border-radius: 0;
    }

    .quick-section,
    .scenic-section,
    .latest-section {
        margin-top: 28px;
    }

    .section-heading {
        align-items: center;
    }

    .section-heading h2 {
        font-size: 20px;
    }

    .quick-grid {
        gap: 7px;
    }

    .quick-grid a {
        min-height: 82px;
    }

    .quick-grid img {
        width: 30px;
        height: 30px;
    }

    .quick-grid span {
        font-size: 12px;
    }

    .segmented-control {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }

    .segmented-control button {
        min-width: 0;
        padding-left: 4px;
        padding-right: 4px;
    }

    .scenic-grid {
        gap: 10px;
    }

    .scenic-card-body {
        padding: 10px;
    }

    .scenic-card h3 {
        font-size: 15px;
    }

    .scenic-meta {
        display: block;
        line-height: 1.6;
    }

    .scenic-meta span {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .topic-links {
        grid-template-columns: 1fr;
    }

    .topic-links a:nth-last-child(2) {
        border-bottom: 1px solid var(--line);
    }

    .site-footer {
        display: block;
        padding-bottom: 88px;
    }

    .site-footer nav {
        margin: 18px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
