/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
html{font-family:sans-serif;text-size-adjust:100%;box-sizing:border-box}body{margin:0}*,*:before,*:after{box-sizing:inherit}*{-webkit-tap-highlight-color:rgba(0,0,0,0)}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:rgba(0,0,0,0)}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:500}dfn{font-style:italic}p{hyphens:none;hyphenate-limit-chars:6 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:8%}mark{background:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-0.5em}sub{bottom:-0.25em}svg:not(:root){overflow:hidden}figure{margin:1em 0}hr{box-sizing:content-box;height:0}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0}button{overflow:visible;border:none;outline:0}button,select{text-transform:none}button,html input[type=button]{appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{padding:0;border-style:none}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{appearance:listbox}input{line-height:normal}input[type=reset],input[type=submit]{appearance:button;cursor:pointer}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{appearance:none}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{border:0;padding:0}textarea{overflow:auto;resize:vertical}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}[tabindex="-1"]:focus{outline:none !important}[role=button]{cursor:pointer}[type=search]::-webkit-search-decoration{appearance:none}a,button,[role=button],input,label,select,p,h1,h2,h3,h4,ul,li,textarea{touch-action:manipulation;margin:0;padding:0;font-weight:400}ul{list-style:none outside none}li{line-height:inherit}b,strong{font-weight:700}

/* 变量 & 基础 */
body {
    --wt-color-navy-30: #b0bec5;
    --wt-color-navy-30_rgb: 144, 164, 174;
    --wt-color-navy-50: #546e7a;
    --wt-color-navy-70: #31424a;
    --wt-color-navy-80: #263238;
    --wt-color-navy-80_rgb: 38, 50, 56;
    --wt-color-navy-90: #13191b;
    --wt-size-widget-border-radius: 0;
    --wt-size-widget-border-radius-mobile: 0;
    --wt-default-background-color: var(--wt-color-navy-90);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 10;
    width: 100%;
    min-width: 320px;
    min-height: 100vh;
    font-family: "RobotoCondensed", sans-serif;
    font-size: 24px;
    line-height: 1.2;
    color: #cfd8dc;
    background: var(--wt-default-background-color);
    box-sizing: border-box;
}
@media (max-width: 500px) {
    body { min-width: 320px; font-size: 12px; }
}

/* ==========================================================================
   WT 工具网：作者后台 / 站点审核 / 公开工具页
   ========================================================================== */
.portal-card { max-width: 900px; }
.portal-form { display: flex; flex-direction: column; gap: 12px; }
.portal-form label { display: flex; flex-direction: column; gap: 6px; color: #b0bec5; font-size: 14px; }
.portal-form input[type="text"],
.portal-form input[type="email"],
.portal-form input[type="password"],
.portal-form input[type="url"],
.portal-form input:not([type]),
.portal-form select,
.portal-form textarea,
.portal-review-form input[placeholder] {
    width: 100%;
    padding: 9px 11px;
    color: #ececef;
    background: #121217;
    border: 1px solid #33333d;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
}
.portal-form input:focus,
.portal-form select:focus,
.portal-form textarea:focus { border-color: #2f7cf6; }
.portal-form textarea { resize: vertical; }
.portal-actions { display: flex; justify-content: flex-end; }
.portal-hint { margin: 14px 0 0; color: #8da0aa; font-size: 14px; }
.portal-hint a { color: #92d3f9; }
.portal-flash { margin: 14px 0; padding: 11px 14px; border-radius: 4px; font-size: 14px; }
.portal-flash--ok { color: #a5d6a7; background: rgba(46, 125, 50, .18); border: 1px solid rgba(46, 125, 50, .45); }
.portal-flash--bad { color: #ef9a9a; background: rgba(198, 40, 40, .16); border: 1px solid rgba(198, 40, 40, .45); }
.portal-flash--warn { color: #ffe082; background: rgba(255, 193, 7, .12); border: 1px solid rgba(255, 193, 7, .4); }
.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.portal-section { margin: 30px 0 12px; color: #f1c40f; font-size: 22px; }
.portal-table-wrap { overflow-x: auto; border: 1px solid #263238; border-radius: 4px; background: rgba(0, 0, 0, .25); }
.portal-table { width: 100%; border-collapse: collapse; font-size: 14px; color: #cfd8dc; min-width: 680px; }
.portal-table th, .portal-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #263238; vertical-align: top; }
.portal-table th { color: #8da0aa; font-weight: 500; background: rgba(0, 0, 0, .25); }
.portal-table tr:last-child td { border-bottom: 0; }
.portal-sub { display: block; margin-top: 3px; color: #8da0aa; font-size: 14px; line-height: 1.55; }
.portal-empty { color: #8da0aa; text-align: center; padding: 22px 0; }
.portal-badge { display: inline-block; padding: 2px 9px; border-radius: 3px; font-size: 12px; background: #33333d; color: #cfd8dc; white-space: nowrap; }
.portal-badge--ok { background: rgba(46, 125, 50, .3); color: #a5d6a7; }
.portal-badge--bad { background: rgba(198, 40, 40, .3); color: #ef9a9a; }
.portal-badge--wait { background: rgba(255, 193, 7, .18); color: #ffe082; }
.portal-inline-form { display: inline; margin: 0; }
.portal-link-button { padding: 0; color: #ef9a9a; background: none; border: 0; cursor: pointer; font: inherit; text-decoration: underline; }
.portal-review-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.portal-review-form input[placeholder] { width: 130px; padding: 5px 8px; font-size: 13px; }
.portal-review-form .button { padding: 4px 10px; font-size: 13px; }
.portal-reject { padding: 4px 10px; color: #ef9a9a; background: #2a1a1a; border: 1px solid #5a2a2a; border-radius: 3px; cursor: pointer; font-size: 13px; }
.portal-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.portal-tool-card { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; color: #cfd8dc; text-decoration: none; background: rgba(30, 30, 30, .75); border: 1px solid #263238; border-radius: 4px; transition: border-color .15s, transform .15s; }
.portal-tool-card:hover { border-color: #e53935; transform: translateY(-2px); }
.portal-tool-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.portal-tool-card__head h3 { margin: 0; color: #ececef; font-size: 18px; }
.portal-tool-card__ver { color: #8da0aa; font-size: 14px; }
.portal-tool-card p { margin: 0; color: #b0bec5; font-size: 14px; line-height: 1.6; }
.portal-tool-card__more { margin-top: auto; color: #92d3f9; font-size: 13px; }
.portal-list { border: 1px solid #263238; border-radius: 4px; overflow: hidden; }
.portal-list-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; color: #cfd8dc; text-decoration: none; border-bottom: 1px solid #263238; }
.portal-list-item:last-child { border-bottom: 0; }
.portal-list-item:hover { background: rgba(229, 57, 53, .08); }
.portal-list-item span { color: #8da0aa; font-size: 13px; white-space: nowrap; }
.portal-search {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 720px;
    margin: 18px auto 6px;
}
.portal-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    padding: 9px 12px;
    color: #ececef;
    background: #121217;
    border: 1px solid #33333d;
    border-radius: 4px;
    font-size: 15px;
}
.portal-search .button {
    flex: 0 0 auto;
    width: auto;
    min-width: 92px;
    min-height: 44px;
    padding: 0 22px;
    font-size: 16px;
}
.portal-detail { max-width: 860px; line-height: 1.8; }
.app-page { width: 100%; max-width: 1040px; margin: 0 auto; }
.app-page__hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 4px 0 18px;
    padding: 22px 26px;
    background:
        linear-gradient(115deg, rgba(229, 57, 53, .14), transparent 52%),
        rgba(20, 27, 30, .82);
    border: 1px solid #37474f;
    border-top: 3px solid #e53935;
    border-radius: 6px;
}
.app-page__heading { min-width: 0; }
.app-page__heading h1 { margin-bottom: 7px; text-align: left; }
.app-page__heading .subtitle { margin: 0; text-align: left; }
.app-page__eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #92d3f9;
    font: 600 12px/1.4 "RobotoCondensed", "Arial", sans-serif;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.app-page__author { margin: 10px 0 0; color: #8da0aa; font-size: 14px; }
.app-page__version {
    flex: 0 0 auto;
    min-width: 126px;
    padding: 12px 16px;
    text-align: center;
    background: rgba(0, 0, 0, .28);
    border: 1px solid #455a64;
    border-radius: 4px;
}
.app-page__version span { display: block; color: #78909c; font-size: 12px; }
.app-page__version strong { display: block; margin-top: 4px; color: #f1c40f; font-size: 20px; }
.app-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
    gap: 18px;
}
.app-page__content { min-width: 0; max-width: none; }
.app-page__rich { color: #cfd8dc; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.app-page__rich h2,
.app-page__rich h3,
.app-page__rich h4 { margin: 20px 0 9px; color: #f1c40f; }
.app-page__rich h2:first-child,
.app-page__rich h3:first-child,
.app-page__rich h4:first-child { margin-top: 0; }
.app-page__rich p { margin: 0 0 13px; color: #c4d0d5; font-size: 16px; line-height: 1.8; }
.app-page__rich ul,
.app-page__rich ol { margin: 10px 0 16px 24px; }
.app-page__rich ul { list-style: disc outside none; }
.app-page__rich ol { list-style: decimal outside none; }
.app-page__rich li { margin: 5px 0; }
.app-page__rich blockquote {
    margin: 14px 0;
    padding: 10px 16px;
    color: #b0bec5;
    background: rgba(229, 57, 53, .08);
    border-left: 3px solid #e53935;
}
.app-page__rich img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 14px auto;
    border: 1px solid #37474f;
    border-radius: 6px;
}
.app-page__rich table {
    display: block;
    width: 100%;
    margin: 16px 0;
    overflow-x: auto;
    border-collapse: collapse;
}
.app-page__rich th,
.app-page__rich td { padding: 8px 10px; border: 1px solid #37474f; text-align: left; }
.app-page__rich th { color: #ececef; background: rgba(255, 255, 255, .04); }
.app-page__rich pre {
    margin: 14px 0;
    padding: 13px 15px;
    overflow: auto;
    color: #cfd8dc;
    background: #0f1416;
    border: 1px solid #263238;
    border-radius: 5px;
}
.app-page__rich a { color: #92d3f9; text-decoration: underline; }
.app-page__changelog { margin-top: 20px; border-top: 1px solid #37474f; }
.app-page__changelog summary { padding: 14px 0 4px; color: #f1c40f; cursor: pointer; font-weight: 600; }
.app-page__sidebar h2 { margin: 0 0 14px; color: #ececef; font-size: 20px; }
.app-page__sidebar .button { width: 100%; min-height: 44px; font-size: 18px; }
.app-page__facts { display: grid; gap: 9px; margin: 18px 0 14px; }
.app-page__facts div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid #2d3a40; }
.app-page__facts dt { color: #78909c; font-size: 13px; }
.app-page__facts dd { margin: 0; color: #cfd8dc; font-size: 13px; text-align: right; }
.app-page__source { display: inline-block; color: #92d3f9; font-size: 14px; }
@media (max-width: 760px) {
    .app-page__hero { align-items: flex-start; flex-direction: column; padding: 18px; }
    .app-page__version { width: 100%; box-sizing: border-box; }
    .app-page__layout { grid-template-columns: 1fr; }
    .app-page__sidebar { order: -1; }
}
.portal-back { margin: 0 0 8px; font-size: 14px; }
.portal-back a { color: #92d3f9; }
.portal-announcement {
    margin: 0 0 18px;
    padding: 13px 16px;
    color: #d9e7ed;
    font-size: 15px;
    line-height: 1.7;
    background: rgba(47, 124, 246, .18);
    border: 1px solid rgba(92, 158, 255, .55);
    border-left: 4px solid #5c9eff;
    border-radius: 5px;
}
.portal-announcement--warning {
    color: #ffecb3;
    background: rgba(249, 168, 37, .16);
    border-color: rgba(249, 168, 37, .58);
    border-left-color: #f9a825;
}
.portal-changelog {
    margin: 10px 0 18px;
    padding: 14px 16px;
    overflow: auto;
    color: #cfd8dc;
    font: 14px/1.7 "Microsoft YaHei UI", "Segoe UI", sans-serif;
    white-space: pre-wrap;
    word-break: break-word;
    background: rgba(9, 14, 16, .72);
    border: 1px solid #37474f;
    border-radius: 5px;
}
@media (max-width: 760px) {
    .portal-grid { grid-template-columns: 1fr; }
}

.portal-quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.portal-tool-card--featured { border-color: #e53935; background: rgba(229, 57, 53, .10); }
.portal-form label.portal-check { flex-direction: row; align-items: center; gap: 8px; }
.portal-form label.portal-check input { width: auto; }
a { color: #7495a1; text-decoration: none; transition: color .3s ease; }
a:hover { color: #92d3f9; text-decoration: none; }
.global__uppercase { text-transform: uppercase; }
.global__mobile-hidden { display: block; }
@media (max-width: 500px) {
    .global__mobile-hidden { display: none !important; }
    .portal-search { display: grid; grid-template-columns: minmax(0, 1fr); }
    .portal-search .button { width: 100%; min-height: 40px; }
}

/* 头部 */
/* 原模板里的移动端菜单/遮罩残留元素：没有对应 JS 与样式，默认隐藏，避免在电脑上露出 */
.header-mobile__menu-header,
.header-mobile__home-link,
.header__mobile-close,
.bg-modal-wnd {
    display: none;
}

.header {
    display: flex;
    justify-content: center;
    position: absolute;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100px;
    padding-top: 40px;
    background-color: rgba(0,0,0,.6);
    transition: padding .3s ease;
}
.header_sticky .header {
    position: fixed;
    margin-top: -129px;
    padding-top: 126px;
    background-color: rgba(0,0,0,.8);
}
.header::after {
    content: "";
    position: absolute;
    z-index: 10;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--wt-color-navy-70);
    font: 0/0 a;
}
.header__sticky-trigger {
    position: absolute;
    left: 0;
    top: 110px;
    height: 0;
    overflow: hidden;
    font: 0/0 a;
}
.header__wrapper {
    display: flex;
    align-items: center;
    min-width: 1180px;
    height: 100%;
    margin: 0 auto;
}
.header__logo {
    flex-shrink: 0;
    display: block;
    width: 164px;
    height: 80px;
    margin-right: 40px;
    transition: all .3s ease;
}
.header__logo_zh { height: 101px; }
.header_sticky .header__logo { width: 80px; height: 39px; }
.header__logo svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: #cfd8dc;
    transition: fill .3s ease;
}
.header__logo svg:hover { fill: #fff; }
.header__nav {
    position: relative;
    z-index: 200;
    width: 100%;
    height: 100%;
}
.header__mobile-close { display: none; }
@media (max-width: 1400px) {
    .header__logo { width: 120px; height: 57px; margin-right: 30px; }
    .header__logo_zh { height: 76px; }
}
@media (max-width: 500px) {
    .header { display: block; opacity: 0; position: fixed; z-index: 500; left: -100%; top: 0; width: 100%; height: 100%; overflow: auto; padding-top: 0; background: #1f2935; transition: all .3s ease; }
    .header_open-menu .header { opacity: 1; left: 0; }
    .header__wrapper { flex-wrap: nowrap; justify-content: flex-start; width: 100%; min-width: auto; height: auto; }
    .header__logo { display: none; }
    .header__mobile-close { display: block; }
}

/* 导航菜单 */
.header-nav {
    display: flex;
    gap: 30px;
    position: relative;
}
.header-nav__item {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color .3s ease;
}
.header-nav__item--to-right { margin-left: auto; }
.header-nav__item-name {
    display: flex;
    align-items: center;
    height: 100%;
    font-family: "RobotoCondensed", sans-serif;
    font-size: 18px;
    line-height: 1;
    color: #cfd8dc;
    text-transform: uppercase;
    white-space: nowrap;
    border: 2px rgba(0,0,0,0) solid;
    border-width: 2px 0;
    transition: all .3s ease;
}
.header_sticky .header-nav__item-name { font-size: 18px; }
.header-nav__item-name:hover,
.header-nav__item--active .header-nav__item-name {
    color: #e53935;
    border-bottom-color: #e53935;
    text-decoration: none;
}
.header-nav__button { white-space: nowrap; }
@media (max-width: 1400px) {
    .header-nav__button.button { font-size: 16px; }
    .header_sticky .header-nav__button.button { font-size: 12px; }
    .header-nav__item-name { font-size: 16px; }
    .header_sticky .header-nav__item-name { font-size: 12px; }
}
@media (max-width: 500px) {
    .header-nav { flex-direction: column; gap: 0; width: 100%; border-top: 1px #455a64 solid; }
    .header-nav__item { position: relative; min-height: 45px; background: #1f2935; border-bottom: 1px #455a64 solid; }
    .header-nav__item:last-child { border-bottom: none; }
    .header-nav__item--to-right { margin-left: 0; }
    .header-nav__item-name { position: absolute; left: 0; top: 0; width: 100%; height: 45px; padding-left: 10px; font-family: "Roboto", sans-serif; font-size: 18px; font-weight: 500; text-transform: none; border-bottom: none; }
    .header-nav__button { margin: 10px 10px 0; }
}

/* 按钮 */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 50px;
    padding: 5px 20px;
    font-family: "Roboto", sans-serif;
    font-size: 24px;
    line-height: 1;
    color: var(--wt-color-navy-30);
    text-decoration: none;
    text-align: center;
    border: 1px var(--wt-color-navy-30) solid;
    border-radius: var(--wt-size-widget-border-radius);
    cursor: pointer;
    background: none;
    transition: all .3s ease;
}
.button:hover { border-color: #fff; color: #fff; text-decoration: none; }
.button--red-bg {
    font-weight: 500;
    color: #fff;
    border-color: #e53935;
    border-radius: 3px;
    background-color: rgba(229,57,53,.7);
}
.button--red-bg:hover { border-color: #e53935; color: #fff; background-color: #e53935; box-shadow: 0 0 10px #e53935; }
.button--x-small { min-height: 40px; font-family: "RobotoCondensed", sans-serif; font-size: 18px; }
.button--big { min-height: 70px; font-size: 28px; }
@media (max-width: 500px) {
    .button { min-height: 31px; border-radius: var(--wt-size-widget-border-radius-mobile); font-size: 14px; }
    .button--big { min-height: 35px; font-size: 16px; }
}

/* 内容 & 背景 */
.content {
    position: relative;
    padding-top: 180px;
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto auto;
}
.content__background {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 860px;
    overflow: hidden;
}
.content__background::after {
    content: "";
    position: absolute;
    z-index: 300;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, transparent 0%, var(--wt-default-background-color) 100%);
}
.content__background::before {
    content: "";
    position: absolute;
    z-index: 200;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 17, 19, .58) 0%, rgba(12, 17, 19, .42) 45%, rgba(12, 17, 19, .72) 100%);
    pointer-events: none;
}
.content__background-promo {
    opacity: .18;
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .3s ease;
    will-change: transform;
    filter: saturate(.75) brightness(.78);
}
.content__background-promo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.body_promo-open .content__background-promo { opacity: .18; }
@media (max-width: 500px) {
    .content { padding-top: 80px; }
    .content__background { top: 40px; height: 200px; }
    .content__background-promo { display: none; }
}

/* promo 内容区域 (用于展示产品) */
.promo__content {
    pointer-events: none;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 128px;
    transition: opacity .3s ease;
}
.body_promo-open .promo__content {
    pointer-events: auto;
    opacity: 1;
}
.promo__buttons {
    width: 375px;
}
.promo__button {
    margin-bottom: 30px;
    text-transform: uppercase;
}
@media (max-width: 500px) {
    .promo__content { margin-top: 0; }
    .promo__buttons { width: 180px; margin-bottom: 20px; }
    .promo__button { margin-bottom: 10px; }
}

/* ===== 自定义产品样式 (原内联样式增强) ===== */

/* 站点 Logo（纯文本 + 色块，避免引用不存在的 SVG 资源） */
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
/* 原来的 Logo 是 SVG，被固定成 164x80（窄屏 120x57、吸顶 80x39），
   文本 Logo 必须放开这些固定尺寸，否则文字会被挤压/裁切 */
.header__logo,
.header__logo_zh,
.header_sticky .header__logo {
    width: auto;
    height: auto;
    min-width: 0;
    margin-right: 40px;
}
@media (max-width: 1400px) {
    .header__logo,
    .header__logo_zh,
    .header_sticky .header__logo {
        width: auto;
        height: auto;
        margin-right: 24px;
    }
}
/* 窄一些的电脑窗口（例如 125% 缩放下的 1366 屏）不再强制 1220px 宽，避免出现横向滚动。
   注意下限是 501px：手机（≤500px）要保留下面的移动端规则，否则会被这里覆盖成 1024px 宽。 */
@media (min-width: 501px) and (max-width: 1220px) {
    body { min-width: 320px; }
    .header__wrapper {
        min-width: 0;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }
    .header-nav { gap: 20px; }
}
.header__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-family: "RobotoCondensed", "Arial", sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    background: #e53935;
    border-radius: 4px;
}
.header__logo-text {
    font-family: "RobotoCondensed", "Arial", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #ececef;
    letter-spacing: 0.5px;
}
.header__logo:hover .header__logo-text { color: #fff; }
@media (max-width: 500px) {
    .header__logo-mark { width: 32px; height: 32px; font-size: 16px; }
    .header__logo-text { font-size: 18px; }
}

h1 {
    font-size: 48px;
    font-weight: 300;
    color: #f1c40f;
    margin-bottom: 10px;
}
.subtitle {
    font-size: 20px;
    color: #ccc;
    margin-bottom: 30px;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 30px auto;
}
.feature-card {
    background: rgba(30,30,30,0.7);
    border-radius: 12px;
    padding: 25px 20px;
    border: 1px solid #444;
    text-align: center;
    transition: 0.2s;
}
.feature-card:hover {
    border-color: #c0392b;
    transform: translateY(-4px);
}
.feature-card .icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}
.feature-card h3 {
    color: #f1c40f;
    font-size: 18px;
    margin-bottom: 8px;
}
.feature-card p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}
@media (max-width: 600px) {
    h1 { font-size: 32px; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .subtitle { font-size: 16px; }
}

/* 页脚（赞助） */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 30px 0 24px;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid #263238;
}
.site-footer a {
    display: inline-block;
}
.site-footer img {
    max-width: 90%;
    height: auto;
}
.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 22px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 16px;
    padding: 0 18px;
    box-sizing: border-box;
}
.site-footer__nav a {
    color: #92d3f9;
    font-size: 15px;
    text-decoration: none;
}
.site-footer__nav a:hover {
    color: #ffd54f;
    text-decoration: underline;
}
.site-footer__note {
    width: 100%;
    max-width: 820px;
    margin: 0 auto 20px;
    padding: 0 18px;
    box-sizing: border-box;
    color: #8da0aa;
    font-size: 14px;
    line-height: 1.75;
}

/* Google AdSense 广告位 */
.ad-container {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 100px;
    padding: 16px 0;
    overflow: hidden;
}

/* 下载感谢页 */
.download-thanks {
    min-height: 300px;
    padding: 20px;
    text-align: center;
}
.download-thanks h1 {
    font-size: 56px;
}
.download-meta {
    margin-top: 16px;
    color: #b0bec5;
    font-size: 14px;
}
.legal-card ul {
    margin: 10px 0 10px 22px;
    list-style: disc outside none;
}
.legal-card li {
    margin: 5px 0;
    color: #b0bec5;
    font-size: 16px;
    line-height: 1.7;
}
.legal-card p {
    color: #b0bec5;
    font-size: 16px;
    line-height: 1.7;
}
.legal-card h3 {
    margin: 14px 0 6px;
    color: #f1c40f;
    font-size: 19px;
}
.legal-card code {
    padding: 1px 5px;
    background: #0f1416;
    border-radius: 3px;
    font-size: 15px;
}
.sponsor-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 10px auto 30px;
    padding: 24px 18px;
    text-align: center;
    background: rgba(30, 30, 30, 0.7);
    border-top: 1px solid #263238;
    border-bottom: 1px solid #263238;
}
.sponsor-prompt p {
    color: #f1c40f;
    font-size: 18px;
}
.sponsor-prompt a {
    display: inline-block;
}
.sponsor-prompt img {
    max-width: 90%;
    height: auto;
}

/* 隐私政策 / 新闻页 */
.legal-content {
    align-items: stretch;
    /* 固定宽度，避免详情页随正文长短忽宽忽窄 */
    width: 900px;
    max-width: 100%;
    margin: 128px auto 40px;
    padding: 0 24px;
    box-sizing: border-box;
}
@media (max-width: 960px) {
    .legal-content { width: 100%; }
}
.legal-content h1,
.legal-content .subtitle {
    text-align: center;
}
.legal-card {
    margin-bottom: 18px;
    padding: 22px 24px;
    text-align: left;
    background: rgba(30, 30, 30, 0.75);
    border: 1px solid #444;
    border-radius: 10px;
}

/* 新闻列表 / 新闻正文 */
.news-item__title {
    font-size: 22px;
    color: #f1c40f;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.news-item__name { min-width: 0; }
/* 整张卡片可点击 */
a.news-item {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
a.news-item:hover,
a.news-item:focus,
a.news-item:active {
    color: inherit;
    text-decoration: none;
}
a.news-item:hover {
    border-color: #e53935;
    /* 保留卡片本身的深色底，只叠一层淡红，避免 hover 时背景变透明 */
    background:
        linear-gradient(0deg, rgba(229, 57, 53, 0.18), rgba(229, 57, 53, 0.18)),
        rgba(30, 30, 30, 0.75);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}
a.news-item:hover .news-item__title { color: #ffd54f; }
.news-pin {
    display: inline-block;
    flex: none;
    padding: 2px 8px;
    font-size: 12px;
    font-family: "Roboto", "Arial", sans-serif;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    background: #e53935;
    border-radius: 2px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.news-item__date {
    color: #8da0aa;
    font-size: 14px;
    margin-bottom: 10px;
}
.news-item__summary {
    color: #b0bec5;
    font-size: 16px;
    line-height: 1.7;
}
.news-back { margin-bottom: 14px; font-size: 15px; }
.news-article-head {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.news-article-head h1 { margin-bottom: 0; }
.news-article__date {
    margin: 8px 0 14px;
    color: #8da0aa;
    font-size: 15px;
    text-align: center;
}
.news-article__summary {
    margin: 0 auto 20px;
    padding: 14px 18px;
    max-width: 100%;
    color: #b0bec5;
    font-size: 17px;
    line-height: 1.7;
    text-align: left;
    border-left: 3px solid #e53935;
    background: rgba(229, 57, 53, 0.08);
}
.news-article { line-height: 1.8; color: #cfd8dc; font-size: 17px; }
.news-article h1 { font-size: 30px; color: #f1c40f; margin: 18px 0 10px; }
.news-article h2 { font-size: 24px; color: #f1c40f; margin: 18px 0 10px; }
.news-article h3 { font-size: 20px; color: #ffe082; margin: 16px 0 8px; }
.news-article p { margin: 10px 0; }
.news-article ul,
.news-article ol { margin: 10px 0 10px 24px; }
.news-article ul { list-style: disc outside none; }
.news-article ol { list-style: decimal outside none; }
.news-article li { margin: 4px 0; }
.news-article blockquote {
    margin: 12px 0;
    padding: 8px 16px;
    border-left: 3px solid #e53935;
    background: rgba(229, 57, 53, 0.08);
    color: #b0bec5;
}
.news-article code {
    padding: 1px 5px;
    background: #0f1416;
    border-radius: 3px;
    font-size: 15px;
}
.news-article pre {
    margin: 12px 0;
    padding: 14px 16px;
    overflow: auto;
    background: #0f1416;
    border: 1px solid #263238;
    border-radius: 6px;
}
.news-article pre code { padding: 0; background: none; }
.news-article img { max-width: 100%; height: auto; border-radius: 6px; }
.news-article hr { margin: 18px 0; border: none; border-top: 1px solid #37474f; }

/* 下载方式选择弹窗 */

/* 战雷服务状态页 */
.status-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 6px 0 18px;
    padding: 16px 20px;
    border-radius: 8px;
    border: 1px solid #37474f;
    background: rgba(30, 30, 30, 0.75);
}
.status-summary--up { border-color: #2e7d32; background: rgba(46, 125, 50, 0.14); }
.status-summary--degraded { border-color: #f9a825; background: rgba(249, 168, 37, 0.14); }
.status-summary--down { border-color: #c62828; background: rgba(198, 40, 40, 0.16); }
.status-summary__text { color: #ececef; font-size: 18px; }
.status-summary__meta { margin-left: auto; color: #b0bec5; font-size: 14px; }
.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8da0aa;
    flex: none;
}
.status-dot--up { background: #43a047; box-shadow: 0 0 8px rgba(67, 160, 71, 0.8); }
.status-dot--degraded { background: #f9a825; box-shadow: 0 0 8px rgba(249, 168, 37, 0.8); }
.status-dot--down { background: #e53935; box-shadow: 0 0 8px rgba(229, 57, 53, 0.8); }
.status-list { width: 100%; display: grid; gap: 12px; }
.status-row {
    padding: 14px 18px;
    border-radius: 8px;
    border: 1px solid #37474f;
    background: rgba(30, 30, 30, 0.7);
}
.status-row--up { border-left: 3px solid #43a047; }
.status-row--degraded { border-left: 3px solid #f9a825; }
.status-row--down { border-left: 3px solid #e53935; }
.status-row__head { display: flex; align-items: center; gap: 10px; }
.status-row__name { color: #ececef; font-size: 17px; }
.status-row__state { margin-left: auto; color: #b0bec5; font-size: 15px; }
.status-row--up .status-row__state { color: #81c784; }
.status-row--degraded .status-row__state { color: #ffd54f; }
.status-row--down .status-row__state { color: #ef9a9a; }
.status-row__label {
    margin: 10px 0 5px;
    color: #607d8b;
    font-size: 12px;
}
.status-row__bars {
    display: flex;
    align-items: stretch;
    gap: 1px;
    height: 26px;
    padding: 2px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
}
.status-row__bars--hourly { height: 18px; }
.seg {
    flex: 1 1 0;
    min-width: 1px;
    border-radius: 2px;
    background: #37474f;
    transition: transform 0.15s ease;
}
.seg:hover { transform: scaleY(1.25); }
.seg--up { background: #43a047; }
.seg--degraded { background: #f9a825; }
.seg--down { background: #e53935; }
.seg--mixed { background: linear-gradient(180deg, #43a047 0 45%, #e53935 55% 100%); }
.seg--none { background: #37474f; }
.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 0 0 14px;
    color: #b0bec5;
    font-size: 13px;
}
.status-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.status-legend .seg {
    display: inline-block;
    flex: none;
    width: 14px;
    height: 12px;
    border-radius: 2px;
}

/* ---------- 移动端顶部栏（≤500px 才显示） ---------- */
.mobile-bar {
    display: none;
}
.mobile-bar__toggle,
.header__mobile-close {
    background: none;
    border: 1px solid #455a64;
    border-radius: 4px;
    color: #cfd8dc;
    font-size: 18px;
    line-height: 1;
    padding: 6px 10px;
    cursor: pointer;
}
.mobile-bar__toggle:hover,
.header__mobile-close:hover {
    border-color: #e53935;
    color: #fff;
}
.status-note { margin-top: 20px; }
.status-note b { color: #f1c40f; }
@media (max-width: 600px) {
    .status-summary { flex-wrap: wrap; }
    .status-summary__meta { margin-left: 0; width: 100%; }
    .status-row__name { font-size: 15px; }
    .status-row { padding: 12px 12px 14px; }
    .status-row__bars { gap: 0; height: 22px; }
    .status-row__bars--hourly { height: 16px; }
    .seg { border-radius: 1px; }
    .status-row__label { font-size: 11px; }
    .status-legend { gap: 12px; font-size: 12px; }
}

.wt-modal {
    position: fixed;
    z-index: 900;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}
.wt-modal.is-open { display: flex; }
.wt-modal__backdrop {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
}
.wt-modal__window {
    position: relative;
    width: 580px;
    max-width: calc(100% - 32px);
    max-height: 86vh;
    overflow: auto;
    padding: 26px 30px 22px;
    background: linear-gradient(180deg, #1b2225 0%, #13191b 100%);
    border: 1px solid #37474f;
    border-top: 3px solid #e53935;
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.wt-modal__close {
    position: absolute;
    right: 10px;
    top: 8px;
    width: 34px;
    height: 34px;
    font-size: 16px;
    color: #b0bec5;
    background: none;
}
.wt-modal__close:hover { color: #fff; }
.wt-modal__title {
    margin-bottom: 12px;
    color: #fff;
    font-size: 26px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wt-modal__text {
    color: #b0bec5;
    font-size: 16px;
    line-height: 1.65;
}
.wt-modal__text b { color: #f1c40f; }
.wt-modal__actions {
    display: grid;
    gap: 12px;
    margin: 18px 0 8px;
}
.wt-modal__option {
    display: block;
    padding: 14px 18px;
    border: 1px solid #455a64;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}
.wt-modal__option:hover {
    border-color: #e53935;
    background: rgba(229, 57, 53, 0.12);
}
.wt-modal__option--primary {
    border-color: #e53935;
    background: rgba(229, 57, 53, 0.18);
}
.wt-modal__option--primary:hover { background: rgba(229, 57, 53, 0.28); }
.wt-modal__option--disabled { opacity: 0.45; pointer-events: none; }
.wt-modal__option-title {
    display: block;
    color: #fff;
    font-size: 19px;
}
.wt-modal__option-desc {
    display: block;
    margin-top: 4px;
    color: #b0bec5;
    font-size: 14px;
}
.wt-modal__foot {
    margin-top: 10px;
    color: #607d8b;
    font-size: 13px;
    text-align: center;
}
@media (max-width: 600px) {
    .wt-modal__window { padding: 20px 18px; }
    .wt-modal__title { font-size: 20px; }
    .wt-modal__text { font-size: 14px; }
    .wt-modal__option-title { font-size: 16px; }
}
.legal-card h3 {
    margin-bottom: 10px;
    color: #f1c40f;
    font-size: 20px;
}
.legal-card p {
    margin-bottom: 12px;
    color: #bbb;
    font-size: 15px;
    line-height: 1.8;
}
.legal-card code {
    padding: 1px 5px;
    color: #92d3f9;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
}
@media (max-width: 600px) {
    .legal-content { margin-top: 80px; padding: 0 12px; }
    .legal-card { padding: 16px; }
}

/* ==========================================================================
  移动端（≤500px）：固定顶部栏 + 滑出式导航面板
   放在文件最后，确保覆盖前面的桌面规则（媒体查询不增加优先级）
   ========================================================================== */

@media (max-width: 500px) {
    .mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        z-index: 600;
        left: 0;
        top: 0;
        width: 100%;
        height: 52px;
        padding: 0 14px;
        box-sizing: border-box;
        background: rgba(19, 25, 27, 0.96);
        border-bottom: 1px solid #263238;
    }
    /* 顶栏里放的就是站点 Logo（小一号），桌面版那套尺寸/边距在这里不适用 */
    .mobile-bar .header__logo {
        display: flex;
        width: auto;
        height: auto;
        margin-right: 0;
        gap: 8px;
    }
    .mobile-bar .header__logo-mark { width: 30px; height: 30px; font-size: 15px; border-radius: 3px; }
    .mobile-bar .header__logo-text { font-size: 17px; }

    /* 滑出面板从顶栏下方开始，避免压住导航项 */
    .header {
        top: 52px;
        height: calc(100% - 52px);
        z-index: 550;
        padding-top: 0;
    }
    .header .header__logo { display: none; }      /* 面板里不再重复放 Logo */
    .header__mobile-close { display: none; }      /* 关闭由顶栏的 ☰/✕ 按钮负责 */
    .header__wrapper { padding-top: 6px; }

    .content { padding-top: 68px; }
    .promo__content { margin-top: 0; }
    .legal-content { margin: 12px auto 24px; padding: 0 14px; width: 100%; }
    .legal-card { padding: 16px 14px; }
    .status-summary { padding: 12px 14px; }
    .status-row__head { flex-wrap: wrap; }
    .status-row__state { margin-left: auto; }
}

/* =======================================================================
   WT Tools visual refresh — inspired by aircraft hangars and field manuals
   ======================================================================= */
:root {
    --wt-ink: #10171b;
    --wt-panel: rgba(19, 29, 34, .92);
    --wt-panel-soft: rgba(27, 39, 44, .86);
    --wt-line: rgba(178, 191, 177, .18);
    --wt-muted: #a6b4b2;
    --wt-paper: #e8ece4;
    --wt-sand: #d8bd7a;
    --wt-red: #d74b42;
}
body {
    color: var(--wt-paper);
    font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(74, 101, 103, .24), transparent 55%),
        linear-gradient(180deg, #111a1f 0%, #0b1115 65%, #0b1115 100%);
}
.content { padding-top: 92px; }
.content__background { height: 760px; }
.content__background-promo { opacity: .22; filter: saturate(.62) brightness(.66) contrast(1.08); }
.content__background::before {
    background: linear-gradient(180deg, rgba(8, 15, 19, .48), rgba(8, 15, 19, .66) 62%, #0b1115 100%);
}
.content__background::after { height: 45%; background: linear-gradient(180deg, transparent, #0b1115); }
.header {
    position: absolute;
    height: 82px;
    padding-top: 0;
    align-items: center;
    background: rgba(10, 17, 21, .84);
    border-bottom: 1px solid rgba(216, 189, 122, .22);
    backdrop-filter: blur(16px);
}
.header::after { display: none; }
.header__wrapper {
    width: min(1160px, calc(100% - 52px));
    min-width: 0;
    gap: 28px;
}
.header__logo,
.header__logo_zh {
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    margin: 0 18px 0 0;
    gap: 10px;
    text-decoration: none;
}
.header__logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #10171b;
    background: var(--wt-sand);
    border-radius: 8px 2px 8px 2px;
    font: 900 17px/1 "Segoe UI", sans-serif;
    letter-spacing: -1px;
}
.header__logo-text {
    color: #f0eee5;
    font: 750 21px/1 "Segoe UI", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.header__nav { height: 100%; }
.header-nav { align-items: center; gap: clamp(14px, 2vw, 28px); }
.header-nav__item-name {
    height: auto;
    padding: 12px 0;
    color: #c3ceca;
    font: 600 14px/1.2 "Microsoft YaHei", sans-serif;
    letter-spacing: .02em;
    border: 0;
}
.header-nav__item-name:hover,
.header-nav__item--active .header-nav__item-name {
    color: var(--wt-sand);
    border: 0;
}
.header-nav__button.button {
    min-height: 38px;
    padding: 0 18px;
    border-radius: 6px;
    font-size: 13px;
}
.button {
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid rgba(216, 189, 122, .48);
    border-radius: 6px;
    color: #e8ece4;
    background: rgba(17, 27, 31, .76);
    font: 650 14px/1.2 "Microsoft YaHei", sans-serif;
    letter-spacing: .02em;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); border-color: var(--wt-sand); color: #fff; }
.button--red-bg {
    color: #fff;
    background: linear-gradient(135deg, #c5483f, #a82f2b);
    border-color: rgba(246, 135, 113, .36);
    box-shadow: 0 8px 22px rgba(151, 42, 37, .2);
}
.button--red-bg:hover {
    color: #fff;
    background: linear-gradient(135deg, #df5a4b, #b9342e);
    border-color: #ed8172;
    box-shadow: 0 10px 25px rgba(151, 42, 37, .3);
}
.promo__content { margin-top: 0; }
.promo__content.legal-content {
    width: min(1160px, 100%);
    max-width: 100%;
    margin: 42px auto 58px;
    padding: 0 28px;
    align-items: stretch;
}
.legal-content h1,
.legal-content .subtitle { text-align: inherit; }
.legal-content h1 {
    color: #f1eee3;
    font-size: clamp(32px, 5vw, 50px);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.12;
}
.subtitle { color: #a9b6b1; font-size: 16px; line-height: 1.7; }
.legal-card {
    padding: 24px 26px;
    color: var(--wt-paper);
    background: linear-gradient(145deg, rgba(29, 42, 47, .92), rgba(15, 24, 29, .94));
    border: 1px solid var(--wt-line);
    border-radius: 12px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .13);
}
.legal-card p { color: #bcc7c1; }
.legal-card h3 { color: var(--wt-sand); }
.portal-section {
    margin: 30px 0 14px;
    color: #e1d0a6;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .015em;
}
.portal-hint { color: #91a09c; font-size: 13px; line-height: 1.75; }
.portal-hint a { color: #d6bd83; }
.portal-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.portal-tool-card {
    position: relative;
    min-height: 184px;
    gap: 12px;
    padding: 20px 21px;
    overflow: hidden;
    color: #dce4de;
    background:
        linear-gradient(135deg, rgba(216, 189, 122, .075), transparent 52%),
        linear-gradient(155deg, rgba(28, 42, 47, .96), rgba(14, 23, 27, .96));
    border: 1px solid rgba(171, 190, 176, .18);
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .12);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.portal-tool-card::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -54px;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(216, 189, 122, .11);
    border-radius: 50%;
    box-shadow: 0 0 0 16px rgba(216, 189, 122, .025), 0 0 0 34px rgba(216, 189, 122, .02);
    pointer-events: none;
}
.portal-tool-card:hover {
    color: #fff;
    border-color: rgba(216, 189, 122, .55);
    box-shadow: 0 15px 34px rgba(0, 0, 0, .22);
    transform: translateY(-3px);
}
.portal-tool-card--featured { border-color: rgba(216, 189, 122, .34); }
.portal-tool-card__type {
    align-self: flex-start;
    padding: 4px 8px;
    color: #d8bd7a;
    background: rgba(216, 189, 122, .1);
    border: 1px solid rgba(216, 189, 122, .18);
    border-radius: 4px;
    font: 700 10px/1.4 "Segoe UI", sans-serif;
    letter-spacing: .1em;
}
.portal-tool-card__head { align-items: flex-start; }
.portal-tool-card__head h3 { color: #f0eee5; font-size: 18px; font-weight: 700; line-height: 1.4; }
.portal-tool-card__ver { color: #94a39e; font-size: 12px; }
.portal-tool-card p { color: #aab8b1; font-size: 14px; line-height: 1.7; }
.portal-tool-card__more { color: #dfc98f; font-size: 13px; font-weight: 650; }
.portal-list { border: 1px solid var(--wt-line); border-radius: 10px; background: rgba(13, 22, 26, .72); }
.portal-list-item { padding: 15px 18px; border-bottom-color: rgba(178, 191, 177, .12); }
.portal-list-item:hover { background: rgba(216, 189, 122, .06); }
.portal-list-item strong { color: #e6e9e1; font-size: 15px; }
.portal-list-item .portal-sub { color: #9aa9a3; }
.portal-list-item span { color: #d4be87; font-size: 12px; }
.portal-search { max-width: none; margin: 22px 0 24px; padding: 12px; background: rgba(14, 24, 28, .8); border: 1px solid var(--wt-line); border-radius: 10px; }
.portal-search input {
    min-height: 46px;
    color: #e9ece5;
    background: #0c1519;
    border-color: rgba(178, 191, 177, .2);
    border-radius: 6px;
    font: 14px "Microsoft YaHei", sans-serif;
}
.portal-search input:focus { border-color: #d2b77a; outline: 2px solid rgba(210, 183, 122, .14); }
.portal-search .button { min-height: 46px; border-radius: 6px; }
.portal-back a { color: #d8bd7a; }
.app-page__hero {
    padding: 28px 30px;
    background: linear-gradient(110deg, rgba(216, 189, 122, .12), transparent 58%), rgba(18, 29, 33, .94);
    border: 1px solid var(--wt-line);
    border-top: 2px solid #c6a966;
    border-radius: 12px;
}
.app-page__eyebrow { color: #d8bd7a; }
.app-page__heading h1 { color: #f0eee5; }
.app-page__version { background: rgba(5, 12, 15, .42); border-color: rgba(216, 189, 122, .24); border-radius: 8px; }
.app-page__version strong { color: #e3c77f; }
.app-page__rich h2,
.app-page__rich h3,
.app-page__rich h4 { color: #dfc98f; }
.app-page__changelog summary { color: #dfc98f; }
.site-footer {
    padding: 32px 20px 26px;
    background: rgba(7, 13, 16, .88);
    border-top: 1px solid rgba(216, 189, 122, .16);
}
.site-footer__nav a { color: #cfbd91; font-size: 13px; }
.site-footer__nav a:hover { color: #fff0c9; }
.site-footer__note { color: #83918b; font-size: 12px; }

/* Homepage */
.wt-home { width: 100%; }
.wt-home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 28px;
    min-height: 390px;
    padding: clamp(28px, 5vw, 58px);
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(10, 19, 23, .98) 0%, rgba(16, 29, 34, .94) 64%, rgba(27, 42, 44, .86) 100%),
        url("https://staticfiles.warthunder.com/upload/image/%21%20Screenshots%2F3fXCLrnhO2w_6188cc6bde8f13ec603f899f64edb59a.jpg") center/cover;
    border: 1px solid rgba(216, 189, 122, .24);
    border-radius: 16px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, .26);
}
.wt-home-hero::before,
.wt-home-hero::after { content: ""; position: absolute; pointer-events: none; }
.wt-home-hero::before {
    inset: 0;
    opacity: .18;
    background-image: linear-gradient(rgba(215, 202, 159, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(215, 202, 159, .12) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(90deg, #000, transparent 90%);
}
.wt-home-hero::after { right: 0; top: 0; width: 36%; height: 2px; background: linear-gradient(90deg, transparent, #d8bd7a); }
.wt-home-hero__copy { position: relative; z-index: 1; max-width: 670px; }
.wt-eyebrow {
    display: inline-block;
    color: #cfb779;
    font: 750 10px/1.5 "Segoe UI", sans-serif;
    letter-spacing: .2em;
}
.wt-home-hero h1 {
    margin: 14px 0 14px;
    color: #f0eee5;
    font: 800 clamp(34px, 5vw, 58px)/1.12 "Microsoft YaHei", sans-serif;
    letter-spacing: -.045em;
    text-align: left;
}
.wt-home-hero h1 em { color: #d8bd7a; font-style: normal; }
.wt-home-hero__intro { max-width: 590px; color: #aebbb4; font-size: 16px; line-height: 1.85; }
.wt-home-hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 24px; }
.wt-button-quiet { background: rgba(255, 255, 255, .025); border-color: rgba(209, 215, 202, .2); }
.wt-home-stats { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 34px; padding-top: 19px; border-top: 1px solid rgba(197, 203, 188, .14); }
.wt-home-stats div { display: flex; flex-direction: column; gap: 3px; }
.wt-home-stats strong { color: #e8d49e; font: 760 23px/1 "Segoe UI", sans-serif; }
.wt-home-stats span { color: #81918c; font-size: 11px; }
.wt-home-hero__insignia { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 250px; color: #d8bd7a; }
.wt-home-hero__insignia strong { position: relative; z-index: 1; color: rgba(225, 207, 157, .9); font: 900 96px/.9 "Segoe UI", sans-serif; letter-spacing: -.1em; }
.wt-home-hero__insignia small { position: relative; z-index: 1; margin-top: 13px; color: #aab7a7; font: 700 10px/1.4 "Segoe UI", sans-serif; letter-spacing: .24em; }
.wt-home-hero__ring { position: absolute; width: 220px; height: 220px; border: 1px solid rgba(216, 189, 122, .3); border-radius: 50%; box-shadow: 0 0 0 16px rgba(216, 189, 122, .035), 0 0 0 36px rgba(216, 189, 122, .025), inset 0 0 0 18px rgba(216, 189, 122, .025); }
.wt-home-hero__ring::before,
.wt-home-hero__ring::after { content: ""; position: absolute; background: rgba(216, 189, 122, .45); }
.wt-home-hero__ring::before { width: 1px; height: 250px; left: 50%; top: -15px; }
.wt-home-hero__ring::after { width: 250px; height: 1px; left: -15px; top: 50%; }
.wt-home-hero__axis { margin-top: 15px; color: #80918a; font: 700 9px/1.4 "Segoe UI", sans-serif; letter-spacing: .24em; }
.wt-home-hero__foot { position: absolute; right: 24px; bottom: 17px; left: 24px; display: flex; justify-content: space-between; color: rgba(179, 190, 177, .48); font: 700 9px/1.4 "Segoe UI", sans-serif; letter-spacing: .16em; }
.wt-home-section { margin-top: 54px; }
.wt-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 18px; }
.wt-section-head h2,
.wt-creator-banner h2 { margin: 5px 0 5px; color: #e9e8df; font-size: 25px; font-weight: 750; }
.wt-section-head p,
.wt-creator-banner p { color: #8e9d97; font-size: 13px; line-height: 1.7; }
.wt-section-head > a { flex: 0 0 auto; color: #d4bd84; font-size: 13px; font-weight: 650; }
.wt-empty-state { padding: 24px; background: rgba(17, 27, 31, .72); border: 1px dashed rgba(216, 189, 122, .24); border-radius: 10px; }
.wt-empty-state span { color: #cdb77e; font: 700 10px "Segoe UI", sans-serif; letter-spacing: .16em; }
.wt-empty-state p { margin: 8px 0; color: #aab5ae; font-size: 14px; }
.wt-empty-state a { color: #dfc98f; font-size: 13px; }
.wt-creator-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 54px;
    padding: 24px 28px;
    background: linear-gradient(105deg, rgba(216, 189, 122, .09), rgba(22, 35, 38, .76) 52%), rgba(15, 24, 28, .9);
    border: 1px solid rgba(216, 189, 122, .18);
    border-radius: 12px;
}
.wt-creator-banner h2 { font-size: 20px; }
.wt-creator-banner p { margin: 0; }
.wt-directory { width: 100%; }
.wt-page-intro { margin: 0 0 14px; }
.wt-page-intro h1 { margin: 8px 0 8px; text-align: left; }
.wt-page-intro .subtitle { margin: 0; text-align: left; }
.wt-creator-banner--compact { margin-top: 40px; }

/* Responsive polish */
@media (max-width: 1100px) {
    .header__wrapper { width: calc(100% - 36px); gap: 16px; }
    .header-nav { gap: 16px; }
    .header-nav__item-name { font-size: 13px; }
    .wt-home-hero { grid-template-columns: minmax(0, 1fr) 220px; }
    .wt-home-hero__ring { width: 180px; height: 180px; }
    .wt-home-hero__insignia strong { font-size: 78px; }
}
@media (max-width: 760px) {
    .content { padding-top: 68px; }
    .header { display: none; }
    .mobile-bar { background: rgba(10, 17, 21, .97); border-bottom-color: rgba(216, 189, 122, .2); backdrop-filter: blur(14px); }
    .header_open-menu .header { display: block; }
    .header-nav__item-name { font-size: 15px; }
    .promo__content.legal-content { width: 100%; margin: 18px auto 36px; padding: 0 16px; }
    .wt-home-hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding: 28px 22px 55px; }
    .wt-home-hero__insignia { display: none; }
    .wt-home-hero__intro { font-size: 14px; }
    .wt-home-stats { gap: 18px; margin-top: 25px; }
    .wt-home-stats strong { font-size: 20px; }
    .wt-section-head { align-items: flex-start; }
    .wt-section-head h2 { font-size: 21px; }
    .wt-creator-banner { align-items: flex-start; flex-direction: column; padding: 22px; }
    .wt-creator-banner .button { width: 100%; }
    .wt-home-section { margin-top: 38px; }
    .portal-tool-card { min-height: 164px; }
}
@media (max-width: 500px) {
    .content { padding-top: 68px; }
    .promo__content.legal-content { margin: 12px auto 30px; padding: 0 14px; }
    .wt-home-hero { padding: 26px 18px 54px; border-radius: 12px; }
    .wt-home-hero h1 { font-size: 34px; }
    .wt-home-hero__actions { display: grid; grid-template-columns: 1fr; }
    .wt-home-hero__actions .button { width: 100%; }
    .wt-home-hero__foot { right: 16px; left: 16px; font-size: 7px; }
    .wt-home-stats { justify-content: space-between; gap: 10px; }
    .wt-home-stats span { font-size: 10px; }
    .wt-section-head { flex-direction: column; gap: 8px; }
    .portal-search { grid-template-columns: minmax(0, 1fr); }
    .portal-search .button { width: 100%; }
    .portal-list-item { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* --------------------------------------------------------------------------
   WT Tools — editorial pass
   Less dashboard decoration; more like a maintained game-resource catalogue.
   -------------------------------------------------------------------------- */
:root {
    --wt-ink: #121719;
    --wt-surface: #1a2225;
    --wt-surface-2: #202a2d;
    --wt-line: #354044;
    --wt-text: #e6e5dc;
    --wt-muted: #a2aaa6;
    --wt-faint: #77827e;
    --wt-red: #a9473e;
    --wt-red-hover: #bd5147;
    --wt-sand: #c0ad7d;
}
html { background: var(--wt-ink); }
body {
    color: var(--wt-text);
    background: var(--wt-ink);
    font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
}
.wt-portal-page .content { padding-top: 68px; background: var(--wt-ink); }
.wt-portal-page .content__background { display: none; }
.wt-portal-page .header {
    position: absolute;
    top: 0;
    height: 68px;
    padding: 0;
    background: #171e20;
    border-bottom: 1px solid #30393b;
    box-shadow: none;
}
.wt-portal-page .header__wrapper {
    width: min(1160px, calc(100% - 48px));
    min-width: 0;
    gap: 30px;
}
.wt-portal-page .header__logo,
.wt-portal-page .header__logo_zh { margin: 0 16px 0 0; gap: 9px; }
.wt-portal-page .header__logo-mark {
    width: 34px;
    height: 34px;
    color: #f7f3e9;
    background: var(--wt-red);
    border-radius: 2px;
    font: 800 15px/1 "Arial Narrow", Arial, sans-serif;
    letter-spacing: -.5px;
}
.wt-portal-page .header__logo-text {
    color: #eeece4;
    font: 700 18px/1 Arial, sans-serif;
    letter-spacing: .025em;
    text-transform: none;
}
.wt-portal-page .header-nav { gap: clamp(14px, 2vw, 26px); }
.wt-portal-page .header-nav__item-name {
    padding: 9px 0;
    color: #b6bfba;
    font: 500 13px/1.2 "Microsoft YaHei UI", sans-serif;
    letter-spacing: 0;
    border: 0;
}
.wt-portal-page .header-nav__item-name:hover,
.wt-portal-page .header-nav__item--active .header-nav__item-name { color: #f0e6cf; }
.wt-portal-page .header-nav__button.button {
    min-height: 34px;
    padding: 0 13px;
    color: #f3eee5;
    background: var(--wt-red);
    border: 0;
    border-radius: 2px;
    box-shadow: none;
    font-size: 12px;
}
.wt-portal-page .header-nav__button.button:hover { background: var(--wt-red-hover); transform: none; }
.wt-portal-page .promo__content.legal-content {
    display: block;
    width: min(1160px, calc(100% - 48px));
    margin: 38px auto 76px;
    padding: 0;
}
.wt-portal-page .legal-content h1 { color: var(--wt-text); }
.wt-portal-page .subtitle { color: var(--wt-muted); }
.wt-portal-page .button {
    min-height: 42px;
    padding: 0 18px;
    color: var(--wt-text);
    background: #20292c;
    border: 1px solid #4a5557;
    border-radius: 2px;
    box-shadow: none;
    font: 600 13px/1.2 "Microsoft YaHei UI", sans-serif;
}
.wt-portal-page .button:hover { color: #fff; background: #2a3538; border-color: #86918b; transform: none; box-shadow: none; }
.wt-portal-page .button--red-bg {
    color: #fff;
    background: var(--wt-red);
    border-color: var(--wt-red);
}
.wt-portal-page .button--red-bg:hover { background: var(--wt-red-hover); border-color: var(--wt-red-hover); }

.wt-home, .wt-directory { width: 100%; }
.wt-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr);
    min-height: 344px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    background: var(--wt-surface);
    border: 1px solid var(--wt-line);
    border-radius: 2px;
    box-shadow: none;
}
.wt-home-hero::before, .wt-home-hero::after { display: none; }
.wt-home-hero__copy {
    z-index: 1;
    align-self: center;
    max-width: 650px;
    padding: 40px 44px;
}
.wt-kicker {
    margin: 0 0 17px;
    color: var(--wt-sand);
    font: 600 11px/1.5 "Arial Narrow", "Microsoft YaHei UI", sans-serif;
    letter-spacing: .09em;
}
.wt-kicker span { padding: 0 5px; color: #69736f; }
.wt-home-hero h1 {
    margin: 0 0 17px;
    color: #f0eee5;
    font: 700 clamp(30px, 3.6vw, 43px)/1.32 "Microsoft YaHei UI", "PingFang SC", sans-serif;
    letter-spacing: -.025em;
}
.wt-home-hero h1 em { color: inherit; font-style: normal; }
.wt-home-hero__intro {
    max-width: 500px;
    margin: 0;
    color: #b3bcb6;
    font-size: 15px;
    line-height: 1.9;
}
.wt-home-hero__actions { display: flex; align-items: center; gap: 22px; margin-top: 25px; }
.wt-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    min-height: 41px;
    padding: 0 15px;
    color: #fff;
    background: var(--wt-red);
    border: 1px solid var(--wt-red);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 650;
}
.wt-primary-link:hover { color: #fff; background: var(--wt-red-hover); }
.wt-primary-link span { font-size: 17px; line-height: 1; }
.wt-text-link { color: #d7d7ce; font-size: 13px; border-bottom: 1px solid #68716d; padding-bottom: 3px; }
.wt-text-link:hover { color: #fff; border-color: #d7d7ce; }
.wt-home-hero__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    color: #85908b;
    font-size: 11px;
}
.wt-home-hero__note i { width: 3px; height: 3px; background: #7e8882; border-radius: 50%; }
.wt-home-hero__visual {
    position: relative;
    min-width: 0;
    min-height: 344px;
    margin: 0;
    overflow: hidden;
    background: #263136;
    border-left: 1px solid var(--wt-line);
}
.wt-home-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 34, 37, .26), transparent 35%), linear-gradient(0deg, rgba(9, 14, 16, .54), transparent 38%);
    pointer-events: none;
}
.wt-home-hero__visual img { width: 100%; height: 100%; min-height: 344px; display: block; object-fit: cover; filter: saturate(.78) contrast(1.04); }
.wt-home-hero__visual figcaption {
    position: absolute;
    z-index: 1;
    right: 17px;
    bottom: 13px;
    color: rgba(235, 235, 224, .72);
    font: 600 9px/1 Arial, sans-serif;
    letter-spacing: .12em;
}
.wt-category-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--wt-line);
    color: var(--wt-muted);
}
.wt-category-nav > span { padding: 15px 20px 15px 0; color: var(--wt-faint); font-size: 11px; }
.wt-category-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 15px 18px; color: #c6cdc7; border-left: 1px solid #2b3538; font-size: 12px; }
.wt-category-nav a:hover { color: #f4e7c6; background: rgba(255,255,255,.025); }
.wt-category-nav b { color: var(--wt-sand); font: 600 11px Arial, sans-serif; }
.wt-category-nav a:last-child { margin-left: auto; color: #d2bba0; }
.wt-home-section, .wt-directory-section { margin: 42px 0 0; scroll-margin-top: 92px; }
.wt-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 15px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--wt-line);
}
.wt-section-head h2 { margin: 4px 0 0; color: #e9e8df; font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.wt-section-index { color: #9b8d68; font: 600 10px/1.4 "Arial Narrow", Arial, sans-serif; letter-spacing: .09em; }
.wt-section-head > a { color: #c5b68f; font-size: 12px; white-space: nowrap; }
.wt-section-head > a:hover { color: #eee1bf; }
.wt-section-head > a span { padding-left: 6px; }
.wt-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.wt-entry {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 158px;
    padding: 17px 18px 16px;
    color: var(--wt-text);
    background: transparent;
    border: 0;
    border-bottom: 1px solid #303a3d;
    border-radius: 0;
    box-shadow: none;
    transition: background .16s ease;
}
.wt-entry::after { display: none; }
.wt-entry:hover { color: #fff; background: rgba(255,255,255,.035); border-color: #4b5657; transform: none; box-shadow: none; }
.wt-entry__meta { display: flex; justify-content: space-between; gap: 12px; color: #8c9892; font-size: 11px; }
.wt-entry__meta span:first-child { color: #c0ad7d; }
.wt-entry h3 { margin: 13px 0 7px; color: #e8e7df; font-size: 17px; font-weight: 650; line-height: 1.45; }
.wt-entry p { margin: 0 0 12px; color: #9eaaa4; font-size: 13px; line-height: 1.65; }
.wt-entry__more { margin-top: auto; color: #c7b486; font-size: 11px; }
.wt-empty-note { margin: 0; padding: 16px 0; color: #89948f; font-size: 13px; border-bottom: 1px solid #303a3d; }
.wt-resource-list { border-top: 1px solid #303a3d; }
.wt-resource-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 170px 22px;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 14px 12px;
    color: #e3e4db;
    border-bottom: 1px solid #303a3d;
}
.wt-resource-row:hover { color: #fff; background: rgba(255,255,255,.035); }
.wt-resource-row__kind { color: #c0ad7d; font-size: 11px; }
.wt-resource-row__name { min-width: 0; font-size: 14px; font-weight: 600; }
.wt-resource-row__name small { display: block; margin-top: 3px; overflow: hidden; color: #8f9a94; font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.wt-resource-row__meta { color: #84908b; font-size: 11px; text-align: right; }
.wt-resource-row__arrow { color: #c0ad7d; text-align: right; }
.wt-creator-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 56px 0 0;
    padding: 22px 0 0;
    border-top: 1px solid #4a4c43;
}
.wt-creator-strip h2 { margin: 5px 0 4px; color: #e4e3da; font-size: 18px; font-weight: 650; }
.wt-creator-strip p { margin: 0; color: #929d97; font-size: 12px; line-height: 1.7; }
.wt-creator-strip > a { flex: 0 0 auto; color: #d2bd8c; font-size: 12px; }
.wt-creator-strip > a:hover { color: #f0e4c8; }
.wt-creator-strip > a span { margin-left: 8px; }

.wt-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 2px 0 24px; }
.wt-page-heading .wt-kicker { margin-bottom: 10px; }
.wt-page-heading h1 { margin: 0 0 8px; color: #eceae1; font-size: clamp(29px, 4vw, 38px); font-weight: 680; line-height: 1.2; text-align: left; }
.wt-page-heading p:not(.wt-kicker) { margin: 0; color: #9fa9a3; font-size: 13px; line-height: 1.7; }
.wt-page-heading__count { flex: 0 0 auto; padding-bottom: 3px; color: #aeb6ae; font-size: 12px; }
.wt-search { display: flex; gap: 0; margin: 0 0 18px; border: 1px solid #465154; background: #171f22; }
.wt-search input { flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px; color: #e7e7df; background: transparent; border: 0; outline: 0; font: 13px "Microsoft YaHei UI", sans-serif; }
.wt-search input::placeholder { color: #78847e; }
.wt-search input:focus { box-shadow: inset 0 0 0 1px #b5a274; }
.wt-search button { flex: 0 0 104px; color: #f3eee5; background: #3a4648; border: 0; border-left: 1px solid #566164; cursor: pointer; font: 600 12px "Microsoft YaHei UI", sans-serif; }
.wt-search button:hover { background: #4a5759; }
.wt-search button span { margin-left: 8px; }
.wt-directory-nav { display: flex; gap: 24px; padding: 0 0 14px; border-bottom: 1px solid #3b4548; }
.wt-directory-nav a { color: #c0c7c0; font-size: 12px; }
.wt-directory-nav a:hover { color: #f1e4c8; }
.wt-directory-nav b { margin-left: 5px; color: #a89568; font: 600 11px Arial, sans-serif; }
.wt-directory-section { margin-top: 30px; }
.wt-directory-section .wt-section-head { margin-bottom: 10px; }
.wt-directory-section .wt-section-head h2 { font-size: 20px; }
.wt-portal-page .portal-back { margin-bottom: 14px; }
.wt-portal-page .portal-back a { color: #c6b17e; font-size: 12px; }
.wt-portal-page .legal-card {
    padding: 22px 24px;
    color: var(--wt-text);
    background: #1a2225;
    border: 1px solid var(--wt-line);
    border-radius: 2px;
    box-shadow: none;
}
.wt-portal-page .app-page { max-width: 1040px; }
.wt-portal-page .app-page__hero {
    padding: 23px 25px;
    background: #1a2225;
    border: 1px solid var(--wt-line);
    border-top: 1px solid var(--wt-line);
    border-radius: 2px;
}
.wt-portal-page .app-page__eyebrow { color: #bca775; font-size: 10px; letter-spacing: .06em; }
.wt-portal-page .app-page__heading h1 { font-size: 31px; }
.wt-portal-page .app-page__version { background: #141b1d; border: 1px solid #3a4548; border-radius: 2px; }
.wt-portal-page .app-page__version strong { color: #dfd1aa; }
.wt-portal-page .app-page__rich h2,
.wt-portal-page .app-page__rich h3,
.wt-portal-page .app-page__rich h4 { color: #d0bd8c; }
.wt-portal-page .app-page__rich a,
.wt-portal-page .app-page__source { color: #d2bd8c; }
.wt-portal-page .app-page__sidebar h2 { font-size: 17px; }
.wt-portal-page .portal-announcement { border-radius: 2px; }
.wt-portal-page .portal-changelog { border-radius: 2px; background: #111719; }
.wt-portal-page .site-footer {
    padding: 27px 20px 22px;
    background: #0e1315;
    border-top: 1px solid #30393b;
}
.wt-portal-page .site-footer__nav { gap: 8px 20px; }
.wt-portal-page .site-footer__nav a { color: #b4a477; font-size: 12px; }
.wt-portal-page .site-footer__note { color: #77827d; font-size: 11px; }
.wt-portal-page .site-footer img { opacity: .82; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
    .wt-home-hero { grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); }
    .wt-home-hero__copy { padding: 30px; }
    .wt-home-hero h1 { font-size: 34px; }
    .wt-resource-row { grid-template-columns: 72px minmax(0, 1fr) 130px 18px; gap: 10px; }
}
@media (max-width: 760px) {
    .wt-portal-page .promo__content.legal-content { width: min(100% - 32px, 620px); margin-top: 25px; }
    .wt-home-hero { grid-template-columns: 1fr; }
    .wt-home-hero__copy { padding: 28px 24px; }
    .wt-home-hero h1 { font-size: 32px; }
    .wt-home-hero__visual { min-height: 220px; border-top: 1px solid var(--wt-line); border-left: 0; }
    .wt-home-hero__visual img { min-height: 220px; max-height: 280px; }
    .wt-entry-grid { grid-template-columns: 1fr; }
    .wt-entry { min-height: 142px; }
    .wt-page-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .wt-category-nav { align-items: stretch; }
    .wt-category-nav > span { display: none; }
    .wt-category-nav a { padding: 13px 11px; }
    .wt-category-nav a:last-child { margin-left: 0; }
    .wt-resource-row { grid-template-columns: 64px minmax(0, 1fr) 18px; }
    .wt-resource-row__meta { display: none; }
    .wt-creator-strip { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 500px) {
    .wt-portal-page .content { padding-top: 52px; }
    .wt-portal-page .promo__content.legal-content { width: calc(100% - 28px); margin: 16px auto 42px; padding: 0; }
    .wt-portal-page .mobile-bar { background: #171e20; border-bottom: 1px solid #30393b; }
    .wt-portal-page .header { background: #171e20; }
    .wt-portal-page .header-nav__item { background: #1a2225; border-bottom-color: #30393b; }
    .wt-portal-page .header-nav__item-name { color: #d4d8d1; }
    .wt-home-hero__copy { padding: 24px 19px; }
    .wt-home-hero h1 { font-size: 29px; }
    .wt-home-hero__intro { font-size: 13px; }
    .wt-home-hero__actions { align-items: flex-start; flex-direction: column; gap: 14px; }
    .wt-home-hero__note { flex-wrap: wrap; margin-top: 22px; }
    .wt-section-head { align-items: flex-start; }
    .wt-section-head h2 { font-size: 19px; }
    .wt-category-nav a { flex: 1 1 45%; border-bottom: 1px solid #303a3d; }
    .wt-directory-nav { gap: 15px; }
    .wt-directory-nav a { font-size: 11px; }
    .wt-search button { flex-basis: 82px; }
    .wt-portal-page .legal-card { padding: 16px; }
    .wt-portal-page .app-page__layout { grid-template-columns: 1fr; }
    .wt-portal-page .app-page__sidebar { order: -1; }
}
@media (min-width: 501px) and (max-width: 760px) {
    .wt-portal-page .header__wrapper { width: calc(100% - 28px); gap: 14px; }
    .wt-portal-page .header__logo,
    .wt-portal-page .header__logo_zh { margin-right: 4px; }
    .wt-portal-page .header-nav { gap: 11px; }
    .wt-portal-page .header-nav__item-name { font-size: 11px; }
    .wt-portal-page .header__logo-text { font-size: 15px; }
}
@media (max-width: 500px) {
    .wt-portal-page .header {
        top: 52px;
        height: calc(100% - 52px);
        z-index: 550;
        padding: 0;
        overflow-y: auto;
    }
    .wt-portal-page .header__wrapper { width: 100%; padding: 6px 0 0; }
    .wt-portal-page .header-nav { width: 100%; border-top: 1px solid #30393b; }
}


/* WT Translator page — typography and layout aligned with the editorial site */
.wt-translator { width: 100%; }
.wt-translator__crumb { display:flex; align-items:center; gap:10px; margin: 0 0 16px; padding-bottom: 12px; border-bottom:1px solid var(--wt-line); color:#85918b; font-size:11px; }
.wt-translator__crumb a { color:#c7b486; }
.wt-translator__hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(300px,.86fr); min-height:340px; border:1px solid var(--wt-line); background:var(--wt-surface); }
.wt-translator__intro { align-self:center; padding:38px 42px; }
.wt-translator__intro .wt-kicker { margin-bottom:13px; }
.wt-translator__intro h1 { margin:0; color:#f0eee5; font:700 clamp(34px,4.2vw,48px)/1.18 "Microsoft YaHei UI","PingFang SC",sans-serif; letter-spacing:-.035em; text-align:left; }
.wt-translator__intro h1 span { color:#d2c49d; font-size:.72em; letter-spacing:0; }
.wt-translator__lead { margin:17px 0 7px; color:#e5e1d5; font-size:17px; font-weight:600; line-height:1.7; }
.wt-translator__summary { max-width:540px; margin:0; color:#aab5ae; font-size:14px; line-height:1.9; }
.wt-translator__actions { display:flex; align-items:center; flex-wrap:wrap; gap:22px; margin-top:22px; }
.wt-translator__version { display:flex; align-items:baseline; gap:10px; margin-top:28px; padding-top:14px; border-top:1px solid #354043; color:#89958e; font-size:11px; }
.wt-translator__version strong { color:#e4dfcc; font:650 17px/1.2 "Segoe UI",sans-serif; }
.wt-translator__version-note { color:#7f8b84; }
.wt-translator__visual { position:relative; min-width:0; min-height:340px; margin:0; overflow:hidden; border-left:1px solid var(--wt-line); background:#20292c; }
.wt-translator__visual img { display:block; width:100%; height:100%; min-height:340px; object-fit:cover; filter:saturate(.78) contrast(1.06); }
.wt-translator__visual figcaption { position:absolute; right:14px; bottom:12px; color:rgba(245,243,232,.72); font:600 9px/1 Arial,sans-serif; letter-spacing:.1em; }
.wt-translator__section { margin-top:43px; }
.wt-translator__section .wt-section-head { margin-bottom:8px; }
.wt-translator__feature-list { border-top:1px solid #3b4548; }
.wt-translator__feature-list article { display:grid; grid-template-columns:54px minmax(0,1fr); gap:15px; padding:18px 4px; border-bottom:1px solid #303a3d; }
.wt-translator__feature-list article > span { color:#b5a477; font:600 12px/1.6 "Segoe UI",sans-serif; }
.wt-translator__feature-list h3 { margin:0 0 5px; color:#e4e4db; font-size:15px; font-weight:650; }
.wt-translator__feature-list p { max-width:760px; margin:0; color:#9da9a2; font-size:13px; line-height:1.8; }
.wt-translator__download { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:42px; padding:23px 0; border-top:1px solid #596057; border-bottom:1px solid #303a3d; }
.wt-translator__download h2 { margin:5px 0 5px; color:#eceae1; font-size:21px; font-weight:650; }
.wt-translator__download p { margin:0; color:#9da9a2; font-size:12px; line-height:1.7; }
.wt-translator__download-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:16px; }
.wt-translator__download-actions small { flex-basis:100%; color:#849089; font-size:11px; text-align:right; }
.wt-translator__changelog pre { overflow:auto; margin:0; padding:14px 16px; color:#c3c9c1; background:#151d20; border:1px solid #303a3d; font:12px/1.8 Consolas,monospace; white-space:pre-wrap; }
.wt-translator__disclaimer { margin:35px 0 0; padding-top:13px; color:#7f8984; border-top:1px solid #303a3d; font-size:11px; line-height:1.8; }
@media (max-width:760px) {
  .wt-translator__hero { grid-template-columns:1fr; }
  .wt-translator__intro { padding:28px 24px; }
  .wt-translator__visual { min-height:220px; border-top:1px solid var(--wt-line); border-left:0; }
  .wt-translator__visual img { min-height:220px; max-height:280px; }
  .wt-translator__download { align-items:flex-start; flex-direction:column; }
  .wt-translator__download-actions { justify-content:flex-start; }
  .wt-translator__download-actions small { text-align:left; }
}
@media (max-width:500px) {
  .wt-translator__intro { padding:25px 19px; }
  .wt-translator__intro h1 { font-size:35px; }
  .wt-translator__lead { font-size:15px; }
  .wt-translator__actions { align-items:flex-start; flex-direction:column; gap:14px; }
  .wt-translator__feature-list article { grid-template-columns:35px minmax(0,1fr); gap:9px; }
  .wt-translator__download-actions { align-items:flex-start; flex-direction:column; }
}
