* {
    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 {
    height: 100vh;
    overflow: hidden;
}

.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 {
    height: 100vh;
    min-height: 0;
}

.header {
    padding: 14px 34px;
    padding-right: 390px;
    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;
}

.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;
}

.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-file-name {
    color: #eee;
    font-size: 14px;
}

.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;
}

.feature-card {
    width: 280px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.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: #333;
}

.feature-card p {
    font-size: 14px;
    color: #555;
    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 {
    padding: 7px 11px;
    border-radius: 999px;
    background: #fff;
    color: #466146;
    font-size: 13px;
    box-shadow: inset 0 0 0 1px rgba(70, 97, 70, 0.14);
}

.taxonomy-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.taxonomy-photo-card {
    overflow: hidden;
    margin: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(28, 55, 31, 0.14);
}

.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(255, 255, 255, 0.96);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.18);
}

.home-page .feature-card {
    width: 230px;
    padding: 22px 20px;
    background: rgba(255, 255, 255, 0.92);
}

.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;
}

.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;
}

.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;
}

.community-upload-card,
.community-gallery-section {
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 45px rgba(20, 34, 22, 0.18);
    backdrop-filter: blur(10px);
}

.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 {
    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,
.icp-info a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 12px;
}

.footer-contact {
    color: rgba(226, 246, 220, 0.9) !important;
}

.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;
}

.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.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 {
    display: block;
    min-width: 0;
    margin: 8px 2px 0;
    color: #69786b;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.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: 344px;
    }

    .subtitle {
        max-width: 38vw;
    }

    .header-actions {
        gap: 10px;
    }

    .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;
    }

    .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;
    }

    .feature-card {
        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;
    }

    .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;
    }
}
