:root {
    --ink: #0f172a;
    --text: #334155;
    --muted: #7b8794;
    --line: #e6edf2;
    --bg: #f6f9fa;
    --card: #ffffff;
    --primary: #0e7490;
    --primary-2: #14b8a6;
    --soft: #eef8f7;
    --shadow: 0 14px 40px rgba(15, 23, 42, .07);
    --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 15px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.muted { color: var(--muted); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 11px;
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .5px;
    background: linear-gradient(135deg, #0e7490, #14b8a6);
    box-shadow: 0 8px 18px rgba(14, 116, 144, .25);
}
.brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; color: var(--ink); letter-spacing: .5px; }
.brand-text small { font-size: 11px; color: var(--muted); letter-spacing: .3px; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; overflow: visible; scrollbar-width: none; position: relative; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
    padding: 8px 14px; border-radius: 8px; font-size: 14px; color: var(--text);
    white-space: nowrap; transition: .18s;
}
.main-nav a:hover { background: var(--soft); color: var(--primary); }
.main-nav a.active { color: var(--primary); font-weight: 700; background: var(--soft); }
.nav-dropdown { position: relative; flex: none; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { font-size: 10px; line-height: 1; opacity: .7; transition: transform .18s; }
.nav-dropdown:hover .nav-caret, .nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
    position: absolute; top: calc(100% + 6px); left: 2px; min-width: 172px;
    padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 16px 38px rgba(15, 23, 42, .14); z-index: 30;
    display: flex; flex-direction: column; gap: 2px;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 13.5px; }
.nav-dropdown-menu a:hover { background: var(--soft); color: var(--primary); }
.nav-dropdown-menu a.active { background: var(--soft); color: var(--primary); font-weight: 700; }
.nav-dropdown-all { color: var(--muted); border-bottom: 1px dashed var(--line); border-radius: 7px 7px 0 0; margin-bottom: 2px; }
.header-search { display: flex; align-items: center; background: #f2f6f8; border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 14px; flex: none; }
.header-search input { border: none; background: transparent; outline: none; width: 150px; font-size: 13px; color: var(--ink); }
.header-search button { width: 30px; height: 30px; border: none; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
.header-search button:hover { background: #0b5f75; }

/* Hero */
.hero {
    margin: 38px 0 10px;
    display: grid; grid-template-columns: 1.25fr .75fr; gap: 26px;
    background:
        radial-gradient(700px 300px at 0% 0%, rgba(20, 184, 166, .14), transparent 60%),
        radial-gradient(600px 300px at 100% 100%, rgba(14, 116, 144, .12), transparent 60%),
        #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 46px;
    box-shadow: var(--shadow);
}
.hero-eyebrow { font-size: 11px; letter-spacing: 3px; color: var(--primary); font-weight: 700; }
.hero h1 { margin: 12px 0 14px; font-size: 42px; line-height: 1.22; letter-spacing: 1px; color: var(--ink); }
.hero-copy p { margin: 0 0 24px; max-width: 560px; color: var(--text); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 22px; border-radius: 10px; font-size: 14px; transition: .18s;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border: none; box-shadow: 0 10px 22px rgba(14, 116, 144, .22); cursor: pointer; }
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; padding-top: 22px; border-top: 1px dashed var(--line); }
.hero-stats strong { display: block; font-size: 22px; color: var(--ink); }
.hero-stats span { font-size: 12px; color: var(--muted); }
.hero-side { background: rgba(15, 23, 42, .02); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.hero-side-title { font-size: 12px; letter-spacing: 2px; color: var(--muted); margin-bottom: 4px; }
.hero-feature { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid transparent; transition: .18s; }
.hero-feature:hover { border-color: #cfe9e4; box-shadow: 0 10px 24px rgba(15, 23, 42, .06); transform: translateY(-1px); }
.hero-num { font-family: Georgia, serif; font-size: 20px; color: var(--primary); line-height: 1.2; }
.hero-feature-body { display: flex; flex-direction: column; gap: 4px; }
.hero-feature-body small { font-size: 11px; color: var(--muted); }
.hero-feature-body strong { font-size: 14px; color: var(--ink); line-height: 1.5; font-weight: 600; }
.hero-empty { font-size: 13px; color: var(--muted); }

/* Layout */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; margin: 34px 0 60px; align-items: start; }
.main-col { min-width: 0; }
.section-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 20px; }
.section-head h2 { margin: 0; font-size: 19px; color: var(--ink); letter-spacing: .5px; }
.section-line { flex: 1; height: 1px; background: var(--line); }
.section-more { font-size: 13px; color: var(--muted); }
.section-more:hover { color: var(--primary); }

/* Cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.post-card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: .22s; box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe9e4; }
.post-cover { aspect-ratio: 16 / 9; display: block; overflow: hidden; background: #eef4f6; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-cover.placeholder {
    display: grid; place-items: center;
    background:
        radial-gradient(400px 200px at 20% 10%, hsl(var(--hue) 70% 92%), transparent 65%),
        linear-gradient(135deg, hsl(var(--hue) 45% 88%), hsl(calc(var(--hue) + 40) 50% 94%));
}
.post-cover.placeholder span { font-family: Georgia, serif; font-size: 54px; color: hsl(var(--hue) 45% 38%); opacity: .8; }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--soft); color: var(--primary); font-size: 12px; }
.post-card h3 { margin: 0; font-size: 17px; line-height: 1.5; letter-spacing: .2px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--primary); }
.post-summary { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.read-more { color: var(--primary); }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 96px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.side-title { font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 1px; margin-bottom: 14px; padding-left: 10px; position: relative; }
.side-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 2px; background: linear-gradient(var(--primary), var(--primary-2)); }
.notice-card { background: linear-gradient(160deg, #0f172a, #134e4a); color: #e2e8f0; border: none; }
.notice-card .side-title { color: #fff; }
.notice-card p { margin: 0; font-size: 13px; color: #b6c6cf; }
.hot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.hot-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: baseline; }
.hot-index { font-family: Georgia, serif; font-size: 15px; color: #94a3b8; }
.hot-index.top { color: var(--primary); font-weight: 700; }
.hot-list a { font-size: 13px; line-height: 1.6; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-list a:hover { color: var(--primary); }
.hot-list small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 4px 10px; border-radius: 8px; background: #f4f8f9; border: 1px solid var(--line); font-size: 12px; color: var(--text); }
.tag-cloud a:hover { border-color: #bfe0da; color: var(--primary); background: var(--soft); }
.tag-cloud i { font-style: normal; color: var(--muted); font-size: 10px; margin-left: 3px; }
.side-about p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.side-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }

/* Page head */
.page-banner {
    position: relative; margin: 28px 0 0; min-height: 248px; border-radius: 20px; overflow: hidden;
    display: flex; align-items: flex-end;
    background: linear-gradient(120deg, #0b4f61 0%, #0e7490 48%, #14b8a6 100%);
    box-shadow: 0 16px 40px rgba(9, 40, 50, .12);
}
.page-banner-image { position: absolute; inset: 0; background-size: cover; background-position: center; }
.page-banner-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 26, 34, .8) 0%, rgba(5, 26, 34, .48) 52%, rgba(5, 26, 34, .12) 100%); }
.page-banner-content { position: relative; z-index: 1; width: 100%; padding: 42px 44px; color: #fff; }
.page-banner-content h1 { margin: 0 0 10px; font-size: 34px; line-height: 1.28; letter-spacing: 1.5px; color: #fff; text-shadow: 0 2px 18px rgba(0, 0, 0, .22); }
.page-banner-content p { margin: 0; max-width: 700px; font-size: 14.5px; line-height: 1.8; color: rgba(255, 255, 255, .84); border-left: 3px solid rgba(94, 234, 212, .8); padding-left: 14px; }
.page-head { margin: 38px 0 26px; }
.page-head-compact { margin: 20px 0 26px; }
.breadcrumb { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--primary); }
.page-head h1 { margin: 0 0 8px; font-size: 30px; color: var(--ink); letter-spacing: 1px; }
.page-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 720px; }
.page-head-meta { font-size: 12px; color: var(--muted); margin-top: 10px; }
.search-head h1 { font-size: 26px; }
.search-form { display: flex; gap: 10px; max-width: 620px; margin: 18px 0 6px; }
.search-form input { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 16px; font-size: 14px; outline: none; }
.search-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 116, 144, .1); }
.search-form .btn-primary { padding: 0 24px; }

/* Article */
.article { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 38px 44px; box-shadow: 0 4px 16px rgba(15, 23, 42, .04); }
.article-title { margin: 8px 0 18px; font-size: 30px; line-height: 1.4; color: var(--ink); letter-spacing: .5px; }
.article-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article-cover { margin: 26px 0 0; border-radius: 14px; overflow: hidden; }
.article-cover img { width: 100%; }
.article-content { padding: 26px 0 12px; font-size: 15.5px; line-height: 1.95; color: #2f3b4a; }
.article-content p { margin: 0 0 20px; }
.article-content h2 { margin: 34px 0 14px; font-size: 20px; color: var(--ink); padding-left: 12px; border-left: 4px solid var(--primary-2); }
.article-content h3 { margin: 26px 0 12px; font-size: 17px; color: var(--ink); }
.article-content ul, .article-content ol { margin: 0 0 20px; padding-left: 24px; }
.article-content li { margin-bottom: 6px; }
.article-content img { border-radius: 12px; margin: 10px 0 22px; }
.article-content blockquote { margin: 24px 0; padding: 16px 22px; background: var(--soft); border-left: 4px solid var(--primary-2); border-radius: 0 10px 10px 0; color: #3f5459; }
.article-content code { background: #f1f5f9; padding: 2px 6px; border-radius: 5px; font-size: 13px; color: #0f766e; }
.article-content a { color: var(--primary); border-bottom: 1px dashed #a5cfc9; }
.article-content table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-content th { background: #f7fafb; }
.article-model-data { margin: 8px 0 0; }
.model-data-list { display: grid; grid-template-columns: minmax(90px, 140px) 1fr; gap: 0; margin: 14px 0 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.model-data-list dt, .model-data-list dd { margin: 0; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.7; }
.model-data-list dt { background: #f7fafb; color: #64757e; }
.model-data-list dd { background: #fff; color: #2f3b4a; }
.model-data-list dt:last-of-type, .model-data-list dd:last-of-type { border-bottom: 0; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding-top: 20px; border-top: 1px dashed var(--line); }
.article-tags a { font-size: 12px; color: var(--primary); background: var(--soft); border-radius: 999px; padding: 4px 12px; }
.article-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 26px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-nav div { display: flex; flex-direction: column; gap: 6px; max-width: 48%; }
.article-nav small { color: var(--muted); font-size: 12px; }
.article-nav a { color: var(--ink); font-size: 13px; line-height: 1.6; }
.article-nav a:hover { color: var(--primary); }
.article-nav .align-right { text-align: right; align-items: flex-end; }
.article-nav span { color: var(--muted); font-size: 13px; }
.related { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; }
.related-list { display: flex; flex-direction: column; }
.related-list a { display: flex; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.related-list a:last-child { border-bottom: none; }
.related-date { color: var(--primary); font-size: 12px; padding-top: 2px; }
.related-title { color: var(--text); }
.related-list a:hover .related-title { color: var(--primary); }
.article-grid { margin-top: 30px; }

/* Pager */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 30px 0 0; }
.pager a, .pager .pg-dots { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text); }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .pg-info { margin-left: auto; font-size: 12px; color: var(--muted); }
.pager .pg-dots { border: none; background: transparent; color: var(--muted); }

/* Footer */
.site-footer { margin-top: 40px; background: #0b1220; color: #94a3b8; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 52px 0 38px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.footer-logo span { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; background: linear-gradient(135deg, #0e7490, #14b8a6); }
.footer-brand p { max-width: 380px; font-size: 13px; line-height: 1.9; color: #8ca0ae; margin: 14px 0 12px; }
.footer-tag { font-size: 11px; letter-spacing: 2px; color: #5f7783; }
.footer-col h4 { color: #e2e8f0; font-size: 14px; margin: 4px 0 16px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-col a:hover { color: #5eead4; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .07); padding: 18px 0; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: #64748b; }
.friend-links { border-top: 1px solid rgba(255, 255, 255, .07); padding: 18px 0 4px; }
.friend-links-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 12px; }
.friend-links-label { color: #64748b; letter-spacing: 1px; }
.friend-links a { color: #94a3b8; padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 999px; }
.friend-links a:hover { color: #5eead4; border-color: rgba(94, 234, 212, .35); }

/* 404 */
.not-found { text-align: center; padding: 90px 20px 100px; }
.nf-code { font-family: Georgia, serif; font-size: 100px; line-height: 1; color: #d5e6e7; letter-spacing: 4px; }
.not-found h1 { margin: 10px 0 8px; color: var(--ink); font-size: 26px; }
.not-found p { color: var(--muted); margin: 0 0 26px; }

@media (max-width: 1080px) {
    .hero { grid-template-columns: 1fr; padding: 34px; }
    .hero h1 { font-size: 34px; }
    .content-grid { grid-template-columns: 1fr; }
    .sidebar { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .article { padding: 28px 24px; }
}
@media (max-width: 860px) {
    .header-inner { flex-wrap: wrap; padding: 12px 0; gap: 12px; }
    .main-nav { order: 3; width: 100%; flex-wrap: wrap; }
    .header-search { margin-left: auto; }
    .header-search input { width: 110px; }
    .page-banner { min-height: 214px; border-radius: 16px; }
    .page-banner-content { padding: 28px 24px; }
    .page-banner-content h1 { font-size: 27px; }
    .page-banner-content p { font-size: 13.5px; }
    .hero-stats { gap: 18px; }
    .post-grid { grid-template-columns: 1fr; }
    .article-title { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
}

/* 插件：友情链接 */
.friendlink-bar { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding: 18px 0 4px; font-size: 13px; }
.friendlink-title { color: var(--primary); font-weight: 700; }
.friendlink-bar a { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--text); }
.friendlink-bar a:hover { color: var(--primary); border-color: #bfe3e4; }
.friendlink-page { padding: 48px 0 70px; }
.friendlink-page .page-head h1 { margin: 0 0 8px; color: var(--ink); }
.friendlink-page .page-head p { color: var(--muted); margin: 0 0 24px; }
.friendlink-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.friendlink-card {
    display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: #fff;
    border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.friendlink-card strong { color: var(--ink); }
.friendlink-card span { color: var(--muted); font-size: 12px; word-break: break-all; }

/* 插件：留言板 */
.guestbook-page { padding: 46px 0 70px; }
.guestbook-page .page-head h1 { margin: 0 0 8px; color: var(--ink); }
.guestbook-page .page-head p { color: var(--muted); margin: 0 0 22px; }
.guestbook-alert { border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 14px; }
.guestbook-alert.ok { background: #e7f8f2; color: #0f766e; border: 1px solid #bfe9dc; }
.guestbook-alert.error { background: #fdecec; color: #b91c1c; border: 1px solid #f3cccc; }
.guestbook-layout { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 22px; align-items: start; }
.guestbook-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.guestbook-form .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.guestbook-form label { font-size: 13px; color: var(--text); }
.guestbook-form label i { color: #dc2626; font-style: normal; }
.guestbook-form input, .guestbook-form textarea { border: 1px solid #dbe5ec; border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 14px; outline: none; }
.guestbook-form select, .guestbook-form .select, .guestbook-form .file-input { width: 100%; border: 1px solid #dbe5ec; border-radius: 9px; padding: 10px 12px; font: inherit; font-size: 14px; background: #fff; outline: none; }
.guestbook-form input:focus, .guestbook-form textarea:focus, .guestbook-form select:focus { border-color: #6cb8c3; box-shadow: 0 0 0 3px rgba(14, 116, 144, .08); }
.guestbook-form .choice-list { display: flex; flex-wrap: wrap; gap: 10px 16px; padding: 4px 0; }
.guestbook-form .choice { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--text); }
.guestbook-form .upload-current { margin-top: 6px; font-size: 12px; color: var(--muted); }
.guestbook-form .upload-current a { color: var(--primary); }
.guestbook-form .guestbook-captcha { margin-bottom: 14px; }
.guestbook-form .guestbook-captcha > label { display: block; margin-bottom: 6px; }
.guestbook-form .guestbook-captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.guestbook-form .guestbook-captcha-row input { width: 132px; }
.guestbook-form .guestbook-captcha-row img { width: 132px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: #f7fafc; cursor: pointer; }
.guestbook-form .guestbook-captcha-refresh { font-size: 12px; color: var(--primary); }
.guestbook-form .btn { width: 100%; }
.guestbook-list h2 { margin: 0 0 12px; font-size: 18px; color: var(--ink); }
.guestbook-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.guestbook-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.guestbook-meta strong { color: var(--ink); }
.guestbook-item p { margin: 0; color: var(--text); line-height: 1.8; font-size: 14px; }
@media (max-width: 860px) { .guestbook-layout { grid-template-columns: 1fr; } }

/* 联系我们留言页 */
.contact-page { padding: 46px 0 70px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; align-items: start; margin-bottom: 20px; }
.contact-info, .contact-form-card { min-width: 0; }
.contact-card { background: linear-gradient(145deg, #ffffff, #f4fbfa); border: 1px solid var(--line); border-radius: 18px; padding: 28px 30px; box-shadow: var(--shadow); }
.contact-eyebrow { display: inline-block; font-size: 10px; letter-spacing: 2.5px; font-weight: 700; color: var(--primary); }
.contact-card h2, .contact-form-head h2 { margin: 10px 0 12px; color: var(--ink); font-size: 24px; letter-spacing: .5px; }
.contact-card p, .contact-form-head p { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; line-height: 1.8; }
.contact-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.contact-list li { display: grid; gap: 2px; padding: 12px 14px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: 12px; }
.contact-list strong { color: var(--ink); font-size: 13.5px; }
.contact-list span { color: var(--muted); font-size: 12px; line-height: 1.65; }
.contact-note { margin-top: 18px; font-size: 12px; color: var(--muted); }
.contact-note a { color: var(--primary); }
.contact-form-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 30px; box-shadow: var(--shadow); }
.contact-form-head { margin-bottom: 16px; }
.contact-form-head h2 { margin-bottom: 6px; }
.contact-form-head p { margin-bottom: 0; }
.contact-form-card .guestbook-form { border: 0; box-shadow: none; padding: 0; background: transparent; }
@media (max-width: 860px) { .contact-page { padding-top: 28px; } .contact-grid { grid-template-columns: 1fr; } .contact-card, .contact-form-card { padding: 22px; } }

/* 标签库输出与栏目页 */
.main-nav .taglib-nav { display: flex; align-items: center; gap: 4px; }
.taglib-nav-dropdown { position: relative; display: inline-flex; }
.taglib-nav-menu {
    position: absolute; top: calc(100% + 5px); left: 0; min-width: 160px; padding: 6px;
    display: none; flex-direction: column; gap: 2px; background: #fff;
    border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 32px rgba(15, 23, 42, .14); z-index: 30;
}
.taglib-nav-dropdown:hover .taglib-nav-menu, .taglib-nav-dropdown:focus-within .taglib-nav-menu { display: flex; }
.footer-col .taglib-nav { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer-col .taglib-nav a:hover { color: #5eead4; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.category-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(15,23,42,.08); }
.category-card-cover { height: 120px; display: grid; place-items: center; background: linear-gradient(135deg,#e6f4f3,#f7fbfc); color: var(--primary); font-size: 30px; font-weight: 800; overflow: hidden; }
.category-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.category-card-body { padding: 16px 18px 18px; }
.category-card-body h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.category-card-body p { margin: 0 0 10px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.category-card-count { font-size: 11px; color: var(--primary); background: var(--soft); padding: 3px 9px; border-radius: 999px; }
.category-section { margin-bottom: 34px; }
.section-head a { margin-left: auto; font-size: 12.5px; color: var(--primary); }
.page-content { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 30px 34px; line-height: 1.9; font-size: 14.5px; color: var(--text); }
.page-content img { max-width: 100%; border-radius: 10px; }
.taglib-article-list { display: flex; flex-direction: column; gap: 10px; }
.taglib-article { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.taglib-article strong { color: var(--ink); font-size: 13.5px; }
.taglib-article span { color: var(--muted); font-size: 11.5px; }
.taglib-category-list, .taglib-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.taglib-category, .taglib-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--primary); font-size: 12.5px; }
.taglib-category small, .taglib-tag small { opacity: .65; font-size: 10.5px; }
/* ==================== 首页：栏目分区、新闻选项卡、产品轮播 ==================== */
.home-news-grid { margin-top: 30px; }
.home-section { margin-bottom: 42px; }
.home-section .section-head { margin-bottom: 18px; }
.home-section .section-head h2 { font-size: 20px; }
.news-tabs {
    display: flex; align-items: center; gap: 6px; margin: 0 0 18px;
    padding: 5px; background: #f3f8f9; border: 1px solid var(--line); border-radius: 999px;
    width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.news-tabs::-webkit-scrollbar { display: none; }
.news-tab {
    border: none; background: transparent; color: #64748b; padding: 7px 16px;
    border-radius: 999px; font-size: 13px; cursor: pointer; white-space: nowrap; transition: .18s;
}
.news-tab:hover { color: var(--primary); background: rgba(255,255,255,.75); }
.news-tab.active { color: #fff; background: linear-gradient(135deg, #0e7490, #14b8a6); box-shadow: 0 6px 16px rgba(20,184,166,.25); }
.news-panel { display: none; }
.news-panel.active { display: block; animation: homeFade .22s ease; }
@keyframes homeFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.news-post-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }

.product-section { margin-top: 8px; }
.product-carousel {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px;
    overflow: hidden; box-shadow: 0 12px 34px rgba(15,23,42,.06);
}
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .55s cubic-bezier(.22,.8,.25,1); }
.carousel-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: #fff; }
.carousel-cover { display: block; min-height: 330px; overflow: hidden; background: linear-gradient(135deg,#e4f4f2,#f6fbfc); }
.carousel-cover img { width: 100%; height: 100%; object-fit: cover; }
.carousel-cover-empty { display: grid; place-items: center; width: 100%; height: 100%; font-size: 64px; font-weight: 800; color: var(--primary); }
.carousel-copy { padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; gap: 13px; }
.carousel-copy .chip { width: fit-content; font-size: 12px; padding: 3px 11px; }
.carousel-copy h3 { margin: 0; font-size: 24px; line-height: 1.45; color: var(--ink); letter-spacing: .2px; }
.carousel-copy h3 a:hover { color: var(--primary); }
.carousel-copy p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.carousel-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 4px; }
.carousel-meta a { color: var(--primary); font-weight: 600; }
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5);
    background: rgba(15,23,42,.52); color: #fff; font-size: 23px; line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: .18s;
}
.carousel-arrow:hover { background: rgba(14,116,144,.85); transform: translateY(-50%) scale(1.04); }
.carousel-prev { left: 18px; }
.carousel-next { right: 18px; }
.carousel-dots { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 6px; z-index: 4; padding: 4px 8px; background: rgba(255,255,255,.72); border-radius: 999px; backdrop-filter: blur(4px); }
.carousel-dot { width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%; background: #b9cbd1; cursor: pointer; transition: .18s; }
.carousel-dot.active { width: 18px; background: var(--primary); border-radius: 999px; }

.home-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-bottom: 48px; }
.home-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px 18px; box-shadow: 0 6px 20px rgba(15,23,42,.035); }
.home-panel .section-head { margin-bottom: 12px; }
.home-panel .section-head h2 { font-size: 17px; }
.compact-list { display: flex; flex-direction: column; }
.compact-post { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.compact-post:last-child { border-bottom: none; }
.compact-cover { width: 76px; height: 48px; border-radius: 9px; overflow: hidden; flex: none; background: linear-gradient(135deg,#e5f4f2,#f7fbfc); display: grid; place-items: center; color: var(--primary); font-size: 18px; font-weight: 800; }
.compact-cover img { width: 100%; height: 100%; object-fit: cover; }
.compact-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.compact-body strong { color: var(--ink); font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.compact-post:hover .compact-body strong { color: var(--primary); }
.compact-body small { color: var(--muted); font-size: 11.5px; }
.compact-arrow { color: #b3c3cb; font-size: 15px; flex: none; }
.compact-post:hover .compact-arrow { color: var(--primary); }

@media (max-width: 1000px) {
    .carousel-slide { grid-template-columns: 1fr 1fr; }
    .carousel-copy { padding: 28px 26px; }
    .carousel-copy h3 { font-size: 20px; }
    .carousel-cover { min-height: 280px; }
}
@media (max-width: 860px) {
    .home-news-grid { grid-template-columns: 1fr; }
    .carousel-slide { grid-template-columns: 1fr; }
    .carousel-cover { min-height: 220px; aspect-ratio: 16/9; }
    .carousel-copy { padding: 22px 20px 28px; }
    .carousel-copy h3 { font-size: 19px; }
    .carousel-arrow { width: 32px; height: 32px; font-size: 19px; }
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
    .home-split { grid-template-columns: 1fr; }
    .news-post-grid { grid-template-columns: 1fr; }
}