/* ==========================================================
   冬瓜不是南瓜 · 萌趣游戏工作室官网
   ========================================================== */
:root {
  --bg: #eef6ea;
  --bg-soft: #f7fbf4;
  --card: #ffffff;
  --green: #2f9e44;
  --green-deep: #1f7a33;
  --green-dark: #23402a;
  --ink: #2b3a2e;
  --muted: #7f9082;
  --line: #e2ecdf;
  --orange: #ff9f43;
  --blue: #4dabf7;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(47, 120, 60, .10);
  --shadow-sm: 0 4px 14px rgba(47, 120, 60, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }

/* ---------------- 顶部导航 ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 17px; color: var(--green-dark);
}
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  padding: 8px 16px; border-radius: 999px;
  font-size: 15px; color: var(--ink); transition: .2s;
}
.nav-links a:hover { background: #e8f4e4; color: var(--green-deep); }
.nav-links a.active {
  background: var(--green); color: #fff; font-weight: 600;
  box-shadow: 0 4px 10px rgba(47, 158, 68, .35);
}

/* 汉堡按钮 */
.menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.menu-btn span {
  width: 22px; height: 2.5px; border-radius: 2px;
  background: var(--green-dark); transition: .25s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 56px 0 8px; }
.section-head { margin-bottom: 26px; }
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 24px; font-weight: 800; color: var(--green-dark);
}
.section-title .ico { font-size: 22px; }
.section-sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: .2s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(47, 158, 68, .3); }
.btn-primary:hover { background: var(--green-deep); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--green-deep); border-color: #cfe7c9; }
.btn-ghost:hover { border-color: var(--green); transform: translateY(-2px); }
.arrow { transition: transform .2s; }
.btn:hover .arrow, .more:hover .arrow { transform: translateX(4px); }

/* ---------------- Hero ---------------- */
.hero {
  margin-top: 20px;
  background: linear-gradient(135deg, #dff0d4 0%, #f2faea 55%, #e6f5dd 100%);
  border-radius: 28px;
  padding: 64px 56px;
  display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: 30px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), transparent 70%);
}
.hero::before { width: 220px; height: 220px; top: -80px; right: 30%; }
.hero::after { width: 160px; height: 160px; bottom: -60px; left: 40%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #d7ead0;
  color: var(--green-deep); font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900; color: var(--green-dark);
  letter-spacing: 1px; line-height: 1.25;
}
.hero .slogan { font-size: 18px; color: #55705a; margin: 14px 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-art { position: relative; z-index: 1; display: flex; justify-content: center; }
.hero-art img { width: min(340px, 80%); filter: drop-shadow(0 18px 24px rgba(40, 100, 50, .25)); animation: float 3.5s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.deco { position: absolute; font-size: 26px; opacity: .85; animation: float 4s ease-in-out infinite; pointer-events: none; }
.deco.s1 { top: 14%; left: 46%; animation-delay: .5s; }
.deco.s2 { bottom: 18%; right: 6%; animation-delay: 1.2s; }
.deco.s3 { top: 20%; right: 10%; font-size: 34px; animation-delay: .8s; }

/* ---------------- 游戏卡片 ---------------- */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.game-grid.single { grid-template-columns: minmax(0, 620px); justify-content: center; }
.game-grid.single .art { height: 320px; }
.game-grid.single .game-body { padding: 20px 24px 24px; }
.game-grid.single h3 { font-size: 20px; }
.game-grid.single p { font-size: 14.5px; }
.art-photo { background: linear-gradient(135deg, #e9f5e0, #cfeab8); }
.art-photo img { width: 100%; height: 100%; object-fit: cover; }

.game-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: .25s;
  display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.art {
  height: 150px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 58px;
}
.cols-2 .art { height: 230px; font-size: 84px; }
.art::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.55) 0 8px, transparent 9px),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.45) 0 12px, transparent 13px),
    radial-gradient(circle at 65% 75%, rgba(255,255,255,.4) 0 10px, transparent 11px);
}
.art span { position: relative; filter: drop-shadow(0 6px 8px rgba(0,0,0,.15)); }
.art-1 { background: linear-gradient(135deg, #c8ecab, #7ccb63); }
.art-2 { background: linear-gradient(135deg, #ffe6ad, #ffb84d); }
.art-3 { background: linear-gradient(135deg, #a5b4fc, #6d7ff0); }
.art-4 { background: linear-gradient(135deg, #b0e7ff, #4dabf7); }

.game-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 17px; font-weight: 700; color: var(--green-dark); }
.tags { display: flex; gap: 6px; margin: 8px 0 10px; flex-wrap: wrap; }
.tag {
  font-size: 12px; color: var(--green-deep);
  background: #ecf6e7; padding: 2px 10px; border-radius: 999px;
}
.game-body p { font-size: 13.5px; color: var(--muted); flex: 1; }
.more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--green-deep);
  width: fit-content;
}

/* ---------------- 关于我们 ---------------- */
.about-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: grid; grid-template-columns: 1.2fr .8fr;
}
.about-text { padding: 40px 44px; }
.about-text h3 { font-size: 20px; font-weight: 800; color: var(--green-dark); margin-bottom: 14px; }
.about-text p { font-size: 14.5px; color: #5c6f60; margin-bottom: 10px; }
.about-text .sign { color: var(--green-deep); font-weight: 700; margin-top: 14px; }
.about-text .btn { margin-top: 14px; padding: 10px 22px; font-size: 14px; }
.about-art {
  background: linear-gradient(160deg, #e4f4d8, #cdeab8);
  display: flex; align-items: center; justify-content: center;
  position: relative; min-height: 260px;
}
.about-art img { width: 46%; animation: float 3.5s ease-in-out infinite; }
.about-art .desk { font-size: 52px; position: absolute; bottom: 14%; right: 14%; }

/* ---------------- 品牌理念 ---------------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; text-align: center; box-shadow: var(--shadow-sm); transition: .25s;
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.value-num {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; margin: 0 auto 16px; color: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,.12);
}
.value-card:nth-child(1) .value-num { background: linear-gradient(135deg, #ffc078, #ff9f43); }
.value-card:nth-child(2) .value-num { background: linear-gradient(135deg, #69db7c, #2f9e44); }
.value-card:nth-child(3) .value-num { background: linear-gradient(135deg, #74c0fc, #4dabf7); }
.value-num .num { position: absolute; }
.value-card h4 { font-size: 17px; color: var(--green-dark); }
.value-card h4 .num { color: #b6c6b9; font-size: 13px; margin-right: 6px; font-weight: 700; }
.value-card p { font-size: 13.5px; color: var(--muted); margin-top: 8px; }

/* ---------------- 横幅 ---------------- */
.banner {
  border-radius: 24px; overflow: hidden; position: relative;
  background: linear-gradient(120deg, #57b457 0%, #8ed16f 55%, #c8ecab 100%);
  padding: 54px 48px; color: #fff; box-shadow: var(--shadow);
}
.banner h2 {
  font-size: clamp(22px, 3.4vw, 34px); font-weight: 900;
  text-shadow: 0 2px 8px rgba(30, 90, 40, .25);
  position: relative; z-index: 1; line-height: 1.4;
}
.banner p { position: relative; z-index: 1; margin-top: 8px; opacity: .9; font-size: 14.5px; }
.banner img {
  position: absolute; right: 5%; bottom: -6%; width: 150px;
  transform: rotate(-6deg); opacity: .95;
}
.banner .deco { font-size: 30px; }
.banner .d1 { top: 16%; right: 26%; }
.banner .d2 { bottom: 20%; right: 38%; font-size: 22px; }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: .25s;
  display: flex; flex-direction: column; gap: 6px;
}
.contact-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.contact-card .c-ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 8px; background: #ecf6e7;
}
.contact-card:nth-child(2) .c-ico { background: #fff4e5; }
.contact-card:nth-child(3) .c-ico { background: #e7f3ff; }
.contact-card h3 { font-size: 16.5px; color: var(--green-dark); }
.contact-card p { font-size: 13.5px; color: var(--muted); }
.contact-card .more { border: 0; margin-top: 10px; padding-top: 0; }

/* ---------------- 页脚 ---------------- */
.site-footer { margin-top: 64px; background: #fff; border-top: 1px solid var(--line); }
.footer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0; flex-wrap: wrap; gap: 14px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--green-dark); }
.footer-brand img { width: 30px; height: 30px; }
.footer-brand small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.footer-nav { display: flex; gap: 22px; font-size: 14px; color: #5c6f60; }
.footer-nav a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 14px 0 18px;
  text-align: center; font-size: 12.5px; color: #9aa89c;
}

/* ---------------- 移动端底部导航 ---------------- */
.tabbar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,.95); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 11px; color: #8a9a8c; padding: 4px 0;
}
.tabbar a .t-ico { font-size: 20px; line-height: 1; }
.tabbar a.active { color: var(--green); font-weight: 700; }

/* 移动端下拉菜单 */
.mobile-menu {
  display: none; flex-direction: column; padding: 8px 4% 14px;
  background: #fff; border-bottom: 1px solid var(--line);
}
.mobile-menu a { padding: 12px 14px; border-radius: 12px; font-weight: 600; color: var(--ink); }
.mobile-menu a.active { background: #e8f4e4; color: var(--green-deep); }
.mobile-menu.open { display: flex; }

/* ---------------- 动效 ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: .6s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-card { grid-template-columns: 1fr; }
  .about-art { min-height: 220px; }
  .hero { grid-template-columns: 1fr; padding: 44px 30px; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: 220px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .game-grid, .game-grid.cols-2 { grid-template-columns: 1fr; }
  .section { padding-top: 40px; }
  .banner { padding: 40px 26px; }
  .banner img { width: 110px; right: 4%; }
  body { padding-bottom: 62px; }
  .tabbar { display: flex; }
  .site-footer { margin-bottom: 0; }
}
