:root {
    --header-yellow: #ffd200;
    --search-yellow: #fff8c8;
    --page-bg: #f5f6f7;
    --text-dark: #3c3c3d;
    --text-gray: #767676;
    --text-light: #aca785;
    --line-color: #f0f0f0;
    --white: #ffffff;
    --shadow: 0 0.16rem 0.4rem rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

@font-face {
    font-family: icons;
    src: url('../fonts/icons.woff') format('woff'),
        url('../fonts/icons.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: block;
}

.icon {
    font-family: icons;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    speak: never;
}

.i-search-news::before {
    content: "\f138";
}

.i-arrow-right::before {
    content: "\f109";
}

.i-ic-more-type::before {
    content: "\f122";
}

.i-arrow-right-circle::before {
    content: "\f107";
}

.i-close-bold::before {
    content: "\f10f";
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: clamp(32px, 10vw, 43px);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    max-width: 430px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-dark);
    background: var(--page-bg);
    line-height: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

button,
input {
    border: none;
    outline: none;
    font: inherit;
    background: none;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--white);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    height: 44px;
    padding: 6px 13px 6px 14px;
    background: var(--header-yellow);
}

.header-logo {
    display: flex;
    align-items: center;
    width: 54px;
    height: 32px;
    flex: 0 0 auto;
    margin-right: 10px;
}

.header-logo img {
    height: 26.55px;
    object-fit: contain;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    height: 32px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 16px;
    background: var(--search-yellow);
}

.header-search::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 100%;
    content: "";
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,248,200,0), var(--search-yellow));
}

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    flex: 0 0 auto;
    color: #c4b354;
    font-size: 13px;
    text-align: center;
}

.header-search input {
    width: 100%;
    height: 100%;
    color: var(--text-light);
    font-size: 14px;
    line-height: 14px;
}

.header-search input::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.header-sites {
    width: 47.6px;
    height: 29.6px;
    flex: 0 0 auto;
    margin-left: 10px;
    color: #6b5d00;
    font-size: 13px;
    line-height: 28px;
    text-align: center;
    border: 1px solid #e3bb00;
    border-radius: 100px;
    background: var(--header-yellow);
}

.header-avatar {
    margin-left: 7px;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: url('../images/ic_home_photo_gray.png') center / cover no-repeat;
}

.content {
    width: 100%;
    background: var(--white);
}

.site-footer {
    padding: 30px 0 36px;
    color: #999;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

.search-panel {
    position: fixed;
    inset: 0;
    z-index: 80;
    padding: 70px 16px 0;
    background: rgba(0,0,0,0.35);
}

.search-panel-inner {
    min-height: 160px;
    padding: 18px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.search-panel strong {
    font-size: 18px;
}

.search-panel button {
    float: right;
    color: var(--text-gray);
    font-size: 14px;
}

.search-panel li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-color);
    font-size: 16px;
    line-height: 1.35;
}

