@charset "UTF-8";
/* ==========================================================================
   伊萨书签 · 主站样式
   结构：tokens → base → layout → hero → nav → about → footer → utilities
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
    --ink: #272727;
    --ink-dim: #5e5e5e;
    --line: #dedede;
    --line-col: #d4d4d5;
    --accent: #ffe400;
    --accent-hover: #eb3c43;
    --hero-ink: #edf3f9;
    --hero-ink-bar: #e3e6e9;
    --hero-ink-quick: #e9e7e7;
    --hero-border: #353535;
    --hero-pill-border: #4b786d;
    --hero-pill-active: #424242;
    --about-bg: #edf3f9;
    --footer-bg: #121212;
    --footer-link: #8a8a8a;
    --footer-link-strong: #9a9a9a;
    --copyright-ink: #979898;
    --qq-ink: #ff5c00;
    --btn-bg: #222228;
    --btn-ink: #949498;
    --col-max: 1460px;
    --narrow-max: 785px;
    --footer-max: 964px;
    --hero-h: 600px;
}

/* ---------- 2. base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    /* 保持浏览器默认字体，不做全局覆盖 */
    background: #fff;
}

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

img {
    vertical-align: middle;
    border: 0;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
}

:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

/* ---------- 3. layout ---------- */
.container {
    width: 100%;
    max-width: var(--col-max);
    margin: 0 auto;
    padding: 0 12px;
}

/* 图标字体（仅 2 个字形：QQ、返回顶部） */
@font-face {
    font-family: "iconfont";
    src: url("../font/iconfont.woff") format("woff");
    font-display: block;
}

.iconfont {
    font-family: "iconfont";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-qq::before {
    content: "\e60a";
}

.icon-top::before {
    content: "\e657";
}

/* ---------- 4. hero ---------- */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: var(--hero-h);
    padding: 29px 0 40px;
    background: url("../img/bg.jpg") center / cover no-repeat;
}

.hero__bar {
    width: 100%;
    height: 33px;
    line-height: 33px;
    font-size: 14px;
    color: var(--hero-ink-bar);
}

/* 顶栏容器沿用原设计的 1100px 宽度 */
.hero__bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    padding: 0;
}

.hero__brand {
    display: flex;
    align-items: center;
    gap: 36px;
}

.hero__date {
    line-height: normal;
    white-space: nowrap;
}

.hero__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__links a {
    color: var(--hero-ink-bar);
}

.hero__links a:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.hero__links img {
    width: 16px;
    height: 16px;
}

.hero__inner {
    width: 100%;
    max-width: var(--narrow-max);
    margin-top: 66px;
    text-align: center;
}

.hero__emblem {
    display: block;
    width: 73px;
    height: 72px;
    margin: 0 auto;
}

.hero__title {
    margin-top: 30px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--hero-ink);
}

/* --- 搜索区 --- */
.search {
    margin-top: 48px;
    color: var(--hero-ink);
}

.search__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 46px 0 39px;
    font-size: 16px;
}

.search__engines {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    /* 原实现是 float + inline-block，胶囊(34px)溢出容器(30px)，这里保持一致 */
    height: 31px;
}

.search__engine {
    font-size: 16px;
    padding: 3px 15px;
    border-radius: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .5s;
    white-space: nowrap;
}

.search__engine[aria-selected="true"] {
    color: var(--hero-pill-active);
    background: #fff;
    border: 2px solid var(--hero-pill-border);
}

.search__trans {
    display: flex;
    align-items: center;
}

.search__trans a {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.search__trans span {
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    padding: 0;
    font-size: 15px;
    background: #000;
    color: #fff;
    border-radius: 3px;
    display: none;
}

.search__trans a:hover span {
    display: block;
}

.search__form {
    display: none;
    position: relative;
    margin-top: 7px;
}

.search__form.is-active {
    display: block;
}

.search__input {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 45px;
    padding-left: 23px;
    font-size: 16px;
    color: #272727;
    border: 2px solid var(--hero-border);
    border-radius: 22px;
    outline: none;
}

.search__input:focus::placeholder {
    color: transparent;
}

.search__submit {
    position: absolute;
    right: 0;
    top: 2px;
    width: 45px;
    height: 41px;
    line-height: 41px;
    text-align: center;
    background: var(--accent);
    border-left: 1px solid var(--hero-border);
    border-radius: 0 22px 22px 0;
    cursor: pointer;
}

.search__submit img {
    width: 18px;
    height: 19px;
}

/* --- 快捷入口 --- */
.quick {
    margin-top: 7px;
    padding-left: 0;
    font-size: 14px;
    color: var(--hero-ink-quick);
    text-align: left;
}

.quick__list {
    white-space: nowrap;
    overflow: hidden;
}

.quick__list li {
    display: inline-block;
    margin: 0 5px;
}

.quick__list a {
    color: var(--hero-ink-quick);
}

.quick__list a span {
    padding: 10px 15px;
}

.quick__list a:hover span {
    color: var(--accent-hover);
}

.quick__list img {
    width: 16px;
    height: 16px;
}

/* --- 滚动公告 --- */
.notice {
    padding-top: 40px;
    font-size: 15px;
    text-align: center;
}

.scroller {
    display: inline-block;
    width: 700px;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: baseline;
}

/* 两份相同文本首尾相接，位移 -50% 即可无缝循环，任何时刻都有文字可见 */
.scroller__inner {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.scroller__track {
    display: inline-block;
    padding-right: 80px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- 5. 导航网格 ---------- */
.nav {
    background: #fff;
}

.nav__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    /* 通屏：不限最大宽度，列宽随视口铺满 */
    width: 100%;
    /* 外框竖线：让网格左右两端也封口，与内部列分隔线连成完整网格 */
    border-left: 1px solid var(--line-col);
    border-right: 1px solid var(--line-col);
}

.nav__col {
    border-right: 1px solid var(--line-col);
}

/* 每行最后一列不再画线，由 .nav__grid 的右边框提供，避免出现双线 */
.nav__col:nth-child(5n) {
    border-right: none;
}

.nav__title {
    padding: 9px 0;
    font-size: 12px;
    font-weight: 400;
    text-align: center;
    color: var(--ink-dim);
    background: #e8e8e8;
}

.nav__body {
    padding: 6px 28px;
    font-size: 12px;
    text-align: center;
    background: #fff;
}

.chip {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px 3px 9px;
    color: var(--ink);
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 3px;
}

.chip:hover {
    color: #fff;
    background-color: #808080;
    transform: scale(1.1);
}

.chip img {
    width: 12px;
    height: 12px;
    margin-right: 7px;
}

/* ---------- 6. 关于 / 联系 ---------- */
.about {
    background: var(--about-bg);
    border-top: 2px solid var(--line);
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 33%);
    max-width: var(--col-max);
    margin: 0 auto;
}

.about__text {
    padding: 48px 0 0 100px;
    max-width: 446px;
}

.about__heading {
    margin-bottom: 24px;
    font-size: 1.17em;
    font-weight: 700;
    color: #000;
}

.about__text p {
    margin-top: 0;
    font-size: 14px;
    line-height: 18px;
    color: #6b6868;
}

.about__avatar {
    display: flex;
    align-items: flex-start;
}

.about__avatar-img {
    width: 251px;
    transition: transform .5s;
    transform: translateX(60px);
}

.about__avatar:hover .about__avatar-img {
    transform: translateX(0);
}

.about__avatar-cap {
    padding-top: 152px;
}

.about__avatar:hover .about__avatar-cap {
    padding-top: 133px;
}

.about__avatar-cap .hi {
    display: none;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    color: #8c7979;
}

.about__avatar:hover .hi {
    display: block;
}

.about__avatar-cap p {
    padding-left: 38px;
    font-size: 12px;
    line-height: 25px;
    color: #8c7979;
}

.about__qq {
    text-align: center;
}

.about__qq-num {
    padding-top: 44px;
    font-size: 44px;
    font-weight: 700;
    font-family: fantasy;
    color: var(--qq-ink);
}

.about__qq-hint {
    padding-top: 16px;
    font-size: 14px;
    color: #3a3b40;
}

.btn-qq {
    display: inline-block;
    margin-top: 26px;
    padding: 19px 60px;
    font-family: Arial, sans-serif;
    font-size: 13.3333px;
    line-height: normal;
    text-align: center;
    color: var(--btn-ink);
    background-color: var(--btn-bg);
    border: none;
    cursor: pointer;
}

.btn-qq:hover {
    color: #fff;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
    background: var(--footer-bg);
    position: relative;
    /* friendlinks 用负外边距对齐首尾，容器满宽时会有 6px 溢出，这里裁掉 */
    overflow-x: clip;
}

.site-footer .container {
    max-width: var(--footer-max);
    padding: 0;
    padding-bottom: 20px;
}

.friendlinks {
    margin: 0 -0.5em 20px;
    font-size: 12px;
    line-height: 2;
    color: var(--footer-link);
    word-break: keep-all;
}

.friendlinks__title {
    display: inline;
    margin: 0 .5em;
    font-size: 12px;
    font-weight: 400;
}

.friendlinks ul {
    display: inline;
}

.friendlinks li {
    display: inline;
    margin: 0 .5em;
}

.friendlinks a {
    color: var(--footer-link);
}

.friendlinks a:hover {
    color: #aaa;
}

.copyright {
    color: var(--footer-link-strong);
}

.copyright p {
    padding: .5em 3em;
    font-size: 12px;
    text-align: center;
    color: var(--copyright-ink);
    background: #000;
}

.copyright a {
    color: var(--footer-link-strong);
}

.copyright a:hover {
    color: #ccc;
    border-bottom: 1px solid #ccc;
}

.copyright img {
    width: 14px;
    height: 16px;
}

.copyright .brand span {
    color: #d4121f;
}

/* ---------- 8. 返回顶部 ---------- */
.back-top {
    position: fixed;
    right: 50px;
    bottom: 50px;
    z-index: 99;
    display: none;
    padding: 5px 10px;
    font-size: 12px;
    text-align: center;
    color: #f5f5f5;
    background: rgba(90, 104, 115, .8);
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity .5s linear;
}

.back-top.is-shown {
    display: block;
}

.back-top.is-visible {
    opacity: 1;
}

.back-top .iconfont {
    display: block;
    font-size: 20px;
    padding-bottom: 3px;
}

.back-top span {
    display: block;
    padding-top: 3px;
}

/* ---------- 9. 无障碍辅助 ---------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 8px;
    top: -48px;
    z-index: 100;
    padding: 8px 14px;
    color: #fff;
    background: #222;
    border-radius: 0 0 6px 6px;
    transition: top .2s;
}

.skip-link:focus {
    top: 0;
}

/* ---------- 10. 响应式 ---------- */
@media (max-width: 1024px) {
    .hero {
        min-height: 500px;
        padding-bottom: 20px;
    }

    .hero__bar .container {
        padding: 0 15px;
    }

    .hero__inner {
        max-width: 90%;
    }

    .nav__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    /* 3 列布局：每行最后一列改由 grid 外框封口 */
    .nav__col:nth-child(5n) {
        border-right: 1px solid var(--line-col);
    }

    .nav__col:nth-child(3n) {
        border-right: none;
    }

    .about__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about__text {
        max-width: none;
        padding: 24px 16px 0;
    }

    .about__text p {
        line-height: 22px;
    }

    .about__avatar {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .about__avatar-img {
        transform: none;
    }

    .about__avatar-cap {
        padding-top: 12px;
    }

    .about__avatar:hover .about__avatar-cap {
        padding-top: 12px;
    }

    .about__avatar-cap p {
        padding-left: 0;
    }

    .about__qq-num {
        font-size: 30px;
    }

    .back-top {
        right: 15px;
        bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero__bar {
        height: auto;
        line-height: 1.6;
    }

    .hero__bar .container {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
    }

    .hero__brand {
        gap: 12px;
    }

    .hero__links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hero__inner {
        max-width: 100%;
        padding: 0 15px;
        margin-top: 24px;
    }

    .hero__title {
        font-size: 16px;
        letter-spacing: 1px;
    }

    .search {
        margin-top: 25px;
    }

    .search__head {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        padding: 0 10px;
        font-size: 16px;
    }

    /* 窄屏下胶囊行允许换行，标签本身不内折 */
    .search__engines {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .search__engines > span {
        white-space: nowrap;
    }

    .search__engine {
        font-size: 13px;
        padding: 2px 8px;
    }

    .search__input {
        width: 100%;
        height: 36px;
        font-size: 14px;
    }

    .search__submit {
        height: 36px;
        line-height: 36px;
    }

    .quick {
        font-size: 12px;
        padding-left: 0;
        text-align: center;
    }

    .quick__list {
        white-space: normal;
    }

    .notice {
        padding-top: 20px;
    }

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

    /* 2 列布局 */
    .nav__col:nth-child(3n) {
        border-right: 1px solid var(--line-col);
    }

    .nav__col:nth-child(2n),
    .nav__col:last-child {
        border-right: none;
    }

    .nav__col {
        border-bottom: 1px solid var(--line-col);
    }

    .nav__body {
        padding: 6px 10px;
    }

    .about__avatar {
        flex-direction: column;
        align-items: center;
    }

    .about__avatar-img {
        width: 180px;
    }

    .about__avatar-cap {
        padding-top: 12px;
    }

    .about__avatar-cap p {
        padding-left: 0;
    }

    .about__qq-num {
        padding-top: 20px;
    }

    .btn-qq {
        padding: 12px 30px;
    }

    .site-footer .container {
        padding: 0 10px 20px;
    }

    .friendlinks {
        text-align: center;
    }

    .back-top {
        right: 10px;
        bottom: 20px;
        padding: 3px 8px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 350px;
    }

    .hero__title {
        font-size: 14px;
    }

    .search {
        margin-top: 15px;
    }

    .search__engine {
        font-size: 11px;
        padding: 2px 6px;
    }

    .nav__grid {
        grid-template-columns: 1fr;
    }

    /* 单列布局：列内不再需要分隔线，左右由 grid 外框封口 */
    .nav__col,
    .nav__col:nth-child(2n),
    .nav__col:nth-child(3n),
    .nav__col:nth-child(5n) {
        border-right: none;
    }

    .chip {
        font-size: 11px;
        padding: 2px 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroller__inner {
        animation: none;
    }

    .scroller__track[aria-hidden] {
        display: none;
    }

    .chip:hover {
        transform: none;
    }

    .about__avatar-img,
    .about__avatar-cap,
    .search__engine,
    .back-top {
        transition: none;
    }
}
