/* ========== 全局样式 ========== */
* {
    margin: 0;
    align-self: center;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
}

body {
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f1724 0%, #1a2535 100%);
    min-height: 100vh;
    color: #ffcc00; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 12pt;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1 0 auto;
    width: 100%;
}

/* ========== 页眉样式 ========== */
.festive-header {
    width: 100%;
    background: linear-gradient(135deg, #0f1724 0%, #1e2a3a 100%);
    position: relative;
    color: #ffcc00; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 12pt;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 204, 0, 0.2);
}

.header-content {
    text-align: center;
    padding: 40px 20px 20px 20px;
    position: relative;
}

.brand-badge {
    display: inline-block;
    background: transparent;
    border: 2px solid rgba(255, 204, 0, 0.3);
    border-left: 4px solid #ffcc00;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 40px;
    padding: 6px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffd966;
    margin-bottom: 25px;
}

.festive-header h1 {
    font-size: 3.2rem;
    background: linear-gradient(135deg, #ffffff 0%, #ffd966 80%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

.subtitle {
    color: #a0b3cc;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* ========== 导航菜单 ========== */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 2rem;
    flex-wrap: wrap;
}

.main-nav a {
    color: #ffd966;
    text-decoration: none;
    font-weight: 500;
    font-size: 12pt;
    padding: 0.3rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.main-nav a:hover {
    background: rgba(255, 204, 0, 0.2);
    color: #fff;
}

/* ========== 分类标题 ========== */
.category-title {
    font-size: 1.9rem;
    color: #ffd966;
    margin: 45px 0 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.category-title:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ffcc00, #2575fc);
    border-radius: 3px;
}

/* ========== 软件卡片网格 ========== */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 60px;
}

/* 平板 */
@media (max-width: 1200px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 手机 */
@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    background: rgba(20, 30, 45, 0.9);
    border-radius: 20px;
    padding: 25px 20px 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.app-card:hover {
    background: #ffffff;
    border: 1px solid rgba(255, 204, 0, 0.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.app-card:hover .app-title,
.app-card:hover .app-description,
.app-card:hover .app-category {
    color: #1e2a3a;
}

.app-card:hover .button {
    background: #ffcc00;
    border-color: #ffcc00;
    color: #1e2a3a;
    font-weight: 600;
}

.app-category {
    display: block;
    color: #6c86a3;
    opacity: 0.7;
    font-size: 0.8rem;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.app-card:hover .app-category {
    color: #4caf50;
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 18px;
    text-align: center;
}

.app-title {
    font-size: 1.55rem;
    color: #f0f3f8;
    margin-bottom: 8px;
    font-size: 12pt;
    font-weight: 700;
    text-align: center !important;
}

.app-description {
    color: #b9c7dd;
    margin-bottom: 20px;
    font-size: 0.92rem;
    flex: 1;
}

/* ========== 按钮样式 ========== */
.button {
    width: 80%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2a3a 100%);
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 400;
    text-align: center !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 204, 0, 0.3);
    cursor: pointer;
    margin: auto auto 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3e5a74 0%, #243546 100%);
    border-color: #ffcc00;
}

/* ========== 页脚样式 ========== */
footer {
    position: relative;
    background: linear-gradient(135deg, #0b1119 0%, #141e2c 100%);
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 60px;
    border-top: none;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffcc00, #ffcc00, transparent);
    pointer-events: none;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px 25px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffd966;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-logo:before {
    content: "✨";
    margin-right: 8px;
}

.footer-tagline {
    color: #9aaec9;
    font-size: 12pt;
    line-height: 1.5;
    max-width: 280px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.social-icon {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd966;
    text-decoration: none;
    border: 1px solid rgba(255, 204, 0, 0.3);
    transition: all 0.2s;
}

.social-icon:hover {
    background: #ffcc00;
    color: #1a2a3a;
    transform: translateY(-3px);
}

.footer-links {
    flex: 1;
    min-width: 150px;
}

.footer-contact {
    flex: 1;
    min-width: 220px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 18px;
    color: #ffd966;
    position: relative;
    padding-bottom: 8px;
}

.footer-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: #ffcc00;
}

.footer-nav {
    list-style: none;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 8px;
}

.footer-nav a,
.contact-info a,
.footer-legal a {
    font-size: 12pt;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.2s;
}

.footer-nav a:hover,
.contact-info a:hover,
.footer-legal a:hover {
    text-decoration: underline;
}

.footer-nav a:before {
    content: "›";
    margin-right: 8px;
    color: #ffcc00;
}

/* ========== 联系方式列表间距修复 ========== */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 8px;
    font-size: 12pt;
    display: flex;
    align-items: center;
    gap: 4px;  /* 从 10px 调整到 4px，图标与文字更紧凑 */
    color: #b9c7dd;
}

/* 确保图标 span 没有多余的 margin/padding */
.contact-info li span:first-child {
    margin-right: 0 !important;
    padding-right: 0 !important;
    min-width: auto !important;
    display: inline;
    font-size: 12pt;
}

/* 文字区域的 span 清除多余 padding */
.contact-info li span:last-child {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* 链接本身无额外内外边距 */
.contact-info a {
    padding: 0;
    margin: 0;
    align-self: center;
    display: inline;
    font-size: 12pt;
}

.contact-info li span:first-child {
    color: #ffcc66;
}

.simple-counter {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b0c4de;
}

.simple-counter .counter-number {
    color: #ffcc66;
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.copyright,
.footer-legal {
    color: #9aaec9;
    font-size: 12pt;
}

.footer-legal a {
    font-size: 12pt;
    color: #ffffff !important;
}

/* ========== 浮动社交图标 ========== */
.floating-social {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #1e2a3a;
    border-radius: 50%;
    color: #ffd966;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    border: 1px solid rgba(255, 204, 0, 0.4);
}

.floating-social a:hover {
    transform: scale(1.1);
    background: #ffcc00;
    color: #1a2a3a;
}

.floating-social a img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.floating-social a img:hover {
    transform: scale(1.1);
}

/* ========== 其他通用组件 ========== */
.alert {
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert.success {
    background: #2e7d32;
    color: white;
}

.alert.error {
    background: #c62828;
    color: white;
}

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 30px 0;
}

.pagination a {
    padding: 8px 14px;
    background: #1e2a3a;
    border-radius: 8px;
    color: #ffd966;
    text-decoration: none;
}

.pagination a.active {
    background: #ffcc00;
    color: #1e2a3a;
}

/* 软件详情页 */
.software-detail {
    background: rgba(20, 30, 45, 0.7);
    border-radius: 24px;
    padding: 30px;
}

.software-detail img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

.description {
    margin: 20px 0;
    line-height: 1.8;
}

.description p {
    text-indent: 2em;
    margin-bottom: 1em;
}

/* 留言板表单 */
form input,
form textarea,
form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #0f1724;
    border: 1px solid #334155;
    border-radius: 12px;
    color: #fff;
}

.message {
    background: #1e2a3a;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* 涟漪动画 */
@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 204, 100, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

/* 富文本编辑器文字清晰化 */
.ck-editor__editable_inline,
.ck-content,
.ck.ck-editor__main > .ck-editor__editable,
#editor,
#editor1,
#editor2,
textarea,
input,
select {
    font-family: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.ck.ck-editor__editable_inline p,
.ck.ck-editor__editable_inline span,
.ck.ck-editor__editable_inline div {
    color: #f0f3f8 !important;
    opacity: 1 !important;
}

.ck-editor__editable_inline {
    background-color: #1e2a3a !important;
    color: #e2e8f0 !important;
}

.ck-editor__editable_inline h1,
.ck-editor__editable_inline h2,
.ck-editor__editable_inline h3,
.ck-editor__editable_inline h4 {
    color: #ffd966 !important;
}

.ck-editor__editable_inline p,
.ck-editor__editable_inline span,
.ck-editor__editable_inline div {
    color: #e2e8f0 !important;
}

/* 详情页新样式 */
.software-detail-modern {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.detail-main-modern {
    flex: 2;
    min-width: 0;
}

.detail-sidebar-modern {
    flex: 1;
    min-width: 260px;
}

.software-screenshot {
    max-width: 100%;
    margin-bottom: 20px;
}

.software-screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.software-info-side {
    margin-bottom: 20px;
}

.info-item {
    margin-bottom: 10px;
}

.info-label {
    font-weight: bold;
    color: #ffd966;
    display: inline-block;
    width: 90px;
}

.download-link {
    display: inline-block;
    background: #2c3e50;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid #ffcc00;
    color: #fff;
    text-decoration: none;
}

.pan-code {
    background: #1e2a3a;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .software-detail-modern {
        flex-direction: column;
    }
}

.meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 12px 0;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
    font-size: 12pt;
    color: #b9c7dd;
}

.software-screenshot {
    margin: 20px 0;
    text-align: left;
}

.software-screenshot img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0;
}

.btn-download {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-local {
    background: #2c3e50;
    color: white;
    border: 1px solid #ffcc00;
}

.btn-local:hover {
    background: #1e2a3a;
    transform: translateY(-2px);
}

.btn-pan {
    background: #3b5998;
    color: white;
}

.btn-pan:hover {
    background: #2d4373;
}

.btn-custom {
    background: #6c757d;
    color: white;
}

.pan-code {
    margin-left: 10px;
    font-size: 12pt;
    color: #ffcc66;
}

/* 侧边栏推荐卡片 */
.sidebar-recommend-modern h3 {
    color: #ffd966;
    margin-bottom: 15px;
}

.rec-card-modern {
    background: rgba(20, 30, 45, 0.6);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: 0.2s;
}

.rec-card-modern:hover {
    background: rgba(255, 204, 0, 0.1);
    transform: translateX(5px);
}

.rec-card-modern a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    color: #ffcc00; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 12pt;
}

.rec-img-modern {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.rec-img-placeholder-modern {
    width: 50px;
    height: 50px;
    background: #2c3e50;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.rec-info-modern h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.sidebar-ad-modern {
    background: rgba(20, 30, 45, 0.6);
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 30px;
    text-align: left;
}

/* 评论样式 */
.comments-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #334155;
}

.comment-item {
    background: rgba(20, 30, 45, 0.5);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.comment-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #ffd966;
}

.comment-content {
    line-height: 1.6;
}

.no-comments {
    color: #9aaec9;
    padding: 20px;
    text-align: left;
}

#comment-form {
    background: rgba(20, 30, 45, 0.5);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

#comment-form .form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

#comment-form .form-group {
    flex: 1;
}

#comment-form .full-width {
    flex: 1 1 100%;
}

#comment-form label {
    margin-bottom: 6px;
    color: #ffd966;
}

#comment-form .required {
    color: #ff6666;
}

.submit-comment {
    width: auto;
    padding: 10px 30px;
    margin-top: 10px;
}

/* 响应式 */
@media (max-width: 768px) {
    .software-detail-modern {
        flex-direction: column;
    }
    .apps-grid {
        grid-template-columns: 1fr;
    }
    .festive-header h1 {
        font-size: 2.2rem;
    }
    .main-nav {
        gap: 0.5rem;
    }
    .main-nav a {
        background: rgba(0, 0, 0, 0.3);
        padding: 0.3rem 1rem;
        border-radius: 6px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    .main-nav a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 30% 30%, rgba(255, 215, 0, 0.4), transparent);
        transition: left 0.5s ease;
        pointer-events: none;
    }
    .main-nav a:hover::before {
        left: 0;
    }
    .main-nav a:hover {
        background: rgba(0, 0, 0, 0.5);
        color: #ffcc00;
        text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
    }
    .footer-top {
        flex-direction: column;
    }
    #comment-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .festive-header h1 {
        font-size: 1.9rem;
    }
    .button {
        padding: 12px 16px;
    }
    .app-title {
        font-size: 1.4rem;
    }
}

/* 强制修复详情页图片溢出 */
.detail-main-modern {
    overflow-x: hidden;
}

.detail-main-modern img,
.detail-main-modern p img,
.detail-main-modern .description img {
    max-width: 100% !important;
    height: auto !important;
}

/* 强制编辑器文字为亮色 */
.ck-editor__editable_inline,
.ck-editor__editable_inline * {
    background-color: #1e2a3a !important;
    color: #e2e8f0 !important;
}

.ck-editor__editable_inline h1,
.ck-editor__editable_inline h2,
.ck-editor__editable_inline h3,
.ck-editor__editable_inline strong {
    color: #ffd966 !important;
}

.ck-editor__editable_inline p {
    color: #e2e8f0 !important;
}

/* ========== 页眉菜单优化 ========== */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem auto 2rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 60px;
    padding: 6px 20px;
    width: fit-content;
    backdrop-filter: blur(4px);
}

.main-nav a {
    color: #ffd966;
    text-decoration: none;
    font-weight: 500;
    font-size: 12pt;
    padding: 8px 20px;
    border-radius: 40px;
    transition: all 0.2s;
}

.main-nav a:hover {
    background: #ffcc00;
    color: #1e2a3a;
}

.header-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffcc00, #ffcc00, transparent);
}

/* 访客计数器样式 */
.visitor-counter {
    margin-top: 12px;
    text-align: left;
}

.counter-text {
    color: #ffd966;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 网站 Logo 样式 */
.title-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.site-logo {
    height: 80px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .site-logo {
        height: 42px;
    }
}

/* ========== 全站搜索框 ========== */
.global-search-wrapper {
    text-align: center;
    margin: 20px auto 10px;
    max-width: 1400px;
    padding: 0 20px;
}

.global-search-form {
    display: inline-flex;
    align-items: center;
    background: transparent;
    overflow: hidden;
}

.search-label {
    background: transparent;
    padding: 0 12px 0 0;
    font-size: 12pt;
    color: #ffd966;
    height: 42px;
    line-height: 42px;
}

/* 搜索框外框 */
.search-input-group {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 204, 0, 0.5);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: border-color 0.2s;
    width: 400px;
    height: 42px;
}
.search-input-group:focus-within {
    border-color: #ffcc00;
}
.global-search-input {
    flex: 1;
    padding: 0 12px;
    line-height: normal;
    border: none;
    background: transparent;
    height: 42px;
    box-sizing: border-box;
    font-size: 12pt;
    color: #ffffff;
    outline: none;
    vertical-align: middle;
    margin-bottom: 0px !important;
}

::-webkit-input-placeholder { color: #b9c7dd; }
::-moz-placeholder { color: #b9c7dd; }
:-ms-input-placeholder { color: #b9c7dd; }
::placeholder { color: #b9c7dd; }
input:focus::placeholder { color: transparent !important; }
input:focus::-webkit-input-placeholder { color: transparent !important; }
input:focus::-moz-placeholder { color: transparent !important; }
.global-search-input:focus {
    border-color: #ffaa00;
}

.global-search-input::placeholder {
    color: #b9c7dd;
}
.global-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    outline: none;
    vertical-align: middle;
    margin-bottom: 0px !important;
    background: transparent !important;
    cursor: pointer;
    padding: 0;
    margin: 0;
    align-self: center;
    -webkit-appearance: none;
    appearance: none;
}
.global-search-btn:hover {
    background: rgba(255, 204, 0, 0.15) !important;
}
.global-search-btn img {
    display: block;
}



@media (max-width: 1200px) {
    .global-search-input {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .search-input-group {
        width: auto;
        max-width: 90vw;
    }
    .global-search-input {
        width: auto;
        min-width: 120px;
    }
    .search-label {
        display: none;
    }
}

/* ========== 滚动公告栏 ========== */
.announcement-roller {
    background: transparent;
    border: 2px solid rgba(255, 204, 0, 0.3);
    border-left: 4px solid #ffcc00;
    border-left: 4px solid #ffcc00;
    border-radius: 8px;
    padding: 10px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    backdrop-filter: blur(4px);
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.roller-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.roller-content {
    flex: 1;
    min-width: 200px;
    position: relative;
    height: 32px;
    overflow: hidden;
}

.announcement-item {
    line-height: 32px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffcc00; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 12pt;
}

.announcement-item:hover {
    color: #ffcc00;
    text-decoration: underline;
}

.roller-nav {
    font-size: 0.8rem;
    color: #b9c7dd;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.roller-nav span:hover {
    color: #ffcc00;
}

/* ========== 公告弹窗 ========== */
.modal-announcement {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.modal-announcement-content {
    background: linear-gradient(145deg, #1f2a3e, #16202e);
    border-radius: 16px;
    width: 90%;
    max-width: 580px;
    max-height: 80vh;
    overflow: hidden;
    color: #ffcc00; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 12pt;
    border: none;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 204, 0, 0.2);
    position: relative;
    animation: modalSlideUp 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 10px 24px;
    border-bottom: 1px solid rgba(255, 204, 0, 0.25);
}

.modal-icon {
    font-size: 1.8rem;
    background: rgba(255, 204, 0, 0.15);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-header h3 {
    color: #ffd966;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    align-self: center;
    flex: 1;
    letter-spacing: -0.3px;
}

.close-announcement {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ffd966;
    font-size: 24px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-announcement:hover {
    background: #ffcc00;
    color: #1e2a3a;
    transform: scale(1.05);
}

.modal-body {
    padding: 24px;
    line-height: 1.7;
    font-size: 1rem;
    color: #ffcc00; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 12pt;
    overflow-y: auto;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #ffcc00 #2a3a4a;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #2a3a4a;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #ffcc00;
    border-radius: 10px;
}

.modal-body p {
    margin-bottom: 1em;
}

.modal-announcement-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffcc00, #ffaa00, #ffcc00);
    border-radius: 0 0 16px 16px;
    opacity: 0.7;
}

@media (max-width: 640px) {
    .modal-header h3 {
        font-size: 1.2rem;
    }
    .modal-icon {
        width: 40px;
        height: 42px;
        font-size: 1.4rem;
    }
    .modal-body {
        padding: 20px;
        font-size: 12pt;
    }
}

/* ========== 登录区域右上角 ========== */
.login-area {
    position: absolute;
    top: 20px;
    right: 20px;
}

.login-dropdown {
    position: relative;
    display: inline-block;
}

.login-trigger {
    color: #ffd966;
    cursor: pointer;
    font-size: 12pt;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    transition: 0.2s;
}

.login-trigger:hover {
    background: #ffcc00;
    color: #1e2a3a;
}

.login-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1e2a3a;
    border: 1px solid #ffcc00;
    border-radius: 12px;
    padding: 8px 0;
    min-width: 120px;
    list-style: none;
    display: none;
    z-index: 1000;
}

.login-dropdown:hover .login-dropdown-menu {
    display: block;
}

.login-dropdown-menu li a {
    display: block;
    padding: 8px 16px;
    color: #ffcc00; font-family: "Microsoft YaHei", "微软雅黑", sans-serif; font-size: 12pt;
    text-decoration: none;
    transition: 0.2s;
}

.login-dropdown-menu li a:hover {
    background: rgba(255, 204, 0, 0.2);
    color: #ffcc00;
}

.login-area .register-link,
.login-area .login-link {
    color: #ffd966 !important;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 6px;
    margin-right: 8px;
    font-size: 12pt;
    transition: all 0.2s;
    text-decoration: none;
    border: 1px solid rgba(255, 204, 0, 0.3);
}

.login-area .register-link:hover,
.login-area .login-link:hover {
    background: #ffcc00;
    color: #1e2a3a !important;
    border-color: #ffcc00;
}

/* ========== 登录弹窗内样式 ========== */
#loginModal .login-links a,
#loginModal .social-login-buttons a {
    color: #ffd966 !important;
    text-decoration: none;
    transition: all 0.2s;
}

#loginModal .login-links a:hover,
#loginModal .social-login-buttons a:hover {
    color: #ffcc00 !important;
    text-decoration: underline;
}

#loginModal .social-login-buttons a {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 204, 0, 0.5);
    border-radius: 6px;
    padding: 6px 16px;
}

#loginModal .social-login-buttons a:hover {
    background: #ffcc00;
    color: #1e2a3a;
}

.close-login-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #ffd966;
}

.close-login-modal:hover {
    color: #fff;
}

.btn-login-submit {
    background: #ffcc00;
    color: #1e2a3a;
    font-weight: bold;
    border: none;
    transition: 0.2s;
    cursor: pointer;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
}

.btn-login-submit:hover {
    background: #e6b800;
    color: #0f1724;
    transform: translateY(-2px);
}

/* 优化登录弹窗间距 */
#loginModal .modal-body {
    padding: 20px 24px 30px;
}
#loginModal .form-group {
    margin-bottom: 20px;
}
#loginModal .btn-login-submit {
    margin-top: 10px;
    margin-bottom: 15px;
}
#loginModal .login-links {
    text-align: center;
    margin: 10px 0 6px;
}
#loginModal .login-links a {
    font-size: 0.85rem;
}
#loginModal .social-login-divider {
    text-align: center;
    margin: 20px 0 10px;
    font-size: 0.75rem;
    color: #9aaec9;
}
#loginModal .social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
    flex-wrap: wrap;
}
#loginModal .social-login-buttons a {
    font-size: 0.8rem;
    padding: 4px 12px;
}

/* 登录后的用户信息样式 */
.user-info {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 204, 0, 0.3);
}
.user-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    vertical-align: middle;
    margin-bottom: 0px !important;
}
.user-nickname {
    color: #ffd966;
    font-weight: 500;
}
.logout-link {
    color: #ffd966;
    text-decoration: none;
    margin-left: 5px;
    padding: 4px 8px;
    border-radius: 20px;
    transition: 0.2s;
}
.logout-link:hover {
    background: #ffcc00;
    color: #1e2a3a;
}

.bind-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}
.bind-status {
    font-size: 12pt;
}
.bind-status.bound {
    color: #2e7d32;
}
.bind-status.unbound {
    color: #9aaec9;
}
.btn-bind, .btn-unbind {
    background: #0f1724;
    color: #ffd966;
    border: 1px solid #ffcc00;
    padding: 4px 12px;
    border-radius: 20px;
    cursor: pointer;
}
.btn-unbind {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
}
/********** 移动端三条杠菜单 **********/
@media (max-width: 1200px) {
    /* 隐藏桌面端登录区域和主导航 */
    .login-area { display: none !important; }
    .main-nav { display: none !important; }
    
    /* 显示三条杠按钮 */
    .hamburger-btn {
        display: flex !important;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        cursor: pointer;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: rgba(0,0,0,0.3);
        padding: 8px;
        border-radius: 6px;
    }
    
    .hamburger-btn span {
        display: block;
        width: 100%;
        height: 3px;
        background: #ffcc00;
        border-radius: 2px;
        transition: all 0.3s ease;
    }
    
    .hamburger-btn.active span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    /* 移动端遮罩层 */
    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
    .mobile-overlay.active {
        display: block;
    }
    
    /* 移动端菜单 */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        left: -280px;
        width: 260px;
        max-height: 100%;
        height: auto;
        min-height: 100%;
        background: #1a2a3a;
        z-index: 1000;
        overflow-y: auto;
        overflow-x: hidden;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }
    .mobile-menu.active {
        display: block;
        left: 0;
    }
    
    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: #0d1a28;
        border-bottom: 1px solid #334155;
        color: #ffcc00;
        font-weight: bold;
    }
    
    .mobile-menu-close {
        background: none;
        border: none;
        color: #ffcc00;
        font-size: 28px;
        cursor: pointer;
        line-height: 1;
    }
    
    .mobile-menu-list, .mobile-menu-auth-list {
        list-style: none;
        padding: 0;
        margin: 0;
    align-self: center;
    }
    
    .mobile-menu-list li a, .mobile-menu-auth-list li a {
        display: block;
        padding: 12px 20px;
        color: #b9c7dd;
        text-decoration: none;
        border-bottom: 1px solid rgba(51,65,85,0.5);
        transition: all 0.2s;
    }
    
    .mobile-menu-list li a:hover, .mobile-menu-auth-list li a:hover {
        background: rgba(255,204,0,0.1);
        color: #ffcc00;
    }
    
    .mobile-menu-section-title {
        padding: 12px 20px 8px;
        color: #6c86a3;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .has-submenu .submenu-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .has-submenu .submenu-toggle .arrow {
        transition: transform 0.2s;
    }
    .has-submenu .submenu-toggle.active .arrow {
        transform: rotate(90deg);
    }
    
    .mobile-submenu {
        display: none;
        list-style: none;
        padding: 0 0 4px 0;
        margin: 0;
    align-self: center;
        background: rgba(0,0,0,0.2);
    }
    .mobile-submenu.active {
        display: block;
    }
    .mobile-submenu li a {
        padding-left: 40px !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        font-size: 14px;
    }
    .mobile-submenu li:last-child a {
        border-bottom: none;
    }
}
@media (min-width: 1201px) {
    .hamburger-btn, .mobile-menu, .mobile-overlay {
        display: none !important;
    }
}

        display: none !important;
    }
}
/********** END 移动端三条杠菜单 **********/

/* 移动端隐藏浮动图标 */
@media (max-width: 992px) {
    .floating-icon.hide-mobile { display: none !important; }
}

/* ========== 移动端页脚 ========== */
@media (max-width: 992px) {
    /* 仅将快速导航改为两行两列 */
    footer .footer-top .footer-links .footer-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
    }
    footer .footer-top .footer-links .footer-nav li { margin-bottom: 0; }
    .copyright-mobile { display: block; text-align: center; padding: 10px 15px 5px; font-size: 10pt; color: #9aaec9; line-height: 2; }
    .copyright-mobile a { color: #ffffff !important; text-decoration: underline; }
    footer .footer-bottom { padding: 5px 10px 15px; flex-direction: column; text-align: center; }
    footer .footer-bottom .copyright,
    footer .footer-bottom .footer-legal { display: none; }
    footer .footer-bottom .copyright,
    footer .footer-bottom .footer-legal {
        font-size: 10pt !important;
    }
    footer .footer-bottom .copyright span,
    footer .footer-bottom .footer-legal span {
        display: none;
    }
}
@media (min-width: 993px) {
    .copyright-mobile { display: none; }
}


/* 覆盖CDN缓存中的旧规则 */
@media (max-width: 992px) {
    footer .footer-top { display: flex !important; }
}


/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: background 0.3s;
}

.user-dropdown-trigger:hover {
    background: rgba(255,255,255,0.2);
}

.user-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0; border-top: 5px solid transparent;
    min-width: 180px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    list-style: none;
    padding: 8px 0;
    z-index: 1000;
}

.user-dropdown:hover .user-dropdown-menu {
    display: block;
}

.user-dropdown-menu li a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.user-dropdown-menu li a:hover {
    background: #f5f5f5;
    color: #d4af37;
}

.sso-nav-divider {
    height: 1px;
    background: #eee;
    margin: 5px 0;
}

.logout-item {
    color: #e53935 !important;
}

