/* ========== 全局基础样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a6fe8;
    --primary-dark: #0f54b8;
    --primary-light: #e8f1fe;
    --accent: #ff6a00;
    --text: #222;
    --text-gray: #666;
    --text-light: #999;
    --bg: #f5f7fa;
    --white: #fff;
    --border: #e5e8ed;
    --red: #e64340;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ========== 顶部通栏 ========== */
.topbar {
    background: #2b2f36;
    color: #cfd3da;
    font-size: 13px;
    line-height: 36px;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar a {
    color: #cfd3da;
    margin-left: 16px;
}

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

.topbar .user-area .username {
    color: #ffd591;
    font-weight: bold;
}

.btn-logout {
    background: none;
    border: 1px solid #555;
    color: #cfd3da;
    padding: 2px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.btn-logout:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ========== 头部 Logo + 搜索 ========== */
.header {
    background: var(--white);
    padding: 18px 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #4d94ff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.search-box {
    flex: 1;
    display: flex;
    max-width: 560px;
}

.search-box input {
    flex: 1;
    height: 42px;
    border: 2px solid var(--primary);
    border-right: none;
    border-radius: 21px 0 0 21px;
    padding: 0 18px;
    font-size: 15px;
    outline: none;
}

.search-box button {
    height: 42px;
    padding: 0 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0 21px 21px 0;
    font-size: 15px;
    cursor: pointer;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* ========== 导航栏 ========== */
.nav {
    background: var(--primary);
}

.nav-list {
    display: flex;
}

.nav-list li a {
    display: block;
    padding: 13px 26px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: var(--primary-dark);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

/* ========== 广告栏（轮播） ========== */
.ad-banner {
    margin: 20px 0;
}

.ad-carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 320px;
}

.ad-slides {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.ad-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-align: center;
    padding: 30px;
}

.ad-slide h2 {
    font-size: 36px;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ad-slide p {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 20px;
}

.ad-slide .ad-btn {
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    padding: 10px 34px;
    border-radius: 24px;
    font-weight: bold;
    font-size: 16px;
}

.ad-slide .ad-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.35);
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 4px;
}

.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-dots span.active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-arrow.prev { left: 14px; }
.carousel-arrow.next { right: 14px; }

/* ========== 通用区块 ========== */
.section {
    margin-bottom: 28px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.section-head h2 {
    font-size: 22px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-head h2::before {
    content: "";
    width: 5px;
    height: 22px;
    background: var(--accent);
    border-radius: 3px;
}

.section-head .more {
    font-size: 14px;
    color: var(--text-gray);
}

.section-head .more:hover {
    color: var(--primary);
}

/* ========== 时事政治栏 ========== */
.news-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
}

.news-feature {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.news-feature .news-cover {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
}

.news-feature .news-cover .cover-title {
    width: 100%;
    padding: 40px 18px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
    color: #fff;
    font-size: 19px;
    font-weight: bold;
}

.news-feature .news-summary {
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-gray);
}

.news-list {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 18px;
}

.news-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.news-list li:last-child {
    border-bottom: none;
}

.news-list li:hover .news-title {
    color: var(--primary);
}

.news-list .news-title {
    font-size: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list .news-title .hot-tag {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    padding: 0 6px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: 1px;
}

.news-list .news-date {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
}

/* ========== 软件工具分栏 ========== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.tab-btn {
    padding: 10px 30px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 24px;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-gray);
    font-weight: 600;
}

.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.soft-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px 16px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.soft-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(26, 111, 232, 0.18);
}

.soft-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 12px;
}

.soft-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.soft-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.soft-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 14px;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.soft-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn-download,
.btn-detail {
    flex: 1;
    padding: 8px 0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.btn-download {
    background: var(--primary);
    color: #fff;
}

.btn-download:hover {
    background: var(--primary-dark);
}

.btn-detail {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-detail:hover {
    background: #d4e6fd;
}

.no-result {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 0;
    color: var(--text-light);
    font-size: 15px;
}

/* ========== 底部广告位 ========== */
.ad-strip {
    background: linear-gradient(90deg, #fff3e8, #ffe8d6);
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.ad-strip .ad-strip-text strong {
    color: var(--accent);
    font-size: 17px;
}

.ad-strip .ad-strip-text span {
    color: var(--text-gray);
    font-size: 14px;
    margin-left: 10px;
}

.ad-strip .ad-strip-btn {
    background: var(--accent);
    color: #fff;
    padding: 8px 26px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
}

/* ========== 页脚 ========== */
.footer {
    background: #2b2f36;
    color: #aeb4bf;
    padding: 36px 0 20px;
    margin-top: 40px;
    font-size: 14px;
}

.footer .footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer .contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer .contact-label {
    color: #cfd3da;
    font-size: 14px;
    font-weight: 500;
}

.footer .contact-qq {
    color: #12b7f5;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity .2s;
}

.footer .contact-qq:hover {
    opacity: .8;
    text-decoration: underline;
}

.footer .contact-hint {
    color: #7d838e;
    font-size: 12px;
}

.footer .wechat-qr {
    width: 120px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.footer .wechat-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    transition: transform .2s;
}

.footer .wechat-qr img:hover {
    transform: scale(1.05);
}

.footer .wechat-qr::after {
    content: "点击放大";
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,.5);
    padding: 1px 0;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}

.footer .wechat-qr {
    position: relative;
}

.footer .wechat-qr:hover::after {
    opacity: 1;
}

.footer .qr-placeholder {
    color: #999;
    font-size: 11px;
    text-align: center;
    padding: 8px;
    line-height: 1.5;
}

.footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer .footer-links a:hover {
    color: #fff;
}

.footer .copyright {
    text-align: center;
    font-size: 13px;
    color: #7d838e;
    border-top: 1px solid #3d424b;
    padding-top: 16px;
}

@media (max-width: 480px) {
    .footer .footer-contact {
        gap: 30px;
    }
    .footer .wechat-qr {
        width: 100px;
        height: 100px;
    }
}

/* ========== 注册 / 登录页 ========== */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a6fe8 0%, #4d94ff 60%, #7bb3ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 420px;
    padding: 36px 34px;
}

.auth-card .auth-logo {
    text-align: center;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.auth-card .auth-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 26px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 6px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 44px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 0 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-group .error-msg {
    color: var(--red);
    font-size: 12px;
    margin-top: 4px;
    min-height: 16px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 18px;
}

.form-row label {
    color: var(--text-gray);
    cursor: pointer;
}

.form-row a {
    color: var(--primary);
}

.btn-auth {
    width: 100%;
    height: 46px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.btn-auth:hover {
    background: var(--primary-dark);
}

.auth-tip {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-gray);
}

.auth-tip a {
    color: var(--primary);
    font-weight: bold;
}

.auth-back {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-light);
}

.auth-back:hover {
    color: var(--primary);
}

/* ========== Toast 提示 ========== */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.35s;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success { background: #2eb872; }
.toast.error { background: var(--red); }

/* ========== 手机自适应 ========== */
@media (max-width: 992px) {
    .software-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ad-slide h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .topbar {
        font-size: 12px;
    }

    .topbar .welcome-text {
        display: none;
    }

    .header .container {
        flex-wrap: wrap;
        gap: 12px;
    }

    .logo {
        font-size: 22px;
    }

    .logo .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .search-box {
        order: 3;
        max-width: 100%;
        width: 100%;
    }

    .hamburger {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
    }

    .nav-list.open {
        display: flex;
    }

    .nav-list li a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .ad-carousel {
        height: 220px;
    }

    .ad-slide h2 {
        font-size: 22px;
    }

    .ad-slide p {
        font-size: 14px;
    }

    .carousel-arrow {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

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

    .news-feature .news-cover {
        height: 180px;
    }

    .software-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .soft-card {
        padding: 16px 10px;
    }

    .soft-icon {
        width: 52px;
        height: 52px;
        font-size: 26px;
        border-radius: 12px;
    }

    .soft-desc {
        min-height: auto;
    }

    .section-head h2 {
        font-size: 18px;
    }

    .tab-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    .ad-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .software-grid {
        grid-template-columns: 1fr;
    }

    .soft-actions {
        max-width: 220px;
    }

    .auth-card {
        padding: 28px 22px;
    }
}

/* ========== 宠物乐园 ========== */
.points-badge {
    color: #ffd591;
    margin-right: 14px;
    font-size: 14px;
}

.back-home {
    margin-left: auto;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.back-home:hover {
    color: var(--primary-dark);
}

.page-title {
    text-align: center;
    padding: 26px 0 8px;
}

.page-title h1 {
    font-size: 30px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.page-title p {
    color: var(--text-gray);
    font-size: 15px;
}

/* 未登录提示 */
.pet-login-tip {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    padding: 60px 20px;
    margin: 30px 0;
}

.pet-login-tip .tip-icon {
    font-size: 56px;
    margin-bottom: 14px;
}

.pet-login-tip p {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 22px;
}

.tip-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-link,
.btn-ghost-link {
    padding: 10px 30px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
}

.btn-primary-link {
    background: var(--primary);
    color: #fff;
}

.btn-primary-link:hover {
    background: var(--primary-dark);
}

.btn-ghost-link {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-ghost-link:hover {
    background: var(--primary-light);
}

/* 两栏布局 */
.pet-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.pet-panel {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 20px;
}

.btn-checkin {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 7px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.btn-checkin:disabled {
    background: #bbb;
    cursor: not-allowed;
}

.btn-checkin:not(:disabled):hover {
    background: #e85d00;
}

/* 宠物舞台 */
.pet-stage {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 10px 0 18px;
}

.pet-avatar {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff7e6, #ffe7ba);
    border: 3px solid #ffd591;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 62px;
}

.pet-avatar.pet-attack {
    animation: petAttack 0.5s ease;
}

.pet-avatar.pet-happy {
    animation: petHappy 0.6s ease;
}

@keyframes petAttack {
    0% { transform: translateX(0); }
    30% { transform: translateX(18px) rotate(8deg); }
    60% { transform: translateX(-6px) rotate(-4deg); }
    100% { transform: translateX(0); }
}

@keyframes petHappy {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-16px); }
    60% { transform: translateY(-6px); }
}

.pet-info {
    flex: 1;
    min-width: 0;
}

.pet-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pet-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
}

.pet-level {
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    padding: 2px 12px;
    border-radius: 14px;
    font-weight: 600;
}

.pet-tag {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 6px;
    font-weight: 600;
}

/* 状态条 */
.stat-bars {
    margin-bottom: 12px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.bar-label {
    width: 36px;
    font-size: 13px;
    color: var(--text-gray);
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 14px;
    background: #eef1f5;
    border-radius: 7px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 7px;
    transition: width 0.5s ease;
}

.bar-num {
    width: 78px;
    text-align: right;
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
}

.pet-attrs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
    margin-bottom: 8px;
}

.pet-attrs small {
    color: var(--text-light);
    text-decoration: line-through;
}

.pet-attrs .debuff {
    color: var(--red);
    font-style: normal;
    font-size: 12px;
    background: #fff1f0;
    padding: 0 6px;
    border-radius: 4px;
}

.pet-record {
    font-size: 14px;
    color: var(--text-gray);
}

/* 养成按钮 */
.pet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.btn-pet-action {
    padding: 13px 0;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: transform 0.15s, filter 0.15s;
}

.btn-pet-action:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-pet-action:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

.btn-pet-action.feed { background: linear-gradient(135deg, #fa8c16, #ffc069); }
.btn-pet-action.play { background: linear-gradient(135deg, #13c2c2, #5cdbd3); }
.btn-pet-action.rest { background: linear-gradient(135deg, #722ed1, #b37feb); }
.btn-pet-action.revive { background: linear-gradient(135deg, #e64340, #ff85c0); }
.btn-pet-action.evolve { background: linear-gradient(135deg, #eb2f96, #ff85c0); }

.resting-tag {
    color: var(--primary);
    font-style: normal;
    font-size: 12px;
    background: var(--primary-light);
    padding: 0 6px;
    border-radius: 4px;
}

/* 规则说明 */
.pet-rules {
    background: #f8fafd;
    border-radius: 8px;
    padding: 14px 18px;
    border-left: 4px solid var(--primary);
}

.pet-rules h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.pet-rules ul {
    font-size: 13px;
    color: var(--text-gray);
}

.pet-rules li {
    padding: 3px 0;
}

/* ========== 进化徽章 & 技能面板 ========== */
.evo-badge {
    display: inline-block;
    background: linear-gradient(135deg, #eb2f96, #ff85c0);
    color: #fff;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 10px;
    margin-left: 8px;
    vertical-align: 2px;
    font-weight: 700;
}

.pet-skill-box {
    margin: 0 0 18px;
}

/* ========== 装备系统 ========== */
.equipment-panel {
    background: linear-gradient(135deg, #f8f9fe, #f0f4ff);
    border-radius: 12px;
    padding: 16px;
    margin: 0 0 18px;
    border: 1px solid #e0e8f5;
}
.equip-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.equip-head h3 {
    font-size: 17px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
.equip-cp {
    background: linear-gradient(135deg, #fa8c16, #ffc069);
    color: #fff;
    padding: 4px 14px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(250, 140, 22, 0.3);
}
.equip-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.equip-slot {
    background: #fff;
    border: 2px dashed #d6dee8;
    border-radius: 10px;
    padding: 12px 6px;
    text-align: center;
    min-height: 92px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.equip-slot:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.equip-slot.filled {
    border-style: solid;
    border-width: 2px;
}
.equip-slot .slot-icon {
    font-size: 26px;
    line-height: 1.2;
}
.equip-slot .slot-label {
    font-size: 11px;
    color: var(--text-gray);
    margin-top: 2px;
}
.equip-slot .slot-name {
    font-size: 12px;
    font-weight: 700;
    margin-top: 2px;
    text-align: center;
}
.equip-slot .slot-empty-icon {
    font-size: 22px;
    opacity: 0.35;
}
.equip-slot .slot-empty {
    font-size: 11px;
    color: var(--text-light);
}
/* 稀有度边框 */
.equip-slot.rarity-N   { border-color: #bfbfbf; }
.equip-slot.rarity-R   { border-color: #1a6fe8; box-shadow: 0 0 8px rgba(26,111,232,0.25); }
.equip-slot.rarity-SR  { border-color: #9254de; box-shadow: 0 0 10px rgba(146,84,222,0.35); }
.equip-slot.rarity-SSR { border-color: #fa8c16; box-shadow: 0 0 14px rgba(250,140,22,0.5); background: linear-gradient(135deg,#fffaf0,#fff); }
/* 稀有度文字 */
.rarity-tag-N   { color: #8c8c8c; }
.rarity-tag-R   { color: #1a6fe8; }
.rarity-tag-SR  { color: #9254de; }
.rarity-tag-SSR { color: #fa8c16; font-weight: 700; }

.inv-title {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}
.inv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    padding: 2px;
}
.inv-item {
    background: #fff;
    border: 1px solid #e5e8ed;
    border-radius: 8px;
    padding: 8px 4px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}
.inv-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.inv-item.equipped {
    background: linear-gradient(135deg,#f6ffed,#fff);
    border-color: #52c41a;
}
.inv-item .inv-icon {
    font-size: 22px;
}
.inv-item .inv-name {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1.2;
}
.inv-item .inv-stats {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 2px;
}
.inv-item .inv-equip-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #52c41a;
    color: #fff;
    font-size: 9px;
    padding: 0 4px;
    border-radius: 3px;
}
.inv-empty {
    text-align: center;
    color: var(--text-light);
    padding: 24px;
    font-size: 13px;
}
.inv-empty a { color: var(--primary); }

/* 装备操作弹层 */
.equip-actions {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -42px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    padding: 6px;
    display: flex;
    gap: 6px;
    z-index: 10;
}
.equip-actions button {
    flex: 1;
    padding: 6px 0;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    color: #fff;
}
.equip-actions .btn-equip   { background: var(--primary); }
.equip-actions .btn-decomp { background: #fa8c16; }
.equip-actions .btn-cancel  { background: #bfbfbf; }

@media (max-width: 768px) {
    .equip-slots { grid-template-columns: repeat(2, 1fr); }
    .inv-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}

/* ========== 排行榜 ========== */
.rank-panel { margin-top: 20px; }
.rank-tabs { display: flex; gap: 8px; }
.rank-tab {
    padding: 6px 16px; border: 2px solid var(--border); background: #fff;
    border-radius: 18px; cursor: pointer; font-size: 13px; color: var(--text-gray);
}
.rank-tab.active { border-color: var(--primary); color: var(--primary); font-weight: 700; background: var(--primary-light); }
.my-rank {
    background: linear-gradient(135deg, #fff7e6, #fff);
    border: 2px solid #ffd591; border-radius: 10px; padding: 12px 16px;
    margin-bottom: 14px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.rank-list { display: flex; flex-direction: column; gap: 6px; max-height: 480px; overflow-y: auto; }
.rank-row {
    display: grid; grid-template-columns: 50px 1fr auto auto; align-items: center; gap: 12px;
    background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px;
}
.rank-row.me { border-color: var(--primary); background: var(--primary-light); font-weight: 700; }
.rank-row.top3 { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.rank-no { font-size: 18px; font-weight: 800; text-align: center; color: var(--text-light); }
.rank-no.gold { color: #faad14; }
.rank-no.silver { color: #8c8c8c; }
.rank-no.bronze { color: #d4885a; }
.rank-user { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rank-user .r-icon { font-size: 22px; }
.rank-user .r-name { font-weight: 600; }
.rank-user .r-pet { font-size: 12px; color: var(--text-light); }
.rank-val { font-weight: 800; color: var(--primary-dark); font-size: 15px; }
.rank-meta { font-size: 12px; color: var(--text-light); }

/* ========== 积分商城 ========== */
.shop-panel { margin-top: 20px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shop-item {
    background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 16px 12px;
    text-align: center; transition: all 0.2s;
}
.shop-item:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.shop-item .shop-icon { font-size: 38px; line-height: 1.2; }
.shop-item .shop-name { font-weight: 700; margin: 6px 0 2px; }
.shop-item .shop-desc { font-size: 12px; color: var(--text-gray); min-height: 34px; margin-bottom: 8px; }
.shop-item .shop-price { color: var(--accent); font-weight: 800; font-size: 15px; margin-bottom: 8px; }
.shop-item .btn-buy {
    width: 100%; padding: 7px 0; background: var(--primary); color: #fff;
    border: none; border-radius: 6px; cursor: pointer; font-size: 13px;
}
.shop-item .btn-buy:disabled { background: #bfbfbf; cursor: not-allowed; }
.my-items-bar {
    background: #f6ffed; border: 1px solid #b7eb8f; border-radius: 8px;
    padding: 10px 14px; margin-bottom: 14px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.my-item-chip {
    background: #fff; border: 1px solid #b7eb8f; border-radius: 16px; padding: 3px 10px;
    display: inline-flex; align-items: center; gap: 4px;
}
.my-item-chip button { background: #52c41a; color: #fff; border: none; border-radius: 10px; font-size: 11px; padding: 1px 8px; cursor: pointer; }
.enhance-badge { color: #fa8c16; font-weight: 800; }

.skill-head {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed var(--border);
}

.skill-head.skill-locked {
    color: var(--text-light);
}

.skill-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff7fb, #f5f0ff);
    border: 1px solid #ffd6e7;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(235, 47, 150, 0.08);
}

.skill-card.skill-locked-card {
    background: #f5f5f5;
    border-color: var(--border);
    box-shadow: none;
    filter: grayscale(0.4);
    opacity: 0.75;
}

.skill-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #eb2f96, #b37feb);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.skill-card.skill-locked-card .skill-icon {
    background: #bbb;
}

.skill-body {
    flex: 1;
}

.skill-name {
    font-size: 16px;
    font-weight: 700;
    color: #d4389b;
}

.skill-card.skill-locked-card .skill-name {
    color: var(--text-gray);
}

.skill-name small {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-light);
}

.skill-desc {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 2px;
}

.skill-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* 对战日志中的进化标记与提示 */
.evo-tag-battle {
    display: inline-block;
    background: linear-gradient(135deg, #eb2f96, #ff85c0);
    color: #fff;
    font-size: 11px;
    padding: 0 6px;
    border-radius: 4px;
    vertical-align: 1px;
    margin-left: 4px;
}

.shield-note {
    color: #13c2c2;
    font-style: normal;
    font-size: 12px;
    margin: 0 4px;
}

.bonus {
    color: #fa8c16;
    font-style: normal;
    font-size: 12px;
    margin-left: 4px;
}

.log-hint {
    background: #fffbe6;
    border-left: 3px solid #faad14;
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 6px;
    color: #ad6800;
    font-size: 13px;
}

/* 领养卡片 */
.adopt-choices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 18px 0;
}

.adopt-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.adopt-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(26, 111, 232, 0.16);
    transform: translateY(-4px);
}

.adopt-icon {
    font-size: 64px;
    margin-bottom: 10px;
}

.adopt-name {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
}

.adopt-desc {
    font-size: 13px;
    color: var(--text-gray);
    min-height: 60px;
    margin-bottom: 8px;
}

.adopt-stats {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 14px;
}

.btn-adopt {
    width: 100%;
    padding: 10px 0;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.adopt-card:hover .btn-adopt {
    background: var(--primary-dark);
}

.adopt-tip {
    background: #fffbe6;
    border: 1px dashed #ffd591;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: #ad6800;
}

/* 对战区 */
.battle-panel {
    align-self: start;
}

.battle-intro {
    background: #f8fafd;
    border-radius: 8px;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.battle-intro p {
    padding: 3px 0;
}

.battle-left {
    color: var(--primary-dark);
    font-weight: 700;
    margin-top: 6px;
}

.btn-battle {
    width: 100%;
    padding: 15px 0;
    background: linear-gradient(135deg, #e64340, #ff7a45);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 2px;
    transition: transform 0.15s, filter 0.15s;
}

.btn-battle:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.btn-battle:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 战斗日志 */
.battle-log {
    margin-top: 16px;
    background: #1f2329;
    color: #d4d7dc;
    border-radius: 8px;
    padding: 14px 16px;
    height: 260px;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.9;
}

.battle-log p {
    margin-bottom: 2px;
}

.battle-log .log-round {
    color: #7d838e;
    text-align: center;
    font-size: 12px;
}

.battle-log .dmg-text {
    color: #ff7a45;
}

.battle-log .dmg-text-opp {
    color: #ff9c9c;
}

.battle-log .log-win {
    background: rgba(46, 184, 114, 0.18);
    border: 1px solid #2eb872;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    color: #88e0a0;
}

.battle-log .log-lose {
    background: rgba(230, 67, 64, 0.18);
    border: 1px solid #e64340;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    color: #ffb3b3;
}

.battle-log .log-levelup {
    background: rgba(114, 46, 209, 0.22);
    border: 1px solid #b37feb;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
    color: #d3adf7;
}

/* 宠物乐园手机适配 */
@media (max-width: 768px) {
    .pet-layout {
        grid-template-columns: 1fr;
    }

    .adopt-choices {
        grid-template-columns: 1fr;
    }

    .pet-stage {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .pet-title {
        justify-content: center;
    }

    .pet-attrs {
        justify-content: center;
    }

    .pet-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-title h1 {
        font-size: 24px;
    }

    .battle-log {
        height: 220px;
    }
}

/* ========== 面包屑 ========== */
.breadcrumb {
    padding: 14px 0;
    font-size: 14px;
    color: var(--text-gray);
}
.breadcrumb a { color: var(--text-gray); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--text); font-weight: 500; }
.breadcrumb span { margin: 0 6px; color: var(--text-light); }

/* ========== 软件详情卡 ========== */
.soft-detail-card {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.soft-hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.soft-hero-info { flex: 1; min-width: 260px; }
.soft-hero-name { font-size: 26px; margin-bottom: 10px; color: var(--text); }
.soft-hero-tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.tag-blue { background: var(--primary-light); color: var(--primary); padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.tag-gray { background: #f0f2f5; color: var(--text-gray); padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.soft-hero-desc { color: var(--text-gray); font-size: 15px; margin-bottom: 12px; line-height: 1.6; }
.soft-hero-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-light); }
.soft-hero-action { text-align: center; }
.btn-download-big {
    background: linear-gradient(135deg, #ff6a00, #ff9d4d);
    color: #fff;
    border: none;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 28px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255,106,0,0.4);
    transition: transform .2s;
}
.btn-download-big:hover { transform: translateY(-2px); }
.download-tip { font-size: 12px; color: var(--text-light); margin-top: 8px; }

/* ========== 详情页布局 ========== */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
}
.detail-main { min-width: 0; }
.detail-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 20px;
}
.detail-title {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}
.detail-content p {
    color: var(--text);
    line-height: 1.9;
    font-size: 15px;
    margin-bottom: 14px;
    text-indent: 2em;
}
.feature-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
}
.feature-list li:last-child { border-bottom: none; }
.check-icon {
    color: #52c41a;
    font-weight: bold;
    flex-shrink: 0;
}
.screenshots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.shot-item {
    aspect-ratio: 16/10;
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 10px;
    box-shadow: var(--shadow);
}
.shot-label { background: rgba(0,0,0,0.4); color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 12px; }

/* 系统要求 */
.sys-require { background: #fafbfc; border-radius: 8px; padding: 8px 0; }
.sys-row {
    display: flex;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}
.sys-row:last-child { border-bottom: none; }
.sys-label { width: 90px; color: var(--text-gray); flex-shrink: 0; }
.sys-row span:last-child { color: var(--text); }

/* 侧边栏 */
.detail-sidebar { min-width: 0; }
.download-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}
.dlc-icon {
    width: 72px; height: 72px;
    border-radius: 16px;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}
.dlc-name { font-size: 17px; font-weight: bold; margin-bottom: 6px; }
.dlc-size { font-size: 13px; color: var(--text-gray); margin-bottom: 14px; }
.dlc-meta {
    display: flex;
    justify-content: space-around;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-gray);
}
.related-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}
.related-card h4 { font-size: 15px; margin-bottom: 12px; color: var(--primary-dark); }
.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border);
    color: var(--text);
    font-size: 14px;
}
.related-item:hover { color: var(--primary); }
.related-item:last-child { border-bottom: none; }
.related-icon { font-size: 20px; }
.no-related { text-align: center; color: var(--text-light); padding: 16px 0; font-size: 13px; }

/* ========== 新闻详情页 ========== */
.news-article {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 40px;
    margin-bottom: 24px;
}
.article-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.article-title {
    font-size: 26px;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 14px;
}
.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}
.meta-source { color: var(--primary); }
.article-body p {
    color: var(--text);
    line-height: 2;
    font-size: 16px;
    margin-bottom: 18px;
    text-indent: 2em;
}
.article-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.article-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.tag-item {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 13px;
}
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.nav-link {
    color: var(--text-gray);
    font-size: 14px;
    padding: 8px 16px;
    background: #f5f7fa;
    border-radius: 6px;
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary); }

/* 相关新闻 */
.related-news-section {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}
.related-news-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}
.related-news-list li:last-child { border-bottom: none; }
.related-news-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-size: 15px;
}
.related-news-list a:hover { color: var(--primary); }
.related-news-list .dot {
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    flex-shrink: 0;
}
.related-news-list .news-date {
    margin-left: auto;
    color: var(--text-light);
    font-size: 13px;
    flex-shrink: 0;
}

/* 空提示 */
.empty-tip {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.empty-tip a { color: var(--primary); }

/* ========== 详情页响应式 ========== */
@media (max-width: 900px) {
    .detail-layout { grid-template-columns: 1fr; }
    .soft-detail-card { flex-direction: column; text-align: center; }
    .soft-hero-meta { justify-content: center; }
    .soft-hero-action { width: 100%; }
    .news-article { padding: 20px; }
    .article-title { font-size: 20px; }
    .article-body p { font-size: 15px; }
    .screenshots { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .screenshots { grid-template-columns: 1fr; }
    .soft-hero-icon { width: 72px; height: 72px; font-size: 38px; }
    .soft-hero-name { font-size: 22px; }
}

/* ========== 二维码放大灯箱 ========== */
.qr-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.qr-lightbox.show {
    display: flex;
}
.qr-lightbox-inner {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    text-align: center;
    cursor: default;
    max-width: 92vw;
}
.qr-lightbox-close {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 30px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    font-weight: bold;
    transition: color .2s, transform .2s;
}
.qr-lightbox-close:hover {
    color: #333;
    transform: rotate(90deg);
}
#qr-lightbox-img {
    display: block;
    max-width: 340px;
    max-height: 340px;
    width: 70vw;
    height: 70vw;
    object-fit: contain;
    margin: 0 auto;
}
.qr-lightbox-tip {
    margin-top: 14px;
    font-size: 14px;
    color: #666;
}
@media (max-width: 480px) {
    .qr-lightbox-inner { padding: 20px 16px 14px; }
    #qr-lightbox-img { max-width: 280px; max-height: 280px; }
}

/* ========== 博客风格背景图 ========== */
body {
    background:
        linear-gradient(rgba(245, 247, 250, 0.86), rgba(245, 247, 250, 0.86)),
        url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=Cozy%20warm%20workspace%20with%20laptop%2C%20coffee%20cup%2C%20books%20and%20green%20plants%2C%20soft%20morning%20sunlight%2C%20cream%20and%20light%20blue%20tones%2C%20dreamy%20soft%20bokeh%2C%20minimal%20clean%20blog%20background%2C%20high%20key%20photography&image_size=landscape_16_9") center / cover no-repeat fixed;
}

/* ========== 关于博主卡片 ========== */
.blog-intro {
    display: flex;
    align-items: center;
    gap: 24px;
    background: linear-gradient(135deg, #eaf3ff 0%, #f7fbff 60%, #eefaf3 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
}
.blog-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #4d94ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(26, 111, 232, 0.25);
}
.blog-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text);
}
.blog-wave { display: inline-block; animation: blogWave 1.6s ease-in-out infinite; }
@keyframes blogWave {
    0%, 100% { transform: rotate(0deg); }
    30% { transform: rotate(16deg); }
    60% { transform: rotate(-8deg); }
}
.blog-text p {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.9;
}
.blog-tags {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.blog-tag {
    background: var(--white);
    color: var(--primary);
    border: 1px solid rgba(26, 111, 232, 0.25);
    padding: 4px 14px;
    border-radius: 14px;
    font-size: 13px;
}
@media (max-width: 640px) {
    .blog-intro { flex-direction: column; text-align: center; padding: 24px 18px; }
    .blog-tags { justify-content: center; }
}

/* ========== 背景音乐播放器 ========== */
.music-player {
    position: fixed;
    right: 22px;
    bottom: 26px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #4d94ff);
    box-shadow: 0 6px 20px rgba(26, 111, 232, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.25s, box-shadow 0.25s;
    animation: musicPulse 2.4s ease-in-out infinite;
}
.music-player:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 26px rgba(26, 111, 232, 0.55);
}
@keyframes musicPulse {
    0%, 100% { box-shadow: 0 6px 20px rgba(26, 111, 232, 0.4), 0 0 0 0 rgba(26, 111, 232, 0.35); }
    50% { box-shadow: 0 6px 20px rgba(26, 111, 232, 0.4), 0 0 0 12px rgba(26, 111, 232, 0); }
}
.music-disc {
    font-size: 26px;
    display: inline-block;
}
.music-disc.playing {
    animation: discSpin 2s linear infinite;
}
@keyframes discSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
@media (max-width: 480px) {
    .music-player { right: 14px; bottom: 18px; width: 48px; height: 48px; }
    .music-disc { font-size: 22px; }
}

/* ========== 留言板 ========== */
.message-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.message-form input,
.message-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.message-form textarea {
    min-height: 90px;
}

.message-form input:focus,
.message-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.message-form button {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 32px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.message-form button:hover {
    background: var(--primary-dark);
}

.message-form button:active {
    transform: scale(0.97);
}

.message-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 留言列表 */
.message-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.msg-item {
    background: #f8fafd;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    transition: box-shadow 0.2s;
}

.msg-item:hover {
    box-shadow: var(--shadow);
}

.msg-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #4d94ff);
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg-name {
    font-weight: bold;
    color: var(--primary-dark);
    font-size: 14px;
}

.msg-time {
    margin-left: auto;
    color: var(--text-light);
    font-size: 12px;
}

.msg-content {
    color: var(--text);
    font-size: 14px;
    line-height: 1.7;
    word-break: break-word;
    white-space: pre-wrap;
}

.msg-empty {
    text-align: center;
    color: var(--text-light);
    padding: 30px 0;
    font-size: 14px;
}

/* 留言板移动端适配 */
@media (max-width: 480px) {
    .message-card {
        padding: 16px;
    }
    .message-form button {
        width: 100%;
    }
    .msg-time {
        display: none;
    }
}

