:root {
    --teal: #009688;
    --teal-dark: #00695c;
    --teal-deep: #004d43;
    --ink: #12302d;
    --muted: #67807c;
    --line: #e3ecea;
    --bg: #f4f8f7;
    --gold: #f5a623;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.home {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

body.home img {
    max-width: 100%;
}

body.home a {
    text-decoration: none;
    color: inherit;
}

/* ---------- Header ---------- */
body.home .header.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 22px;
    height: 68px;
    padding: 0 24px;
    margin: 0;
    background: linear-gradient(120deg, #00695c 0%, #00897b 60%, #00a08e 100%);
    box-shadow: 0 2px 14px rgba(3, 54, 49, .18);
}

body.home .logo {
    flex: none;
    line-height: 1;
}

body.home .logo img {
    width: 168px;
    height: auto;
    display: block;
    margin: 0;
}

body.home .menu.pc {
    flex: 1;
    display: flex;
    justify-content: center;
}

body.home .menu.pc ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.home .menu.pc li {
    padding: 8px 15px;
    margin: 0;
    font-size: 15px;
    color: #e8f7f4;
    border: 0;
    border-radius: 999px;
    transition: background .2s ease, color .2s ease;
}

body.home .menu.pc li::before {
    display: none;
}

body.home .menu.pc a {
    color: #e8f7f4;
    display: block;
}

body.home .menu.pc li:hover,
body.home .menu.pc li.active {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

body.home .menu-close {
    display: none;
}

body.home .nav-button {
    display: none;
    cursor: pointer;
}

body.home .nav-button_img {
    height: 30px;
    display: block;
}

body.home .menu.mobile {
    display: none;
}

/* ---------- Hero ---------- */
.home-main {
    display: block;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 24px 58px;
    background:
        radial-gradient(900px 380px at 15% 0%, rgba(255, 255, 255, .14), transparent 60%),
        radial-gradient(700px 320px at 90% 20%, rgba(0, 0, 0, .12), transparent 65%),
        linear-gradient(125deg, #00695c 0%, #00897b 52%, #00a896 100%);
    color: #fff;
    text-align: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 46px;
    background: var(--bg);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: scaleX(1.6);
    opacity: .9;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
}

.hero-kicker {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: -.02em;
    font-weight: 700;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .12);
}

.hero-sub {
    max-width: 700px;
    margin: 16px auto 0;
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.7;
    color: rgba(255, 255, 255, .86);
}

.hero-search {
    display: flex;
    align-items: center;
    max-width: 720px;
    margin: 30px auto 0;
    padding: 6px;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 14px 36px rgba(1, 44, 40, .24);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 20px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 16px;
    color: #12302d;
    font-family: inherit;
}

.hero-search input::placeholder {
    color: #9aacaa;
}

.hero-search select {
    height: 44px;
    padding: 0 10px;
    border: 0;
    border-left: 1px solid var(--line);
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: #3f5b57;
    font-family: inherit;
    cursor: pointer;
}

.hero-search button {
    flex: none;
    height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--teal-deep);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s ease;
}

.hero-search button:hover {
    background: #003c34;
}

.hero-platforms {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 26px auto 0;
}

.hero-platforms a {
    padding: 12px 16px;
    text-align: left;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    transition: background .2s ease, transform .2s ease;
}

.hero-platforms a:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-2px);
}

.hero-platforms strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.hero-platforms span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: rgba(255, 255, 255, .74);
}

/* ---------- Sections ---------- */
.wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    margin-top: 52px;
}

.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.sec-head h2 {
    position: relative;
    margin: 0;
    padding-left: 14px;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -.01em;
    font-weight: 700;
    color: var(--ink);
}

.sec-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 22px;
    margin-top: -11px;
    background: var(--teal);
    border-radius: 4px;
}

.sec-head p {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--muted);
}

.see-more {
    flex: none;
    padding: 7px 15px;
    font-size: 13px;
    color: var(--teal-dark);
    border: 1px solid #cde4e0;
    border-radius: 999px;
    transition: background .2s ease, border-color .2s ease;
}

.see-more:hover {
    background: #e8f4f2;
    border-color: var(--teal);
}

/* ---------- App cards ---------- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 14px;
}

.app-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 96px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.app-card:hover {
    transform: translateY(-3px);
    border-color: #cbe5e1;
    box-shadow: 0 12px 26px rgba(6, 60, 55, .1);
}

.app-icon {
    flex: none;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f0f5f4;
    border-radius: 16px;
}

.app-icon img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.app-body {
    flex: 1;
    min-width: 0;
}

.app-name {
    margin: 0 0 3px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ink);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.app-cate {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.stars {
    position: relative;
    display: inline-block;
    font-size: 13px;
    line-height: 1;
    letter-spacing: 1px;
    color: #dde5e3;
    white-space: nowrap;
}

.stars-base {
    color: #dde5e3;
}

.stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--gold);
}

.score {
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    color: #a86800;
    background: #fff6e5;
    border-radius: 6px;
}

.badge-new {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--teal-dark);
    background: #e6f5f2;
    border-radius: 6px;
}

.app-icon.noimg::after {
    content: "APP";
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #8fa8a4;
}

/* ---------- Category tabs ---------- */
.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 18px;
}

.tab {
    padding: 9px 16px;
    font-size: 14px;
    font-family: inherit;
    color: #47615d;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.tab em {
    margin-left: 4px;
    font-style: normal;
    font-size: 12px;
    color: var(--muted);
}

.tab:hover {
    border-color: #b9dcd6;
}

.tab.active {
    color: #fff;
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.tab.active em {
    color: rgba(255, 255, 255, .75);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.cate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
}

.cate-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 42px 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.cate-card:hover {
    transform: translateY(-2px);
    border-color: #b9dcd6;
    box-shadow: 0 10px 22px rgba(6, 60, 55, .08);
}

.cate-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.cate-count {
    font-size: 12px;
    color: var(--muted);
}

.cate-card::after {
    content: "\2192";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #b9cbc9;
    transition: transform .18s ease, color .18s ease;
}

.cate-card:hover::after {
    transform: translate(3px, -50%);
    color: var(--teal);
}

/* ---------- About ---------- */
.about {
    padding: 32px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.about h2 {
    position: relative;
    margin: 0;
    padding-left: 14px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
}

.about h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 20px;
    margin-top: -10px;
    background: var(--teal);
    border-radius: 4px;
}

.about p {
    max-width: 980px;
    margin: 12px 0 0;
    font-size: 14px;
    line-height: 1.8;
    color: #546a67;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.about-stats div {
    padding: 16px;
    background: #f2f8f7;
    border-radius: 12px;
}

.about-stats strong {
    display: block;
    font-size: 26px;
    line-height: 1.2;
    color: var(--teal-dark);
}

.about-stats span {
    font-size: 12px;
    color: var(--muted);
}

/* ---------- Footer ---------- */
body.home footer {
    margin-top: 60px;
    padding: 44px 24px 28px;
    background: #0c2b27;
    color: #a9c1bd;
}

body.home .footer {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.home .disclaimer {
    max-width: 1000px;
    font-size: 13px;
    line-height: 1.75;
    color: #9db7b2;
}

body.home .ft-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

body.home .ft-list li {
    padding: 0;
}

body.home .ft-list a {
    font-size: 13px;
    color: #b6ccc8;
}

body.home .ft-list a:hover {
    color: #fff;
}

body.home .footer > div:last-child {
    font-size: 12px;
    color: #7f9a95;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    body.home .nav-button {
        display: block;
        order: -1;
    }

    body.home .menu.pc {
        display: none;
    }

    body.home .logo img {
        width: 146px;
    }

    body.home .menu.mobile {
        display: none;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        z-index: 99;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
        background: #fff;
        box-shadow: 0 16px 30px rgba(4, 40, 36, .18);
    }

    body.home .menu.mobile.open {
        display: block;
    }

    body.home .menu.mobile ul {
        display: block;
        margin: 0;
        padding: 6px 0;
        list-style: none;
    }

    body.home .menu.mobile li {
        padding: 14px 24px;
        border-bottom: 1px solid #eef4f3;
    }

    body.home .menu.mobile a {
        display: block;
        font-size: 15px;
        color: var(--ink);
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 52px 16px 46px;
    }

    .hero::after {
        height: 28px;
    }

    .hero-search {
        flex-wrap: wrap;
        border-radius: 18px;
        padding: 8px;
    }

    .hero-search input {
        flex: 1 1 100%;
        height: 44px;
        border-bottom: 1px solid var(--line);
    }

    .hero-search select {
        flex: 1;
        height: 42px;
        border-left: 0;
        padding-left: 20px;
    }

    .hero-search button {
        height: 42px;
        padding: 0 22px;
    }

    .hero-platforms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wrap {
        padding: 0 16px;
    }

    .section {
        margin-top: 40px;
    }

    .sec-head h2 {
        font-size: 20px;
    }

    .app-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .app-card {
        padding: 12px;
    }

    .about {
        padding: 22px;
    }

    .about-stats strong {
        font-size: 22px;
    }
}

@media (max-width: 460px) {
    .app-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .app-body {
        width: 100%;
    }

    .rating {
        justify-content: center;
    }
}
