* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    position: relative;
    color: #333;
    background: #dfeecb url('/static/images/homeweb-placeholder.webp?v=20260701') center/cover no-repeat fixed;
}

.home-page {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(180deg, rgba(255, 252, 230, 0.12), rgba(22, 46, 24, 0.18)),
        url('/static/images/homeweb-1920.webp?v=20260701') center/cover no-repeat;
    filter: none;
    -webkit-filter: none;
    z-index: -1;
    opacity: 1;
    overflow: hidden;
    pointer-events: none;
}

.background-overlay::before,
.background-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.background-overlay::before {
    background:
        radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.44) 0 0, transparent 43%),
        linear-gradient(90deg, rgba(17, 42, 24, 0.18), transparent 24%, transparent 76%, rgba(17, 42, 24, 0.16));
}

.background-overlay::after {
    background:
        linear-gradient(180deg, rgba(255, 252, 230, 0.06), rgba(14, 32, 18, 0.22)),
        radial-gradient(circle at 80% 8%, rgba(255, 245, 177, 0.28), transparent 22%);
    backdrop-filter: saturate(1.08);
}

.results-bg {
    filter: blur(4px);
    -webkit-filter: blur(4px);
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.home-page .container {
    min-height: 100vh;
    height: auto;
}

.header {
    padding: 14px 34px;
    padding-right: 560px;
    background: rgba(18, 26, 34, 0.92);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    gap: 24px;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: visible;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.site-brand > div {
    min-width: 0;
}

.site-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
    background: #eef4e8;
}

.admin-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.12);
    color: #f8fbff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, background 0.2s ease;
}

.admin-top-link:hover,
.admin-top-link:focus {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
}

.admin-top-link-primary {
    background: rgba(248, 244, 232, 0.94);
    color: #1e3a24;
    border-color: rgba(248, 244, 232, 0.98);
}

.admin-top-link-primary:hover,
.admin-top-link-primary:focus {
    background: #fff;
    color: #16301c;
}

.user-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 280px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(190, 242, 180, 0.48);
    background: rgba(74, 222, 128, 0.16);
    color: #f4fff0;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.user-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.22);
    flex: 0 0 auto;
}

.user-status-name,
.user-status-logout {
    color: inherit;
    text-decoration: none;
}

.user-status-name {
    max-width: 8.5em;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status-logout {
    opacity: 0.82;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.28);
}

.user-status-name:hover,
.user-status-logout:hover {
    text-decoration: underline;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    position: absolute;
    top: 50%;
    right: 34px;
    z-index: 3000;
    transform: translateY(-50%);
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.1);
    color: #f8fbff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
    flex: 0 0 auto;
}

.language-switcher select {
    min-width: 112px;
    border: 0;
    border-radius: 999px;
    padding: 6px 28px 6px 10px;
    background: rgba(255, 255, 255, 0.95);
    color: #1f2d24;
    font: inherit;
    cursor: pointer;
    outline: none;
}

.language-switcher select:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    text-decoration: none;
    color: #333;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: #f8fbff;
    background: none;
    -webkit-background-clip: text;
    -webkit-text-fill-color: currentColor;
    background-clip: text;
}

.subtitle {
    text-align: left;
    color: rgba(235, 244, 232, 0.78);
    margin-top: 0;
    font-size: 14px;
    max-width: min(58vw, 680px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.query-text {
    font-weight: 500;
    color: #667eea;
}

.city-text {
    color: #666;
}

.count-text {
    color: #888;
    font-size: 14px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 280px 20px 60px;
    padding-top: calc(250px + 15vh);
}

.home-page .main-content {
    min-height: 0;
    justify-content: center;
    padding: 96px 20px 28px;
}

.search-box {
    width: 100%;
    max-width: 800px;
    margin-bottom: 60px;
}

.home-page .search-box {
    margin-bottom: 28px;
}

.floating-chat-entry {
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #2d6838 0%, #4b8f47 100%);
    box-shadow: 0 12px 26px rgba(45, 104, 56, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-chat-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(45, 104, 56, 0.34);
}

.city-selector {
    position: relative;
    margin-bottom: 16px;
}

.city-btn {
    padding: 10px 24px;
    font-size: 16px;
    border: 2px solid #667eea;
    border-radius: 25px;
    background: white;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.city-btn:hover {
    background: #667eea;
    color: white;
}

.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 100;
    display: none;
}

.city-dropdown.active {
    display: block;
}

.city-search {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    outline: none;
}

.city-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}

.city-item {
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.city-item:hover {
    background: #f0f0f0;
}

.input-group {
    display: flex;
    gap: 0;
    border-radius: 50px;
    box-shadow: 0 4px 30px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 20px 30px;
    font-size: 18px;
    border: none;
    outline: none;
    background: white;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.search-tips {
    text-align: center;
    margin-top: 16px;
}

.image-query {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.home-page .image-query {
    justify-content: center;
}

.image-query input[type="file"] {
    display: none;
}

.image-upload-btn {
    padding: 10px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 1px solid #667eea;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.image-upload-btn:hover {
    background: #667eea;
    color: white;
}

.image-upload-btn-ghost {
    background: rgba(246, 255, 248, 0.92);
    color: #2f6b45;
    border-color: rgba(47, 107, 69, 0.45);
}

.image-upload-btn-ghost:hover {
    background: #2f6b45;
    color: #fff;
}

.home-image-preview {
    display: block;
    width: min(280px, 100%);
    max-height: 180px;
    object-fit: cover;
    border-radius: 16px;
    margin: 4px auto 0;
    box-shadow: 0 10px 24px rgba(18, 42, 24, 0.22);
}

.home-image-preview[hidden] {
    display: none;
}

.phone-bridge-btn {
    background: rgba(47, 107, 69, 0.95);
    color: #f6fff8;
    border-color: #2f6b45;
}

.phone-bridge-btn:hover {
    background: #245536;
    color: #fff;
}

.phone-bridge-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5200;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.phone-bridge-modal.is-open {
    display: flex;
}

.phone-bridge-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 14, 12, 0.58);
}

.phone-bridge-panel {
    position: relative;
    width: min(420px, 100%);
    background: #fff;
    color: #1d2a22;
    border-radius: 24px;
    padding: 28px 24px 22px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
    text-align: center;
}

.phone-bridge-panel h2 {
    margin: 6px 0 10px;
    font-size: 22px;
}

.phone-bridge-panel p {
    margin: 0 0 12px;
    color: #4b5a50;
    line-height: 1.55;
}

.phone-bridge-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #667;
}

.phone-bridge-qr {
    width: 220px;
    height: 220px;
    margin: 8px auto 12px;
    border-radius: 16px;
    background: #f4f7f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-bridge-qr svg,
.phone-bridge-qr canvas {
    width: 200px;
    height: 200px;
}

.phone-bridge-steps {
    margin: 0 0 16px;
    padding-left: 1.2em;
    text-align: left;
    color: #4b5a50;
    line-height: 1.7;
    font-size: 14px;
}

.phone-bridge-steps li {
    margin: 0 0 8px;
}

.phone-bridge-steps strong {
    color: #1d2a22;
}

.phone-bridge-code {
    font-size: 15px;
}

@media (hover: hover) and (pointer: fine) {
    .camera-capture-btn {
        display: none !important;
    }
}

.phone-bridge-code strong {
    letter-spacing: 0.18em;
    font-size: 22px;
    color: #1d2a22;
    user-select: all;
}

.phone-bridge-code-hint {
    display: block;
    margin-top: 6px;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 600;
    color: #66776a;
}

.phone-bridge-status {
    font-weight: 800;
    color: #2f6b45 !important;
}

.phone-bridge-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.image-file-name {
    color: #eee;
    font-size: 14px;
}

.home-page .image-file-name {
    display: none;
    align-items: center;
    max-width: min(420px, 100%);
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(61, 107, 69, 0.18);
    background: rgba(248, 244, 232, 0.96);
    color: #243226;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-shadow: none;
    box-shadow: 0 4px 14px rgba(32, 54, 28, 0.1);
}

.home-page .image-file-name.is-visible {
    display: inline-flex;
}

.tip {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(18, 26, 34, 0.72);
    font-size: 14px;
    color: #f6f8f1;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
}

.features {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
}

.home-page .features {
    gap: 18px;
    max-width: 1180px;
}

.home-archive-pitch {
    width: fit-content;
    max-width: min(1180px, 96vw);
    margin: 0 auto 8px;
    padding: 18px 28px 14px;
    text-align: center;
    background: rgba(248, 244, 232, 0.88);
    border: 1px solid rgba(61, 107, 69, 0.18);
    border-radius: 18px;
    box-shadow: 0 6px 22px rgba(32, 54, 28, 0.08);
}

.home-archive-pitch-line {
    margin: 0 0 12px;
    color: #1e3a24;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.home-archive-points-wrap {
    margin: 0 auto 2px;
    text-align: left;
    width: max-content;
    max-width: 100%;
    height: 1.6em;
    overflow: hidden;
    position: relative;
}

.home-archive-points {
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.5s ease-in-out;
}

.home-archive-points.is-animated {
    will-change: transform;
}

.home-archive-points li {
    position: relative;
    padding-left: 14px;
    color: #3b4a38;
    font-size: 14px;
    line-height: 1.6;
    height: 1.6em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-archive-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3d6b45;
}

.home-archive-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    padding: 11px 22px;
    border-radius: 999px;
    background: #2f5a38;
    color: #f8fbf6;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(32, 54, 28, 0.22);
    transition: transform 0.2s ease, background 0.2s ease;
}

.home-archive-cta:hover,
.home-archive-cta:focus {
    background: #24482c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.home-archive-cta-note {
    margin: 10px 0 0;
    color: #5a6a56;
    font-size: 13px;
}

.home-page .feature-card--featured {
    width: min(300px, 100%);
    background: rgba(236, 245, 234, 0.96);
    border-color: rgba(47, 90, 56, 0.28);
    box-shadow: 0 8px 24px rgba(32, 54, 28, 0.12);
}

.home-page .feature-card--featured h3 {
    color: #1a3d22;
}

.feature-card {
    width: 280px;
    padding: 30px;
    background: rgba(248, 244, 232, 0.92);
    border: 1px solid rgba(61, 107, 69, 0.16);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(32, 54, 28, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    color: #243226;
}

.feature-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.feature-link:hover,
.feature-link:focus,
.feature-link:active,
.feature-link:visited {
    color: inherit;
    text-decoration: none;
}

.feature-link *,
.feature-link:hover *,
.feature-link:focus *,
.feature-link:active * {
    text-decoration: none;
}

.admin-entry-card {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.chat-feature-card {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.home-page .feature-icon {
    font-size: 30px;
    margin-bottom: 10px;
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #1e3a24;
}

.feature-card p {
    font-size: 14px;
    color: #4d5e4a;
    line-height: 1.6;
}

.taxonomy-open-btn {
    margin-top: 22px;
    padding: 12px 28px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(18, 26, 34, 0.88);
    color: #f8fbff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.taxonomy-open-btn:hover {
    transform: translateY(-2px);
    background: rgba(39, 70, 44, 0.94);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 1900;
    display: none;
    padding: 24px;
}

.admin-modal.is-open {
    display: block;
}

.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 8, 0.74);
    backdrop-filter: blur(7px);
}

.admin-modal-panel {
    position: relative;
    width: min(1180px, calc(100vw - 28px));
    height: min(820px, calc(100vh - 48px));
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(248, 250, 244, 0.98);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.admin-login-view {
    max-width: 520px;
    margin: 0 auto;
    padding: 74px 34px 34px;
    color: #1d3422;
}

.admin-login-view h2 {
    margin-bottom: 12px;
    font-size: 30px;
}

.admin-login-desc {
    margin-bottom: 24px;
    color: #5c6c5f;
    line-height: 1.7;
}

.admin-login-form {
    display: grid;
    gap: 16px;
}

.admin-login-form label {
    display: grid;
    gap: 8px;
    color: #1d3422;
    font-weight: 800;
}

.admin-login-form input {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(45, 104, 56, 0.22);
    border-radius: 14px;
    background: #fff;
    color: #1d3422;
    font-size: 15px;
    outline: none;
}

.admin-login-form input:focus {
    border-color: #4b8a55;
    box-shadow: 0 0 0 4px rgba(75, 138, 85, 0.13);
}

.admin-login-submit {
    margin-top: 4px;
    justify-content: center;
}

.admin-login-error {
    min-height: 22px;
    color: #c33434;
    font-weight: 700;
}

.admin-frame-view {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.admin-frame-view[hidden],
.admin-login-view[hidden] {
    display: none;
}

.admin-frame-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 60px 16px 22px;
    background: rgba(18, 26, 34, 0.94);
    color: #f8fbff;
}

.admin-frame-toolbar strong {
    display: block;
    margin-bottom: 4px;
    font-size: 18px;
}

.admin-frame-toolbar span {
    color: rgba(235, 244, 232, 0.72);
    font-size: 13px;
}

.admin-frame-toolbar button {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #f8fbff;
    cursor: pointer;
    font-weight: 800;
}

.admin-frame-view iframe {
    width: 100%;
    flex: 1;
    border: 0;
    background: #f7f9f2;
}

.admin-login-page {
    min-height: 100vh;
    overflow: auto;
}

.admin-login-page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}

.admin-login-card {
    width: min(520px, 100%);
    padding: 34px;
    border-radius: 24px;
    background: rgba(248, 250, 244, 0.97);
    color: #1d3422;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(10px);
}

.admin-login-card h1 {
    margin-bottom: 12px;
    font-size: 30px;
    color: #1d3422;
}

.admin-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: #1d3422;
    font-weight: 900;
    text-decoration: none;
}

.admin-login-brand .site-avatar {
    width: 48px;
    height: 48px;
    border-color: rgba(45, 104, 56, 0.22);
}

.admin-login-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.admin-login-notes span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(45, 104, 56, 0.1);
    color: #2d6838;
    font-size: 12px;
    font-weight: 800;
}

.taxonomy-modal {
    position: fixed;
    inset: 0;
    z-index: 1800;
    display: none;
    padding: 28px;
}

.taxonomy-modal.is-open {
    display: block;
}

.taxonomy-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 12, 8, 0.72);
    backdrop-filter: blur(6px);
}

.taxonomy-panel {
    position: relative;
    width: min(1120px, calc(100vw - 32px));
    max-height: calc(100vh - 56px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(251, 252, 246, 0.98);
    color: #1e2b22;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.taxonomy-close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #1c2d20;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.taxonomy-hero {
    padding: 30px 34px 24px;
    background:
        linear-gradient(135deg, rgba(27, 61, 35, 0.94), rgba(62, 86, 52, 0.88)),
        radial-gradient(circle at 80% 20%, rgba(226, 213, 128, 0.24), transparent 28%);
    color: #f8fbef;
}

.taxonomy-eyebrow {
    margin-bottom: 8px;
    color: rgba(234, 235, 184, 0.82);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.taxonomy-hero h2 {
    margin-bottom: 10px;
    font-size: 28px;
    line-height: 1.25;
}

.taxonomy-hero p {
    max-width: 920px;
    color: rgba(248, 251, 239, 0.86);
    font-size: 15px;
    line-height: 1.8;
}

.taxonomy-tabs {
    display: flex;
    gap: 8px;
    padding: 14px 18px 0;
    overflow-x: auto;
    background: #fbfcf6;
}

.taxonomy-tab {
    flex: 0 0 auto;
    padding: 10px 18px;
    border: 1px solid #d9e2ce;
    border-radius: 999px;
    background: #fff;
    color: #466146;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.taxonomy-tab.is-active {
    background: #284f2e;
    border-color: #284f2e;
    color: #fff;
}

.taxonomy-body {
    max-height: calc(100vh - 250px);
    overflow-y: auto;
    padding: 22px 28px 30px;
}

.taxonomy-pane {
    display: none;
}

.taxonomy-pane.is-active {
    display: block;
}

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

.taxonomy-info-card {
    min-height: 190px;
    padding: 20px;
    border: 1px solid rgba(87, 121, 76, 0.18);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f5f8ee);
    box-shadow: 0 8px 24px rgba(28, 55, 31, 0.08);
}

.taxonomy-stat {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eaf2df;
    color: #42613f;
    font-size: 12px;
    font-weight: 700;
}

.taxonomy-info-card h3,
.classification-layout h3,
.section-summary h3,
.taxonomy-pane h3 {
    margin-bottom: 10px;
    color: #213923;
}

.taxonomy-info-card p,
.section-summary p,
.taxonomy-pane p {
    color: #4d5c4b;
    font-size: 14px;
    line-height: 1.75;
}

.taxonomy-note {
    margin-top: 18px;
    padding: 16px 18px;
    border-left: 4px solid #668a43;
    border-radius: 14px;
    background: #f1f6e8;
    color: #40503f;
    font-size: 14px;
    line-height: 1.8;
}

.classification-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 18px;
}

.taxonomy-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 18px;
    color: #4d5c4b;
    font-size: 14px;
    line-height: 1.7;
}

.taxonomy-tree li {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 0 0 1px rgba(70, 97, 70, 0.12);
}

.section-summary {
    margin-top: 20px;
    padding: 18px;
    border-radius: 18px;
    background: #f7f9f0;
}

.section-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.section-chips span,
.section-chips a {
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff;
    color: #466146;
    font-size: 13px;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(70, 97, 70, 0.14);
}

.section-chips a:hover {
    background: #eef5e4;
    color: #1e3a24;
    box-shadow: inset 0 0 0 1px rgba(70, 97, 70, 0.28);
}

.taxonomy-list a {
    color: #2d5a38;
    font-weight: 700;
    text-decoration: none;
}

.taxonomy-list a:hover {
    text-decoration: underline;
}

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

.taxonomy-photo-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.taxonomy-photo-link:hover .taxonomy-photo-card {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(28, 55, 31, 0.18);
}

.taxonomy-photo-card {
    overflow: hidden;
    margin: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 55, 31, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.taxonomy-photo-card img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
    background: #e7ebdf;
}

.taxonomy-photo-card figcaption {
    display: grid;
    gap: 6px;
    padding: 14px 16px 16px;
    color: #263326;
    font-size: 14px;
    line-height: 1.65;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid rgba(70, 97, 70, 0.16);
}

.taxonomy-photo-card strong {
    color: #102414;
    font-size: 18px;
    font-weight: 800;
}

.taxonomy-latin {
    color: #314d35;
    font-size: 14px;
    font-weight: 700;
}

.results-container {
    background: transparent;
}

.results-content {
    flex: 1;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.results-container .job-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s;
}

.results-container .job-card:hover {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.results-container .search-summary {
    color: #ccc;
}

.results-container .count-text {
    color: #aaa;
}

.results-content {
    flex: 1;
    padding: 40px 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.job-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.answer-card {
    background: rgba(248, 244, 232, 0.94);
    border: 1px solid rgba(61, 107, 69, 0.14);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 15px rgba(32, 54, 28, 0.12);
    color: #243226;
}

.home-page .feature-card {
    width: 230px;
    padding: 22px 20px;
    background: rgba(248, 244, 232, 0.9);
}

.answer-title {
    font-size: 22px;
    color: #333;
    margin-bottom: 18px;
}

.answer-content {
    color: #3b4639;
    font-size: 17px;
    line-height: 1.9;
    white-space: pre-wrap;
}

.local-answer-card {
    margin-top: 4px;
    padding: 4px 0 0;
    white-space: normal;
}

.local-answer-summary {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(75, 125, 68, 0.08);
    color: #213621;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.75;
}

.local-fact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.local-fact-item {
    padding: 13px 14px;
    border: 1px solid rgba(78, 124, 70, 0.14);
    border-radius: 16px;
    background: rgba(251, 254, 247, 0.88);
}

.local-fact-item span {
    display: block;
    margin-bottom: 5px;
    color: #6d7c69;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.local-fact-item strong {
    display: block;
    color: #263c28;
    font-size: 15px;
    line-height: 1.5;
}

.local-answer-section {
    margin-top: 14px;
    padding: 16px 18px;
    border-left: 4px solid #79a95c;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.76);
    color: #2e3e2f;
}

.local-answer-section h3 {
    margin: 0 0 8px;
    color: #244b2c;
    font-size: 17px;
    line-height: 1.4;
}

.local-answer-section p {
    margin: 0;
    color: #374837;
    font-size: 15px;
    line-height: 1.85;
    text-align: justify;
}

.related-varieties-panel {
    margin: 22px 0 6px;
    padding: 20px;
    border: 1px solid rgba(72, 112, 67, 0.14);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 253, 242, 0.96), rgba(238, 247, 231, 0.92));
    box-shadow: 0 12px 30px rgba(24, 54, 29, 0.08);
}

.related-varieties-header h3 {
    margin: 4px 0 8px;
    color: #25452a;
    font-size: 21px;
    line-height: 1.35;
}

.related-varieties-header p:last-child {
    margin: 0 0 16px;
    color: #65745f;
    font-size: 14px;
    line-height: 1.7;
}

.related-variety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.related-variety-card {
    width: 100%;
    min-height: 128px;
    padding: 15px 16px;
    border: 1px solid rgba(80, 124, 72, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: #2b3b2a;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(37, 65, 35, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.related-variety-card:hover {
    transform: translateY(-2px);
    border-color: rgba(82, 139, 73, 0.34);
    box-shadow: 0 14px 28px rgba(37, 65, 35, 0.14);
}

.related-variety-card.is-loading {
    opacity: 0.72;
    cursor: wait;
}

.related-variety-card strong {
    display: block;
    margin-bottom: 6px;
    color: #214327;
    font-size: 17px;
    line-height: 1.35;
}

.related-variety-card span {
    display: block;
    margin-bottom: 8px;
    color: #6f805f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.related-variety-card p {
    margin: 0;
    color: #495d45;
    font-size: 13px;
    line-height: 1.65;
}

.community-result-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-top: 22px;
}

.community-match-card {
    border: 1px solid rgba(72, 112, 67, 0.16);
    border-radius: 22px;
    padding: 26px;
    background: linear-gradient(180deg, rgba(252, 255, 248, 0.98), rgba(244, 250, 239, 0.96));
    box-shadow: 0 14px 36px rgba(24, 54, 29, 0.12);
}

.community-match-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.community-match-header h3 {
    color: #19321f;
    font-size: 24px;
    line-height: 1.35;
    margin-top: 4px;
}

.community-match-score {
    min-width: 104px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #2f7a43, #74a856);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    box-shadow: 0 10px 24px rgba(47, 122, 67, 0.25);
}

.community-match-score span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.88;
}

.community-match-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.community-match-tags span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(47, 122, 67, 0.1);
    color: #315b38;
    font-size: 13px;
    font-weight: 700;
}

.community-match-description {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(93, 133, 82, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: #2f3f30;
    font-size: 15px;
    line-height: 1.85;
}

.community-match-description p {
    margin: 0 0 12px;
}

.community-match-description p:last-child {
    margin-bottom: 0;
}

.community-desc-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: #244b2c;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.65;
}

.community-desc-heading:first-child {
    margin-top: 0;
}

.community-desc-line {
    text-align: justify;
}

.community-match-notes {
    color: #2f3f30;
    font-size: 15px;
    line-height: 1.85;
}

.community-match-notes {
    margin-top: 10px;
    padding: 12px 14px;
    border-left: 4px solid #84a85c;
    border-radius: 12px;
    background: rgba(132, 168, 92, 0.1);
}

.community-match-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.community-match-image img {
    height: 170px;
}

.catalog-match-panel a {
    color: #2f6b35;
    font-weight: 700;
}

.catalog-match-panel .related-variety-card {
    text-decoration: none;
    color: inherit;
}

.result-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.result-image-card {
    cursor: zoom-in;
    overflow: hidden;
    margin: 0;
    border-radius: 18px;
    background: #f7f7f2;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-image-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.result-image-card img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: #e8e8e0;
}

.result-image-card figcaption {
    padding: 12px 14px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.result-image-credit {
    display: block;
    margin-top: 4px;
    color: #888;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 42px 24px;
    background: rgba(0, 0, 0, 0.86);
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox img {
    max-width: 94vw;
    max-height: 84vh;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
}

.lightbox-caption {
    position: fixed;
    left: 50%;
    bottom: 18px;
    max-width: min(900px, 86vw);
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.answer-meta {
    margin-top: 18px;
    color: #888;
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.source-badge,
.flower-source-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #edf4e6;
    color: #315f43;
    font-size: 12px;
    font-weight: 650;
}

.feedback-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.feedback-privacy,
.feedback-status {
    color: #60705c;
    font-size: 13px;
    line-height: 1.7;
}

.feedback-status {
    min-height: 1.5em;
    font-weight: 650;
}

.answer-actions {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}

.error-message {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: #fff1f0;
    color: #cf1322;
}

.job-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.job-card:hover {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.job-title a {
    color: inherit;
    text-decoration: none;
}

.job-title a:hover {
    color: #667eea;
}

.job-salary {
    font-size: 20px;
    font-weight: 600;
    color: #f5a623;
}

.job-info {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.company, .location, .publish-date, .source-tag {
    font-size: 14px;
    color: #666;
}

.source-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
}

.job-section {
    margin-bottom: 16px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.section-content {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
    white-space: pre-wrap;
}

.job-footer {
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.view-detail-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s;
}

.view-detail-btn:hover {
    transform: translateY(-2px);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    color: #666;
    margin-bottom: 20px;
}

.no-results-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.refresh-btn {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.refresh-btn:hover {
    background: #5568d3;
}

.back-link {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s;
}

.back-link:hover {
    background: #5a6fd6;
}

.community-content {
    width: min(1180px, calc(100% - 40px));
    margin: 110px auto 48px;
    display: grid;
    gap: 28px;
}

.admin-community-content {
    width: min(1500px, calc(100% - 28px));
    margin-top: 52px;
    gap: 12px;
}

.admin-status-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.admin-status-tabs a {
    text-decoration: none;
    color: #1e3a24;
    font-weight: 700;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef5e4;
    border: 1px solid rgba(61, 107, 69, 0.18);
}

.admin-status-tabs a.is-active {
    background: #3d6b45;
    color: #f7f4ea;
    border-color: #3d6b45;
}

.admin-bulk-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(248, 244, 232, 0.92);
    border: 1px solid rgba(61, 107, 69, 0.14);
}

.admin-bulk-bar input[type="text"] {
    min-width: 220px;
    flex: 1;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(61, 107, 69, 0.2);
}

.admin-bulk-check-all {
    font-weight: 700;
    color: #1e3a24;
}

.admin-danger-btn,
.admin-ghost-btn,
.admin-quick-actions button,
.admin-action-edit {
    border: 1px solid rgba(61, 107, 69, 0.25);
    background: #fffdf7;
    color: #1e3a24;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}

.admin-danger-btn {
    background: #f8e8e4;
    border-color: rgba(160, 70, 50, 0.35);
    color: #7a2f1f;
}

.admin-actions-col {
    min-width: 360px;
    width: 380px;
}

.admin-quick-actions {
    vertical-align: middle;
}

.admin-action-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.admin-action-row form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.admin-quick-actions button,
.admin-action-edit {
    min-width: 72px;
    padding: 8px 14px;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.admin-action-pass {
    background: #3d6b45 !important;
    border-color: #3d6b45 !important;
    color: #f7f4ea !important;
}

.admin-action-reject {
    background: #f8e8e4 !important;
    border-color: rgba(160, 70, 50, 0.35) !important;
    color: #7a2f1f !important;
}

.admin-action-hide,
.admin-action-retry,
.admin-action-edit {
    background: #eef5e4 !important;
    color: #1e3a24 !important;
}

.admin-status-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
}

.admin-status-pill.status-pending {
    background: #fff3d6;
    color: #8a5a10;
}

.admin-status-pill.status-published {
    background: #e5f3e4;
    color: #2f6b3a;
}

.admin-status-pill.status-rejected {
    background: #f8e4e4;
    color: #8a2f2f;
}

.admin-status-pill.status-hidden {
    background: #eceff3;
    color: #4a5560;
}

.community-upload-card,
.community-gallery-section {
    padding: 30px;
    border-radius: 24px;
    background: rgba(248, 244, 232, 0.94);
    border: 1px solid rgba(61, 107, 69, 0.16);
    box-shadow: 0 16px 45px rgba(20, 34, 22, 0.14);
    backdrop-filter: blur(10px);
    color: #243226;
}

.community-section-title {
    margin-bottom: 22px;
}

.community-section-title h2 {
    color: #1d3422;
    font-size: 26px;
    margin-bottom: 8px;
}

.community-section-title p {
    color: #546556;
    line-height: 1.7;
}

.community-gallery-collapsed {
    padding: 18px 22px;
}

.community-gallery-collapsed[open] {
    padding: 30px;
}

.community-gallery-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
    color: #1d3422;
}

.community-gallery-summary::-webkit-details-marker {
    display: none;
}

.community-gallery-summary strong {
    display: block;
    font-size: 22px;
    margin-bottom: 4px;
}

.community-gallery-summary small {
    display: block;
    color: #667567;
    font-size: 13px;
    font-weight: 600;
}

.community-gallery-summary em {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(105, 113, 246, 0.12);
    color: #5b51d8;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}

.community-gallery-collapsed[open] .community-gallery-summary {
    margin-bottom: 18px;
}

.community-gallery-collapsed[open] .community-gallery-summary em {
    background: rgba(40, 95, 52, 0.12);
    color: #276434;
}

.community-gallery-collapsed[open] .community-gallery-summary em::before {
    content: "收起";
}

.community-gallery-collapsed[open] .community-gallery-summary em {
    font-size: 0;
}

.community-gallery-collapsed[open] .community-gallery-summary em::before {
    font-size: 14px;
}

.community-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.community-form label {
    display: grid;
    gap: 8px;
    color: #243927;
    font-size: 14px;
    font-weight: 700;
}

.community-form input,
.community-form textarea,
.community-form select {
    width: 100%;
    border: 1px solid rgba(53, 89, 57, 0.18);
    border-radius: 14px;
    padding: 13px 14px;
    background: #fbfcf7;
    color: #263326;
    font: inherit;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.community-form input:focus,
.community-form textarea:focus,
.community-form select:focus {
    border-color: #38623d;
    box-shadow: 0 0 0 4px rgba(56, 98, 61, 0.12);
}

.community-form input[type="date"],
.community-form input[type="datetime-local"],
.community-form input[type="time"] {
    min-height: 52px;
    padding: 13px 48px 13px 16px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, #ffffff, #f4f8ee);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.community-form input[type="date"]::-webkit-calendar-picker-indicator,
.community-form input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.community-form input[type="time"]::-webkit-calendar-picker-indicator {
    width: 24px;
    height: 24px;
    padding: 7px;
    margin-right: -34px;
    border-radius: 50%;
    background-color: rgba(56, 98, 61, 0.14);
    cursor: pointer;
}

.community-form-wide,
.community-form-actions {
    grid-column: 1 / -1;
}

.community-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-search-card {
    padding: 14px 18px;
}

.admin-search-card .community-section-title {
    margin-bottom: 10px;
}

.admin-search-card .community-section-title h2 {
    margin-bottom: 4px;
    font-size: 22px;
}

.admin-search-card .community-section-title p {
    line-height: 1.45;
    font-size: 13px;
}

.admin-filter-form {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px 10px;
}

.admin-filter-form label {
    gap: 5px;
    font-size: 13px;
}

.admin-filter-form input,
.admin-filter-form select {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.admin-filter-form input[type="date"],
.admin-filter-form input[type="datetime-local"],
.admin-filter-form input[type="time"] {
    min-height: 46px;
    padding: 11px 44px 11px 12px;
    border-radius: 14px;
    font-size: 14px;
}

.admin-filter-form .community-form-actions {
    align-self: end;
}

.bt-date-popover {
    position: fixed;
    z-index: 5000;
    width: min(430px, calc(100vw - 24px));
    padding: 18px;
    border: 1px solid rgba(56, 98, 61, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 70px rgba(34, 59, 36, 0.24);
}

.bt-date-popover[hidden] {
    display: none;
}

.bt-date-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.bt-date-title {
    color: #254b2d;
    font-size: 20px;
    font-weight: 950;
}

.bt-date-nav,
.bt-date-day,
.bt-date-action {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.bt-date-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(56, 98, 61, 0.14);
    color: #254b2d;
    font-size: 22px;
    font-weight: 950;
}

.bt-date-week,
.bt-date-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.bt-date-week span {
    color: #6e7c6a;
    font-size: 13px;
    font-weight: 950;
    text-align: center;
}

.bt-date-grid {
    margin-top: 8px;
}

.bt-date-day {
    min-height: 48px;
    border-radius: 16px;
    background: #f3f7ee;
    color: #1f2f21;
    font-weight: 900;
}

.bt-date-day:hover {
    background: rgba(56, 98, 61, 0.16);
}

.bt-date-day.is-muted {
    color: rgba(90, 104, 87, 0.42);
}

.bt-date-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(56, 98, 61, 0.5);
}

.bt-date-day.is-selected {
    background: linear-gradient(135deg, #5c8b62, #254b2d);
    color: #fff;
}

.bt-date-time {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.bt-date-time label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: #6e7c6a;
    font-size: 13px;
    font-weight: 900;
}

.bt-date-time input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(56, 98, 61, 0.16);
    border-radius: 14px;
    padding: 10px 12px;
    color: #1f2f21;
    font: inherit;
}

.bt-date-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.bt-date-action {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(56, 98, 61, 0.14);
    color: #254b2d;
    font-weight: 950;
}

.bt-date-action.is-primary {
    background: linear-gradient(135deg, #7fae7f, #38623d);
    color: #fff;
}

.community-submit {
    min-width: 180px;
}

.community-image-uploader {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(320px, 1.15fr);
    gap: 16px;
    align-items: stretch;
    padding: 14px;
    border: 1px solid rgba(53, 89, 57, 0.12);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(251, 252, 247, 0.95), rgba(239, 248, 236, 0.78));
}

.community-file-label {
    min-height: 132px;
    padding: 18px;
    border: 1.5px dashed rgba(56, 98, 61, 0.35);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    align-content: center;
}

.community-file-label input[type="file"] {
    padding: 10px;
    border-style: dashed;
    background: #ffffff;
}

.community-preview-panel {
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 8px;
    min-height: 132px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 0 0 1px rgba(53, 89, 57, 0.08);
}

.community-preview-heading {
    color: #37553b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.community-preview-list {
    display: grid;
    align-content: start;
    gap: 6px;
    margin-top: 0;
    max-height: 230px;
    overflow: auto;
    padding-right: 2px;
}

.community-preview-list:empty::before {
    content: "还没有选择图片";
    display: grid;
    min-height: 78px;
    place-items: center;
    border: 1px dashed rgba(53, 89, 57, 0.18);
    border-radius: 12px;
    color: #7b8a78;
    font-size: 13px;
    font-weight: 600;
}

.community-preview-item {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 5px 8px;
    border: 1px solid rgba(53, 89, 57, 0.14);
    border-radius: 10px;
    background: rgba(251, 252, 247, 0.92);
}

.community-preview-item img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: cover;
    background: #e8ecd9;
}

.community-preview-item img:hover {
    position: fixed;
    z-index: 1000;
    width: min(360px, 80vw);
    height: min(360px, 70vh);
    left: 50%;
    top: 50%;
    border: 8px solid #fff;
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
    object-fit: contain;
    transform: translate(-50%, -50%);
}

.community-preview-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.community-preview-meta strong {
    overflow: hidden;
    color: #243927;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-preview-meta span {
    color: #657565;
    font-size: 11px;
    font-weight: 500;
}

.community-preview-item button {
    border: 0;
    border-radius: 999px;
    padding: 5px 9px;
    background: #f2d8d8;
    color: #8a2d2d;
    cursor: pointer;
    font-weight: 700;
}

.success-message {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #eff8ec;
    color: #265c2d;
    border: 1px solid rgba(66, 126, 72, 0.22);
}

.community-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.community-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(26, 45, 28, 0.12);
}

.community-card img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
    background: #e8ecd9;
}

.community-card-body {
    padding: 18px;
}

.community-card-body h3 {
    color: #18351e;
    font-size: 20px;
    margin-bottom: 6px;
}

.community-card-body p {
    color: #4d5e50;
    line-height: 1.7;
    margin-bottom: 10px;
}

.community-cultivar {
    color: #2d6838;
    font-weight: 700;
}

.community-care {
    padding: 10px 12px;
    border-radius: 12px;
    background: #f2f7eb;
}

.community-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.community-meta span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef4e8;
    color: #48604b;
    font-size: 12px;
}

.community-admin-table {
    overflow-x: auto;
}

.admin-community-content .community-gallery-section {
    padding: 16px 18px;
}

.community-admin-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1500px;
}

.community-admin-table th,
.community-admin-table td {
    padding: 5px 8px;
    border-bottom: 1px solid rgba(54, 86, 58, 0.14);
    text-align: left;
    vertical-align: top;
    color: #263326;
    font-size: 12px;
    line-height: 1.25;
}

.community-admin-table th {
    background: #eef4e8;
    color: #1d3422;
    font-weight: 800;
}

.community-admin-table img {
    width: 50px;
    height: 38px;
    border-radius: 7px;
    object-fit: cover;
    background: #e8ecd9;
}

.community-admin-table small {
    display: block;
    color: #647268;
    line-height: 1.35;
}

.admin-search-card .admin-plants-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(72, 112, 67, 0.2);
}

.admin-search-card .admin-plants-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #244f2b;
    font-weight: 600;
}

.admin-search-card .admin-plants-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(45, 70, 44, 0.06);
}

.admin-search-card .admin-plants-table th,
.admin-search-card .admin-plants-table td {
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid #f0f2ea;
    font-size: 14px;
    line-height: 1.6;
    white-space: normal;
}

.admin-search-card .admin-plants-table th {
    background: #f5f8ee;
    font-weight: 700;
    color: #36563b;
}

.admin-search-card .admin-plants-table td {
    color: #51624d;
}

.admin-search-card .admin-plants-table tbody tr:hover {
    background: #fafbf7;
}

.admin-search-card .admin-plants-table a {
    color: #244f2b;
    text-decoration: none;
    font-weight: 500;
}

.admin-search-card .admin-plants-table a:hover {
    text-decoration: underline;
}

.admin-search-card .admin-plants-table th:nth-child(1),
.admin-search-card .admin-plants-table td:nth-child(1) { width: 140px; }
.admin-search-card .admin-plants-table th:nth-child(2),
.admin-search-card .admin-plants-table td:nth-child(2) { width: 120px; }
.admin-search-card .admin-plants-table th:nth-child(3),
.admin-search-card .admin-plants-table td:nth-child(3) { width: 100px; }
.admin-search-card .admin-plants-table th:nth-child(4),
.admin-search-card .admin-plants-table td:nth-child(4) { width: 120px; }
.admin-search-card .admin-plants-table th:nth-child(5),
.admin-search-card .admin-plants-table td:nth-child(5) { width: 80px; }
.admin-search-card .admin-plants-table th:nth-child(6),
.admin-search-card .admin-plants-table td:nth-child(6) { width: 120px; }
.admin-search-card .admin-plants-table th:nth-child(7),
.admin-search-card .admin-plants-table td:nth-child(7) { width: 100px; }

.admin-user-detail-page .community-content.admin-community-content {
    width: min(1800px, calc(100% - 40px)) !important;
    max-width: 1800px !important;
}

.admin-user-detail-page .admin-search-card {
    overflow-x: auto !important;
}

.admin-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #1d3422;
    text-decoration: none;
    white-space: nowrap;
}

.admin-sort-link:hover {
    color: #2d6838;
    text-decoration: underline;
}

.admin-sort-link.is-active {
    color: #5b51d8;
}

.admin-user-cell strong,
.admin-ip-cell {
    color: #17351f;
    font-weight: 800;
}

.admin-geo-cell span {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    margin: 0 3px 3px 0;
    border-radius: 999px;
    background: rgba(45, 104, 56, 0.1);
    color: #2d6838;
    font-size: 11px;
    font-weight: 800;
}

.admin-user-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.admin-user-summary div {
    padding: 16px;
    border-radius: 16px;
    background: #f5f8ee;
    border: 1px solid rgba(72, 112, 67, 0.12);
}

.admin-user-summary strong {
    display: block;
    color: #214528;
    font-size: 22px;
}

.admin-user-summary span {
    color: #65715f;
    font-size: 13px;
}

.admin-checkbox-label {
    align-items: center;
}

.admin-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.admin-edit-card {
    max-width: 960px;
    margin: 0 auto;
}

.admin-edit-current {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid rgba(53, 89, 57, 0.14);
    border-radius: 18px;
    background: rgba(242, 247, 235, 0.78);
}

.admin-edit-current img {
    width: 180px;
    height: 135px;
    border-radius: 14px;
    object-fit: cover;
    background: #e8ecd9;
}

.admin-edit-current div {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.admin-edit-current strong {
    color: #1d3422;
    font-size: 18px;
}

.admin-edit-current span,
.admin-edit-current small {
    overflow-wrap: anywhere;
    color: #546556;
    line-height: 1.55;
}

.admin-detail-link,
.community-pagination a {
    color: #2d6838;
    font-weight: 700;
    text-decoration: none;
}

.admin-detail-link:hover,
.community-pagination a:hover {
    text-decoration: underline;
}

.community-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    color: #48604b;
    font-weight: 700;
}

.admin-jump-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-jump-form label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.admin-jump-form input {
    width: 74px;
    padding: 6px 8px;
    border: 1px solid rgba(53, 89, 57, 0.2);
    border-radius: 9px;
}

.admin-jump-form button {
    padding: 6px 12px;
    border: 0;
    border-radius: 9px;
    background: #2d6838;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
}

.footer {
    background: #1a1a2e;
    padding: 30px 20px;
    color: white;
}

.home-page .footer {
    position: sticky;
    bottom: 0;
    z-index: 50;
    padding: 10px 20px 12px;
    background: rgba(18, 20, 38, 0.94);
    backdrop-filter: blur(8px);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-disclaimer {
    color: rgba(232, 235, 244, 0.78);
    font-size: 12px;
    line-height: 1.6;
}

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.footer-meta a,
.footer-meta .copyright,
.footer-meta span,
.icp-info a,
.icp-info span,
.icp-info .copyright {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
}

.footer-contact {
    color: rgba(226, 246, 220, 0.9) !important;
    font-size: 12px;
}

.footer-meta a:hover,
.icp-info a:hover {
    color: #667eea;
}

.compliance-text {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.compliance-text p {
    font-size: 12px;
    color: #a0a0a0;
    line-height: 1.8;
    margin-bottom: 8px;
}

.compliance-text p:last-child {
    margin-bottom: 0;
}

.copyright {
    font-size: 12px;
    color: #8f92a3;
    margin-top: 0;
}

.floating-chat-entry {
    position: fixed;
    right: 24px;
    bottom: 78px;
    z-index: 1500;
    padding: 13px 18px;
    border-radius: 999px;
    font-size: 14px;
}

.wechat-qr-dock {
    position: fixed;
    left: 20px;
    bottom: 78px;
    z-index: 1400;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 132px;
    padding: 10px 8px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(45, 104, 56, 0.16);
}

.wechat-qr-dock img {
    display: block;
    width: 112px;
    height: 112px;
    object-fit: contain;
    background: #fff;
}

.wechat-qr-dock span {
    color: #315f43;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.flower-chat-widget {
    position: fixed;
    right: 24px;
    bottom: 134px;
    z-index: 1600;
    width: min(420px, calc(100vw - 32px));
    max-height: min(720px, calc(100vh - 170px));
    display: none;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 70px rgba(18, 45, 26, 0.32);
    border: 1px solid rgba(45, 104, 56, 0.18);
}

.flower-chat-widget.is-open {
    display: flex;
}

.flower-chat-header {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 18px 16px;
    color: #fff;
    background: linear-gradient(135deg, #1f4f2a 0%, #5d8f3e 100%);
}

.flower-chat-header > div:nth-child(2) {
    flex: 1;
}

.flower-chat-kicker {
    display: inline-block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.76;
}

.flower-chat-header h2 {
    margin: 0;
    font-size: 20px;
}

.flower-chat-header p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 12px;
}

.flower-chat-close {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.flower-chat-messages {
    flex: 1;
    min-height: 250px;
    overflow-y: auto;
    padding: 16px;
    background: linear-gradient(180deg, #f7fbf1 0%, #fff 100%);
    font-size: 13px;
}

.flower-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}

.flower-message.user {
    justify-content: flex-end;
    text-align: right;
}

.flower-message-content {
    max-width: 86%;
}

.flower-message.user .flower-message-content {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.flower-bot-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.88);
    background: #eaf4e4;
    box-shadow: 0 6px 14px rgba(28, 70, 35, 0.14);
}

.flower-bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 18%;
    transform: scale(1.34);
}

.flower-bot-avatar-header {
    width: 46px;
    height: 46px;
    margin-top: 2px;
}

.flower-message-name {
    margin: 0 0 5px;
    color: #6b7b6b;
    font-size: 11px;
}

.flower-message-bubble {
    display: inline-block;
    max-width: 100%;
    padding: 9px 11px;
    border-radius: 14px;
    color: #243328;
    background: #fff;
    box-shadow: 0 8px 22px rgba(40, 68, 42, 0.08);
    text-align: left;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
}

.flower-message .flower-source-badge {
    margin: 6px 0 0;
    align-self: flex-start;
}

.flower-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.flower-rating button {
    border: 1px solid #c9d4c2;
    background: #f7f9f3;
    color: #36563b;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    cursor: pointer;
}

.flower-rating button.is-active {
    background: #244f2b;
    color: #fff;
    border-color: #244f2b;
}

.flower-rating button:disabled {
    cursor: default;
    opacity: 0.85;
}

.flower-chat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
}

.flower-chat-chips[hidden] {
    display: none;
}

.flower-chat-chips button {
    border: 1px solid #c9d4c2;
    background: #fff;
    color: #36563b;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}

.flower-chat-chips button:hover {
    background: #eef5e8;
    border-color: #2d6838;
}

.flower-message.user .flower-message-bubble {
    color: #fff;
    background: #2d6838;
}

.flower-message-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 8px;
    margin-top: 8px;
    width: min(260px, 100%);
}

.flower-message-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    object-fit: cover;
}

.flower-chat-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
    border-top: 1px solid #e6eddc;
    background: #fbfdf8;
}

.flower-chat-pagination[hidden] {
    display: none;
}

.flower-chat-pagination button {
    border: 1px solid #9fbd8a;
    border-radius: 999px;
    padding: 5px 12px;
    color: #2f5e36;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
}

.flower-chat-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.flower-chat-composer {
    padding: 10px 12px 12px;
    background: #fff;
    border-top: 1px solid #e6eddc;
}

.flower-chat-input-row input[type="file"] {
    display: none;
}

.flower-chat-upload {
    flex: 0 0 auto;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 44px;
    padding: 0 10px;
    border-radius: 14px;
    border: 1px solid #2d6838;
    color: #2d6838;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

#flowerChatImageName,
#flowerChatMemoryHint {
    display: block;
    min-width: 0;
    margin: 8px 2px 0;
    color: #69786b;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#flowerChatMemoryHint {
    color: #315f43;
    white-space: normal;
}

.flower-selected-images {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 8px;
}

.flower-selected-image {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #d9e6d2;
    background: #f7fbf1;
}

.flower-selected-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.flower-selected-image button {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(23, 38, 25, 0.72);
    cursor: pointer;
    line-height: 1;
}

.flower-chat-error {
    min-height: 0;
    padding: 0 14px;
    color: #c0392b;
    font-size: 12px;
}

.flower-chat-error:not(:empty) {
    padding-top: 8px;
}

.flower-chat-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px;
    border: 1px solid #d7e2d1;
    border-radius: 18px;
    background: #fbfdf8;
}

.flower-chat-input-row textarea {
    flex: 1;
    min-height: 44px;
    max-height: 98px;
    resize: none;
    border: 0;
    border-radius: 12px;
    padding: 11px 12px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    outline: none;
    background: #fff;
}

.flower-chat-input-row textarea:focus {
    box-shadow: inset 0 0 0 1px rgba(45, 104, 56, 0.25);
}

.flower-chat-input-row button {
    flex: 0 0 auto;
    width: 66px;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    color: #fff;
    background: #2d6838;
    cursor: pointer;
    font-weight: 900;
    font-size: 14px;
}

.flower-chat-input-row button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    margin-top: 20px;
    font-size: 16px;
    color: #666;
}

@media (max-width: 1080px) {
    .header {
        gap: 14px;
        padding: 12px 22px;
        padding-right: 22px;
        flex-wrap: wrap;
    }

    .subtitle {
        max-width: 38vw;
    }

    .header-actions {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        min-width: 0;
    }

    .language-switcher {
        padding: 7px 8px 7px 10px;
    }

    .language-switcher select {
        min-width: 108px;
    }

    .admin-top-link {
        padding: 9px 14px;
    }
}

@media (max-width: 768px) {
    .home-page {
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }

    .header {
        padding: 15px 20px;
        padding-right: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .site-brand {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .header-actions {
        position: static;
        transform: none;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        min-width: 0;
    }

    .language-switcher {
        padding: 6px 9px 6px 11px;
        font-size: 12px;
    }

    .language-switcher select {
        min-width: 104px;
        padding: 6px 24px 6px 9px;
    }

    .title {
        font-size: 22px;
    }

    .subtitle {
        text-align: center;
        max-width: 100%;
        white-space: normal;
    }

    .home-page .main-content {
        padding: 72px 16px 28px;
    }

    .floating-chat-entry {
        right: 14px;
        bottom: 18px;
        padding: 11px 14px;
        font-size: 13px;
    }

    .wechat-qr-dock {
        left: 10px;
        bottom: 70px;
        width: 92px;
        padding: 6px 6px 6px;
        border-radius: 12px;
    }

    .wechat-qr-dock img {
        width: 76px;
        height: 76px;
    }

    .wechat-qr-dock span {
        font-size: 11px;
    }

    .flower-chat-widget {
        right: 10px;
        bottom: 70px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 96px);
        border-radius: 20px;
    }

    .flower-chat-messages {
        min-height: 220px;
    }

    .flower-chat-input-row {
        flex-direction: column;
    }

    .flower-chat-input-row button {
        width: 100%;
        padding: 12px;
    }
    
    .input-group {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .search-input {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .search-btn {
        padding: 16px 20px;
        font-size: 16px;
        justify-content: center;
    }
    
    .features {
        gap: 20px;
    }

    .home-archive-pitch {
        width: fit-content;
        max-width: 96vw;
        padding: 16px 16px 14px;
        overflow-x: auto;
    }

    .home-archive-pitch-line {
        font-size: 15px;
        letter-spacing: 0.04em;
    }

    .home-archive-points-wrap {
        width: max-content;
        max-width: calc(96vw - 32px);
    }

    .home-archive-points {
        max-width: none;
        width: max-content;
    }

    .home-archive-points li {
        font-size: 13px;
        white-space: nowrap;
    }

    .feature-card {
        width: 100%;
        max-width: 300px;
    }

    .home-page .feature-card--featured {
        width: 100%;
        max-width: 300px;
    }

    .community-content {
        width: calc(100% - 28px);
        margin-top: 96px;
    }

    .community-upload-card,
    .community-gallery-section {
        padding: 20px;
        border-radius: 18px;
    }

    .community-form {
        grid-template-columns: 1fr;
    }

    .community-image-uploader {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .community-preview-list {
        max-height: 180px;
    }

    .admin-edit-current {
        grid-template-columns: 1fr;
    }

    .admin-edit-current img {
        width: 100%;
        height: 220px;
    }

    .taxonomy-open-btn {
        margin-top: 18px;
        padding: 11px 22px;
        font-size: 14px;
    }

    .taxonomy-modal {
        padding: 10px;
    }

    .taxonomy-panel {
        width: 100%;
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .taxonomy-hero {
        padding: 24px 20px 20px;
    }

    .taxonomy-hero h2 {
        padding-right: 34px;
        font-size: 22px;
    }

    .taxonomy-body {
        max-height: calc(100vh - 245px);
        padding: 18px 16px 24px;
    }

    .taxonomy-grid,
    .classification-layout,
    .taxonomy-gallery {
        grid-template-columns: 1fr;
    }

    .taxonomy-info-card {
        min-height: auto;
    }

    .taxonomy-photo-card img {
        height: 230px;
    }
    
    .job-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .job-title {
        font-size: 18px;
    }
    
    .job-info {
        gap: 12px;
    }
    
    .footer,
    .home-page .footer {
        padding: 20px 15px;
    }

    .result-images {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .result-image-card img {
        height: 260px;
    }

    .image-lightbox {
        padding: 56px 12px 48px;
    }
    
}


.flower-message-images img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.flower-message-images img:hover {
    transform: scale(1.05);
}

.flower-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.flower-image-modal.is-open {
    display: flex;
}

.flower-image-modal img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 12px;
    object-fit: contain;
}

.flower-image-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.flower-image-modal-close:hover {
    background: rgba(255, 255, 255, 0.35);
}


@media (max-width: 768px) {
    .container {
        padding: 0 12px;
        min-height: 100vh;
        box-sizing: border-box;
    }

    .search-box {
        width: 100%;
        margin: 20px auto;
        padding: 16px;
    }

    .input-group {
        flex-direction: column;
        gap: 10px;
    }

    .search-input {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        border-radius: 10px;
        min-height: 48px;
    }

    .search-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 10px;
    }

    .image-query {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }

    .image-upload-btn {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 8px;
        width: 100%;
        text-align: center;
        min-height: 48px;
        box-sizing: border-box;
    }

    .image-file-name {
        width: 100%;
        max-width: none;
        text-align: center;
        justify-content: center;
    }

    .phone-bridge-btn {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .phone-bridge-btn {
        display: none;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    .feature-card {
        padding: 16px;
        min-height: auto;
    }

    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .feature-card p {
        font-size: 13px;
        line-height: 1.5;
    }

    .title {
        font-size: 22px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 14px;
        line-height: 1.4;
    }

    .site-avatar {
        width: 40px;
        height: 40px;
    }

    .language-switcher {
        padding: 6px 10px;
        font-size: 12px;
    }

    .language-switcher select {
        min-width: 80px;
        padding: 6px 20px 6px 8px;
        font-size: 12px;
    }

    .admin-top-link {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 6px;
    }

    .header-actions {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-content {
        padding: 10px 0;
    }

    .footer {
        padding: 20px 0;
        font-size: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 10px;
    }

    .footer-link {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }

    .search-box {
        padding: 12px;
        margin: 15px auto;
    }

    .search-input {
        padding: 12px 14px;
        font-size: 15px;
    }

    .search-btn {
        padding: 12px 20px;
        font-size: 15px;
    }

    .feature-card {
        padding: 12px;
    }

    .title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 13px;
    }
}


@media (max-width: 768px) {
    .flower-chat-widget {
        width: calc(100vw - 24px);
        max-width: 100%;
        bottom: 12px;
        left: 12px;
        right: 12px;
        top: 12px;
        border-radius: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    .flower-chat-header {
        padding: 12px 16px;
        gap: 10px;
    }

    .flower-chat-header h3 {
        font-size: 16px;
    }

    .flower-chat-header p {
        font-size: 12px;
    }

    .flower-chat-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .flower-chat-messages {
        padding: 12px;
        font-size: 14px;
    }

    .flower-chat-message {
        margin-bottom: 12px;
    }

    .flower-chat-message.user {
        padding: 10px 14px;
        border-radius: 16px 16px 4px 16px;
        max-width: 85%;
    }

    .flower-chat-message.bot {
        padding: 10px 14px;
        border-radius: 16px 16px 16px 4px;
        max-width: 90%;
    }

    .flower-chat-input-area {
        padding: 10px 12px;
        flex-direction: column;
        gap: 8px;
    }

    .flower-chat-input-wrapper {
        flex-direction: row;
    }

    .flower-chat-input {
        padding: 12px 14px;
        font-size: 15px;
        min-height: 44px;
    }

    .flower-chat-send-btn {
        padding: 12px 20px;
        font-size: 14px;
        min-width: 60px;
    }

    .flower-chat-image-btn {
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
    }

    .flower-chat-image-btn span {
        font-size: 18px;
    }

    .flower-message-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        margin-top: 8px;
    }

    .flower-message-images img {
        max-height: 100px;
        border-radius: 8px;
    }

    .flower-chat-entry {
        bottom: 20px;
        right: 12px;
        width: 52px;
        height: 52px;
    }

    .flower-chat-entry span {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .flower-chat-widget {
        width: calc(100vw - 16px);
        left: 8px;
        right: 8px;
        top: 8px;
        bottom: 8px;
    }

    .flower-chat-messages {
        font-size: 13px;
    }

    .flower-chat-message.user,
    .flower-chat-message.bot {
        padding: 8px 12px;
    }

    .flower-chat-input {
        padding: 10px 12px;
        font-size: 14px;
    }

    .flower-message-images {
        grid-template-columns: 1fr;
    }

    .flower-message-images img {
        max-height: 150px;
    }
}

.home-plant-index {
    width: min(920px, calc(100% - 32px));
    margin: 4px auto 12px;
    text-align: center;
    color: rgba(236, 242, 232, 0.94);
}

.home-plant-index h2 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #f4f7ea;
}

.home-plant-index p {
    color: rgba(226, 246, 220, 0.92);
    font-size: 13px;
}

.home-plant-index p a {
    color: #e7f3c4;
    text-decoration: underline;
}

.plant-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.home-plant-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
}

.plant-index-card,
a.plant-index-card,
a.plant-index-card:visited {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #eef5e4;
    color: #1e3a24;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(61, 107, 69, 0.22);
}

.home-plant-index a.plant-index-card,
.home-plant-index a.plant-index-card:visited {
    color: #1e3a24;
    background: #eef5e4;
    font-size: 13px;
    padding: 9px 8px;
}

.plant-index-card:hover,
a.plant-index-card:hover {
    background: #e1edd4;
    color: #16321c;
}

.plant-index-card span,
.plant-index-card strong {
    color: inherit;
}

.plant-index-card span {
    color: #4f6750;
    font-size: 12px;
    font-weight: 600;
}

.plant-landing .community-content {
    margin-top: 18px;
}

.plant-header-nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.plant-article {
    overflow: hidden;
}

.plant-hero {
    display: grid;
    gap: 22px;
    margin-bottom: 8px;
}

.plant-hero-copy h2 {
    margin: 6px 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.plant-lead {
    margin: 0;
    color: #4a5d4c;
    font-size: 16px;
    line-height: 1.8;
}

.plant-landing h2,
.plant-landing h3,
.legal-article h2,
.legal-article h3 {
    color: #1e3a24;
}

.plant-landing p,
.legal-article {
    color: #2c3c2e;
    line-height: 1.8;
}

.plant-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.plant-facts div {
    padding: 14px 16px;
    background: linear-gradient(180deg, #f7fbf3 0%, #e7f0df 100%);
    border-radius: 18px;
    color: #1e3a24;
    border: 1px solid rgba(61, 107, 69, 0.14);
    box-shadow: 0 8px 18px rgba(28, 52, 32, 0.06);
}

.plant-facts dt {
    font-size: 12px;
    color: #5b735c;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.plant-facts dd {
    margin: 6px 0 0;
    font-weight: 800;
    color: #16321c;
    font-size: 15px;
    line-height: 1.45;
}

.plant-photos {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    margin: 0;
}

.plant-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    min-height: 0;
}

.plant-photo:first-child {
    grid-row: 1 / span 2;
}

.plant-photos:has(.plant-photo:only-child) {
    grid-template-columns: 1fr;
}

.plant-photos:has(.plant-photo:only-child) .plant-photo:first-child {
    grid-row: auto;
    min-height: 240px;
}

.plant-photos img {
    width: 100%;
    height: 100%;
    min-height: 132px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.plant-photo:hover img {
    transform: scale(1.04);
}

.plant-section {
    margin: 18px 0;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border-left: 4px solid #7aaa62;
}

.plant-section h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.plant-section p {
    margin: 0;
}

.plant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.plant-landing .search-btn {
    text-decoration: none;
}

.plant-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    background: #eef6e8;
    color: #1f3e25;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(49, 95, 67, 0.28);
    box-shadow: 0 8px 16px rgba(28, 52, 32, 0.08);
}

.plant-action-btn:hover,
.plant-action-btn:visited {
    color: #16321c;
    background: #e1edd4;
    text-decoration: none;
}

.plant-disclaimer {
    margin-top: 18px;
    color: #5a6b58;
    font-size: 13px;
}

.plant-symptom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 0;
}

.plant-symptom-links a {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e7efe4;
    color: #1f3e25;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(49, 95, 67, 0.28);
}

.plant-symptom-links a:hover,
.plant-symptom-links a:visited {
    color: #16321c;
    background: #dce8d6;
}

.plant-related {
    margin-top: 18px;
}

.plant-related-head h2 {
    margin: 4px 0 0;
}

.plant-landing .plant-index-card {
    min-height: 84px;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(24, 48, 28, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.plant-landing .plant-index-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 28px rgba(24, 48, 28, 0.14);
}

.catalog-match-panel.is-uncertain {
    background: linear-gradient(180deg, rgba(255, 248, 236, 0.98), rgba(255, 240, 220, 0.92));
    border-color: rgba(176, 122, 42, 0.22);
}

.catalog-candidate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.catalog-candidate-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #1e3a24;
    text-decoration: none;
    border: 1px solid rgba(61, 107, 69, 0.16);
    box-shadow: 0 8px 18px rgba(28, 52, 32, 0.08);
}

.catalog-candidate-card.is-best {
    border-color: rgba(47, 107, 69, 0.45);
    box-shadow: 0 12px 24px rgba(47, 107, 69, 0.16);
}

.catalog-candidate-card.is-vision {
    border-color: rgba(122, 143, 74, 0.55);
}

.catalog-candidate-card img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
}

.catalog-candidate-card strong {
    font-size: 15px;
}

.catalog-candidate-card span {
    color: #5b735c;
    font-size: 12px;
    font-weight: 700;
}

@media (max-width: 720px) {
    .plant-photos {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .plant-photo:first-child {
        grid-column: 1 / span 2;
        grid-row: auto;
        min-height: 210px;
    }
}

.plant-check-list {
    margin: 0 0 16px;
    padding-left: 1.2em;
    color: #2c3c2e;
    line-height: 1.75;
}

.legal-article ul {
    padding-left: 1.2em;
}

.plants-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    width: min(1240px, calc(100% - 32px));
    margin: 96px auto 32px;
    align-items: start;
}

.plants-main {
    width: auto;
    margin: 0;
}

.plant-landing .plants-main.community-content {
    margin-top: 0;
}

.plant-cat-nav {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(248, 244, 232, 0.94);
    border: 1px solid rgba(61, 107, 69, 0.16);
    max-height: calc(100vh - 110px);
    overflow: auto;
}

.plant-view-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 4px;
}

.plant-view-toggle a {
    text-align: center;
    background: #f7f1e4;
}

.plant-view-toggle a.is-active,
.plant-cat-nav a.is-active {
    background: #3d6b45;
    color: #f7f4ea;
    border-color: #3d6b45;
}

.plant-cat-nav a {
    color: #1e3a24;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    background: #eef5e4;
    border: 1px solid rgba(61, 107, 69, 0.18);
}

.plant-cat-nav a:hover {
    background: #dce8d6;
}

.plant-family-heading {
    color: inherit;
    text-decoration: none;
}

.plant-family-heading:hover {
    text-decoration: underline;
}

.plant-family-jump {
    display: inline-block;
    margin-top: 6px;
    color: #3d6b45;
    font-weight: 700;
    text-decoration: none;
}

.plant-family-jump:hover {
    text-decoration: underline;
}

@media (max-width: 860px) {
    .plants-layout {
        grid-template-columns: 1fr;
        margin-top: 84px;
    }

    .plant-cat-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* ===== Hero 区样式 v20260825 ===== */
.hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  max-height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s ease;
  z-index: 0;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(45, 106, 79, 0.7) 0%, rgba(45, 106, 79, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 48px;
  max-width: 1400px;
  width: 100%;
  padding: 0 48px;
  align-items: center;
}

.hero-text {
  color: #fff;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  margin: 0 0 32px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-garden-carousel {
  position: relative;
  max-width: 600px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px 0;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.2);
}

.carousel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.carousel-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.carousel-card .card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
  color: #fff;
}

.carousel-card .card-meta {
  font-size: 12px;
  opacity: 0.8;
  color: #fff;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-dots .dot.active {
  background: #fff;
}

/* 花神经 Demo 面板 */
.hero-chat-demo {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  max-height: 500px;
}

.demo-header {
  margin-bottom: 16px;
}

.demo-kicker {
  font-size: 12px;
  color: #2d6a4f;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.demo-header h3 {
  margin: 4px 0;
  font-size: 20px;
  color: #1c2a1e;
}

.demo-header p {
  margin: 0;
  font-size: 13px;
  color: #5d6b5c;
}

.demo-messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  min-height: 200px;
}

.demo-question-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-bubble {
  background: #e7efe4;
  border: 1px solid #315f43;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  color: #1c2a1e;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.demo-bubble:hover {
  background: #315f43;
  color: #fff;
}

.demo-bubble.used {
  opacity: 0.5;
  pointer-events: none;
}

.demo-input-area {
  display: flex;
  gap: 8px;
}

.demo-input-area input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #c9d4c4;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}

.demo-input-area input:focus {
  outline: none;
  border-color: #2d6a4f;
}

.demo-input-area button {
  background: #2d6a4f;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.demo-input-area button:hover {
  background: #1c4a34;
}

.demo-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e7efe4;
  text-align: center;
}

.demo-cta p {
  margin: 0 0 12px;
  font-size: 14px;
  color: #1c2a1e;
}

.demo-cta-btn {
  display: inline-block;
  background: #2d6a4f;
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 14px;
  transition: background 0.2s ease;
}

.demo-cta-btn:hover {
  background: #1c4a34;
}

/* 响应式 */
@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-chat-demo {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: auto;
    min-height: 400px;
    padding: 48px 0;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .carousel-card {
    flex: 0 0 140px;
  }
}

/* ===== 修复首页布局：header 浮在 Hero 区上方 ===== */
.home-page .header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-page .header .site-brand h1,
.home-page .header .site-brand p {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.home-page .header .header-actions a,
.home-page .header .header-actions span {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.home-page .container {
  position: relative;
  z-index: 5;
  margin-top: 0;
}

.home-page .main-content {
  padding-top: 20px;
}

/* Hero 区调整：给 header 留空间 */
.hero-section {
  padding-top: 80px;
}

.hero-content {
  align-items: flex-start;
  padding-top: 20px;
}

/* 搜索框整合进 Hero 区 */
.home-page .search-box {
  max-width: 700px;
  margin: 0 auto 32px;
}

.home-page .search-box .search-input {
  background: rgba(255,255,255,0.95);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.home-page .search-box .search-btn {
  background: #2d6a4f;
  color: #fff;
}

/* 特性卡片调整 */
.home-page .features {
  max-width: 1200px;
  margin: 0 auto;
}

.home-page .feature-card {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* 响应式 */
@media (max-width: 1200px) {
  .home-page .header {
    padding: 12px 24px;
  }
  
  .hero-section {
    padding-top: 70px;
  }
}

@media (max-width: 768px) {
  .home-page .header {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }
  
  .hero-section {
    padding-top: 120px;
  }
}
