:root {
    --ls-primary: #a3262a;
    --ls-primary-dark: #7d1d20;
    --ls-accent: #167f78;
    --ls-border: #d9e1e5;
    --ls-soft: #f4f8fa;
    --ls-text: #263238;
    --ls-muted: #66757d;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ls-text);
    background: #f6f7f8;
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button, input { font: inherit; }

/* 与网站新版根首页一致的自包含页头、导航和页脚。 */
.ls-site-wrapper {
    width: min(100%, 1200px);
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, .05);
}

.ls-site-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: url("/images/bgimg.jpg") repeat;
    background-size: 512px auto;
}

.ls-site-banner img {
    display: block;
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .15));
}

.ls-site-decoration {
    height: 20px;
    background: url("/images/xg.gif") repeat-x center;
}

.ls-site-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 6px 5px;
    background: #def0fa;
}

.ls-feature-links,
.ls-menu-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ls-feature-link {
    display: flex;
    align-items: center;
    padding: 5px 16px;
    border-radius: 8px;
    color: #fff;
    background: #099;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transition: background .2s ease;
}

.ls-feature-link:hover { background: #33cccc; }
.ls-feature-link img { width: auto; height: 40px; margin-right: 8px; border-radius: 4px; }

.ls-menu-links a {
    display: block;
    padding: 10px 15px;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    color: #2e7d32;
    background: #e8f5e9;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: background .2s ease;
}

.ls-menu-links a:hover { color: #1b5e20; background: #c8e6c9; }
.ls-mobile-break { display: none; }

.ls-site-location {
    padding: 8px 10px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: #333;
    background: #fafafa;
    font-size: 14px;
}

.ls-site-location a { color: inherit; text-decoration: none; }

.ls-site-decoration-bottom {
    height: 12px;
    margin-top: 20px;
    border-top: 1px solid #eee;
    background: url("/images/m06.gif") repeat-x;
}

.ls-site-footer {
    padding: 20px 10px;
    color: #888;
    background: #f5f5f5;
    font-family: "宋体", serif;
    font-size: 13px;
    text-align: center;
}

.ls-site-footer p { margin: 4px 0; overflow-wrap: anywhere; }
.ls-site-footer a { color: #666; text-decoration: underline; }
.ls-site-footer a:hover { color: #07c; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.ls-page {
    width: min(100% - 24px, 1100px);
    margin: 18px auto 36px;
}

.ls-breadcrumb {
    color: var(--ls-muted);
    font-size: 13px;
    margin: 0 0 10px;
}

.ls-breadcrumb a { color: #365f89; text-decoration: none; }
.ls-breadcrumb span { margin-left: 7px; }

.ls-hero {
    padding: 22px 24px 18px;
    color: #fff;
    background: linear-gradient(125deg, var(--ls-primary), #c44a38 65%, #d98247);
    border-radius: 10px 10px 0 0;
    box-shadow: 0 6px 22px rgba(70, 35, 30, .14);
}

.ls-hero h1 { margin: 0 0 8px; font-size: 28px; }
.ls-hero p { margin: 0 0 16px; opacity: .92; }

.ls-search { display: flex; gap: 8px; }

.ls-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 15px;
    border: 2px solid rgba(255, 255, 255, .65);
    border-radius: 6px;
    color: #1f292e;
    background: #fff;
    font-family: "Microsoft Yi Baiti", "Microsoft YaHei", sans-serif;
    font-size: 18px;
    outline: none;
}

.ls-search input:focus { border-color: #ffe69b; box-shadow: 0 0 0 3px rgba(255, 230, 155, .25); }

.ls-search button {
    width: 92px;
    border: 0;
    border-radius: 6px;
    color: #53211b;
    background: #ffe69b;
    font-weight: 700;
    cursor: pointer;
}

.ls-search button:hover { background: #fff0bb; }

.ls-search-meta {
    min-height: 22px;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    font-size: 13px;
}

.ls-search-meta img { width: 18px; height: 18px; }

.ls-workspace {
    display: grid;
    grid-template-columns: minmax(230px, 32%) minmax(0, 1fr);
    min-height: 510px;
    background: #fff;
    border: 1px solid var(--ls-border);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 6px 22px rgba(45, 62, 70, .08);
    overflow: hidden;
}

.ls-panel { min-width: 0; }
.ls-left-panel { border-right: 1px solid var(--ls-border); background: #fbfcfd; }

.ls-panel-title {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    border-bottom: 1px solid var(--ls-border);
    background: var(--ls-soft);
}

.ls-panel-title h2 { margin: 0; font-size: 16px; }
.ls-panel-title span { color: var(--ls-muted); font-size: 12px; }

.ls-left-results { max-height: 650px; overflow-y: auto; }

.ls-result-summary {
    padding: 8px 13px;
    color: var(--ls-muted);
    background: #fff;
    border-bottom: 1px dashed var(--ls-border);
    font-size: 12px;
}

.ls-result-item {
    width: 100%;
    display: block;
    padding: 11px 14px;
    border: 0;
    border-bottom: 1px solid #e8edef;
    text-align: left;
    color: var(--ls-text);
    background: transparent;
    cursor: pointer;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
}

.ls-result-item:hover, .ls-result-item.is-active {
    background: #e6f4f1;
    box-shadow: inset 4px 0 var(--ls-accent);
}

.ls-result-han { display: inline; font-size: 15px; }

.ls-result-yi {
    display: inline;
    color: #235f5a;
    font-family: "Microsoft Yi Baiti", "Conv_msyi", sans-serif;
    font-size: 22px;
    line-height: 1.3;
}

.ls-right-result { padding: 20px;}
.ls-welcome { padding: 70px 20px; text-align: center; color: var(--ls-muted); }
.ls-welcome-yi { margin-bottom: 16px; color: var(--ls-accent); font-family: "Microsoft Yi Baiti", sans-serif; font-size: 42px; }
.ls-muted { color: var(--ls-muted); font-size: 13px; }

.ls-entry { border: 1px solid var(--ls-border); border-radius: 8px; overflow: hidden; }

.ls-entry-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    border-bottom: 1px solid var(--ls-border);
}

.ls-entry-label {
    padding: 15px 12px;
    color: #42545d;
    background: var(--ls-soft);
    font-weight: 700;
    text-align: center;
}

.ls-entry-value { padding: 15px 18px; background: #fff; overflow-wrap: anywhere; }
.ls-entry-han { font-size: 18px; }
.ls-entry-yi { color: #123f3b; font-family: "Microsoft Yi Baiti", "Conv_msyi", sans-serif; font-size: 32px; line-height: 1.45; }

.ls-audio-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid #91c7c1;
    border-radius: 5px;
    color: #155d56;
    background: #edf9f7;
    cursor: pointer;
}

.ls-audio-button img { width: 20px; height: 20px; object-fit: contain; }
.ls-audio-button:disabled { opacity: .55; cursor: wait; }
.ls-audio-status { margin-left: 8px; color: var(--ls-muted); font-size: 12px; }

.ls-placeholder, .ls-empty, .ls-error { padding: 28px 16px; text-align: center; }
.ls-placeholder { color: var(--ls-muted); }
.ls-empty { color: #8a5b1c; background: #fff9e9; }
.ls-error { color: #a12626; background: #fff0f0; }

@media (max-width: 760px) {
    .ls-site-navigation { display: block; padding: 0; background: none; }
    .ls-feature-links {
        gap: 5px;
        justify-content: center;
        padding: 6px 5px;
        background: #f8f8f8;
    }
    .ls-feature-link { flex: 1; justify-content: center; padding: 5px 8px; }
    .ls-menu-links {
        gap: 6px;
        justify-content: space-between;
        padding: 5px;
        background: #fdfcf8;
    }
    .ls-menu-links a {
        flex: 1;
        min-width: 0;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 2px;
        border-radius: 6px;
        font-size: 13px;
        line-height: 1.25;
    }
    .ls-mobile-break { display: inline; }
    .ls-site-location { padding: 7px 8px; font-size: 13px; }
    .ls-site-footer { padding: 15px 8px; font-size: 12px; }
    .ls-page { width: min(100% - 16px, 1100px); margin-top: 10px; }
    .ls-hero { padding: 18px 14px 14px; }
    .ls-hero h1 { font-size: 23px; }
    .ls-hero p { font-size: 13px; }
    .ls-search input { font-size: 16px; }
    .ls-search button { width: 72px; }
    .ls-workspace { display: block; min-height: 0; }
    .ls-left-panel { border-right: 0; border-bottom: 1px solid var(--ls-border); }
    .ls-left-results { max-height: 300px; }
    .ls-right-result { padding: 12px; min-height: 260px; }
    .ls-welcome { padding: 35px 12px; }
    .ls-entry-row { grid-template-columns: 64px minmax(0, 1fr); }
    .ls-entry-label { padding: 13px 7px; }
    .ls-entry-value { padding: 13px 12px; }
    .ls-entry-yi { font-size: 28px; }
}

@media (min-width: 992px) {
    .ls-site-banner img { width: auto; max-width: 100%; max-height: 150px; }
}

@media (max-width: 480px) {
    .ls-feature-link { font-size: 12px; }
    .ls-feature-link img { height: 34px; margin-right: 5px; }
    .ls-menu-links { gap: 4px; }
    .ls-menu-links a { font-size: 12px; }
}
