/* 公共基础样式：按截图复刻 sina.cn 移动端 */
@font-face {
    font-family: "SinaHomeFont";
    src: url("../vendor/fonts/SinaHomeFont.woff") format("woff"),
        url("../vendor/fonts/SinaHomeFont.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

:root {
    --sina-red: #f82013;
    --sina-orange: #ff8a00;
    --page-bg: #f2f2f2;
    --line: #eeeeee;
    --text: #222222;
    --muted: #8a8a8a;
    --white: #ffffff;
    --primary: var(--sina-red);
    --border: var(--line);
    --text-sub: var(--muted);
    --surface-soft: #fff4f4;
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 10px;
}

body {
    max-width: 480px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--white);
    color: var(--text);
    font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 1.6rem;
    line-height: 1.5;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input {
    font: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
}

.page {
    padding-bottom: 0;
    background: var(--white);
}

.site-header {
    background: var(--white);
}

.top-bar {
    display: grid;
    grid-template-columns: 13.25rem 9.9rem 1fr;
    align-items: center;
    height: 5.6rem;
    padding: 0 1rem;
    background: linear-gradient(78deg, #ff8600, #fe4910 27%, #fe350e 50%, #ff0000 81%, #e80000);
}

.brand {
    position: relative;
    display: block;
    width: 10.2rem;
    height: 2.8rem;
    overflow: hidden;
    color: #fff;
    background: url("../images/sina2020.svg") left center / 10.2rem 2.8rem no-repeat;
}

.brand-cn,
.brand-en {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.version-switch {
    display: flex;
    width: 9.9rem;
    height: 2.2rem;
    overflow: hidden;
    border-radius: 1.1rem;
    margin-top: 0.4rem;
    background: rgba(0, 0, 0, 0.1);
}

.version-switch a {
    flex: 1;
    height: 2.2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    line-height: 2.2rem;
    text-align: center;
}

.version-switch a.active {
    color: #fff;
    font-size: 1.2rem;
}

.header-tools {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.header-tools a {
    display: inline-block;
    width: 2.1rem;
    height: 2.1rem;
    overflow: hidden;
    color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.header-tools a[aria-label="搜索"] {
    background-image: url("../images/icon-search-official.png");
}

.header-tools a[aria-label="我的"] {
    background-image: url("../images/icon-user-official.png");
}

.header-tools a[aria-label="设置"] {
    background-image: url("../images/icon-gear-official.png");
}

.channel-nav {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 2.4rem;
    row-gap: 0.5rem;
    height: 10.1rem;
    margin-top: -0.5rem;
    padding: 1rem 0 0.4rem;
    overflow: hidden;
    background: #fff;
    border-radius: 0.5rem 0.5rem 0 0;
}

.channel-nav a {
    display: block;
    height: 2.4rem;
    color: #444;
    font-size: 1.6rem;
    line-height: 2.4rem;
    text-align: center;
}

.channel-nav a.active {
    color: #111;
    font-weight: 400;
}
