:root {
  --ink: #1f2430;
  --muted: #5d6472;
  --bg: #f6f4ef;
  --card: #ffffff;
  --amber: #f2a33c;
  --teal: #1f6f6b;
  --line: #e4ded3;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,244,239,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; color: var(--ink); }
.brand img { height: 32px; width: auto; border-radius: 8px; }
.nav-toggle {
  display: none; margin-left: auto; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; padding: 7px 12px; font-size: 14px; color: var(--ink); cursor: pointer;
}
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-block; padding: 7px 11px; border-radius: 9px;
  font-size: 14px; color: var(--muted); transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a:focus { background: #fff2df; color: #b56a10; }

/* Hero */
.hero { padding: 34px 0 26px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .04em;
  background: #fff2df; color: #a8640d; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
h1 { font-size: 30px; line-height: 1.35; margin: 0 0 14px; font-weight: 800; letter-spacing: .01em; }
h1 .hl { color: var(--teal); }
.hero p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; }
.dl-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 11px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .2s;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(31,36,48,.1); border-color: #cfc4b0; }
.dl-btn.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.dl-btn.primary:hover { background: #185955; }
.hero-media { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 148px 148px; gap: 10px; }
.hero-media figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: #e8e2d7; }
.hero-media figure:first-child { grid-row: span 2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hero-media figure:hover img { transform: scale(1.04); }

/* Marquee */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: #1f2430; padding: 10px 0; margin-top: 26px; border-radius: 12px;
}
.marquee-track { display: inline-block; padding-left: 100%; animation: slide 24s linear infinite; }
.marquee-track span {
  display: inline-block; margin-right: 42px; font-size: 14px; font-weight: 700;
  background: linear-gradient(90deg, #f2a33c, #ffd27a, #6fd6cd, #8ea7ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* Sections */
section { padding: 44px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { font-size: 22px; margin: 0 0 8px; font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

/* Chat style for 今日吃瓜 */
.chat-block { background: #eef6f4; border-radius: 22px; padding: 22px; }
.chat-list { display: grid; gap: 12px; }
.chat-item { display: flex; gap: 11px; align-items: flex-start; }
.chat-item .avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.bubble {
  background: #fff; border-radius: 4px 14px 14px 14px; padding: 11px 15px;
  font-size: 14px; color: #2b303b; box-shadow: 0 2px 8px rgba(31,111,107,.07); flex: 1;
}
.bubble b { color: var(--teal); }
.chat-item.right { flex-direction: row-reverse; }
.chat-item.right .bubble { border-radius: 14px 4px 14px 14px; background: #fff7e9; }

/* List cards for 本周热瓜 */
.hot-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hot-card {
  display: flex; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 13px; align-items: center;
}
.hot-card .thumb { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; flex: none; }
.hot-card h3 { margin: 0 0 3px; font-size: 15px; font-weight: 700; }
.hot-card p { margin: 0; font-size: 13px; color: var(--muted); }

/* Campus asymmetric */
.campus { background: #f3f6fb; }
.campus-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 26px; align-items: start; }
.campus-img { border-radius: 18px; overflow: hidden; background: #dde6f2; }
.campus-img img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.campus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.campus-list li {
  background: #fff; border-left: 4px solid #7c9cff; border-radius: 8px;
  padding: 9px 13px; font-size: 14px;
}
.campus-list li strong { color: #3f5ba8; margin-right: 6px; }

/* Contrast rows */
.contrast-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.contrast-rows { display: grid; gap: 8px; }
.contrast-rows div {
  display: flex; justify-content: space-between; gap: 14px; font-size: 14px;
  padding: 8px 10px; border-radius: 8px; background: #faf7f1;
}
.contrast-rows div span:first-child { font-weight: 600; }
.contrast-rows div span:last-child { color: var(--muted); text-align: right; }

/* Privacy */
.privacy { background: #22302d; color: #e5efec; border-radius: 24px; padding: 30px 24px; }
.privacy h2 { color: #fff; }
.privacy p.lead { color: #b3c4c0; margin: 0 0 20px; font-size: 14px; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.privacy-grid div { background: #2c3d39; border-radius: 11px; padding: 12px 14px; font-size: 14px; }
.privacy-grid div strong { color: #8fe0c8; display: block; margin-bottom: 3px; font-size: 14px; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 900px; margin: 0 auto; }
details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
details summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--amber); font-weight: 700; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

/* Feedback */
.feedback { background: #fdf1e6; border-radius: 22px; padding: 26px 22px; }
.feedback-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.feedback-grid div {
  background: #fff; border-radius: 12px; padding: 13px 15px; font-size: 14px;
  border: 1px dashed #e5c7a5;
}
.feedback-grid div strong { display: block; color: #a8640d; margin-bottom: 3px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding: 8px 10px; background: #fff; }

/* Download section */
.download { background: #f7f2e7; border-top: 1px solid var(--line); }
.download-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.download-grid .shot { border-radius: 18px; overflow: hidden; background: #e6ded0; }
.download-grid .shot img { width: 100%; object-fit: cover; }
.steps { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.steps li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.steps .num {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.note { font-size: 13px; color: var(--muted); }
.dl-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 14px; }
.dl-box .dl-row { margin-top: 8px; }

/* Footer */
.site-footer { background: #1f2430; color: #9aa3b2; padding: 32px 0 74px; font-size: 13px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 22px; }
.site-footer h3 { color: #e6e9ef; font-size: 14px; margin: 0 0 8px; }
.site-footer p { margin: 0 0 6px; line-height: 1.7; }
.site-footer a:hover { color: #ffd27a; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.copy { margin-top: 20px; padding-top: 14px; border-top: 1px solid #2e3543; font-size: 12px; color: #78818f; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.copy a { color: #78818f; }

/* Floating bar */
.float-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 24px rgba(31,36,48,.16); padding: 8px 10px;
  display: flex; align-items: center; gap: 10px; width: calc(100% - 28px); max-width: 460px;
}
.float-bar img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; flex: none; }
.float-bar .fb-text { flex: 1; min-width: 0; }
.float-bar .fb-text strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-bar .fb-text span { font-size: 11px; color: var(--muted); }
.float-bar .dl-btn { padding: 8px 14px; font-size: 13px; flex: none; }

/* Copy modal */
.modal {
  display: none; position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.45); align-items: center; justify-content: center; padding: 18px;
}
.modal.show { display: flex; }
.modal-box { background: #fff; border-radius: 16px; padding: 22px; max-width: 380px; width: 100%; text-align: center; }
.modal-box p { font-size: 14px; margin: 0 0 14px; color: #333; }
.modal-box input { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; margin-bottom: 12px; color: #555; }
.modal-box button { background: var(--teal); color: #fff; border: 0; border-radius: 9px; padding: 10px 20px; font-size: 14px; cursor: pointer; }

/* Tablet */
@media (max-width: 1024px) {
  h1 { font-size: 26px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-media { grid-template-rows: 130px 130px; }
}

/* Mobile */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; padding: 10px 0; }
  .nav-toggle { display: inline-block; }
  .main-nav { display: none; width: 100%; margin-left: 0; }
  .main-nav.open { display: block; }
  .main-nav ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding-bottom: 8px; }
  .main-nav a { display: block; background: #fff; border: 1px solid var(--line); font-size: 14px; }
  .hero { padding: 22px 0 16px; }
  .hero-grid { grid-template-columns: 1fr; gap: 18px; }
  .hero-media { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 120px; }
  .hero-media figure:first-child { grid-row: span 1; }
  .hero-media figure:third-child { display: none; }
  h1 { font-size: 23px; }
  .dl-btn { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 11px 10px; font-size: 13px; }
  .marquee-track span { font-size: 13px; }
  section { padding: 32px 0; }
  .section-head h2 { font-size: 19px; }
  .hot-wrap { grid-template-columns: 1fr; }
  .campus-grid { grid-template-columns: 1fr; gap: 16px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .feedback-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; gap: 18px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
  .site-footer { padding-bottom: 88px; }
  .chat-block { padding: 14px; }
  .bubble { font-size: 13px; padding: 9px 12px; }
  .float-bar { gap: 8px; padding: 7px 8px; }
  .float-bar .fb-text strong { font-size: 12px; }
}