/* ============================================================
   52摸鱼社区 · 产品落地页（共享样式）
   技术栈：纯 HTML + CSS（Flexbox / Grid，语义化类名 + CSS 变量）
   ============================================================ */

/* ---- Design Tokens ---- */
:root{
  --brand:#2FB585;
  --brand-dark:#269E74;
  --brand-light:#E6F7F0;
  --bg:#F7F8FA;
  --card:#FFFFFF;
  --title:#333333;
  --subtitle:#666666;
  --muted:#999999;
  --line:#E5E7EB;
  --heart:#F87171;
  --max-w:1200px;
  --radius:16px;
  --radius-sm:8px;
  --shadow-sm:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);
  --shadow-card:0 2px 8px rgba(0,0,0,.04);
  --shadow-btn:0 6px 16px rgba(47,181,133,.3);
}

/* ---- Reset ---- */
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",sans-serif;
  color:var(--title);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
img{display:block;max-width:100%}
a{text-decoration:none;color:inherit}
button{font-family:inherit;cursor:pointer;border:none;background:none}
ul{list-style:none}

/* ---- 布局容器 ---- */
.container{max-width:var(--max-w);margin:0 auto;padding:0 24px}
.section{padding:88px 0}

/* ---- 通用卡片 ---- */
.card{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow-card)}
.icon{width:20px;height:20px;flex-shrink:0}

/* ============================================================
   Navbar
   ============================================================ */
.navbar{
  position:sticky;top:0;z-index:50;
  height:80px;
  background:#fff;
  border-bottom:1px solid rgba(229,231,235,.6);
}
.navbar .container{height:100%;display:flex;align-items:center;justify-content:space-between}
.navbar__logo{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:700;color:var(--brand)}
.navbar__logo img{
  width:36px;height:36px;border-radius:50%;object-fit:cover;
  box-shadow:var(--shadow-sm);
}
.navbar__menu{display:flex;align-items:center;gap:40px}
.navbar__menu a{font-size:15px;font-weight:500;color:var(--subtitle);transition:color .2s}
.navbar__menu a:hover{color:var(--brand)}
.navbar__menu a.on{color:var(--brand);font-weight:600}
.navbar__right{min-width:80px;display:flex;justify-content:flex-end}

/* ============================================================
   Hero
   ============================================================ */
.hero{padding:96px 0 104px;background:linear-gradient(180deg,#fff 0%,var(--bg) 100%)}
.hero .container{display:flex;align-items:center;gap:64px}
.hero__text{flex:1 1 55%}
.hero__title{font-size:48px;font-weight:800;line-height:1.28;letter-spacing:.5px}
/* “做回自己”小清新设计：品牌绿 + 手写体 + 手绘下划线 */
.hero__title .accent{
  display:inline-flex;flex-direction:column;align-items:center;
  color:var(--brand);
  font-family:"Kaiti SC","STKaiti","KaiTi","FangSong",serif;
  font-weight:700;
  line-height:1.15;
  letter-spacing:2px;
}
.hero__title .accent__swash{width:150px;height:14px;margin-top:4px;color:#7fe0b7}
.hero__sub{margin-top:22px;font-size:16px;color:var(--subtitle)}
.hero__actions{margin-top:36px;display:flex;align-items:center;gap:16px}

/* 按钮 */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:48px;padding:0 30px;border-radius:var(--radius-sm);
  font-size:16px;font-weight:600;
  transition:transform .15s,box-shadow .15s,background .15s;
}
.btn:active{transform:scale(.98)}
.btn--primary{background:var(--brand);color:#fff;box-shadow:var(--shadow-btn)}
.btn--primary:hover{background:var(--brand-dark)}
.btn--ghost{background:transparent;color:var(--title);border:1.5px solid var(--title)}
.btn--ghost:hover{background:rgba(31,41,55,.04)}
.btn .icon{width:18px;height:18px}

/* 手机模型（顺时针微倾，对齐参考图） */
.hero__visual{flex:1 1 45%;display:flex;justify-content:center}
.phone{
  width:300px;height:500px;
  background:#fff;
  border-radius:44px;
  border:8px solid #1F2937;
  box-shadow:0 24px 60px rgba(31,41,55,.18);
  transform:rotate(8deg);
  overflow:hidden;
  display:flex;flex-direction:column;
}
.phone__screen{
  flex:1;background:var(--brand-light);border-radius:34px;
  padding:28px 20px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  text-align:center;
}
.phone__heart{background:#fff;border-radius:20px;box-shadow:var(--shadow-card);padding:8px 16px;font-size:22px;align-self:flex-start;margin-left:12px}
.phone__mascot{width:150px;height:150px;object-fit:contain}
.phone__app-name{font-size:16px;font-weight:700;color:var(--brand)}
.phone__progress{width:100%;margin-top:auto}
.phone__progress-text{font-size:13px;color:var(--subtitle);margin-bottom:8px}
.phone__bar{height:8px;background:#E5E7EB;border-radius:99px;overflow:hidden}
.phone__bar-fill{height:100%;width:60%;background:var(--brand);border-radius:99px}

/* ============================================================
   通用 Section 头
   ============================================================ */
.section-head{margin-bottom:40px}
.section-head__num{display:inline-block;font-size:14px;font-weight:700;color:var(--brand);background:var(--brand-light);padding:4px 14px;border-radius:99px;margin-bottom:14px}
.section-head h2{font-size:32px;font-weight:800;color:var(--title)}
.section-head p{margin-top:12px;font-size:16px;color:var(--subtitle);max-width:640px}

/* ============================================================
   Section 01 · 启动页情绪缓冲
   ============================================================ */
.s01-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.s01-card{padding:36px 24px 28px;text-align:center;border:1px solid rgba(229,231,235,.4);transition:transform .2s,box-shadow .2s}
.s01-card:hover{transform:translateY(-4px);box-shadow:0 16px 32px rgba(0,0,0,.09)}
.s01-card__icon{width:84px;height:84px;margin:0 auto 20px;background:linear-gradient(135deg,var(--brand-light) 0%,#F0FBF6 100%);border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(47,181,133,.08)}
.s01-card__icon img{width:100%;height:100%;object-fit:cover}
.s01-card__icon--calm{background:linear-gradient(135deg,#E3F5EE,#F0FBF6)}
.s01-card__icon--blue{background:linear-gradient(135deg,#E7F0FB,#F2F7FD)}
.s01-card__icon--purple{background:linear-gradient(135deg,#EEE9FB,#F7F2FD)}
.s01-card__icon--warm{background:linear-gradient(135deg,#FFF0E6,#FFF6EF)}
.s01-card h3{font-size:18px;font-weight:700;color:var(--title);margin-bottom:8px}
.s01-card p{font-size:13px;color:var(--muted)}

/* ============================================================
   Section 02 · 摸鱼工具箱（两排横向滚动）
   ============================================================ */
.s02-tabs{display:flex;gap:12px;margin-bottom:32px;flex-wrap:wrap}
.s02-tab{padding:9px 20px;border-radius:99px;font-size:14px;font-weight:500;color:var(--subtitle);background:#fff;border:1px solid var(--line);transition:all .2s}
.s02-tab:hover{color:var(--brand);border-color:var(--brand)}
.s02-tab.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.s02-scroll{overflow-x:auto;padding-bottom:18px;-webkit-overflow-scrolling:touch}
.s02-scroll::-webkit-scrollbar{height:8px}
.s02-scroll::-webkit-scrollbar-track{background:#EEF1F4;border-radius:99px}
.s02-scroll::-webkit-scrollbar-thumb{background:#D1D5DB;border-radius:99px}
.s02-track{display:flex;flex-direction:column;gap:16px;width:max-content}
.s02-row{display:flex;gap:16px}
.s02-card{
  flex:0 0 104px;
  padding:16px 8px 14px;
  background:#fff;border:1px solid rgba(229,231,235,.6);border-radius:16px;
  display:flex;flex-direction:column;align-items:center;gap:10px;
  text-align:center;box-shadow:0 2px 10px rgba(0,0,0,.05);
  transition:transform .18s,box-shadow .18s;
}
.s02-card:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.09)}
.s02-card:active{transform:scale(.96)}
.s02-card__emoji{width:50px;height:50px;border-radius:16px;background:linear-gradient(135deg,var(--brand-light) 0%,#F0FBF6 100%);display:flex;align-items:center;justify-content:center;font-size:26px;box-shadow:inset 0 0 0 1px rgba(47,181,133,.08),0 2px 6px rgba(0,0,0,.06);filter:saturate(1.05)}
.s02-card span{font-size:12px;font-weight:600;color:var(--title);white-space:nowrap}
/* 工具箱：五彩低饱和点缀（按位置轮转，模仿 WPS/Keep 的"宝盒"，克制不花） */
.s02-card:nth-child(5n+1) .s02-card__emoji{background:linear-gradient(135deg,#E3F5EE,#F0FBF6)}
.s02-card:nth-child(5n+2) .s02-card__emoji{background:linear-gradient(135deg,#E8F0FB,#F2F7FD)}
.s02-card:nth-child(5n+3) .s02-card__emoji{background:linear-gradient(135deg,#F0EBFB,#F7F2FD)}
.s02-card:nth-child(5n+4) .s02-card__emoji{background:linear-gradient(135deg,#FFF0E8,#FFF6EF)}
.s02-card:nth-child(5n) .s02-card__emoji{background:linear-gradient(135deg,#FBEFF2,#FDF4F6)}

/* ============================================================
   Section 03 · 摸鱼广场 社区图文
   ============================================================ */
.s03-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.s03-card{overflow:hidden;border:1px solid rgba(229,231,235,.4);box-shadow:0 2px 10px rgba(0,0,0,.05);transition:transform .2s,box-shadow .2s}
.s03-card:hover{transform:translateY(-4px);box-shadow:0 16px 32px rgba(0,0,0,.09)}
.s03-card__head{display:flex;align-items:center;gap:10px;padding:16px 16px 0}
.s03-card__avatar{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:19px;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.s03-card__name{font-size:14px;font-weight:700;color:var(--title)}
.s03-card__img{margin:12px 16px;height:180px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:56px;background:linear-gradient(135deg,#F5F7FA,#EEF1F4)}
.s03-card__caption{padding:0 16px;font-size:14px;color:var(--title);line-height:1.6}
.s03-card__actions{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 16px}
.s03-card__actions span{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--subtitle)}
.s03-card__actions .like{color:var(--heart)}

/* ============================================================
   Section 04 · 摸鱼圈子 反内卷语录流
   ============================================================ */
.s04-scroll{display:flex;gap:20px;overflow-x:auto;padding:8px 4px 20px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}
.s04-scroll::-webkit-scrollbar{height:8px}
.s04-scroll::-webkit-scrollbar-thumb{background:#D1D5DB;border-radius:99px}
.s04-card{flex:0 0 260px;min-height:220px;padding:24px 22px;background:linear-gradient(180deg,#F0FBF6 0%,#fff 100%);border:1px solid rgba(68,199,154,.18);border-radius:var(--radius);box-shadow:var(--shadow-card);scroll-snap-align:start;display:flex;flex-direction:column}
.s04-card__quote{font-size:40px;font-weight:800;color:var(--brand);line-height:1;height:34px}
.s04-card p{margin-top:14px;font-size:16px;font-weight:600;color:var(--title);line-height:1.9;white-space:pre-line}
.s04-card__meta{margin-top:auto;font-size:12px;color:var(--muted)}

/* ============================================================
   个人中心页（mine.html）
   ============================================================ */
.mine-hero{padding:48px 0 0}
.s05-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:24px;align-items:stretch;padding-bottom:88px}
.profile{overflow:hidden;display:flex;flex-direction:column}
.profile__top{height:120px;background:linear-gradient(135deg,var(--brand) 0%,#6fddb5 100%);border-radius:var(--radius) var(--radius) 0 0}
.profile__body{margin-top:-48px;padding:0 28px 28px;display:flex;flex-direction:column;align-items:center;text-align:center}
.profile__avatar{width:96px;height:96px;border-radius:50%;border:4px solid #fff;background:#E9F9F2;display:flex;align-items:center;justify-content:center;font-size:48px;box-shadow:var(--shadow-card)}
.profile__name{margin-top:14px;font-size:20px;font-weight:800;color:var(--title)}
.profile__tag{margin-top:6px;font-size:13px;color:var(--brand);background:var(--brand-light);padding:3px 14px;border-radius:99px}
.profile__stats{margin-top:24px;display:flex;justify-content:center;width:100%;border-top:1px solid var(--line);padding-top:20px}
.profile__stats div{flex:1}
.profile__stats b{display:block;font-size:20px;font-weight:800;color:var(--title)}
.profile__stats span{font-size:13px;color:var(--muted)}

.panel{display:flex;flex-direction:column;gap:24px}
.panel-box{padding:24px}
.panel-box h4{font-size:16px;font-weight:700;color:var(--title);margin-bottom:18px}
.tools{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.tool{display:flex;flex-direction:column;align-items:center;gap:8px;padding:16px 8px;border-radius:12px;background:var(--bg);transition:background .2s}
.tool:hover{background:var(--brand-light)}
.tool__icon{width:48px;height:48px;border-radius:12px;background:#fff;color:var(--brand);display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow-sm)}
.tool__icon svg{width:24px;height:24px}
.tool span{font-size:13px;color:var(--title);font-weight:500}

.publish textarea{width:100%;min-height:88px;resize:none;border:1px solid var(--line);border-radius:12px;padding:14px;font-size:15px;font-family:inherit;color:var(--title);outline:none;background:var(--bg)}
.publish textarea:focus{border-color:var(--brand);background:#fff}
.publish__bar{margin-top:14px;display:flex;align-items:center;gap:6px}
.publish__icon{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--subtitle);transition:all .15s}
.publish__icon:hover{background:var(--brand-light);color:var(--brand)}
.publish__icon svg{width:20px;height:20px}
.publish__submit{margin-left:auto;height:40px;padding:0 26px;border-radius:20px;background:var(--brand);color:#fff;font-size:14px;font-weight:600;box-shadow:var(--shadow-btn)}
.publish__submit:hover{background:var(--brand-dark)}

/* ============================================================
   Footer
   ============================================================ */
.footer{background:#fff;border-top:1px solid var(--line);padding:48px 0 32px}
.footer .container{display:flex;flex-direction:column;gap:20px}
.footer__top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.footer__logo{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:700;color:var(--brand)}
.footer__logo img{width:26px;height:26px;border-radius:50%;object-fit:cover}
.footer__slogan{font-size:15px;color:var(--subtitle)}
.footer__bottom{border-top:1px solid var(--line);padding-top:20px;text-align:center;font-size:13px;color:var(--muted)}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width:1024px){
  .hero .container{flex-direction:column;text-align:center}
  .hero__text{flex:1 1 auto}
  .hero__actions{justify-content:center}
  .s01-grid,.s03-grid{grid-template-columns:repeat(2,1fr)}
  .s05-grid{grid-template-columns:1fr}
  .navbar__menu{display:none}
}
@media (max-width:640px){
  .section{padding:60px 0}
  .hero__title{font-size:34px}
  .hero__title .accent__swash{width:110px}
  .s01-grid,.s03-grid{grid-template-columns:1fr}
  .tools{grid-template-columns:repeat(2,1fr)}
  .phone{width:240px;height:400px;border-radius:34px}
  .phone__mascot{width:120px;height:120px}
}

/* ===== 摸鱼工具（点卡片内嵌弹层）===== */
:root{--green:var(--brand);--t1:var(--title);--t2:var(--subtitle);--t3:var(--muted);--orange:#FF9F43;--safe-top:0px}
#moduleShell{position:fixed;inset:0;z-index:400;background:#F9FAFB;display:none;flex-direction:column;transform:translateY(100%);transition:transform .3s ease}
#moduleShell.show{transform:translateY(0)}
.mod-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 8px;background:#fff;border-bottom:1px solid var(--line)}
.mod-head .mh-title{font-size:18px;font-weight:600;color:var(--t1);display:flex;align-items:center;gap:8px}
.mod-head .mh-close{width:32px;height:32px;border-radius:50%;background:#F2F2F6;display:flex;align-items:center;justify-content:center;font-size:16px;cursor:pointer}
.mod-body{flex:1;overflow-y:auto}
.m-btn{display:inline-block;padding:12px 24px;border-radius:22px;border:none;font-size:15px;font-weight:500;cursor:pointer;text-align:center}
.m-btn-green{background:var(--green);color:#fff;box-shadow:0 4px 12px rgba(68,199,154,.2)}
.m-btn-green:active{opacity:.85}
.m-chip{padding:8px 16px;border-radius:20px;border:1px solid var(--line);background:#fff;font-size:13px;cursor:pointer;color:var(--t2);transition:all .15s;white-space:nowrap}
.m-chip:active{background:var(--green);color:#fff;border-color:var(--green)}
.m-chip.on{background:var(--green);color:#fff;border-color:var(--green)}
.m-counter{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid var(--line)}
.m-count{font-weight:700;color:var(--green)}
#toast{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background:rgba(0,0,0,.72);color:#fff;padding:10px 22px;border-radius:20px;font-size:13px;z-index:999;pointer-events:none;opacity:0;transition:opacity .2s}
#toast.show{opacity:1}
