:root {
    --persimmon: #e96f22;
    --persimmon-deep: #b8471a;
    --field: #28764c;
    --field-soft: #e6f3e8;
    --leaf: #6cae55;
    --ink: #1d2a24;
    --muted: #62736b;
    --line: #e5eadf;
    --paper: #ffffff;
    --mist: #f4faf3;
    --gold: #f2b34f;
    --shadow: 0 18px 45px rgba(32, 82, 52, 0.13);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html {
    background: var(--mist);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(180deg, #f7fbf4 0%, #ffffff 42%, #eef7ed 100%);
    font-family: "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

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

button,
input {
    font: inherit;
}

button {
    border: 0;
}

img {
    display: block;
    max-width: 100%;
}

.app-shell {
    width: min(100%, 480px);
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
    background:
        linear-gradient(90deg, rgba(40, 118, 76, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, #fffefa 0%, #f7fbf4 100%);
    background-size: 18px 18px, auto;
}

.hero-slider {
    position: relative;
    height: min(62vh, 520px);
    min-height: 368px;
    overflow: hidden;
    isolation: isolate;
    background: #1b2a20;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 760ms ease, transform 1200ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.08) 36%, rgba(17, 42, 28, 0.76) 100%),
        radial-gradient(circle at 50% 72%, rgba(233, 111, 34, 0.18), transparent 42%);
}

.hero-auth {
    position: absolute;
    z-index: 5;
    top: calc(14px + env(safe-area-inset-top));
    right: 14px;
}

.auth-links,
.auth-signed {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    color: #fff;
    background: rgba(20, 45, 31, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.auth-signed form {
    margin: 0;
}

.auth-signed a,
.auth-signed button {
    min-height: 28px;
    padding: 0 8px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
}

.hero-copy {
    position: absolute;
    z-index: 4;
    left: 22px;
    right: 22px;
    bottom: 56px;
    color: #fff;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.45);
}

.hero-copy h1 {
    margin: 0;
    font-family: "STZhongsong", "SimSun", serif;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 800;
}

.hero-copy p:last-child {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 16px;
    font-weight: 600;
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 24px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.hero-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.56);
    transition: width 220ms ease, background 220ms ease;
}

.hero-dots button.is-active {
    width: 24px;
    background: #fff;
}

.quick-wrap {
    padding: 14px 10px 10px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

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

.quick-tile {
    min-width: 0;
    min-height: 58px;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--field);
    background: linear-gradient(180deg, #ffffff 0%, #f4faf3 100%);
    border: 1px solid #dce9da;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(34, 92, 58, 0.07);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.quick-tile:nth-child(3n + 1) {
    color: var(--persimmon-deep);
}

.quick-tile svg {
    width: 21px;
    height: 21px;
    stroke-width: 2.2;
}

.about-panel {
    margin: 12px 12px 0;
    padding: 18px 16px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.section-heading span,
.sub-hero span,
.admin-header span,
.auth-card > span {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--persimmon-deep);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-heading h2,
.about-panel h2 {
    margin: 0;
    color: var(--field);
    font-size: 24px;
    line-height: 1.2;
}

.about-panel p {
    margin: 12px 0 0;
    color: #35483e;
    font-size: 15px;
    line-height: 1.78;
}

.feature-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
}

.feature-card {
    min-height: 92px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(135deg, var(--field) 0%, #4a9b5a 100%);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(34, 92, 58, 0.15);
}

.feature-card.accent {
    background: linear-gradient(135deg, var(--persimmon-deep) 0%, var(--persimmon) 100%);
}

.feature-card strong {
    font-size: 17px;
}

.feature-card span {
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    line-height: 1.35;
}

.article-panel {
    margin: 0 12px 12px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.article-list a {
    min-height: 76px;
    display: grid;
    gap: 6px;
    padding: 13px 14px;
    background: linear-gradient(180deg, #fffdf9 0%, #f5fbf2 100%);
    border: 1px solid #dce9da;
    border-radius: 8px;
}

.article-list strong {
    color: var(--field);
    font-size: 17px;
    line-height: 1.25;
}

.article-list span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 700;
}

.fixed-actions {
    position: fixed;
    z-index: 20;
    left: 50%;
    bottom: 0;
    width: min(100%, 480px);
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid rgba(40, 118, 76, 0.16);
    backdrop-filter: blur(12px);
}

.fixed-actions a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 900;
}

.fixed-actions svg {
    width: 20px;
    height: 20px;
}

.action-nav {
    background: var(--field);
}

.action-panorama {
    background: var(--persimmon);
}

.subpage {
    background: #f6fbf3;
}

.sub-hero,
.admin-header {
    position: relative;
    padding: calc(22px + env(safe-area-inset-top)) 18px 22px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(27, 81, 51, 0.96), rgba(43, 126, 74, 0.9)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: auto, 16px 16px;
}

.back-link {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.sub-hero span,
.admin-header span {
    color: #ffdca7;
}

.sub-hero h1,
.admin-header h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.14;
}

.sub-hero p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.6;
}

.content-list {
    display: grid;
    gap: 12px;
    padding: 12px 12px calc(96px + env(safe-area-inset-bottom));
}

.content-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(32, 82, 52, 0.1);
}

.content-card-link {
    display: block;
}

.card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--field-soft);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-media video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #132116;
}

.card-media.has-video {
    aspect-ratio: 16 / 9;
}

.card-media span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #fff;
    background: rgba(184, 71, 26, 0.86);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.media-play {
    position: absolute;
    right: 12px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    padding: 8px;
    color: #fff;
    background: rgba(21, 45, 31, 0.72);
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 14px;
}

.card-body h2 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
    line-height: 1.32;
}

.card-body p {
    margin: 8px 0 10px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.62;
}

.card-body em {
    display: inline-flex;
    margin-top: 2px;
    color: var(--field);
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

.card-footer em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-footer strong {
    flex: 0 0 auto;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    color: #fff;
    background: var(--field);
    border-radius: 999px;
    font-size: 12px;
}

.detail-card {
    margin: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgba(32, 82, 52, 0.12);
}

.detail-media {
    position: relative;
    background: #132116;
}

.detail-media img,
.detail-media video {
    width: 100%;
    display: block;
}

.detail-media video {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.detail-media span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    color: #fff;
    background: rgba(184, 71, 26, 0.88);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.detail-body {
    padding: 16px;
}

.detail-body p {
    margin: 0 0 12px;
    color: #35483e;
    font-size: 16px;
    line-height: 1.78;
    font-weight: 700;
}

.detail-body p:last-child {
    margin-bottom: 0;
}

.detail-pager {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px calc(96px + env(safe-area-inset-bottom));
}

.detail-pager a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    color: var(--field);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(32, 82, 52, 0.08);
}

.detail-pager svg {
    width: 18px;
    height: 18px;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 24px 16px;
    background:
        linear-gradient(180deg, rgba(233, 111, 34, 0.1), rgba(40, 118, 76, 0.12)),
        url("/images/hongyan-2.jpg") center/cover;
}

.plain-back {
    width: max-content;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 12px;
    color: #fff;
    background: rgba(23, 56, 37, 0.58);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.auth-card {
    padding: 24px 18px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
}

.auth-card h1 {
    margin: 0 0 18px;
    color: var(--field);
    font-size: 30px;
    line-height: 1.15;
}

.auth-card form {
    display: grid;
    gap: 13px;
}

.auth-card label {
    display: grid;
    gap: 7px;
}

.auth-card label span {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.auth-card input {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    color: var(--ink);
    background: #f9fcf7;
    border: 1px solid #d8e5d6;
    border-radius: 8px;
    outline: none;
}

.auth-card input:focus {
    border-color: var(--field);
    box-shadow: 0 0 0 3px rgba(40, 118, 76, 0.12);
}

.auth-card label em,
.notice.error {
    color: #b42318;
    font-size: 13px;
    font-style: normal;
}

.notice {
    margin: -4px 0 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}

.notice.success {
    color: var(--field);
    background: var(--field-soft);
}

.notice.error {
    background: #fff0ec;
}

.auth-card button {
    min-height: 50px;
    color: #fff;
    background: linear-gradient(135deg, var(--field), var(--persimmon));
    border-radius: 8px;
    font-size: 17px;
    font-weight: 900;
}

.auth-switch {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.auth-switch a {
    color: var(--persimmon-deep);
    font-weight: 900;
}

.admin-page {
    background: #f7fbf4;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
}

.stat-grid article {
    min-height: 92px;
    padding: 12px 9px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stat-grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.stat-grid strong {
    color: var(--persimmon-deep);
    font-size: 28px;
    line-height: 1;
}

.path-table,
.user-table {
    margin: 0 12px 20px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.path-table h2,
.user-table h2 {
    margin: 0 0 10px;
    color: var(--field);
    font-size: 18px;
}

.path-row {
    min-height: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.path-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.path-row strong {
    color: var(--field);
}

.user-table {
    margin-bottom: 28px;
}

.user-row {
    min-height: 48px;
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 1fr 1.35fr;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.user-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.user-head {
    min-height: 34px;
    color: var(--field);
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 360px) {
    .quick-wrap {
        padding-left: 8px;
        padding-right: 8px;
    }

    .quick-grid {
        gap: 4px;
    }

    .quick-tile {
        font-size: 10px;
    }

    .quick-tile svg {
        width: 19px;
        height: 19px;
    }

    .hero-copy h1 {
        font-size: 37px;
    }
}
