@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700;800;900&display=swap");

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    color: #242832;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 84% 14%, rgba(113, 211, 151, .2), transparent 24%),
        radial-gradient(circle at 16% 38%, rgba(132, 196, 255, .18), transparent 24%),
        linear-gradient(180deg, #fff 0, #fbfffc 48%, #edf9f2 100%);
}
a { color: inherit; text-decoration: none; background-color: transparent; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 100%; line-height: 1.15; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }

.w { max-width: 1500px; margin: 0 auto; padding: 0 36px; }

.head {
    position: sticky;
    top: 8px;
    z-index: 20;
    width: 100%;
    max-width: 1500px;
    min-height: 72px;
    margin: 8px auto 0;
    padding: 0 28px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #e5e7ea;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(30, 35, 42, .06);
    backdrop-filter: blur(18px);
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}
.brand-mark {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #090b10;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    font-weight: 800;
}
.brand h1 {
    color: #11141a;
    font-family: "Instrument Serif", "Songti SC", "STSong", serif;
    font-size: 31px;
    font-weight: 400;
    line-height: 1;
}
.top-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2vw, 32px);
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}
.top-nav::-webkit-scrollbar { display: none; }
.top-nav a {
    position: relative;
    flex: 0 0 auto;
    padding: 10px 0;
    color: #1f252c;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.top-nav a.nav-home::after,
.top-nav a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: #1f252c;
    border-radius: 999px;
}
.compact-search {
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-wrapper { position: relative; display: flex; align-items: center; }
.search,
.hero-search input {
    height: 44px;
    border: 1px solid #d8dce0;
    border-radius: 999px;
    color: #242832;
    outline: 0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(30, 35, 42, .05);
    -webkit-appearance: none;
}
.search {
    width: 220px;
    padding: 0 34px 0 16px;
    font-size: 14px;
}
.search:focus,
.hero-search input:focus { border-color: #9ba2a8; box-shadow: 0 0 0 4px rgba(36, 40, 50, .08); }
.search::-webkit-search-cancel-button,
.search::-webkit-search-decoration,
.search::-webkit-search-results-button,
.search::-webkit-search-results-decoration,
.hero-search input::-webkit-search-cancel-button { display: none; }
.search-clear {
    display: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    color: #6e777f;
    background: #f1f2f3;
    cursor: pointer;
    line-height: 1;
}
.Button,
.hero-search button {
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #252a30;
    box-shadow: 0 18px 36px rgba(20, 24, 29, .18);
}
.Button { width: 72px; text-align: center; }
.buttonn {
    width: 100%;
    height: 100%;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}
.hero-search button {
    border: 0;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 850;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr);
    gap: 62px;
    align-items: center;
    min-height: 560px;
    padding-top: 42px;
    padding-bottom: 48px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 82% 20%, rgba(82, 199, 130, .36), transparent 30%),
        radial-gradient(circle at 36% 92%, rgba(111, 184, 255, .3), transparent 32%),
        radial-gradient(circle at 72% 72%, rgba(255, 200, 132, .16), transparent 30%),
        linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,.9) 52%, #fff 100%),
        linear-gradient(180deg, rgba(230,250,236,.92) 0, rgba(255,255,255,0) 50%);
}
.hero-copy h2 {
    max-width: 840px;
    color: #11141a;
    font-family: "Instrument Serif", "Songti SC", "STSong", serif;
    font-size: clamp(54px, 7vw, 96px);
    font-weight: 400;
    line-height: 1.03;
    letter-spacing: 0;
}
.hero-copy p {
    max-width: 660px;
    margin-top: 26px;
    color: #66717a;
    font-size: 18px;
    line-height: 1.86;
}
.hero-search {
    max-width: 650px;
    margin-top: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 126px;
    gap: 12px;
}
.hero-search input { width: 100%; height: 56px; padding: 0 20px; font-size: 16px; }
.hero-search button { height: 56px; }
.trust-list {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.trust-list span {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #e5e7ea;
    border-radius: 999px;
    color: #4f5962;
    background: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 750;
}
.trust-list span:nth-child(1) { color: #148e51; background: #ddf8e7; border-color: #bfeacb; }
.trust-list span:nth-child(2) { color: #5b5ff0; background: #eceeff; border-color: #d4d7ff; }
.trust-list span:nth-child(3) { color: #c77918; background: #fff0df; border-color: #f0d7b7; }

.hero-panel {
    border: 1px solid #e5e7ea;
    border-radius: 8px;
    padding: 20px;
    background:
        radial-gradient(circle at 0 0, rgba(82, 199, 130, .12), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(232, 249, 238, .9));
    box-shadow: 0 26px 70px rgba(32, 38, 46, .1);
    backdrop-filter: blur(22px);
}
.panel-head,
.hot-tools strong,
.section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}
.panel-head strong,
.hot-tools strong {
    color: #11141a;
    font-size: 17px;
    font-weight: 850;
}
.panel-head a {
    color: #333a42;
    font-size: 14px;
    font-weight: 800;
}
.update-list { margin-top: 18px; display: grid; gap: 10px; }
.update-list a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid #eef0f1;
    border-radius: 8px;
    background: #fff;
}
.update-list a:hover,
.home ul li:hover,
.tool-group:hover {
    transform: translateY(-2px);
    border-color: #c8cdd1;
    box-shadow: 0 24px 56px rgba(30, 35, 42, .1);
}
.update-list a::after,
.home ul li a::after { content: "→"; color: #333a42; font-size: 18px; font-weight: 800; }
.update-list span { color: #11141a; font-weight: 850; }
.update-list em { grid-column: 1; color: #7c858d; font-size: 13px; font-style: normal; line-height: 1.5; }
.hot-tools {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eef0f1;
}
.hot-tools div {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.hot-tools a {
    padding: 8px 11px;
    border-radius: 999px;
    color: #1f9d55;
    background: #eaf8ef;
    font-size: 13px;
    font-weight: 800;
}

.home { padding-top: 18px; padding-bottom: 34px; }
.section-title { margin-bottom: 20px; }
.section-title h2 {
    color: #11141a;
    font-family: "Instrument Serif", "Songti SC", "STSong", serif;
    font-size: 46px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: 0;
}
.section-title p { color: #7c858d; font-size: 15px; line-height: 1.7; }
.search-result-info {
    display: none;
    text-align: left;
    padding: 0 0 18px;
    color: #535d66;
    font-size: 15px;
}
.search-result-info .count { color: #252a30; font-weight: 850; }
.home ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    gap: 16px;
}
.home ul li {
    min-height: 126px;
    border: 1px solid #e5e7ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(30, 35, 42, .06);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home ul li a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 14px;
    min-height: 126px;
    width: 100%;
    padding: 24px;
    color: #11141a;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.25;
}
.home ul li a span {
    display: block;
    margin-top: 8px;
    color: #7c858d;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.home ul li a:hover { color: #11141a; }
.home ul li a strong,
.home ul li a span { grid-column: 1; }
.home ul li a::after {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
}

.tool-groups { padding-top: 18px; padding-bottom: 78px; }
.tool-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.tool-group {
    border: 1px solid #e5e7ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(30, 35, 42, .06);
    padding: 22px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tool-group h3 {
    color: #11141a;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
}
.tool-links {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tool-links a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 12px;
    border: 1px solid #e5e7ea;
    border-radius: 999px;
    color: #333a42;
    background: #f7fbf8;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tool-group:nth-child(3n + 1) .tool-links a { background: #eaf8ef; border-color: #d7eddd; }
.tool-group:nth-child(3n + 2) .tool-links a { background: #edf6ff; border-color: #dbeafa; }
.tool-group:nth-child(3n) .tool-links a { background: #fff4e8; border-color: #f1dfca; }
.tool-links a:hover {
    transform: translateY(-2px);
    border-color: #c8cdd1;
    box-shadow: 0 12px 24px rgba(30, 35, 42, .1);
}

.back-to-top {
    position: fixed;
    right: 28px;
    bottom: 34px;
    z-index: 999;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #252a30;
    box-shadow: 0 18px 35px rgba(15, 23, 42, .22);
    font-size: 22px;
    cursor: pointer;
    display: none;
    transition: all .2s ease;
}
.back-to-top:hover { background: #11141a; transform: translateY(-3px); }

@media (max-width: 1120px) {
    .head { grid-template-columns: auto 1fr; }
    .top-nav { order: 3; grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
    .compact-search { justify-self: end; }
    .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 54px; }
    .hero-panel { max-width: 720px; }
    .tool-group-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .w { padding-left: 18px; padding-right: 18px; }
    .head {
        width: 100%;
        min-height: 62px;
        gap: 14px;
        padding: 0 16px;
        margin-top: 6px;
    }
    .brand-mark { width: 18px; height: 18px; font-size: 18px; }
    .brand h1 { font-size: 26px; }
    .compact-search { grid-column: 1 / -1; justify-self: stretch; }
    .search-wrapper { flex: 1; }
    .search { width: 100%; }
    .top-nav { gap: 14px; }
    .top-nav a { font-size: 13px; }
    .hero { gap: 26px; padding-top: 46px; padding-bottom: 48px; }
    .hero-copy h2 { font-size: 48px; line-height: 1.08; }
    .hero-copy p { margin-top: 18px; font-size: 16px; line-height: 1.78; }
    .hero-search { grid-template-columns: 1fr; margin-top: 24px; }
    .hero-search input,
    .hero-search button { height: 52px; }
    .hero-panel { padding: 16px; }
    .panel-head, .section-title { align-items: start; flex-direction: column; }
    .section-title h2 { font-size: 40px; }
    .home { padding-top: 8px; padding-bottom: 28px; }
    .home ul { grid-template-columns: 1fr; gap: 12px; }
    .home ul li,
    .home ul li a { min-height: 98px; }
    .home ul li a { padding: 20px; font-size: 18px; }
    .tool-groups { padding-top: 8px; padding-bottom: 54px; }
    .tool-group-grid { grid-template-columns: 1fr; }
    .tool-group { padding: 18px; }
    .tool-links { gap: 8px; }
    .tool-links a { width: 100%; justify-content: space-between; border-radius: 8px; }
    .back-to-top { right: 15px; bottom: 20px; width: 40px; height: 40px; font-size: 18px; }
}
