:root {
    --paper: #FDFDFD; --ink: #1A1A1A; --accent: #D23A2A; 
    --rare-c: #2ECC71; --epic-c: #3498DB; --legend-c: #E91E63; --myth-c: #F39C12;
    --shadow: 20px 20px 0px var(--ink); /* 硬派水墨阴影 */
}

body, html { margin: 0; padding: 0; width: 100%; height: 100%; font-family: "PingFang SC", system-ui, sans-serif; background: var(--paper); overflow-x: hidden; color: var(--ink); }

/* --- 屏控 --- */
.screen { position: absolute; inset: 0; display: none; opacity: 0; transition: 0.5s ease; z-index: 10; background: var(--paper); }
.screen.active { display: block; opacity: 1; z-index: 20; }
#home-screen.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 保持垂直居中，但通过 padding 把整体内容往下挤一点 */
    justify-content: center; 
    padding-top: 8vh; /* 🌟 增加顶部间距，让内容整体下移 */
    background-image: radial-gradient(circle at 10% 10%, #EEE 1px, transparent 1px);
    background-size: 50px 50px;
}

/* 针对主标题的微调 */
#home-screen h1, .main-title-logo {
    margin-bottom: 60px !important; /* 🌟 增加标题与按钮之间的空隙，显得更大气 */
    font-size: 6rem !important; /* 如果觉得标题小了，也可以适度放大 */
    letter-spacing: 10px;
}

.home-nav-grid {
    display: flex;
    gap: 30px;
    margin-top: 20px; /* 进一步增加与上方的距离 */
}

#aquarium-screen.active { 
    background-color: #C0ECFF; /* ✨ 设置整个屏幕为水蓝基色 */
    overflow: hidden;         /* 防止波浪起伏时溢出 */
}

#aquarium-container { 
    z-index: 5;
    position: relative;
    width: 100%; height: 100%;
}

#rank-modal.active, #myfish-screen.active { background: #fff; overflow-y: auto; padding: 60px; }

/* --- 通用 UI 组件 --- */
#top-user-nav { position: fixed; top: 40px; right: 50px; z-index: 11000; display: flex; gap: 20px; align-items: center; }
#user-display { font-weight: 950; display: none; background: white; padding: 12px 30px; border: 3px solid var(--ink); box-shadow: 6px 6px 0px var(--ink); }

/* ✨ 钱包按钮专属样式 (水墨硬派风) */
#wallet-btn {
    border: 3px solid var(--ink);
    font-weight: 950;
    background: white;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none; /* 初始隐藏，登录后显示 */
}

/* 钱包已绑定状态 */
#wallet-btn.bound {
    background: var(--ink) !important;
    color: white !important;
}

#wallet-btn:hover {
    transform: translateY(-3px);
    box-shadow: 6px 6px 0px var(--ink);
}

#wallet-btn:active {
    transform: translateY(0px);
    box-shadow: 0px 0px 0px var(--ink);
}

.main-title {
    /* 1. 基础尺寸与位置 */
    font-size: 6rem;
    font-weight: 950;
    position: relative;
    user-select: none;
    letter-spacing: 8px;
    margin-top: -120px; /* 进一步拉高位置 */
    margin-bottom: 20px;
    
    /* 2. 关键修复：设置为行内块，确保渐变只作用于文字本身而非全屏宽度 */
    display: inline-block; 

    /* 3. 紫-蓝-绿渐变实现 */
    background: linear-gradient(135deg, #8E44AD 0%, #3498DB 50%, #2ECC71 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* 使用 text-fill-color 确保在 Chrome/Edge 中文字完全透明以显示背景 */
    -webkit-text-fill-color: transparent; 
    color: transparent;

    /* 4. 阳光长投影：改用 filter: drop-shadow 
        这是处理渐变文字阴影最稳定的方式，不会遮挡渐变色 
    */
    filter: 
        drop-shadow(4px 4px 0px #e0e0e0) 
        drop-shadow(8px 8px 0px #eeeeee)
        drop-shadow(12px 12px 15px rgba(0,0,0,0.05));

    /* 动画与过渡 */
    animation: titleFloat 5s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 5. 鼠标悬停：仅位移，不改颜色 */
.main-title:hover {
    transform: translateY(-15px) scale(1.03);
    /* 这里不写颜色属性，渐变色将保持不变 */
}

/* 按钮组间距微调 */
.btn-group { 
    display: flex; 
    gap: 45px; 
    margin-top: 50px;
}

/* 浮动动画 */
@keyframes titleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.btn-sq { width: 230px; height: 230px; border: 4px solid var(--ink); background: white; cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 950; gap: 20px; box-shadow: 10px 10px 0px rgba(0,0,0,0.05); }
.btn-sq-main { background: var(--ink); color: white; }
.btn-sq:hover { transform: translate(-10px, -10px); box-shadow: 20px 20px 0px var(--ink); }

.btn-pill { padding: 12px 30px; border: 3px solid var(--ink); background: white; font-weight: 950; cursor: pointer; transition: 0.2s; }
.btn-pill:hover { background: var(--ink); color: white; }
.btn-pill.sm { padding: 8px 20px; font-size: 13px; box-shadow: none; }
.btn-pill.lg { height: 70px; flex: 1; }
.btn-pill.action-btn { width: 100%; height: 75px; margin-top: 40px; font-size: 1.5rem; background: var(--ink); color: white; }

.nav-bar { position: absolute; top: 40px; left: 40px; z-index: 100; display: flex; gap: 20px; }
.fixed-back { position: absolute; top: 40px; left: 40px; z-index: 100; }
.section-title { font-size: 4rem; text-align: center; margin: 30px 0; font-weight: 950; letter-spacing: 5px; }

/* --- 弹窗与水墨盒 --- */
.modal { position: fixed; inset: 0; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); display: none; align-items: center; justify-content: center; z-index: 9000; }
#loading-modal { z-index: 10000; }
#detail-view-modal { z-index: 9500; }

.ink-box { 
    background: white; border: 4px solid var(--ink); padding: 50px; 
    box-shadow: var(--shadow); position: relative; text-align: center; min-width: 400px; 
}

.close-corner { position: absolute; top: 15px; right: 20px; font-size: 40px; cursor: pointer; color: var(--ink); font-weight: 900; line-height: 1; z-index: 100; }
.close-corner:hover { color: var(--accent); }

.modal-title { margin-bottom: 25px; font-weight: 950; }
input { width: 100%; padding: 16px; border: none; border-bottom: 3px solid var(--ink); margin-bottom: 20px; font-size: 1.1rem; outline: none; background: transparent; }
#auth-switch { font-size: 16px; margin-top: 25px; cursor: pointer; text-decoration: underline; font-weight: 800; }

/* --- 画板 --- */
.draw-tools { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; background: #F8F8F8; padding: 20px; border-radius: 15px; }
#canvas-wrapper { width: 330px; height: 330px; padding: 0; margin: 0 auto; border: 6px solid var(--ink); background: white; line-height: 0; overflow: hidden; position: relative; }
#palette { display: flex; gap: 12px; }
.divider { width: 3px; height: 35px; background: #DDD; }
.color-dot { width: 35px; height: 35px; border-radius: 4px; cursor: pointer; border: 1.5px solid #DDD; }
.color-dot.active { border: 4px solid var(--ink); transform: scale(1.1) rotate(5deg); }

/* --- 卡片系统 --- */
.fish-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 25px; max-width: 2300px; margin: 40px auto; padding: 20px; }
.fish-card { aspect-ratio: 1 / 1.618; border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; border: 1.5px solid #EEE; box-shadow: 10px 10px 0px rgba(0,0,0,0.05); transition: 0.4s; background: #FFF; position: relative; }
.fish-card:hover { transform: translateY(-12px); border-color: var(--ink); }

.rarity-common { background: #FFFFFF; }
.rarity-rare { background: linear-gradient(180deg, #F9FFF9 0%, #EBF7ED 100%); }
.rarity-epic { background: linear-gradient(180deg, #F8FBFF 0%, #E8F1FD 100%); }
.rarity-legendary { background: linear-gradient(180deg, #FFF8F8 0%, #FFEDED 100%); }
.rarity-myth { background: linear-gradient(180deg, #FFFDF5 0%, #FFF8E1 100%); border: 2.2px solid var(--myth-c); }
.rarity-genesis { background: linear-gradient(180deg, #FAFAFA 0%, #F0F0F0 100%); border: 3px solid var(--ink); }

/* --- 多标签容器与高饱和实心配色 --- */
.tags-container {
    display: flex;
    flex-wrap: wrap; /* 允许标签超长时自动换行 */
    gap: 6px;        /* 标签之间的间距 */
    margin-bottom: 10px;
}

/* 覆盖原有的 badge 设置，使其适应文字长度 */
.card-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 950;
    border: 1.5px solid;
    border-radius: 4px;
    white-space: nowrap; /* 保证标签内文字不换行 */
    margin-bottom: 0;    /* 间距交由 tags-container 管理 */
}

/* 高饱和实心配色 (卡片背景保持原有的淡色) */
.badge-legendary { background: #F39C12; color: #FFFFFF; border-color: #F39C12; } /* 传奇：实心橙黄 */
.badge-epic { background: #8E44AD; color: #FFFFFF; border-color: #8E44AD; }      /* 史诗：实心深紫 */
.badge-rare { background: #2ECC71; color: #FFFFFF; border-color: #2ECC71; }      /* 稀有：实心亮绿 */

.badge-genesis { background: var(--ink); color: #FFD700; border-color: var(--ink); } /* 创世：黑底金字 */
.badge-pink { background: #E91E63; color: #FFFFFF; border-color: #E91E63; }      /* 520：实心亮粉 */
.badge-orange { background: #E67E22; color: #FFFFFF; border-color: #E67E22; }    /* 666等：实心亮橙 */
.badge-blue { background: #3498DB; color: #FFFFFF; border-color: #3498DB; }      /* 100%：实心亮蓝 */

.card-img-box { width: 100%; aspect-ratio: 1.6 / 1; display: flex; align-items: center; justify-content: center; margin-top: 15px; }
.card-img-inner { width: 85%; height: 90%; background: rgba(255,255,255,0.75); border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px dashed rgba(0,0,0,0.05); }
.card-img-inner img { max-width: 80%; max-height: 85%; object-fit: contain; mix-blend-mode: multiply; }

.card-body { padding: 25px; flex: 1; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.card-title { font-size: 1.3rem; font-weight: 950; }
.card-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: #777; }
.card-story-mini { font-size: 11.5px; line-height: 1.6; color: #444; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; border-left: 3px solid #EEE; padding-left: 12px; }

/* 详细大卡 */
.big-card { width: 420px; height: 650px; background: #FFF; border: 4px solid var(--ink); box-shadow: 25px 25px 0px var(--ink); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.big-card-img { width: 100%; height: 260px; display: flex; align-items: center; justify-content: center; background: #FDFDFD; border-bottom: 2px solid #EEE; }
.big-card-img img { max-width: 70%; max-height: 80%; object-fit: contain; }
.big-card-body { padding: 30px; flex: 1; text-align: left; }
.big-card-body h2 { font-size: 1.8rem; margin: 0 0 15px 0; font-weight: 950; }
.big-card-body p { line-height: 1.6; margin-top: 15px; border-top: 2px solid #EEE; padding-top: 15px; font-size: 14px; color: #444; }

/* 排行榜 */
.rank-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; margin-top: 50px; }
.rank-item { display: flex; align-items: center; gap: 20px; padding: 20px; border-bottom: 2.2px solid #F5F5F5; }
.rank-header { border-left: 15px solid #2ECC71; padding-left: 20px; font-weight: 950; }
.rank-header.bad { border-color: #E74C3C; }

/* 详情浮窗 */
#fish-info { position: fixed; bottom: 50px; left: 50%; transform: translate(-50%, 150%); background: white; border: 4px solid var(--ink); padding: 40px; width: 420px; display: none; z-index: 5000; transition: 0.5s; box-shadow: 20px 20px 0px rgba(0,0,0,0.1); }
#fish-info.active { transform: translate(-50%, 0); display: block; }
.info-header { display: flex; justify-content: space-between; font-size: 2.2rem; font-weight: 950; }
.info-actions { display: flex; gap: 20px; }

.spinner { border: 8px solid #EEE; border-top: 8px solid var(--ink); border-radius: 50%; width: 80px; height: 80px; animation: spin 1s linear infinite; margin-bottom: 25px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading-text { letter-spacing: 12px; font-size: 2.5rem; font-weight: 950; }
.fish { position: absolute; cursor: pointer; transition: 0.3s; filter: drop-shadow(0 5px 15px rgba(0,0,0,0.1)); }

/* ✨ 新增：关于我们 - 滚动屏刷逻辑 */
.marquee-wrapper {
    height: 280px; /* 🌟 再次微调高度，让两条鱼刚好占满窗口 */
    overflow: hidden;
    position: relative;
    
    /* ✨ 落实你要求的两根黑线 */
    border-top: 3px solid var(--ink);
    border-bottom: 3px solid var(--ink);
    
    padding: 15px 0; 
    background: rgba(0,0,0,0.02); /* 给个极淡的背景区分滚动区 */
    
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: seamlessScrollVertical 10s linear infinite; /* 🌟 使用 linear 线性动画 */
}

.marquee-content:hover {
    animation-play-state: paused; /* 悬停暂停，方便看 X 账号 */
}

@keyframes scrollTeam {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* 滚动一半实现无缝循环 */
}

.about-card {
    min-height: 120px;
    padding: 15px 25px !important;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 12px;
}

.about-avatar {
    width: 85px !important;
    height: 85px !important;
    border-radius: 50%;
    border: 3px solid var(--ink);
    object-fit: cover;
}

.about-text h3 {
    font-size: 1.5rem !important;
    margin: 0;
}

.about-text p {
    margin: 8px 0 0 0;
    font-size: 1rem;
    color: #666;
    font-family: monospace;
    font-weight: 800;
}

/* --- ✨ 标签系统 (名字下方版) --- */
.founder-label {
    display: inline-block;
    padding: 2px 10px;
    font-size: 10px;
    font-weight: 950;
    border-radius: 3px;
    margin: 5px 0; /* 名字与 X 账号之间的间距 */
    letter-spacing: 1px;
    border: 1.5px solid var(--ink); /* */
}

/* 👑 主创标签：黑金配色 (Blogger 1 专用) */
.gold-label {
    background: #FFD700; /* 金色背景 */
    color: #1A1A1A;      /* 黑色字体 */
    border-color: #1A1A1A;
    box-shadow: 3px 3px 0px rgba(255, 215, 0, 0.3);
}

/* 👤 联合创始人标签：银灰配色 (Blogger 2 专用) */
.silver-label {
    background: #E0E0E0;
    color: #666;
    border-color: #CCC;
}

/* 强化主创卡片的整体感 */
.main-focus {
    border: 3px solid #FFD700 !important; /* 金色外边框 */
    background: #FFFDF0 !important;        /* 极淡的金色底色 */
}

.main-border {
    border: 5px solid #FFD700 !important; /* 头像边框也同步变金 */
}

.about-text h3 {
    margin-bottom: 0px !important; /* 压缩名字下方的空白，让标签更紧凑 */
}

/* --- 💎 特别鸣谢板块样式 --- */
.thanks-section {
    margin-top: 10px;
    background: #F4F4F4;
    padding: 12px 0;
    border-radius: 8px;
}

.thanks-title {
    font-size: 0.75rem;
    font-weight: 950;
    margin: 0 0 10px 0;
    color: #999;
    letter-spacing: 2px;
}

/* 横向滚动核心 */
.thanks-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.thanks-marquee-content {
    display: flex;
    gap: 30px; /* 间距加宽点更显大气 */
    padding: 10px 0;
    /*  核心修复 1：强制内容横向无限延展，不这一行必跳闪 */
    width: max-content; 
    /*  核心修复 2：名字必须和下面的 keyframes 一模一样 */
    animation: scrollThanks 25s linear infinite;
}

@keyframes scrollThanks {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 鸣谢高级感标签 */
.thanks-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 6px 15px;
    border: 2px solid var(--ink);
    border-radius: 50px; /* 胶囊型，更显高级 */
    box-shadow: 4px 4px 0px rgba(0,0,0,0.05);
}

.thanks-tag img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid var(--ink);
}

.thanks-tag span {
    font-size: 0.85rem; /* 中等大小 */
    font-weight: 850;
    color: var(--ink);
}

/* --- 统一层级调整 --- */
.marquee-wrapper { height: 280px; } /* 创始人大一点，压缩高度确保排版 */
.main-focus { transform: scale(1.05); margin-bottom: 10px; } /* 主创突出 */

.main-style {
    border: 3px solid #FFD700 !important; /* 金色边框凸显身份 */
    background: #FFFDF5 !important;
    box-shadow: 8px 8px 0px rgba(255, 215, 0, 0.1);
}

.normal-style {
    border: 3px solid #EEE !important;
    background: #FFF !important;
}

.about-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 🌟 强制左对齐，解决名字错位问题 */
    text-align: left;
    padding-left: 5px;
}

.founder-name {
    font-size: 1.5rem !important;
    font-weight: 950 !important;
    margin: 0 !important;
    line-height: 1.2;
    min-width: 200px; /* 🌟 设置最小宽度，确保排版基准线一致 */
}

.founder-x {
    margin: 5px 0 0 0 !important;
    font-family: monospace;
    font-size: 0.85rem !important;
    color: #666;
}

@keyframes seamlessScrollVertical {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50.8%); } /* 🌟 移动一半高度，微调 0.8% 补偿间距 */
}

@keyframes seamlessScrollHorizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* 🌟 精确移动一半总宽度，实现无缝衔接 */
}

.marquee-content:hover, .thanks-marquee-content:hover {
    animation-play-state: paused;
}

/* 🎵 音乐控制按钮 - 初始在主页显示 */
.btn-music {
    position: fixed;
    top: 40px;
    left: 40px;
    z-index: 15000; /* 确保层级高于所有 screen */
    padding: 12px 25px;
    background: white;
    border: 3px solid var(--ink); /* */
    font-weight: 950; /* */
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 8px 8px 0px var(--ink);
    letter-spacing: 1px;
}

.btn-music:hover {
    transform: translate(-3px, -3px);
    box-shadow: 11px 11px 0px var(--ink);
    background: #f9f9f9;
}

/* 音乐关闭时的暗色状态 */
.btn-music.muted {
    background: #eee;
    color: #999;
    box-shadow: 4px 4px 0px #ccc;
    transform: translate(2px, 2px);
}

/* --- 鱼群密度控制器 (水墨硬派风) --- */
.fish-control-panel {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 100;
    background: white;
    border: 3px solid var(--ink);
    padding: 15px 25px;
    box-shadow: 6px 6px 0px var(--ink);
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-weight: 950;
    transition: transform 0.2s;
}

.fish-control-panel:hover {
    transform: translateY(-3px);
    box-shadow: 10px 10px 0px var(--ink);
}

/* 自定义滑块轨道 */
.fish-control-panel input[type=range] {
    -webkit-appearance: none;
    width: 150px;
    height: 10px;
    background: #EEE;
    border: 2px solid var(--ink);
    outline: none;
    padding: 0;
    cursor: pointer;
}

/* 自定义方形滑块头 */
.fish-control-panel input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: var(--accent);
    border: 3px solid var(--ink);
    border-radius: 0; /* 强制方形，呼应整体 UI */
    cursor: pointer;
    transition: 0.2s;
}

.fish-control-panel input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--ink);
}

/* --- 淡蓝水样波动背景核心样式 --- */

/* 波动容器：全屏定位在背景层 */
.water-waves-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1; /* 处于屏幕的最底层 */
    opacity: 0.7; /* 适当透明，让基色透出来，增加真实感 */
}

/* 基础波浪 SVG 样式 */
.water-wave-svg {
    position: absolute;
    bottom: -100px; /* 稍微往下靠，填满底部 */
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center bottom; /* 以底部为锚点起伏 */
    animation: waveSurgeBreathing linear infinite; /* 应用呼吸起伏动画 */
}

/* --- 定义不同层的实心颜色和不同透明度 --- */
.wave-p-1 { fill: #95D8FA; opacity: 0.6; } /* 第1层：实心稍深蓝 */
.wave-p-2 { fill: #DEF3FD; opacity: 0.4; } /* 第2层：实心浅蓝 */
.wave-p-3 { fill: rgba(255,255,255,0.35); } /* 第3层：实心白/泡沫 */

/* --- 定义不同层的动画时间和延迟，错开起伏，营造流动感 --- */
.water-wave-svg { animation-duration: 9s; } /* 默认层速度 */

.wave-speed-slow {
    animation-duration: 13s !important;
    animation-delay: -3s !important;
}

.wave-speed-mid {
    animation-duration: 17s !important;
    animation-delay: -7s !important;
}

/* 🌊 核心动画：波浪呼吸起伏与流动，创造“波动”感 */
@keyframes waveSurgeBreathing {
    0%, 100% {
        transform: scaleY(1) translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: scaleY(1.03) translateY(-10px) rotate(1deg); /* 上升，稍微倾斜 */
        opacity: 0.8;
    }
    66% {
        transform: scaleY(0.98) translateY(5px) rotate(-1deg); /* 下降 */
        opacity: 0.6;
    }
}

/* --- 移动端响应式布局 (针对屏幕宽度小于 768px) --- */
@media (max-width: 768px) {
    :root {
        --shadow: 10px 10px 0px var(--ink); /* 手机端阴影减小，避免遮挡 */
    }

    /* 1. 顶部导航与音乐按钮调整 */
    #top-user-nav {
        top: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .btn-music {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
        font-size: 14px;
        box-shadow: 4px 4px 0px var(--ink);
    }

    #user-display {
        padding: 8px 15px;
        font-size: 14px;
    }

    /* 2. 主屏 (Home Screen) 适配 */
    #home-screen.active {
        padding-top: 5vh;
        justify-content: flex-start; /* 手机端改为顶部对齐，防止被输入法遮挡 */
    }

    .main-title {
        font-size: 3.2rem !important; /* 缩小标题 */
        margin-top: 40px !important;
        margin-bottom: 40px !important;
        letter-spacing: 4px;
        text-align: center;
        display: block; /* 移动端居中 */
    }

    /* 按钮组改为垂直排列 */
    .home-nav-grid, .btn-group {
        flex-direction: column;
        gap: 20px;
        width: 85%;
        align-items: center;
    }

    .btn-sq {
        width: 100%; /* 按钮宽度撑满 */
        height: 120px; /* 高度减小，改为长方形 */
        flex-direction: row; /* 图标与文字横向排列 */
        gap: 15px;
        font-size: 1.4rem;
        box-shadow: 8px 8px 0px rgba(0,0,0,0.1);
    }

    /* 3. 卡片系统 (Fish Grid) 适配 */
    .fish-grid {
        grid-template-columns: repeat(2, 1fr); /* 手机端一行两个 */
        gap: 15px;
        padding: 15px;
    }

    .fish-card {
        aspect-ratio: auto;
        min-height: 380px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-story-mini {
        -webkit-line-clamp: 3; /* 缩短描述 */
    }

    /* 4. 详情弹窗与画板适配 */
    .ink-box {
        min-width: 90%;
        padding: 30px 20px;
        margin: 10px;
    }

    #canvas-wrapper {
        width: 280px; /* 缩小画布适配小屏 */
        height: 280px;
    }

    .draw-tools {
        flex-wrap: wrap; /* 工具栏自动换行 */
        gap: 10px;
    }

    /* 5. 关于我们 (Marquee) 适配 */
    .marquee-wrapper {
        height: 220px; /* 压缩高度 */
    }

    .about-card {
        padding: 10px !important;
        gap: 12px;
    }

    .about-avatar {
        width: 60px !important;
        height: 60px !important;
    }

    .founder-name {
        font-size: 1.1rem !important;
        min-width: auto;
    }

    /* 6. 特别鸣谢适配 */
    .thanks-tag {
        padding: 4px 10px;
    }

    .thanks-tag span {
        font-size: 0.75rem;
    }

    /* 7. 排行榜适配 */
    .rank-container {
        grid-template-columns: 1fr; /* 手机端单列 */
        gap: 30px;
    }
    /* 放在 768px 媒体查询内部的最后 */
    .mobile-notice {
        display: block !important; 
        position: fixed !important;
        bottom: 0 !important; /* 锁死在屏幕最底端 */
        left: 0;
        width: 100%;
        text-align: center;
        padding: 6px 0;
        background: rgba(0, 0, 0, 0.7); /* 深色背景确保文字清晰 */
        color: #ff9900 !important; /* 使用醒目的橙色 */
        font-size: 11px;
        z-index: 99999 !important; /* 最高的层级，压过所有鱼和按钮 */
        pointer-events: none; /* 穿透点击，不影响点鱼 */
        letter-spacing: 1px;
    }
}
