/* ========================================
 * common.css - 公共样式（提取自 kmrijie.cn）
 * 包含：reset、header头部、footer尾部
 * ======================================== */

@charset "utf-8";

/* ---- Reset ---- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption,
tbody, tfoot, thead, tr, th, td, article, aside,
canvas, details, embed, figure, figcaption,
footer, header, hgroup, menu, nav, output,
ruby, section, summary, time, mark, audio, video {
    margin: 0;
    padding: 0;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

ol, ul, li {
    list-style: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
}

input, textarea {
    outline: none;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

/* ---- CSS Variables ---- */
:root {
    --maxWidth: 1200px;
    --color-primary: #FA940F;      /* 主橙色 */
    --color-yellow: #FECE01;       /* 亮黄色 */
    --color-header-bg: #FFF6D4;    /* 头部浅黄底 */
    --color-footer-bg: #252629;    /* 尾部深色底 */
    --color-text-dark: #252629;    /* 深色文字 */
    --color-text-gray: #727376;    /* 灰色文字 */
    --color-text-light: #939499;   /* 浅灰文字 */
    --color-card-bg: #F6F7F9;      /* 卡片背景 */
    --color-border: #E4E5E6;       /* 边框色 */
    --color-white: #FFFFFF;
    --color-body-text: #333;
}

/* ---- Base ---- */
html {
    font-size: 62.5%;
}

body {
    color: var(--color-body-text);
    font-family: "微软雅黑", "黑体", Arial, sans-serif;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
}

/* ---- 无障碍工具类 ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
    height: 1px;
}
::-webkit-scrollbar-track {
    background: #fff;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb:hover {
    background: #000;
}

/* ========================================
 * Header 头部（复刻 kmrijie.cn）
 * ======================================== */
header.header-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #FFF6D4;
    text-align: center;
}

.header-bg {
    background: var(--color-header-bg);
}

.header {
    height: 60px;
    display: flex;
    align-items: center;
    max-width: var(--maxWidth);
    margin: 0 auto;
}

.header .logo {
    width: 115px;
    height: 28px;
    flex-shrink: 0;
}

.header .logo img {
    width: 100%;
}

.header .naver {
    display: flex;
    align-items: center;
    margin-left: 60px;
    flex: 1;
}

.header .naver ul {
    display: flex;
    align-items: center;
}

.header .naver li {
    margin-right: 44px;
}

.header .naver a {
    color: var(--color-text-dark);
    position: relative;
    font-size: 16px;
}

.header .naver a.active {
    color: #333;
    font-weight: 600;
}

.header .naver a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    height: 3px;
    width: 17px;
    background-color: var(--color-primary);
}

.header-right {
    position: relative;
}

.header-right:hover .download-app {
    display: block;
}

.header-download {
    flex-shrink: 0;
    background-color: var(--color-yellow);
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 16px;
    color: #342300;
    font-size: 16px;
}

.header-download img {
    width: 24px;
    margin-right: 3px;
}

.header-download svg {
    width: 24px;
    height: 24px;
    margin-right: 3px;
}

.download-app {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: none;
}

.download-app .download-app-imgs {
    padding: 12px;
    background-color: #fff;
}

.download-app img {
    width: 120px;
    display: block;
}

.download-app .arrow {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-bottom: 8px solid #fff;
    margin: 0 auto;
}

/* 头部占位（固定定位需要） */
.header-placeholder {
    height: 60px;
    width: 100%;
}

/* ========================================
 * Footer 尾部（复刻 kmrijie.cn）
 * ======================================== */
.footer {
    background: var(--color-footer-bg);
    padding: 50px 120px 0;
}

.footer-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--maxWidth);
    margin: 0 auto;
}

.footer .text {
    flex: 1;
}

.footer .text h5 {
    color: #FFF;
    font-size: 42px;
    font-weight: 600;
}

.footer .text h6 {
    color: #FFF;
    font-size: 32px;
    line-height: 52px;
}

.footer-weixin {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-weixin-img {
    width: 160px;
    height: 160px;
    margin-bottom: 10px;
    border-radius: 6px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 12px;
    box-sizing: border-box;
}

.footer-weixin+.footer-weixin {
    margin-left: 44px;
}

.footer-weixin span {
    color: #FFF;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

.footer .beian {
    margin-top: 73px;
    color: rgba(255, 255, 255, 0.30);
    text-align: center;
    font-size: 12px;
    padding-bottom: 20px;
}

.friendship-link {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.friendship-title {
    color: #8f8f8f;
}

.footer a {
    color: rgba(255, 255, 255, 0.30);
    transition: color 0.2s;
}

.footer a:hover {
    color: #046fdb;
}

.friendship-link a {
    color: #fff;
    text-decoration: underline;
    margin-left: 10px;
}

/* ========================================
 * 通用组件
 * ======================================== */

/* 页面标题区 */
.page-banner {
    background: linear-gradient(180deg, #FFF6D4 0%, rgba(254, 249, 229, 0.43) 100%);
    padding: 40px 20px 60px;
    text-align: center;
}

.page-banner h1 {
    color: var(--color-text-dark);
    font-size: 40px;
    font-weight: 600;
}

.page-banner p {
    margin-top: 16px;
    color: var(--color-text-gray);
    font-size: 16px;
}

/* 通用容器 */
.container {
    max-width: var(--maxWidth);
    margin: 0 auto;
    padding: 0 20px;
}

/* 通用标题 */
.section-title {
    color: var(--color-text-dark);
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

/* 面包屑 */
.breadcrumb {
    display: flex;
    align-items: center;
    max-width: var(--maxWidth);
    margin: 0 auto;
    padding: 20px;
    color: var(--color-text-light);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--color-text-gray);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-primary);
}

.breadcrumb .breadcrumb-sep {
    margin: 0 8px;
    color: var(--color-text-light);
}

.breadcrumb .current {
    color: var(--color-text-dark);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(250, 148, 15, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #e8850e;
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: #fff;
}
