/* ==========================================================
   屑萌窝 · 与 xmwbot 统一后的纸面风格
   纸白底 / 衬线字 / 棕色细线 / 勾金点缀
   ========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background: #fff;
}

body {
    position: relative;
    min-height: 100vh;
    max-width: 980px;
    margin: 0 auto;
    padding: 112px 28px 72px;
    line-height: 1.7;
    letter-spacing: 0;
    font-family: Georgia, "Times New Roman", "Songti SC", "Microsoft YaHei", serif;
    font-size: 16px;
    color: #27231d;
    animation: page-in 0.6s ease both;
}

/* 页头细线 */
body::before {
    content: "";
    position: absolute;
    top: 92px;
    left: 0;
    right: 0;
    height: 1px;
    background: #c8b783;
}

/* 页头节点 */
body::after {
    content: "✦";
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 12px;
    background: #fff;
    color: #b08a32;
    font-size: 16px;
    line-height: 1.6;
}

a,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: #27231d;
}

/* ---------- 顶部：回家按钮 / Logo ---------- */
.home-icon {
    position: fixed;
    top: 24px;
    left: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    background-color: #fff;
    border: 1px solid #c8b783;
    border-radius: 50%;
    transition: border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.home-icon:hover {
    border-color: #b08a32;
    transform: translateY(-1px);
}

.home-icon svg {
    width: 19px;
    height: 19px;
    fill: #7e652f;
}

.logo {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 84px;
    height: auto;
    z-index: 999;
    cursor: pointer;
    opacity: 0.95;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 1;
}

/* ---------- 导航按钮：账面行 ---------- */
.learn-more {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 17px 8px;
    border: 0;
    border-bottom: 1px solid #e5dfd1;
    background: transparent;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, padding-left 0.2s ease;
}

.learn-more:hover {
    background: #fffaf0;
    padding-left: 16px;
}

.learn-more .circle {
    flex: 0 0 26px;
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
    margin-right: 12px;
    background: none;
    border-radius: 0;
    transition: all 0.3s ease;
}

.learn-more .circle .icon {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
}

.learn-more .circle .icon.arrow {
    left: 2px;
    width: 15px;
    height: 1px;
    background: #b08a32;
    transition: all 0.3s ease;
}

.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: "";
    top: -3.5px;
    right: 0;
    width: 8px;
    height: 8px;
    border-top: 1px solid #b08a32;
    border-right: 1px solid #b08a32;
    transform: rotate(45deg);
}

.learn-more:hover .circle .icon.arrow {
    transform: translateX(6px);
}

.learn-more .button-text {
    position: static;
    display: block;
    margin: 0;
    padding: 0;
    text-align: left;
    text-transform: none;
    font-family: Georgia, "Times New Roman", "Songti SC", "Microsoft YaHei", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    color: #27231d;
    transition: color 0.2s ease;
}

.learn-more:hover .button-text {
    color: #a06e13;
}

/* ---------- 内容卡片 ---------- */
.box {
    width: 100%;
}

.bgk {
    background: #fff;
    border: 1px solid #e5dfd1;
    border-top: 2px solid #7e652f;
    padding: 26px 26px 20px;
    margin-bottom: 22px;
    box-shadow: 0 12px 30px rgba(93, 70, 24, 0.05);
    animation: rise-in 0.45s ease both;
}

h2 {
    margin-bottom: 12px;
    font-size: 21px;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #342b1d;
}

h3 {
    font-weight: 400;
    font-size: 15px;
    line-height: 1.85;
    color: #4a4438;
}

hr {
    border: 0;
    border-top: 1px solid #e5dfd1;
    margin: 18px 0;
}

/* ---------- 兑换 / 名单列表 ---------- */
ol {
    font-size: 17px;
    font-weight: 400;
    padding-left: 26px;
    color: #27231d;
}

ol > li {
    padding: 10px 0 0 10px;
    border-bottom: 1px solid #f0ebdf;
}

ol > li::marker {
    color: #b08a32;
}

/* ---------- 学分查询 ---------- */
.search-container {
    width: 100%;
    max-width: 620px;
    margin: 24px auto;
    padding: 0;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 11px 2px;
    border: 0;
    border-bottom: 1px solid #b9ad91;
    border-radius: 0;
    background: transparent;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
    color: #27231d;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    border-color: #b08a32;
    box-shadow: 0 2px 0 #ead9a9;
}

.search-button {
    position: absolute;
    right: 0;
    width: 34px;
    height: 34px;
    border: 1px solid #7e652f;
    border-radius: 50%;
    background: #342b1d;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.search-button:hover {
    background: #a06e13;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(126, 101, 47, 0.2);
}

.search-circle {
    position: relative;
    width: 100%;
    height: 100%;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    transform: translate(-50%, -50%);
}

.search-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 9px;
    height: 9px;
    border: 1px solid #fff;
    border-radius: 50%;
}

.search-icon::after {
    content: "";
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 7px;
    height: 1px;
    background: #fff;
    transform: rotate(45deg);
}

.search-text {
    display: none;
}

/* ---------- 查询结果 ---------- */
.result-box {
    width: 100%;
    max-width: 420px;
    margin: 22px auto 0;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e5dfd1;
    border-left: 2px solid #7e652f;
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(93, 70, 24, 0.05);
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0ebdf;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

.result-label {
    font-weight: 400;
    color: #76613b;
}

.result-value {
    color: #342b1d;
}

/* ---------- 锻晶查询 ---------- */
.crystal-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.crystal-display-area {
    margin-top: 28px;
    width: 100%;
}

.section-title {
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 2px solid #b08a32;
    font-size: 20px;
    font-weight: 400;
    color: #342b1d;
}

.grid-crystals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 4px 0;
}

.crystal-card {
    background: #fff;
    border: 1px solid #e5dfd1;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(93, 70, 24, 0.05);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.crystal-card:hover {
    border-color: #c8b783;
    transform: translateY(-3px);
}

.card-header {
    background: #fffaf0;
    padding: 12px 16px;
    border-bottom: 1px solid #e5dfd1;
    color: #342b1d;
}

.card-header h3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-size: 16px;
    color: #342b1d;
}

.crystal-type-badge {
    background: none;
    border: 1px solid #c8b783;
    color: #7c5d20;
    font-family: Arial, sans-serif;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 0;
}

.card-body {
    padding: 14px 16px;
    background: #fff;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f0ebdf;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

.stat-line:last-child {
    border-bottom: 0;
}

.stat-label {
    font-weight: 400;
    color: #76613b;
}

.stat-value {
    color: #7c5d20;
}

.empty-message,
.error-message {
    padding: 32px 0;
    text-align: center;
    color: #918b81;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

.error-message {
    color: #9a3f36;
}

.loading-indicator {
    padding: 28px;
    text-align: center;
    background: #fffaf0;
    border: 1px solid #e5dfd1;
    color: #7c5d20;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
}

/* ---------- 合影 ---------- */
.group-photo {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 14px auto 4px;
    border: 1px solid #e5dfd1;
    box-shadow: 0 8px 20px rgba(93, 70, 24, 0.06);
}

/* ---------- 底部署名 ---------- */
.new {
    display: block;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid #e5dfd1;
    text-align: center;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 12px;
    color: #b08a32;
}

/* ---------- 每日一言 ---------- */
.quote-container {
    margin-top: 44px;
    padding-top: 26px;
    border-top: 1px solid #e5dfd1;
    text-align: center;
    animation: rise-in 0.5s 0.1s ease both;
}

.quote-text {
    font-size: 16px;
    line-height: 1.9;
    color: #7c5d20;
    white-space: pre-line;
}

.quote-date {
    margin-top: 10px;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 12px;
    color: #918b81;
}

/* ---------- 备案 ---------- */
.beian {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #f0ebdf;
    text-align: center;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    font-size: 12px;
}

.beian a {
    color: #918b81;
    transition: color 0.2s ease;
}

.beian a:hover {
    color: #a06e13;
}

/* ---------- 动效 ---------- */
@keyframes page-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ---------- 响应式 ---------- */
@media (max-width: 680px) {
    body {
        padding: 96px 18px 48px;
    }

    body::before {
        top: 76px;
    }

    body::after {
        top: 69px;
    }

    .logo {
        width: 64px;
        top: 14px;
        right: 14px;
    }

    .home-icon {
        top: 20px;
        left: 16px;
        width: 32px;
        height: 32px;
    }

    .bgk {
        padding: 20px 16px 16px;
    }

    .box {
        padding: 0;
    }

    .learn-more {
        padding: 15px 4px;
    }

    .crystal-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .section-title {
        font-size: 18px;
    }

    ol {
        font-size: 15px;
        padding-left: 18px;
    }

    h2 {
        font-size: 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.new:empty {
    display: none;
}

