/* ==================== 网站通用基础样式 ==================== */
/* 全局盒模型 + 字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
}

/* 底层画布 */
canvas#bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

body {
    background-color: #fdd7f0;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 外层容器 */
.border-a {
    border: 3px solid white;
    margin: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
    border-radius: 12px;
    overflow: hidden;
}

.border-b {
    border: 2px solid white;
    margin: 5mm;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #ff3366 0%, #ff6699 100%);
    border-radius: 8px;
}

.border-d {
    border: 2px solid white;
    margin: 0 5mm 5mm 5mm;
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
}

/* Logo 区域 */
.logo-wrapper {
    background: linear-gradient(135deg, #ff3366 0%, #ff6699 100%);
    border: 2px solid white;
    border-radius: 8px;
    margin: 0 5mm;
    padding: 20px 0;
    text-align: center;
}

.logo-img {
    display: block;
    margin: 0 auto;
    width: 160px;
    height: auto;
}

.header-title {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold;
    color: white;
    margin: 10px 0 0 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* 导航栏（横排正常，不换行） */
/* 导航栏主体 */
/* ================= 导航栏核心：强制横排 ================= */
.navbar {
    display: flex !important;
    flex-wrap: nowrap !important; /* 【核心】nowrap = 强制不换行 */
    justify-content: center !important; /* 居中排列 */
    /* 如果屏幕太小想让它滚动而不是换行，可以用下面这个：
    overflow-x: auto !important; 
    */

    /* 布局间距 */
    gap: 12px !important;
    padding: 14px 20px !important;
    
    /* 外观 */
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.1) !important;
    margin: 15px auto !important;
    max-width: 1200px !important; /* 限制最大宽度，防止在大屏上被无限拉宽 */
    box-sizing: border-box !important;
}

/* ================= 按钮限制：防止挤压变形 ================= */
.nav-btn {
    flex: 0 0 auto !important; /* 【核心】不放大，不缩小，只保持自身尺寸 */
    padding: 10px 20px !important;
    font-size:16px !important;
    
    /* 限制最小宽度，防止文字太长把按钮拉得太宽撑破布局 */
    min-width: 110px !important; 
    
    border: 2px solid transparent !important;
    border-radius: 8px !important;
    background: #f8f9fa !important;
    color: #666 !important;
    cursor: pointer !important;
    white-space: nowrap !important; /* 防止按钮内文字换行 */
    transition: all 0.2s ease !important;
}

.nav-btn:hover,
.nav-btn.active {
    background: #ff3366 !important;
    color: #ffffff !important;
}

.nav-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* 页面切换动画 */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 通用区块 */
.section {
    margin-top: 70px;
    padding: 50px;
    background: #fff;
    border-radius: 28px;
}

.section h2 {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold;
    color: #ff3366;
    margin-bottom: 24px;
}

/* Grid 布局（横排正常） */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.grid a {
    font-size:16px;
    padding: 14px 28px;
    background: #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: background 0.2s;
}

.grid a:hover {
    background: #ff3366;
    color: white;
}

/* 卡片 */
.card {
    font-size:16px;
    padding: 24px;
    border: 2px solid #ffe6e6;
    border-radius: 16px;
    background: #fff;
    margin-bottom: 24px;
}

.card h4 {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold;
    color: #ff3366;
    margin-bottom: 12px;
}

.desc {
    font-size:16px;
    color: #888;
    margin-top: 12px;
}

/* 表单 */
.form-container {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size:16px;
}

input, textarea, select, button {
    font-size:16px;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    width: 100%;
    transition: border 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus, select:focus, button:focus {
    outline: none;
    border-color: #ff3366;
    box-shadow: 0 0 0 3px rgba(255, 51, 102, 0.1);
}

::placeholder {
    font-size:16px;
    color: #aaa;
}

.btn-primary {
    background: linear-gradient(135deg, #ff3366 0%, #ff6699 100%);
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* 内容区 */
.content-area {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.08);
    min-height: 500px;
}

.module-title {
    color: #ff3366;
    margin-bottom: 16px;
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
    border-left: 5px solid #ff3366;
}

.module-desc {
    color: #666;
    margin-bottom: 24px;
    font-size:16px;
}

/* ==================== 社群模块样式 ==================== */
.header {
    background: #00d9cc;
    color: #004d47;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo-text h1 {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold;
    font-weight: bold;
}

.logo-sub {
    font-size:16px;
    opacity: 0.85;
}

.nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav a {
    color: #00665c;
    font-size:16px;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 20px;
    transition: 0.3s;
}

.nav a.active, .nav a:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* 侧边栏 + 主内容 */
.main-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.sidebar {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    height: fit-content;
}

.sidebar h4 {
    color: #008073;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00d9cc;
    font-size:16px;
}

.user-card {
    text-align: center;
    margin-bottom: 20px;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #00d9cc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold;
    margin: 0 auto 10px;
}

.user-info h3 {
    font-size:16px;
    font-weight: bold;
}

.level {
    color: #666;
    font-size:16px;
    margin-top: 4px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}

.stat-item {
    background: #f3f3dc;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.num {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold;
    font-weight: bold;
    color: #008073;
}

.main-content {
    background: #f3f3dc;
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 卡片列表（图片正常，不畸形） */
.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card img {
    width: 100%;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.card img:hover {
    opacity: 0.85;
}

/* 聊天 */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 520px;
    background: #f3f3dc;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f3f3dc;
}

.message {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.message-other {
    align-items: flex-start;
}

.message-content {
    padding: 12px 18px;
    border-radius: 18px;
    background: #008073;
    color: #fff;
    max-width: 70%;
    word-break: break-word;
}

.message-other .message-content {
    background: #eee;
    color: #000;
}

.message-meta {
    font-size:16px;
    color: #999;
    margin-top: 4px;
    display: flex;
    gap: 10px;
}

.msg-del-btn {
    color: #e64545;
    cursor: pointer;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    background: #f3f3dc;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size:16px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size:16px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-danger {
    background: #e64545;
    color: #fff;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold;
    color: #999;
    cursor: pointer;
}

/* 图片预览 */
.image-view-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-view-modal.active {
    display: flex;
}

.image-view-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.close-img-view {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold;
    color: #fff;
    cursor: pointer;
    background: transparent;
    border: 0;
}

/* ==================== 发现页 ==================== */
body.discovery-page {
    background-color: #fafafa;
    padding: 16px;
    color: #333;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 20px;
}

.page-title {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold;
    font-weight: 700;
}

.refresh-btn {
    padding: 10px 20px;
    font-size:16px;
    font-weight: 600;
    border: none;
    background: #ff4d4f;
    color: #fff;
    border-radius: 20px;
    cursor: pointer;
}

.waterfall-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .waterfall-wrap { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
    .waterfall-wrap { grid-template-columns: repeat(4, 1fr); }
}

.work-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-2px);
}

.img-wrap {
    width: 100%;
    background: #f5f5f5;
    aspect-ratio: 4 / 3;
}

.work-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.work-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size:16px;
    border: 1px solid #e0e0e0;
}

.tag-space-id {
    background: #e6f7ff;
    border-color: #91d5ff;
    color: #1890ff;
}

.tag-desc {
    background: #f6f6f6;
    border-color: #d9d9d9;
    color: #595959;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.author-text {
    font-size:16px;
    color: #666;
}

.loading-tip, .empty-tip, .error-tip, .guest-tip {
    text-align: center;
    padding: 40px 0;
    font-size:16px;
    color: #999;
}

.error-tip {
    color: #f53f3f;
}

/* ==================== 适老模式（可选，不默认开启） ==================== */
/* 使用方式：给 html 标签加 class="elder-mode" */
.elder-mode input,
.elder-mode textarea,
.elder-mode select,
.elder-mode button {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    padding: 18px 20px !important;
    border-width: 3px !important;
    border-radius: 12px !important;
}

.elder-mode .form-label,
.elder-mode label,
.elder-mode .desc,
.elder-mode p,
.elder-mode h2,
.elder-mode h4 {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
}

.elder-mode ::placeholder {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
}

.elder-mode .nav-btn {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    padding: 16px 28px !important;
}

.elder-mode .grid a {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    padding: 20px 32px !important;
}

.elder-mode .card {
    padding: 32px !important;
}

.elder-mode .card h4 {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
}

.elder-mode .tag,
.elder-mode .author-text {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
}

.elder-mode .work-info {
    padding: 24px !important;
    gap: 16px !important;
}

.elder-mode .navbar {
    gap: 16px;
}
/* ===============================
   通用头部样式（高优先级 / 防覆盖）
   =============================== */

/* 导航栏主体 */
/* ============================================================
   通用头部样式（适老化 · 响应式防溢出版）
   包含：导航栏 + 分类按钮
   ============================================================ */

/* =========================
   1. 导航栏（顶部）
   ========================= */
.border-a > .navbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100% !important;
    max-width: 100% !important;
    margin: 15px auto !important;
    padding: 10px 8px !important;

    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.border-a > .navbar > .nav-btn {
    /* 适老核心 */
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;

    /* 自适应 */
    flex: 1 1 auto !important;
    min-width: 90px !important;
    max-width: 160px !important;

    /* 布局 */
    margin: 4px 4px !important;
    padding: 12px 10px !important;

    /* 外观 */
    border: none !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    color: #222 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

.border-a > .navbar > .nav-btn:hover,
.border-a > .navbar > .nav-btn.active {
    background: #ff3366 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.contact-info {
    font-size:16px; /* 合规最小字号 */
    margin-top: 10px;
    line-height: 1.6;
}
.contact-info h3 {
    font-size:16px; /* 标题稍微大一点点 */
    margin-bottom: 5px;
}

/* =========================
   2. 分类按钮（中部）
   ========================= */
.category-group {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;

    gap: 12px !important;
    max-width: 1000px !important;
    margin: 20px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.category-btn {
    /* 适老核心 */
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;          /* ✅ 加大字号 */
    font-weight: 700 !important;         /* ✅ 加粗 */
    line-height: 1.3 !important;
    color: #222 !important;
    text-align: center !important;
    white-space: nowrap !important;

    /* 自适应 */
    flex: 0 0 auto !important;
    min-width: 100px !important;
    max-width: 180px !important;

    /* 布局 */
    padding: 14px 24px !important;      /* ✅ 扩大点击区域 */
    margin: 0 !important;

    /* 外观 */
    border: none !important;
    border-radius: 10px !important;
    background: #f0f0f0 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

.category-btn:hover,
.category-btn.active {
    background: #ff3366 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3) !important;
}

/* =========================
   3. Logo 区域
   ========================= */
.border-a > .logo-wrapper {
    text-align: center !important;
    padding: 14px 0 !important;
    background: #ffffff !important;
    border-bottom: 2px solid #ff3366 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.border-a > .logo-wrapper .logo-img {
    max-width: 130px !important;
    height: auto !important;
    vertical-align: middle !important;
}

.border-a > .logo-wrapper .header-title {
    display: block !important;
    margin: 10px auto 0 !important;
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    font-weight: 700 !important;
    color: #222 !important;
    max-width: 90% !important;
    line-height: 1.3 !important;
}


/* ============================================================
   首页专用样式（适老化·对齐修复版）
   对应结构：#home > .section > .grid > a
   ============================================================ */

/* 1. 首页顶部标语（加大加粗，醒目） */
#home .tagline {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    font-weight: 700 !important;
    color: #ff3366 !important;
    text-align: center !important;
    padding: 15px 10px !important;
    line-height: 1.4 !important;
}

/* 2. 区块标题（五体书法/美术，加大加粗） */
#home .section h2 {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    font-weight: 700 !important;
    color: #ff3366 !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #ffe6e6 !important;
}

/* 3. 分类按钮容器（对齐核心：统一间距+居中排列） */
#home .section .grid {
    display: flex !important;
    flex-wrap: wrap !important;          /* 空间不够自动换行 */
    justify-content: center !important; /* 所有按钮居中对齐，换行后也整齐 */
    align-items: stretch !important;     /* 所有按钮等高，视觉统一 */
    gap: 15px !important;               /* 按钮统一间距，比margin好控制 */
    padding: 0 10px !important;         /* 左右留边，不贴屏幕 */
    box-sizing: border-box !important;
}

/* 4. 分类按钮（a标签，适老+对齐核心） */
#home .section .grid > a {
    /* === 适老核心：加大加粗 === */
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    font-weight: 700 !important;
    color: #222 !important;
    text-align: center !important;
    white-space: nowrap !important;     /* 文字不换行，保证按钮整齐 */
    
    /* === 对齐核心：统一尺寸 === */
    flex: 1 1 140px !important;         /* 基准宽度140px，空间够就平分，不够就换行 */
    min-width: 120px !important;        /* 最小宽度，避免太窄 */
    max-width: 200px !important;        /* 最大宽度，避免文字太长撑破 */
    padding: 16px 20px !important;     /* 加大内边距，点击区域更大 */
    
    /* === 外观统一 === */
    display: flex !important;
    align-items: center !important;     /* 文字垂直居中 */
    justify-content: center !important; /* 文字水平居中 */
    border-radius: 10px !important;
    background: #f0f0f0 !important;
    border: none !important;
    text-decoration: none !important;    /* 去掉a标签下划线 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

/* 5. 分类按钮交互状态（和导航栏风格统一） */
#home .section .grid > a:hover,
#home .section .grid > a:active {
    background: #ff3366 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 10px rgba(255, 51, 102, 0.3) !important;
}

/* 6. 老人免密登录按钮（突出显示，重点操作） */
#home .btn-primary {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    font-weight: 700 !important;
    padding: 18px 40px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ff3366 0%, #ff6699 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#home .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(255, 51, 102, 0.4) !important;
}

/* 7. 底部操作按钮（账号登录/注册等，统一适老） */
#home > div[style*="text-align:center"] .btn {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    margin: 8px !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #333 !important;
    border: 2px solid #ff3366 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

#home > div[style*="text-align:center"] .btn:hover {
    background: #ff3366 !important;
    color: #ffffff !important;
}

/* 8. 小屏适配（手机端自动调整，不溢出） */
@media (max-width: 768px) {
    #home .section .grid > a {
        flex: 1 1 45% !important;       /* 手机端一行2个，更整齐 */
        min-width: unset !important;
        font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
        padding: 14px 16px !important;
    }
    
    #home .tagline {
        font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    }
    
    #home .section h2 {
        font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    }
    
    #home .btn-primary {
        font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
        padding: 16px 30px !important;
    }
}
/* 仅弹窗内全局文字放大加粗，不影响页面其他区域 */
.modal .modal-content h3,
.modal .modal-content div,
.modal .modal-content input,
.modal .modal-content textarea,
.modal .modal-content span,
.modal .modal-content .tip-text {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    font-weight: 900 !important;
}
.modal .modal-content input,
.modal .modal-content textarea {
    padding: 16px 14px !important;
}
/* 弹窗内按钮统一替换class nav-btn样式 */
.modal .modal-actions button {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    font-weight: 900 !important;
    padding: 14px 28px !important;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.modal .modal-actions button.btn-primary {
    background: #008073;
    color: #fff;
}
.modal .modal-actions button.btn-secondary {
    background: #f0f0f0;
    color: #333;
}
.modal .modal-actions button.btn-danger {
    background: #e64545;
    color: #fff;
}
.modal .modal-actions button:disabled {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
}
/* 瀑布流卡片文字同步放大加粗 */
.modal .modal-content .card div {
    font-size:24px;font-weight:bold;font-weight:bold;font-weight:bold !important;
    font-weight: bold !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .card-list {
        grid-template-columns: 1fr;
    }

   

    .section {
        padding: 24px;
        margin-top: 40px;
    }
    
   /* 通用移动端侧边栏抽屉 */
@media (max-width: 768px) {
    /* 所有需要改成抽屉的侧边栏，统一加类名 m-drawer-sidebar */
    .m-drawer-sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        margin: 0;
        border-radius: 0;
    }
    .m-drawer-sidebar.open {
        transform: translateX(0);
    }
    /* 遮罩层 */
    .drawer-mask {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 998;
    }
    .drawer-mask.show {
        display: block;
    }
    /* 菜单触发按钮 */
    .drawer-toggle-btn {
        display: block;
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 100;
        padding: 8px 12px;
        background: #00d9cc;
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
    }
}
