/* ===== 简川综合漫研社 · 视觉主题（杂志编辑风）=====
 *
 * 设计基调参考「印刷杂志 / 编辑排版」：
 *   米白纸感底色 · 近黑粗体标题 · 玫红点缀 · 深蓝辅助
 *   直角（不用圆角）· 细分割线（不用柔和阴影）· 大字重对比
 *
 * 载入顺序很重要：这个文件必须放在每个页面自己的 <style> 之后，
 * 否则页面里 :root 定义的旧配色会把它盖掉。
 */

:root {
    /* ---- 色板 ---- */
    --jc-paper:      #F5F2EC;   /* 米白纸底 */
    --jc-paper-2:    #EDE8DF;   /* 略深一档，用于分区 */
    --jc-ink:        #14110F;   /* 近黑主色 */
    --jc-pink:       #E8346E;   /* 玫红点缀 */
    --jc-navy:       #1E3A5F;   /* 深蓝辅助 */
    --jc-gray:       #726C64;   /* 次级文字 */
    --jc-line:       #14110F;   /* 主分割线 */
    --jc-line-soft:  #D9D2C6;   /* 淡分割线 */

    /* ---- 字体 ---- */
    --jc-serif: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', serif;
    --jc-sans:  'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

/* ---------------- 全局 ---------------- */

body {
    background-color: var(--jc-paper) !important;
    color: var(--jc-ink);
    font-family: var(--jc-sans);
    -webkit-font-smoothing: antialiased;
}

/* 大标题统一用重字重宋体，行距收紧 —— 参考图里最有辨识度的一点 */
h1, h2, h3 {
    font-family: var(--jc-serif);
    letter-spacing: -0.02em;
}
h2 { font-weight: 900 !important; }

/* 小号全大写拉丁文，拉开字距（参考图里的 eyebrow 文字） */
.jc-eyebrow {
    font-family: var(--jc-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--jc-gray);
}

/* ---------------- 导航栏 ---------------- */

/* 参考图是「印刷杂志」的页头：跟着页面上滚，不悬浮。
   原来 fixed 定位会盖住英雄区顶部的 eyebrow 文字。 */
nav#navbar {
    position: static !important;
    background-color: var(--jc-paper) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-bottom: 1px solid var(--jc-line);
}

/* 公告条同样放进文档流，别浮在内容上面 */
#notice-bar {
    position: static !important;
    top: auto !important;
    border-bottom: 1px solid var(--jc-line-soft) !important;
}

nav#navbar .nav-link {
    font-size: 14.5px;
    letter-spacing: 0.01em;
    position: relative;
    padding-bottom: 3px;
}
/* 悬停/选中：玫红下划线，而不是变色 */
nav#navbar .nav-link:hover,
nav#navbar .nav-link.active {
    color: var(--jc-ink) !important;
}
nav#navbar .nav-link::after {
    content: '';
    position: absolute; left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--jc-pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}
nav#navbar .nav-link:hover::after,
nav#navbar .nav-link.active::after { transform: scaleX(1); }

/* 导航里的「社娘聊天室」按钮：改成直角实心块 */
nav#navbar a[href="/chat.html"] {
    border-radius: 0 !important;
    background: var(--jc-ink) !important;
    color: #fff !important;
    padding: 9px 18px !important;
    font-size: 14px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background .18s ease;
}
nav#navbar a[href="/chat.html"]:hover { background: var(--jc-pink) !important; }

/* ---------------- 小标题下的短横线 ----------------
 * 页面里那根装饰条有 w-20 / w-24 两种宽度，颜色也有 bg-primary / bg-secondary 两种，
 * 所以按 h-1 来匹配最稳。统一成短促的玫红实线。 */
section .text-center:has(> h2) > .h-1,
section .text-center:has(> h3) > .h-1,
section > .container > .text-center > .h-1 {
    width: 56px !important;
    height: 4px !important;
    background: var(--jc-pink) !important;
    background-image: none !important;
    border-radius: 0 !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* ---------------- 卡片：直角 + 细边框，不要柔和阴影 ---------------- */

.card,
.bg-white.rounded-xl,
.bg-white.rounded-2xl,
.bg-white.rounded-3xl,
.bg-gray-50.rounded-xl {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: 1px solid var(--jc-line-soft);
    background: #fff;
}

.gray-50, .bg-gray-50 { background-color: var(--jc-paper-2) !important; }

/* 卡片悬停：抬起来一点点，但不要彩色阴影 */
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 0 -6px rgba(20, 17, 15, .12) !important;
    border-color: var(--jc-line);
}

/* ---------------- 按钮：直角实心 ---------------- */

.btn-primary,
.btn-secondary,
a.btn-primary,
a.btn-secondary {
    border-radius: 0 !important;
    background-image: none !important;
    background-color: var(--jc-ink) !important;
    color: #fff !important;
    box-shadow: none !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    transform: none !important;
    transition: background-color .18s ease, color .18s ease;
}
.btn-primary:hover,
.btn-secondary:hover {
    background-color: var(--jc-pink) !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

/* 玫红描边的次要按钮 */
.jc-btn-outline {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 13px 30px;
    border: 1.5px solid var(--jc-ink);
    color: var(--jc-ink); background: transparent;
    font-weight: 600; letter-spacing: 0.02em;
    text-decoration: none;
    transition: all .18s ease;
}
.jc-btn-outline:hover {
    background: var(--jc-pink);
    border-color: var(--jc-pink);
    color: #fff;
}

/* 带下划线的文字链接（参考图里的「加入我们 ↗」） */
.jc-text-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--jc-ink);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    border-bottom: 2px solid var(--jc-pink);
    padding-bottom: 3px;
    transition: color .18s ease;
}
.jc-text-link:hover { color: var(--jc-pink); }

/* ---------------- 移除页面上原来的装饰性渐变/樱花 ---------------- */

.sakura-container { display: none !important; }

/* 渐变头部：换成扁平的近黑底，配玫红细线 */
header.bg-gradient-to-r,
section.bg-gradient-to-r {
    background-image: none !important;
    background-color: var(--jc-ink) !important;
    border-bottom: 4px solid var(--jc-pink);
    /* 原来 pt-32 是为了躲开 fixed 导航，导航改成静态后收回来 */
    padding-top: 68px !important;
    padding-bottom: 68px !important;
}
header.bg-gradient-to-r h1,
section.bg-gradient-to-r h1 {
    font-family: var(--jc-serif);
    font-weight: 900;
    letter-spacing: 0.01em;
}
header.bg-gradient-to-r h1::before,
section.bg-gradient-to-r h1::before {
    content: 'JIANCHUAN ANIME CLUB';
    display: block;
    white-space: nowrap;
    font-family: var(--jc-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    color: var(--jc-pink);
    margin-bottom: 14px;
}
/* 头部里那个半透明毛玻璃小胶囊：改成描边方块 */
header .inline-block.bg-white,
section.bg-gradient-to-r .inline-block.bg-white {
    background: transparent !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 0 !important;
    padding: 10px 26px !important;
}

/* 头部底下那个灰色波浪装饰：与扁平风格冲突，去掉 */
header div.absolute.bottom-0,
section.bg-gradient-to-r div.absolute.bottom-0,
svg[viewBox="0 0 1200 120"] {
    display: none !important;
}

/* 公告/列表项的彩色左边条：统一成玫红 */
.border-l-4 {
    border-left-color: var(--jc-pink) !important;
    border-left-width: 3px !important;
}

/* ---------------- 表单控件：直角细边 ---------------- */

.form-input {
    border-radius: 0 !important;
    border: 1px solid var(--jc-line-soft);
    background: #fff;
    transition: border-color .18s ease;
}
.form-input:focus {
    border-color: var(--jc-ink);
    box-shadow: none !important;
    outline: none;
}
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2314110F' stroke-width='1.6' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

/* ---------------- 页脚：近黑底 + 玫红顶线 ---------------- */

footer.bg-gray-900 {
    background-color: var(--jc-ink) !important;
    border-top: 4px solid var(--jc-pink);
}

/* ---------------- 滚动条 ---------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--jc-paper-2); }
::-webkit-scrollbar-thumb { background: #C4BCAE; }
::-webkit-scrollbar-thumb:hover { background: var(--jc-gray); }

/* ================= 首页英雄区（对齐参考图） ================= */

.jc-hero {
    background: var(--jc-paper);
    border-bottom: 1px solid var(--jc-line);
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}
.jc-hero .jc-wrap {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
    gap: 48px;
    align-items: center;
}
@media (max-width: 900px) {
    .jc-hero .jc-wrap { grid-template-columns: 1fr; gap: 36px; }
    .jc-hero { padding: 40px 0 48px; }
}

/* 左侧文字块 */
.jc-hero .jc-eyebrow-row {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 18px;
}
.jc-hero .jc-rule {
    width: 46px; height: 3px; background: var(--jc-pink);
    flex-shrink: 0;
}
.jc-hero h1 {
    font-family: var(--jc-serif);
    font-weight: 900;
    font-size: clamp(44px, 7.4vw, 96px);
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin: 0 0 6px;
    color: var(--jc-ink);
}
/* 标题下那一道玫红手绘感下划线 */
.jc-hero .jc-underline {
    width: 210px; height: 12px;
    margin: 2px 0 26px;
}
.jc-hero .jc-underline path {
    stroke: var(--jc-pink);
    stroke-width: 5;
    fill: none;
    stroke-linecap: round;
}
.jc-hero .jc-sub {
    font-size: clamp(15px, 1.55vw, 19px);
    letter-spacing: 0.06em;
    color: var(--jc-ink);
    margin: 0 0 34px;
}
.jc-hero .jc-actions {
    display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
}
.jc-hero .jc-btn-solid {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 17px 40px;
    background: var(--jc-ink); color: #fff;
    font-size: 16px; font-weight: 600; letter-spacing: 0.04em;
    text-decoration: none; border: none;
    transition: background .18s ease;
}
.jc-hero .jc-btn-solid:hover { background: var(--jc-pink); }

/* 右侧插画卡片：轻微倾斜 + 背后两层错位色块 */
.jc-hero .jc-art {
    position: relative;
    display: flex; justify-content: center; align-items: center;
    min-height: 320px;
}
.jc-hero .jc-art .jc-back-1,
.jc-hero .jc-art .jc-back-2 {
    position: absolute; inset: 0;
    margin: auto;
    width: min(400px, 88%);
    aspect-ratio: 1 / 1;
}
.jc-hero .jc-art .jc-back-1 {
    background: var(--jc-pink);
    transform: rotate(-7deg) translate(-16px, 12px);
    opacity: .92;
}
.jc-hero .jc-art .jc-back-2 {
    background: var(--jc-navy);
    transform: rotate(4deg) translate(16px, -10px);
    opacity: .9;
}
.jc-hero .jc-art .jc-photo {
    position: relative;
    width: min(400px, 88%);
    aspect-ratio: 1 / 1;
    background: #fff;
    border: 1px solid var(--jc-line);
    transform: rotate(-2.2deg);
    overflow: hidden;
    box-shadow: 10px 12px 0 rgba(20, 17, 15, .10);
}
.jc-hero .jc-art .jc-photo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
/* 卡片右下角的半调网点装饰 */
.jc-hero .jc-dots {
    position: absolute; right: 4%; bottom: 2%;
    width: 132px; height: 96px;
    background-image: radial-gradient(var(--jc-ink) 1.3px, transparent 1.4px);
    background-size: 9px 9px;
    opacity: .5;
    pointer-events: none;
}
/* 左上角的小放射线 */
.jc-hero .jc-spark {
    position: absolute; left: 6%; top: 4%;
    width: 42px; height: 42px;
    pointer-events: none;
}
.jc-hero .jc-spark path { stroke: var(--jc-pink); stroke-width: 4; stroke-linecap: round; }

/* 首页的滚动提示去掉（参考图没有） */
.jc-hero + section + .absolute.bottom-10 { display: none; }

/* ---------------- 首页各区块：统一米白纸底 + 细分隔线 ----------------
 * 原来每块是 bg-white / bg-gray-50 交替，改成统一的纸感底色，
 * 只用一条细线分区 —— 这是杂志排版的做法。 */
section {
    background-color: var(--jc-paper) !important;
    border-bottom: 1px solid var(--jc-line-soft);
}
section:last-of-type { border-bottom: none; }

/* 区块上下留白加大，排版更透气 */
section.py-20, section.py-16 { padding-top: 88px !important; padding-bottom: 88px !important; }
@media (max-width: 640px) {
    section.py-20, section.py-16 { padding-top: 56px !important; padding-bottom: 56px !important; }
}

/* ---------------- 统计数字：衬线大字，像杂志里的数据栏 ---------------- */

.bg-gray-50 .text-4xl,
.bg-gray-100 .text-4xl {
    font-family: var(--jc-serif) !important;
    font-weight: 900 !important;
    font-size: 2.9rem !important;
    line-height: 1 !important;
    letter-spacing: -0.03em;
    color: var(--jc-ink) !important;
    margin-bottom: 10px !important;
}
.bg-gray-50 .text-gray-600,
.bg-gray-100 .text-gray-600 {
    font-size: 12.5px !important;
    letter-spacing: 0.12em;
    color: var(--jc-gray) !important;
}
/* 统计格子：加一条顶部粗线，更像数据表格 */
.bg-gray-50.rounded-lg,
.bg-gray-100.rounded-lg {
    padding: 22px 16px !important;
    border-top: 2px solid var(--jc-ink) !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--jc-line-soft) !important;
    background: transparent !important;
    transition: background .18s ease;
}
.bg-gray-50.rounded-lg:hover,
.bg-gray-100.rounded-lg:hover { background: #fff !important; }

/* ---------------- 卡片：图标改成描边方块，加悬停效果 ---------------- */

.card .w-16, .card .w-14, .card .w-12 {
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    border: 1px solid var(--jc-line-soft) !important;
    transition: all .2s ease;
}
.card .w-16 i, .card .w-14 i, .card .w-12 i {
    color: var(--jc-ink) !important;
    font-size: 1.35rem !important;
    transition: color .2s ease;
}
.card:hover .w-16, .card:hover .w-14, .card:hover .w-12 {
    background: var(--jc-pink) !important;
    border-color: var(--jc-pink) !important;
}
.card:hover .w-16 i, .card:hover .w-14 i, .card:hover .w-12 i { color: #fff !important; }

.card h4, .card h3 {
    font-family: var(--jc-serif) !important;
    font-weight: 900 !important;
    letter-spacing: -0.01em;
    font-size: 1.15rem !important;
    color: var(--jc-ink) !important;
}
.card p { color: var(--jc-gray) !important; line-height: 1.8 !important; }

/* 卡片顶部一条玫红线，悬停时从左边拉满 */
.card { position: relative; overflow: hidden; }
.card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--jc-pink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s ease;
}
.card:hover::before { transform: scaleX(1); }

/* ---------------- 轮播：直角 + 文字压底更清楚 ---------------- */

#activity-carousel .rounded-xl,
#activity-carousel img { border-radius: 0 !important; }
#activity-carousel h3, #activity-carousel h4 {
    font-family: var(--jc-serif) !important;
    font-weight: 900 !important;
}

/* ---------------- 页脚小标题：全大写拉丁标签 ---------------- */

footer h3, footer h4 {
    font-family: var(--jc-sans) !important;
    letter-spacing: 0.16em !important;
    text-transform: uppercase;
    font-size: 12px !important;
    color: var(--jc-pink) !important;
    font-weight: 600 !important;
}
footer a { transition: color .16s ease; }
footer a:hover { color: var(--jc-pink) !important; }

/* ---------------- 图片统一直角（头像类除外） ---------------- */
section img:not([class*="rounded-full"]) { border-radius: 0 !important; }

/* 进场动画已去掉。
 * 之前用 animation + fill-mode:both，元素会从 opacity:0 起步；
 * 万一动画没跑起来（标签页在后台、截图工具、省电模式），内容就是隐形的。
 * 内容必须默认可见，这点比动效重要。 */

/* 区块内的小统计块：去掉灰底，改成描边方块 */
.bg-gray-50.rounded-lg,
.bg-gray-50.rounded-xl,
.bg-gray-100.rounded-lg,
.bg-gray-100.rounded-xl {
    background-color: transparent !important;
    border: 1px solid var(--jc-line-soft);
    border-radius: 0 !important;
}

/* 那些淡粉/淡紫渐变的小圆底图标：改成描边圆 + 玫红图标 */
.rounded-full[style*="linear-gradient"] {
    background: var(--jc-paper-2) !important;
    background-image: none !important;
    border: 1px solid var(--jc-line-soft);
}
.rounded-full[style*="linear-gradient"] i,
.rounded-full[style*="linear-gradient"] .fas,
.rounded-full[style*="linear-gradient"] .far {
    color: var(--jc-pink) !important;
}

/* 图片统一直角 + 细边框，去掉柔和投影 */
img.rounded-xl, img.rounded-2xl, img.rounded-lg, img.rounded-full {
    border-radius: 0 !important;
}
img.shadow-xl, img.shadow-lg, img.shadow-md {
    box-shadow: none !important;
    border: 1px solid var(--jc-line-soft);
}

/* 头像类圆形保留（聊天气泡、好友列表里要用） */
.msg .ava img, .avatar img, .user-chip img, .friend-item img,
img[alt="羽樱"], img[alt="绫汐"] {
    border-radius: 50% !important;
    border: none !important;
}

/* ---------------- 社娘聊天挂件：改成直角实心，别用粉紫渐变 ---------------- */

.ai-chat-launcher {
    border-radius: 0 !important;
    background: var(--jc-ink) !important;
    background-image: none !important;
    box-shadow: 4px 4px 0 rgba(20, 17, 15, .18) !important;
}
.ai-chat-launcher:hover { background: var(--jc-pink) !important; }

.ai-chat-panel {
    border-radius: 0 !important;
    border: 1px solid var(--jc-line) !important;
    box-shadow: 10px 12px 0 rgba(20, 17, 15, .12) !important;
}
.ai-chat-head {
    background: var(--jc-ink) !important;
    background-image: none !important;
    border-radius: 0 !important;
}
.ai-chat-input-area { border-radius: 0 !important; }
.ai-msg-bubble { border-radius: 0 !important; }
.ai-chat-input { border-radius: 0 !important; }
.ai-chat-send {
    border-radius: 0 !important;
    background: var(--jc-ink) !important;
    background-image: none !important;
}
.ai-chat-send:hover { background: var(--jc-pink) !important; }

/* 公告条：米白底 + 左侧玫红竖条 */
#notice-bar {
    background: var(--jc-paper) !important;
    background-image: none !important;
    border-left: 4px solid var(--jc-pink);
    border-bottom: 1px solid var(--jc-line-soft) !important;
    padding-left: 18px !important;
}

/* ---------------- 区块标题：左对齐（杂志感） ----------------
 * 用 :has() 精确圈定「直接包含标题」的那一层，
 * 避免误伤部门卡片那种本来就该居中的小容器。 */
section .text-center:has(> h2),
section .text-center:has(> h3) {
    text-align: left !important;
    margin-bottom: 42px !important;
}
section .text-center:has(> h2) > .w-24,
section .text-center:has(> h3) > .w-24 {
    margin-left: 0 !important;
    margin-right: auto !important;
}
section .text-center:has(> h2) > p,
section .text-center:has(> h3) > p {
    max-width: 620px;
    margin-left: 0 !important;
    margin-right: auto !important;
}
/* 标题上方补一行小号全大写拉丁文（纯 CSS 生成，不动 HTML）。
 * nowrap 很重要：容器窄的时候这行会折成竖排，把标题挤成一条。
 * :not(.section-title) 同样重要 —— 活动页的 .section-title 自己拿
 * ::before / ::after 当装饰横条，占了坑就不能再往里塞文字。 */
section .text-center:has(> h2:not(.section-title)) > h2:not(.section-title)::before,
section .text-center:has(> h3:not(.section-title)) > h3:not(.section-title)::before,
section h2.text-center::before,
section h3.text-center::before,
header.bg-gradient-to-r h1::before,
section.bg-gradient-to-r h1::before {
    content: 'JIANCHUAN ANIME CLUB';
    display: block;
    white-space: nowrap;
    font-family: var(--jc-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--jc-pink);
    margin-bottom: 10px;
}
/* 标题本身也要占满整行，别被上面的拉丁文撑着缩窄 */
section .text-center:has(> h2:not(.section-title)) > h2:not(.section-title),
section .text-center:has(> h3:not(.section-title)) > h3:not(.section-title) {
    display: block;
    width: auto;
}
/* 标题本身就是 .text-center 的（最后一舞页）直接左对齐 */
section h2.text-center,
section h3.text-center {
    text-align: left !important;
    margin-bottom: 30px !important;
}

/* .section-title 自带两条渐变装饰条：收成一条干净的玫红实线 */
.section-title { display: inline-block !important; }
.section-title::before { display: none !important; }
.section-title::after {
    content: '' !important;
    position: absolute;
    width: 56px !important;
    height: 4px !important;
    bottom: -14px !important;
    left: 0 !important;
    background: var(--jc-pink) !important;
    background-image: none !important;
}

/* 旧设计里那些圆角小胶囊（时间/地点/人数标签）：改成直角描边 */
.inline-block.rounded-full,
span.rounded-full,
div.rounded-full {
    border-radius: 0 !important;
}
span.rounded-full.bg-white\/20,
span[class*="bg-white/20"] {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .5);
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
/* 浅色调卡片（bg-blue-50 / bg-pink-50 之类）统一成纸白 */
.bg-blue-50, .bg-pink-50, .bg-purple-50, .bg-indigo-50,
.bg-green-50, .bg-yellow-50, .bg-red-50 {
    background-color: #fff !important;
    border: 1px solid var(--jc-line-soft);
}


/* ==========================================================================
   收尾修正（放在最后，优先级最高）
   ========================================================================== */

/* 旧设计里那些「内联渐变」的图标圆底 —— 按颜色特征匹配最稳，
   因为浏览器可能把 style 属性重写过，按完整写法匹配会失效。 */
[style*="fce7f3"], [style*="ede9fe"], [style*="fdf2f8"],
[style*="FCE7F3"], [style*="EDE9FE"], [style*="FDF2F8"] {
    background-image: none !important;
    background-color: var(--jc-paper-2) !important;
    border-radius: 0 !important;
    border: 1px solid var(--jc-line-soft) !important;
    transition: background-color .2s ease, border-color .2s ease;
}
.card:hover [style*="fce7f3"],
.card:hover [style*="ede9fe"] {
    background-color: var(--jc-pink) !important;
    border-color: var(--jc-pink) !important;
}
.card [style*="fce7f3"] i, .card [style*="ede9fe"] i { color: var(--jc-ink) !important; }
.card:hover [style*="fce7f3"] i,
.card:hover [style*="ede9fe"] i { color: #fff !important; }

/* 分部卡片：5 个，别让最后一张孤零零挂一行 */
#department-cards { display: grid !important; gap: 20px !important; }
@media (max-width: 767px)  { #department-cards { grid-template-columns: 1fr !important; } }
@media (min-width: 768px)  { #department-cards { grid-template-columns: repeat(2, minmax(0,1fr)) !important; } }
@media (min-width: 1024px) { #department-cards { grid-template-columns: repeat(3, minmax(0,1fr)) !important; } }
@media (min-width: 1280px) { #department-cards { grid-template-columns: repeat(5, minmax(0,1fr)) !important; } }
#department-cards > .card { display: flex; flex-direction: column; }

/* 轮播 / 活动卡片的文字压底：海报图偏浅，要压得更深才看得清 */
#activity-carousel .absolute.inset-0,
.relative .absolute.inset-0.bg-gradient-to-t {
    background: linear-gradient(to top,
        rgba(20,17,15,.92) 0%,
        rgba(20,17,15,.55) 40%,
        rgba(20,17,15,0) 100%) !important;
}

/* 活动卡片里的日期小标签 */
.bg-primary.px-3, .bg-primary.px-4 {
    border-radius: 0 !important;
    background: var(--jc-pink) !important;
    font-size: 12px !important;
    letter-spacing: .06em;
}

/* 「近期活动」卡片的图片：固定比例，别把文字挤乱 */
section img.w-full.h-48,
section img.w-full.h-56 {
    aspect-ratio: 16 / 10;
    height: auto !important;
    object-fit: cover;
}
