/* metromanexpanse.com 的样式。只有这一个文件，不用脚本。
   颜色：黑白灰，加一个蓝和一个金（和 MetroMan Japan 的 App 用的是同样的两个颜色）。
   正文里的链接都带下划线：不只靠颜色表达“这是链接”。 */

:root {
    --page: #ffffff;
    --text: #1c1c1e;
    --soft: #5c5c61;
    --line: #dcdce0;
    --card: #f5f5f7;
    --link: #165e83;
    --solid: #165e83;
    --tint: #eef5f9;
    --gold: #e6b422;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #101012;
        --text: #f2f2f4;
        --soft: #a9a9b0;
        --line: #36363b;
        --card: #1a1a1d;
        --link: #6cb6de;
        --solid: #165e83;
        --tint: #13212a;
        --gold: #e6b422;
    }
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans",
        "Hiragino Kaku Gothic ProN", "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei",
        "Yu Gothic", Meiryo, sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

.wrap {
    max-width: 920px;
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* 页头：左边名称和菜单，右边切换语言 */

.site-header {
    border-bottom: 1px solid var(--line);
    background: var(--page);
}

.header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 28px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text);
    text-decoration: none;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 22px;
    flex: 1;
    font-size: 15px;
    font-weight: 600;
}

.menu a {
    color: var(--text);
    text-decoration: none;
}

.menu a:hover,
.menu a:focus-visible {
    color: var(--link);
    text-decoration: underline;
}

.langs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    font-size: 14px;
}

.langs a {
    color: var(--soft);
}

.langs span {
    font-weight: 700;
}

@media (max-width: 700px) {
    .brand {
        flex: 1;
    }

    .menu {
        order: 3;
        flex: none;
        width: 100%;
        margin-top: 6px;
    }
}

/* 正文（文字为主的页：公司信息、隐私政策、用户协议） */

main.wrap {
    padding-top: 40px;
    padding-bottom: 56px;
    min-height: 60vh;
}

main.wrap > * {
    max-width: 44em;
}

main.wide {
    min-height: 60vh;
}

h1 {
    font-size: 32px;
    line-height: 1.3;
    margin: 0 0 14px;
}

h2 {
    font-size: 21px;
    line-height: 1.4;
    margin: 40px 0 10px;
}

h3 {
    font-size: 17px;
    margin: 24px 0 6px;
}

p,
ul,
ol {
    margin: 0 0 14px;
}

ul,
ol {
    padding-left: 1.4em;
}

li {
    margin-bottom: 6px;
}

.lead {
    font-size: 19px;
    color: var(--soft);
}

.note {
    color: var(--soft);
    font-size: 15px;
}

.draft {
    border: 1px solid var(--line);
    border-left: 4px solid var(--text);
    background: var(--card);
    padding: 10px 14px;
    font-size: 15px;
}

/* 按钮 */

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 6px;
}

.button {
    display: inline-block;
    border: 1.5px solid var(--link);
    border-radius: 999px;
    padding: 8px 22px;
    font-weight: 600;
    text-decoration: none;
    background: var(--page);
}

.button:hover,
.button:focus-visible {
    text-decoration: underline;
}

/* 实心的按钮：蓝底白字 */
.button.solid {
    background: var(--solid);
    border-color: var(--solid);
    color: #ffffff;
}

/* 主页通栏色块上的两个按钮：金底黑字，和白边白字 */
.button.gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #1c1c1e;
}

.button.onhero {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

/* 主页：通栏的色块 */

.hero {
    background: linear-gradient(135deg, #0b3049 0%, #165e83 62%, #2282b3 100%);
    color: #ffffff;
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 12px;
    padding-top: 48px;
    padding-bottom: 32px;
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #bcd9ea;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    letter-spacing: 0.01em;
    margin: 0;
}

.hero .buttons {
    margin-top: 28px;
}

.hero-art {
    width: 100%;
    max-width: 460px;
    height: auto;
    justify-self: center;
}

@media (min-width: 720px) {
    .hero-inner {
        grid-template-columns: 5fr 6fr;
        gap: 40px;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .hero h1 {
        font-size: 72px;
    }

    .hero-art {
        max-width: 520px;
        justify-self: end;
    }
}

/* 一段一段的内容（主页、App 的介绍页） */

.section {
    padding-top: 16px;
    padding-bottom: 44px;
}

.section h2 {
    font-size: 27px;
    margin-top: 36px;
    margin-bottom: 20px;
}

.section h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-top: 10px;
    border-radius: 2px;
    background: var(--gold);
}

.band {
    background: var(--card);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section > p {
    max-width: 44em;
}

/* 产品的卡片 */

.products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

@media (min-width: 820px) {
    .products {
        grid-template-columns: 3fr 2fr;
    }
}

.product {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    background: var(--page);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 20px rgba(0, 0, 0, 0.05);
}

.product.featured {
    border: 2px solid var(--solid);
    background: var(--tint);
}

.product-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.product-head img {
    border-radius: 22%;
    flex: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.product h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
}

.product-sub {
    margin: 0;
    color: var(--soft);
}

.product .buttons {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 12px;
}

@media (max-width: 480px) {
    .product-head img {
        width: 60px;
        height: 60px;
    }

    .product h3 {
        font-size: 21px;
    }
}


/* 特点的格子 */

.tiles {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 560px) {
    .tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 820px) {
    .tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tile {
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px;
}

.tile svg {
    width: 44px;
    height: 44px;
    padding: 9px;
    border-radius: 12px;
    background: var(--tint);
    fill: none;
    stroke: var(--link);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tile h3 {
    margin: 10px 0 4px;
    font-size: 18px;
}

.tile p {
    margin: 0;
    font-size: 15px;
    color: var(--soft);
}

/* App 的介绍页最上面 */

.app-hero {
    background: var(--tint);
    border-bottom: 1px solid var(--line);
}

.app-hero .wrap {
    padding-top: 44px;
    padding-bottom: 40px;
}

.app-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}

.app-head img {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    flex: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.app-head h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.2;
}

.app-head p {
    margin: 0;
    color: var(--soft);
    font-size: 18px;
}

.app-hero .lead {
    max-width: 38em;
    color: var(--text);
}

@media (max-width: 480px) {
    .app-head img {
        width: 72px;
        height: 72px;
    }

    .app-head h1 {
        font-size: 28px;
    }
}

/* 公司信息的表 */

.facts {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0 14px;
}

.facts th,
.facts td {
    text-align: left;
    vertical-align: top;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.facts tr:last-child th,
.facts tr:last-child td {
    border-bottom: 1px solid var(--line);
}

.facts th {
    width: 9.5em;
    padding-right: 16px;
    font-weight: 600;
    color: var(--soft);
}

/* 页脚 */

.site-footer {
    background: var(--card);
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--soft);
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 26px;
    padding-bottom: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin: 0;
}

.footer-links a {
    color: var(--soft);
}

.copyright {
    margin: 0;
}

.copyright strong {
    color: var(--text);
    font-size: 16px;
    margin-right: 8px;
}
