*,*::before,*::after {box-sizing:border-box;margin:0;padding:0;}
:root {--primary:#0d9488;--primary-dark:#0f766e;--primary-light:#ecfdf5;--primary-muted:rgba(13,148,136,.1);--bg:#f0f2f5;--surface:#fff;--text:#0f172a;--text-secondary:#334155;--muted:#64748b;--border:#e2e8f0;--border-light:#f1f5f9;--shadow:0 1px 2px rgba(15,23,42,.04);--shadow-md:0 4px 12px rgba(15,23,42,.06);--shadow-lg:0 8px 24px rgba(15,23,42,.08);--radius:12px;--radius-sm:8px;--sidebar-w:240px;--header-h:60px;--home-side:300px;--home-gap:20px;--hero-h:320px;--ease:cubic-bezier(.4,0,.2,1);--font:"Microsoft YaHei","PingFang TC","Noto Sans TC",sans-serif;}
html {scroll-behavior:smooth;}
body {font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;min-height:100vh;-webkit-font-smoothing:antialiased;}
::selection {background:var(--primary-light);color:var(--primary-dark);}
a {color:inherit;text-decoration:none;transition:color .2s var(--ease);}
img {max-width:100%;display:block;}
ul {list-style:none;}
button {font-family:inherit;cursor:pointer;border:none;background:none;}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:2px solid var(--primary);outline-offset:2px;}
/* layout*/.layout {min-height:100vh;}
.sidebar {position:fixed;top:0;left:0;width:var(--sidebar-w);height:100vh;background:var(--surface);border-right:1px solid var(--border);z-index:200;transform:translateX(-100%);transition:transform .3s var(--ease),box-shadow .3s var(--ease);overflow-y:auto;box-shadow:none;}
.sidebar.open {transform:translateX(0);box-shadow:4px 0 24px rgba(15,23,42,.12);}
.sidebar-head {display:flex;align-items:center;justify-content:space-between;height:var(--header-h);padding:0 18px;border-bottom:1px solid var(--border);}
.sidebar-logo {font-size:1.1rem;font-weight:700;color:var(--primary);letter-spacing:-.02em;}
.sidebar-close {width:32px;height:32px;border-radius:var(--radius-sm);font-size:1.1rem;color:var(--muted);display:flex;align-items:center;justify-content:center;transition:background .2s;}
.sidebar-close:hover {background:var(--bg);}
.sidebar-nav {padding:10px 0;}
.sidebar-nav a {display:flex;align-items:center;gap:10px;padding:10px 18px;margin:2px 8px;font-size:.9rem;color:var(--text-secondary);border-radius:var(--radius-sm);transition:background .2s,color .2s;}
.sidebar-nav a:hover {background:var(--bg);color:var(--text);}
.sidebar-nav a.active {background:var(--primary-light);color:var(--primary-dark);font-weight:600;}
.sidebar-nav .icon {display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0;opacity:.85;}
.sidebar-nav .icon img {display:block;width:100%;height:100%;object-fit:contain;}
.overlay {position:fixed;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(2px);z-index:150;opacity:0;visibility:hidden;transition:opacity .3s var(--ease),visibility .3s;}
.overlay.show {opacity:1;visibility:visible;}
.main {width:100%;min-height:100vh;display:flex;flex-direction:column;}
/* header*/
.header {position:sticky;top:0;z-index:100;height:var(--header-h);background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--border);}
.header-inner {max-width:1280px;margin:0 auto;height:100%;padding:0 24px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:20px;}
.header-left {display:flex;align-items:center;gap:10px;}
.menu-btn {width:36px;height:36px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;font-size:1.2rem;color:var(--text-secondary);transition:background .2s,color .2s;}
.menu-btn:hover {background:var(--bg);color:var(--text);}
.logo {font-size:1.2rem;font-weight:700;color:var(--primary);white-space:nowrap;letter-spacing:-.02em;}
.logo span {color:var(--text);}
.search {max-width:440px;width:100%;margin:0 auto;position:relative;}
.search input {width:100%;height:40px;padding:0 42px 0 16px;border:1px solid var(--border);border-radius:20px;font-size:.875rem;color:var(--text);background:var(--bg);transition:border-color .2s,box-shadow .2s,background .2s;}
.search input::placeholder {color:#94a3b8;}
.search input:focus {outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-muted);background:var(--surface);}
.search input:focus-visible {outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-muted);}
.search-btn {position:absolute;right:3px;top:50%;transform:translateY(-50%);width:32px;height:32px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.8rem;transition:background .2s,transform .2s;}
.search-btn:hover {background:var(--primary-dark);transform:translateY(-50%) scale(1.05);}
/* content*/
.content {flex:1;max-width:1280px;width:100%;margin:0 auto;padding:28px 24px 48px;}
/* footer*/
.footer {background:var(--surface);border-top:1px solid var(--border);padding:36px 24px;margin-top:auto;}
.footer-inner {max-width:1280px;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:24px;}
.footer-brand {font-size:1.05rem;font-weight:700;color:var(--primary);margin-bottom:6px;letter-spacing:-.02em;}
.footer-desc {font-size:.875rem;color:var(--muted);line-height:1.5;}
.footer-links {display:flex;flex-wrap:wrap;gap:8px 20px;font-size:.875rem;}
.footer-links a {color:var(--muted);transition:color .2s;}
.footer-links a:hover {color:var(--primary);}
.footer-copy {width:100%;text-align:center;font-size:.8rem;color:#94a3b8;padding-top:24px;border-top:1px solid var(--border-light);margin-top:12px;}
/* section*/
.sec {margin-bottom:var(--home-gap);}
.content.home > .sec:last-child,.content.home > .row {margin-bottom:0;}
.sec-head {display:flex;align-items:center;justify-content:space-between;min-height:32px;margin-bottom:14px;}
.sec-title {font-size:1.125rem;font-weight:700;color:var(--text);display:flex;align-items:center;gap:10px;letter-spacing:-.02em;}
.sec-title::before {content:"";width:3px;height:16px;background:var(--primary);border-radius:2px;}
.sec-more {font-size:.8125rem;color:var(--muted);padding:4px 0;transition:color .2s;display:inline-flex;align-items:center;gap:4px;}
.sec-more::after {content:"";display:inline-block;width:5px;height:5px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;transform:rotate(45deg);margin-left:3px;transition:transform .2s var(--ease);}
.sec-more:hover {color:var(--primary);}
.sec-more:hover::after {transform:rotate(45deg) translate(1px,-1px);}
/* tag*/
.tag,.card-tag,.news-item-tag {display:inline-block;font-size:.6875rem;color:var(--primary);font-weight:600;letter-spacing:.02em;}
/* hero:banner + rec*/
.hero {display:grid;grid-template-columns:1fr var(--home-side);gap:var(--home-gap);margin-bottom:var(--home-gap);align-items:stretch;}
/* banner carousel*/
.banner {position:relative;border-radius:var(--radius);overflow:hidden;background:var(--border-light);height:var(--hero-h);box-shadow:var(--shadow);}
.banner-track {display:flex;height:100%;transition:transform .5s var(--ease);}
.banner-slide {flex:0 0 100%;height:100%;overflow:hidden;position:relative;}
.banner-slide img {width:100%;height:100%;object-fit:cover;}
.banner::after {content:"";position:absolute;bottom:0;left:0;right:0;height:80px;background:linear-gradient(transparent,rgba(15,23,42,.25));pointer-events:none;}
.banner-dots {position:absolute;bottom:16px;left:50%;transform:translateX(-50%);display:flex;gap:6px;z-index:2;}
.banner-dot {width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.45);transition:all .3s var(--ease);}
.banner-dot.active {background:#fff;width:20px;border-radius:3px;}
.banner-arrow {position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.92);color:var(--text);font-size:1.1rem;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-md);transition:opacity .2s,background .2s,transform .2s;opacity:0;z-index:2;}
.banner:hover .banner-arrow {opacity:1;}
.banner-arrow:hover {background:#fff;transform:translateY(-50%) scale(1.08);}
.banner-prev {left:14px;}
.banner-next {right:14px;}
/* hero rec*/
.hero-rec {display:grid;grid-template-rows:repeat(3,1fr);gap:8px;height:var(--hero-h);}
.rec-item {display:flex;flex-direction:column;justify-content:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px 14px;min-height:0;overflow:hidden;}
.rec-item:hover {color:var(--text);}
.rec-body {flex:1;min-height:0;display:flex;flex-direction:column;justify-content:flex-start;padding:0;}
.rec-body h4 {font-size:.9375rem;font-weight:600;color:var(--text);line-height:1.45;min-height:calc(1.45em * 2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .2s;}
.rec-item:hover h4 {color:var(--primary);}
.rec-foot {display:flex;align-items:center;gap:6px;margin-top:6px;flex-shrink:0;}
.rec-foot .tag {font-size:.75rem;color:var(--primary);font-weight:600;}
.rec-foot .meta {font-size:.75rem;color:var(--muted);}
.rec-foot .meta::before {content:"·";margin-right:6px;color:#cbd5e1;}
/* grid cards*/.grid {display:grid;grid-template-columns:repeat(4,1fr);gap:var(--home-gap);}
.card {display:flex;flex-direction:column;background:var(--surface);border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow);transition:box-shadow .25s,border-color .25s,transform .25s;}
.card:hover {transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:rgba(13,148,136,.25);color:var(--text);}
.card-img {aspect-ratio:16/10;overflow:hidden;background:var(--border-light);}
.card-img img {width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease);}
.card:hover .card-img img {transform:scale(1.06);}
.card-body {flex:1;display:flex;flex-direction:column;padding:14px 16px 16px;}
.card-tag {margin-bottom:6px;}
.card-title {flex:1;font-size:.875rem;font-weight:600;color:var(--text);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .2s;}
.card:hover .card-title {color:var(--primary);}
.card-meta {font-size:.75rem;color:var(--muted);margin-top:10px;padding-top:10px;border-top:1px solid var(--border-light);}
/* two col layout*/.row {display:grid;grid-template-columns:1fr var(--home-side);gap:var(--home-gap);align-items:start;}
.row .sec {margin-bottom:0;}
.row > .sec {display:flex;flex-direction:column;}
.row .panel {flex:1;}
/* panel*/.panel {background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);}
.panel .sec-head {margin-bottom:12px;min-height:auto;}
.side .panel + .panel {margin-top:16px;}
.row .news-list .news-item:first-child {margin-top:0;padding-top:0;}
.row .news-list .news-item:last-child {border-bottom:none;margin-bottom:0;padding-bottom:0;}
.row .news-list .news-item:hover {background:transparent;}
/* rank*/.rank-list .rank-item:first-child {padding-top:0;}
.rank-list .rank-item:last-child {border-bottom:none;padding-bottom:0;}
.rank-item {display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border-light);align-items:flex-start;}
.rank-num {flex-shrink:0;width:24px;height:24px;border-radius:6px;background:var(--bg);font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center;color:var(--muted);}
.rank-list .rank-item:nth-child(-n+3) .rank-num {background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;box-shadow:0 2px 6px rgba(13,148,136,.3);}
.rank-text {flex:1;min-width:0;}
.rank-text a {font-size:.875rem;font-weight:500;color:var(--text-secondary);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .2s;}
.rank-item:hover .rank-text a {color:var(--primary);}
.rank-views {font-size:.75rem;color:var(--muted);margin-top:4px;}
/* list page*/.list-tags {display:flex;flex-wrap:wrap;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px;margin-bottom:16px;box-shadow:var(--shadow);}
.list-panel {background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:8px 24px;box-shadow:var(--shadow);}
.list-page .news-item {padding:18px 0;margin:0;border-bottom:1px solid var(--border-light);border-radius:0;}
.list-page .news-item:first-child {padding-top:10px;margin-top:0;}
.list-page .news-item:last-child {border-bottom:none;padding-bottom:10px;margin-bottom:0;}
.list-page .news-item:hover {background:transparent;}
.list-page .news-item-title {font-size:1rem;margin:4px 0 6px;}
.list-page .news-item-desc {font-size:.875rem;line-height:1.6;}
.list-page .news-item-meta {margin-top:8px;}
.list-page .pager {margin-top:24px;}
/* news list*/.news-list {display:flex;flex-direction:column;}
.news-item {display:flex;gap:16px;padding:14px;margin:0 -14px;border-bottom:1px solid var(--border-light);border-radius:var(--radius-sm);align-items:center;transition:background .2s;}
.news-item:first-child {margin-top:-6px;}
.news-item:last-child {border-bottom:none;margin-bottom:-6px;}
.news-item:hover {background:var(--bg);color:var(--text);}
.news-item-img {flex-shrink:0;width:152px;aspect-ratio:16/10;border-radius:var(--radius-sm);overflow:hidden;background:var(--border-light);}
.news-item-img img {width:100%;height:100%;object-fit:cover;transition:transform .3s var(--ease);}
.news-item:hover .news-item-img img {transform:scale(1.04);}
.news-item-body {flex:1;min-width:0;}
.news-item-tag {margin-bottom:2px;}
.news-item-title {font-size:.9375rem;font-weight:600;color:var(--text);margin:2px 0 4px;line-height:1.45;transition:color .2s;}
.news-item:hover .news-item-title {color:var(--primary);}
.news-item-desc {font-size:.8125rem;color:var(--muted);line-height:1.55;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.news-item-meta {font-size:.75rem;color:#94a3b8;margin-top:6px;display:flex;gap:12px;}
/* tags*/.tags {display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;}
.tag-item {padding:6px 16px;border-radius:20px;font-size:.8125rem;border:1px solid var(--border);background:var(--surface);color:var(--text-secondary);transition:all .2s var(--ease);}
.tag-item:hover {border-color:var(--primary);color:var(--primary);}
.tag-item.active {background:var(--primary);border-color:var(--primary);color:#fff;}
/* breadcrumb*/.crumb {font-size:.8125rem;color:var(--muted);margin-bottom:18px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.crumb a {color:var(--muted);transition:color .2s;}
.crumb a:hover {color:var(--primary);}
.crumb span {color:var(--text-secondary);font-weight:500;}
/* page title*/.page-title {font-size:1.5rem;font-weight:700;color:var(--text);margin-bottom:6px;letter-spacing:-.02em;}
.page-desc {font-size:.875rem;color:var(--muted);margin-bottom:24px;}
/* pagination*/.pager {display:flex;justify-content:center;align-items:center;gap:6px;margin-top:32px;}
.pager a,.pager span {min-width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);font-size:.875rem;border:1px solid var(--border);background:var(--surface);color:var(--text-secondary);transition:all .2s var(--ease);}
.pager a:hover,.pager span.current {background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 2px 8px rgba(13,148,136,.25);}
/* article detail*/.article {max-width:760px;}
.article-head {margin-bottom:28px;}
.article-cat {display:inline-block;padding:4px 12px;background:var(--primary-light);color:var(--primary-dark);border-radius:6px;font-size:.75rem;font-weight:600;margin-bottom:14px;}
.article-title {font-size:clamp(1.375rem,3vw,1.875rem);font-weight:700;color:var(--text);line-height:1.35;margin-bottom:16px;letter-spacing:-.02em;}
.article-meta {display:flex;flex-wrap:wrap;gap:16px;font-size:.8125rem;color:var(--muted);padding-bottom:20px;border-bottom:1px solid var(--border-light);}
.article-cover {border-radius:var(--radius);overflow:hidden;margin-bottom:28px;box-shadow:var(--shadow-md);}
.article-cover img{width: 100%; height: auto;}
.article-body {font-size:1.0625rem;line-height:1.9;color:var(--text-secondary);}
.article-body p {margin-bottom:1.25em;}
.article-body h3 {font-size:1.125rem;font-weight:600;color:var(--text);margin:1.75em 0 .75em;}
.article-body blockquote {border-left:3px solid var(--primary);padding:16px 20px;margin:1.5em 0;background:var(--primary-light);border-radius:0 var(--radius-sm) var(--radius-sm) 0;color:var(--primary-dark);font-size:.9375rem;line-height:1.7;}
.article-tags {display:flex;flex-wrap:wrap;gap:8px;margin-top:32px;padding-top:24px;border-top:1px solid var(--border-light);}
.article-tags a {padding:5px 12px;background:var(--bg);border-radius:6px;font-size:.8125rem;color:var(--muted);transition:background .2s,color .2s;}
.article-tags a:hover {background:var(--primary-light);color:var(--primary);}
/* search page*/.search-info {background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px 24px;margin-bottom:20px;box-shadow:var(--shadow);}
.search-info strong {color:var(--primary);font-weight:600;}
.search-count {font-size:.8125rem;color:var(--muted);margin-top:4px;}
.search-list {display:flex;flex-direction:column;gap:10px;}
.search-item {display:block;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 22px;box-shadow:var(--shadow);transition:box-shadow .2s,border-color .2s,transform .2s;}
.search-item:hover {box-shadow:var(--shadow-md);border-color:rgba(13,148,136,.3);color:var(--text);transform:translateY(-1px);}
.search-title {font-size:1rem;font-weight:600;color:var(--text);margin-bottom:8px;line-height:1.45;transition:color .2s;}
.search-item:hover .search-title {color:var(--primary);}
.search-title mark,.search-desc mark {background:#fef9c3;color:inherit;padding:0 3px;border-radius:2px;}
.search-desc {font-size:.8125rem;color:var(--muted);line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.search-meta {font-size:.75rem;color:#94a3b8;margin-top:10px;}
.empty {text-align:center;padding:60px 20px;color:var(--muted);}
.empty-icon {font-size:3rem;margin-bottom:16px;opacity:.5;}
.empty h3 {font-size:1.1rem;color:var(--text);margin-bottom:8px;}
/* static page*/.static {background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:32px 36px;box-shadow:var(--shadow);}
.static-body {font-size:.9375rem;line-height:1.85;max-width:760px;color:var(--text-secondary);}
.static-body h3 {font-size:1.0625rem;font-weight:600;color:var(--text);margin:1.75em 0 .6em;}
.static-body h3:first-child {margin-top:0;}
.static-body p {margin-bottom:1em;}
.static-body ul {margin:0 0 1em 1.2em;list-style:disc;color:var(--muted);}
.static-body li {margin-bottom:.5em;}
.static-body a {color:var(--primary);font-weight:500;}
.static-body a:hover {text-decoration:underline;}
.contact-grid {display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px;}
.contact-card {background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:28px 16px;text-align:center;box-shadow:var(--shadow);transition:box-shadow .2s,border-color .2s;}
.contact-card:hover {box-shadow:var(--shadow-md);border-color:rgba(13,148,136,.25);}
.contact-card .icon {font-size:1.75rem;margin-bottom:12px;}
.contact-card h4 {font-size:.875rem;font-weight:600;color:var(--text);margin-bottom:6px;}
.contact-card p {font-size:.8125rem;color:var(--muted);margin:0;line-height:1.5;}
.form-row {margin-bottom:18px;}
.form-row label {display:block;font-size:.8125rem;font-weight:600;color:var(--text-secondary);margin-bottom:6px;}
.form-row input,.form-row textarea,.form-row select {width:100%;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:.875rem;font-family:inherit;color:var(--text);background:var(--bg);transition:border-color .2s,box-shadow .2s,background .2s;}
.form-row textarea {min-height:120px;resize:vertical;}
.form-row input:focus,.form-row textarea:focus,.form-row select:focus {outline:none;border-color:var(--primary);box-shadow:0 0 0 3px var(--primary-muted);background:var(--surface);}
.btn {padding:10px 28px;border-radius:var(--radius-sm);font-size:.875rem;font-weight:600;transition:background .2s,transform .2s,box-shadow .2s;}
.btn-primary {background:var(--primary);color:#fff;box-shadow:0 2px 8px rgba(13,148,136,.25);}
.btn-primary:hover {background:var(--primary-dark);transform:translateY(-1px);box-shadow:0 4px 12px rgba(13,148,136,.3);}
@media (max-width:1023px) {.sidebar {width:280px;}
.header {height:var(--header-h);}
.header-inner {grid-template-columns:auto minmax(0,1fr);padding:0 16px;gap:12px;}
.header-left {flex-shrink:0;}
.search {max-width:min(500px,100%);width:100%;justify-self:end;margin:0;min-width:0;}
.content {padding:20px 16px 36px;}
.grid {grid-template-columns:repeat(2,1fr);}
.row {grid-template-columns:1fr;}
.hero {grid-template-columns:1fr;}
.banner {height:220px;}
.hero-rec {height:auto;grid-template-rows:auto;}
.banner-arrow {display:none;}
.banner-dots {bottom:12px;}
;}
@media (max-width:640px) {.grid {grid-template-columns:1fr;}
.header-inner {padding:0 12px;gap:8px;}
.header-left {gap:6px;}
.menu-btn {width:32px;height:32px;font-size:1.05rem;}
.logo {font-size:1rem;}
.search input {height:36px;font-size:.8125rem;padding:0 36px 0 12px;}
.search-btn {width:28px;height:28px;font-size:.75rem;}
.contact-grid {grid-template-columns:1fr;}
.static {padding:22px 18px;}
.news-item {flex-direction:column;align-items:flex-start;padding:12px;margin:0 -8px;}
.news-item-img {width:100%;}
.rec-item:hover {transform:none;}
.list-panel {padding:8px 16px;}
.footer-inner {flex-direction:column;text-align:center;align-items:center;}
.footer-links {justify-content:center;}
.card:hover {transform:none;}
.search-item:hover {transform:none;}
;}
