:root {
    --ud-blue: #2879f5;
    --ud-blue-dark: #1458d0;
    --ud-navy: #0c2858;
    --ud-ink: #17243c;
    --ud-muted: #718097;
    --ud-line: #dbe7f6;
    --ud-soft: #f3f7fd;
    --ud-orange: #ff9d2e;
    --ud-green: #21b889;
    --ud-shadow: 0 22px 62px rgba(21,67,140,.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.wx-update-detail { min-width: 320px; overflow-x: clip; color: var(--ud-ink); background: var(--ud-soft); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
.wx-update-detail a { text-decoration: none; }
.ud-container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.ud-nav-toggle { display: none; }

/* Navigation */
.wx-update-detail #nav { position: sticky; top: 0; z-index: 1100; background: rgba(255,255,255,.98) !important; box-shadow: 0 8px 30px rgba(17,53,109,.08); backdrop-filter: blur(14px); }
.wx-update-detail #nav .pull-left img { filter: none; }
.wx-update-detail #nav .pull-right > a.item,
.wx-update-detail #nav .wx-product-trigger,
.wx-update-detail #nav .wx-function-trigger { color: #26364f !important; }
.wx-update-detail #nav .pull-right > a.item[href="/news/"],
.wx-update-detail #nav .pull-right > a.item.is-current { position: relative; color: var(--ud-blue) !important; }
.wx-update-detail #nav .pull-right > a.item[href="/news/"]::after,
.wx-update-detail #nav .pull-right > a.item.is-current::after { content: ""; position: absolute; right: 0; bottom: 13px; left: 0; height: 3px; border-radius: 3px; background: var(--ud-blue); }
.wx-update-detail #nav.ud-nav-scrolled { box-shadow: 0 12px 34px rgba(18,51,103,.13); }

/* Release header */
.ud-hero { position: relative; overflow: hidden; padding: 54px 0 62px; background: linear-gradient(120deg, #0d2b60 0%, #155acf 58%, #2d87f5 100%); }
.ud-hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -330px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 72px rgba(255,255,255,.025), 0 0 0 144px rgba(255,255,255,.018); }
.ud-breadcrumb { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 32px; color: rgba(255,255,255,.58); font-size: 13px; }
.ud-breadcrumb a { color: rgba(255,255,255,.75); }
.ud-breadcrumb a:hover { color: #fff; }
.ud-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1fr) 270px; gap: 62px; align-items: end; }
.ud-label { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #b9e2ff; font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.ud-label::before { content: ""; width: 30px; height: 3px; border-radius: 3px; background: var(--ud-orange); }
.ud-hero h1 { max-width: 820px; margin: 0; color: #fff; font-size: clamp(34px,4vw,52px); line-height: 1.32; letter-spacing: -.035em; }
.ud-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 22px; color: rgba(255,255,255,.64); font-size: 13px; }
.ud-meta span { display: inline-flex; align-items: center; gap: 7px; }
.ud-meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #73d6ff; }
.ud-version-card { padding: 26px; border: 1px solid rgba(255,255,255,.19); border-radius: 20px; background: rgba(8,39,97,.24); box-shadow: 0 22px 55px rgba(5,30,78,.2); backdrop-filter: blur(12px); }
.ud-version-card small { display: block; color: #9fdcff; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.ud-version-date { display: block; margin-top: 10px; color: #fff; font-size: 29px; font-weight: 800; letter-spacing: -.02em; }
.ud-version-status { display: flex; align-items: center; gap: 9px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.72); font-size: 13px; }
.ud-version-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #57ddb4; box-shadow: 0 0 0 5px rgba(87,221,180,.12); }

/* Article */
.ud-main { padding: 54px 0 96px; }
.ud-layout { display: grid; grid-template-columns: minmax(0,830px) 300px; gap: 28px; align-items: start; }
.ud-article { overflow: hidden; border: 1px solid var(--ud-line); border-radius: 22px; background: #fff; box-shadow: var(--ud-shadow); }
.ud-article-intro { padding: 32px 42px; border-bottom: 1px solid var(--ud-line); background: linear-gradient(135deg,#f7faff,#eef6ff); }
.ud-article-intro span { display: block; margin-bottom: 9px; color: var(--ud-blue); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
.ud-article-intro h2 { margin: 0; color: var(--ud-navy); font-size: 24px; line-height: 1.45; }
.ud-article-intro p { margin: 11px 0 0; color: var(--ud-muted); font-size: 15px; line-height: 1.8; }
.ud-body { padding: 38px 42px 44px; color: #3e4b60; font-size: 16px; line-height: 1.9; }
.ud-body > h1, .ud-body > h2, .ud-body > h3,
.ud-body h1, .ud-body h2, .ud-body h3 { margin: 8px 0 24px !important; color: var(--ud-navy) !important; font-family: inherit !important; font-size: 30px !important; font-weight: 800 !important; line-height: 1.45 !important; }
.ud-body p { max-width: 100%; color: #46556b !important; font-family: inherit !important; font-size: 16px !important; line-height: 1.9 !important; }
.ud-body p.ud-change-line { position: relative; margin: 11px 0 !important; padding: 17px 20px 17px 84px !important; border: 1px solid #e0eaf7; border-radius: 12px; background: #fbfdff; }
.ud-body p.ud-change-line::before { content: attr(data-kind); position: absolute; top: 18px; left: 18px; min-width: 46px; padding: 4px 7px; border-radius: 6px; color: var(--ud-blue); background: #eaf3ff; font-size: 12px; font-weight: 800; line-height: 1.4; text-align: center; }
.ud-body p.ud-change-line[data-kind="新增"]::before { color: #078b66; background: #e5f8f2; }
.ud-body p.ud-change-line[data-kind="修复"]::before { color: #d36c00; background: #fff1df; }
.ud-body p.ud-change-line[data-kind="重构"]::before { color: #7b55ce; background: #f0eaff; }
.ud-body img { display: block; max-width: 100% !important; height: auto !important; margin: 24px auto; border-radius: 12px; }
.ud-body table { display: block; overflow-x: auto; width: 100% !important; margin: 22px 0; border-collapse: collapse; }
.ud-body table td, .ud-body table th { padding: 12px; border: 1px solid var(--ud-line); }
.ud-body a { color: var(--ud-blue); }

.ud-sidebar { position: sticky; top: 100px; display: grid; gap: 16px; }
.ud-side-card { overflow: hidden; border: 1px solid var(--ud-line); border-radius: 18px; background: #fff; box-shadow: 0 14px 38px rgba(22,65,132,.065); }
.ud-side-head { padding: 22px 23px; color: #fff; background: linear-gradient(125deg,var(--ud-blue-dark),var(--ud-blue)); }
.ud-side-head small { display: block; margin-bottom: 7px; color: #bfe1ff; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.ud-side-head strong { font-size: 20px; }
.ud-side-list { display: grid; gap: 0; padding: 8px 22px; }
.ud-side-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 51px; border-bottom: 1px solid #edf2f8; color: #8a98aa; font-size: 13px; }
.ud-side-row:last-child { border-bottom: 0; }
.ud-side-row strong { color: var(--ud-ink); font-size: 14px; }
.ud-module-card { padding: 23px; border: 1px solid var(--ud-line); border-radius: 18px; background: #fff; }
.ud-module-card h3 { margin: 0 0 15px; color: var(--ud-navy); font-size: 17px; }
.ud-modules { display: flex; flex-wrap: wrap; gap: 8px; }
.ud-modules span { padding: 7px 10px; border-radius: 7px; color: #526987; background: #f1f6fd; font-size: 12px; }
.ud-back { display: flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; color: #fff; background: var(--ud-blue); font-size: 14px; font-weight: 700; box-shadow: 0 13px 28px rgba(40,121,245,.2); }
.ud-back:hover { color: #fff; }

.ud-prevnext { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.ud-prevnext-item { display: flex; min-height: 112px; flex-direction: column; justify-content: center; padding: 22px 25px; border: 1px solid var(--ud-line); border-radius: 16px; color: var(--ud-ink); background: #fff; transition: border-color .2s ease, transform .2s ease; }
.ud-prevnext-item:hover { border-color: #a9c9f6; transform: translateY(-2px); }
.ud-prevnext-item small { margin-bottom: 8px; color: #94a4b8; font-size: 12px; }
.ud-prevnext-item strong { display: -webkit-box; overflow: hidden; color: var(--ud-navy); font-size: 15px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ud-prevnext-item--next { text-align: right; }
.ud-prevnext-empty { color: #a2aec0; }

.ud-cta { margin-top: 28px; padding: 34px 38px; border-radius: 20px; color: #fff; background: linear-gradient(115deg,#0f2b5d,#1762d9 66%,#2d86f3); box-shadow: 0 22px 55px rgba(21,84,190,.16); }
.ud-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.ud-cta h2 { margin: 0 0 8px; color: #fff; font-size: 24px; }
.ud-cta p { margin: 0; color: rgba(255,255,255,.7); font-size: 14px; }
.ud-cta a { display: inline-flex; min-width: 142px; height: 48px; align-items: center; justify-content: center; border-radius: 8px; color: #fff; background: var(--ud-orange); font-size: 14px; font-weight: 700; }
.ud-footer { padding: 24px 0; color: #8794a9; background: #0b1f42; font-size: 14px; }
.ud-footer .ud-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ud-footer nav { display: flex; gap: 22px; }
.ud-footer a { color: #c3cbda; }

@media (max-width: 980px) {
    .ud-container { width: min(100% - 32px,760px); }
    .wx-update-detail #nav { height: 76px; padding: 0 16px; }
    .wx-update-detail #nav .pull-left { position: relative; z-index: 3; }
    .wx-update-detail #nav .pull-left img { width: 164px; }
    .ud-nav-toggle { position: relative; z-index: 3; display: block; float: right; width: 44px; height: 44px; margin-top: 16px; border: 0; border-radius: 10px; background: #edf4ff; cursor: pointer; }
    .ud-nav-toggle::before, .ud-nav-toggle::after { content: ""; position: absolute; left: 12px; width: 20px; height: 2px; background: var(--ud-blue); transition: transform .2s ease, top .2s ease; }
    .ud-nav-toggle::before { top: 16px; box-shadow: 0 6px 0 var(--ud-blue); }
    .ud-nav-toggle::after { top: 28px; }
    .ud-nav-toggle[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); box-shadow: none; }
    .ud-nav-toggle[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }
    .wx-update-detail #nav .pull-right { position: fixed; top: 76px; right: 0; left: 0; display: none; max-height: calc(100vh - 76px); overflow: auto; padding: 14px 18px 24px; background: #fff; box-shadow: 0 20px 45px rgba(18,49,99,.16); }
    .wx-update-detail #nav.ud-menu-open .pull-right { display: block; }
    .wx-update-detail #nav .pull-right > a.item { display: block; width: 100%; height: auto; min-height: 48px; padding: 14px 6px; border-bottom: 1px solid #edf2f9; color: #26364f !important; line-height: 20px; }
    .wx-update-detail #nav .pull-right > a.item::after { display: none; }
    .wx-update-detail #nav .demoCenter { display: inline-flex; margin: 16px 8px 0 0 !important; }
    .ud-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .ud-version-card { max-width: 310px; }
    .ud-layout { grid-template-columns: 1fr; }
    .ud-sidebar { position: static; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ud-back { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .ud-container { width: calc(100% - 28px); }
    .ud-hero { padding: 42px 0 48px; }
    .ud-breadcrumb { margin-bottom: 24px; }
    .ud-hero h1 { font-size: 31px; }
    .ud-meta { gap: 12px; }
    .ud-main { padding: 34px 0 68px; }
    .ud-article { border-radius: 18px; }
    .ud-article-intro { padding: 26px 22px; }
    .ud-article-intro h2 { font-size: 21px; }
    .ud-body { padding: 28px 20px 32px; }
    .ud-body h1, .ud-body h2, .ud-body h3 { font-size: 25px !important; }
    .ud-body p.ud-change-line { padding: 56px 17px 17px !important; }
    .ud-body p.ud-change-line::before { top: 16px; left: 16px; }
    .ud-sidebar { grid-template-columns: 1fr; }
    .ud-prevnext { grid-template-columns: 1fr; }
    .ud-prevnext-item--next { text-align: left; }
    .ud-cta { align-items: flex-start; flex-direction: column; padding: 30px 24px; }
    .ud-footer .ud-container { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ud-prevnext-item { transition: none; }
}
