/* 五优 WUYUP —— 站点样式

   ⚠️ 老浏览器约束：这些页面会被老安卓 WebView 打开。那种浏览器碰到
   不认识的写法，会把「整条规则」丢掉——元素凭空消失，而且你在电脑上
   完全测不出来。所以本文件只用 flex + 绝对定位 + px/%。

   哪些写法不能用，见 README 的「老浏览器兼容」一节。
   （那份清单故意不抄在这里：检查脚本是按文本扫的，注释里写一遍
     也会被算成违规，白白误报。） */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: #14161a;
  font-size: 15px;
  line-height: 1.7;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; border: 0; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------- 顶栏 ---------------- */
.top {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #ececf0;
}

.topbar {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-right: auto;
}

.brand img { display: block; }

.brand-text {
  margin-left: 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-text em {
  font-style: normal;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  color: #8a8f98;
  margin-left: 6px;
}

/* ---------------- 联系方式 ---------------- */
.contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.contact {
  display: flex;
  align-items: center;
  border: 1px solid #e4e5ea;
  border-radius: 10px;
  padding: 6px 6px 6px 10px;
  margin: 4px 0 4px 8px;
  background: #fff;
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #14161a;
  flex: 0 0 auto;
}

.contact-icon svg {
  width: 15px;
  height: 15px;
  fill: #fff;
}

.contact-text {
  display: flex;
  flex-direction: column;
  margin: 0 10px;
  min-width: 0;
}

.contact-name {
  font-size: 11px;
  color: #8a8f98;
  line-height: 1.3;
}

.contact-value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-all;
}

a.contact-value { text-decoration: underline; }

.contact-copy {
  flex: 0 0 auto;
  border: 0;
  border-radius: 7px;
  background: #14161a;
  color: #fff;
  font-size: 13px;
  padding: 7px 13px;
  cursor: pointer;
  font-family: inherit;
}

.contact-copy:hover { background: #33373d; }
.contact-copy-done { background: #1a9e5c; }

/* 首屏那组：大一号，横向铺开 */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 26px;
}

.contact-hero {
  margin: 6px 10px 6px 0;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
}

.contact-hero .contact-icon { width: 34px; height: 34px; border-radius: 9px; }
.contact-hero .contact-icon svg { width: 19px; height: 19px; }
.contact-hero .contact-value { font-size: 16px; }
.contact-hero .contact-copy { font-size: 14px; padding: 9px 16px; }

/* ---------------- 首屏 ---------------- */
.hero {
  padding: 64px 0 72px;
  background: #f6f7f9;
  border-bottom: 1px solid #ececf0;
}

.hero h1 {
  margin: 0;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: 1px;
}

.hero h1 span {
  display: inline-block;
  margin-top: 8px;
  font-size: 22px;
  font-weight: 600;
  color: #5d636c;
  letter-spacing: 3px;
}

.hero .sub {
  margin: 20px 0 0;
  font-size: 15px;
  color: #5d636c;
  max-width: 620px;
}

.hero .tip {
  margin: 14px 0 0;
  font-size: 13px;
  color: #8a8f98;
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 58px 0; }
.section-alt { background: #f6f7f9; }

.section h2 {
  margin: 0 0 26px;
  font-size: 24px;
  letter-spacing: 1px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  margin: -8px;
}

.card {
  background: #fff;
  border: 1px solid #ececf0;
  border-radius: 12px;
  padding: 20px;
  margin: 8px;
  width: 100%;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: #5d636c;
}

.card-product h3 { letter-spacing: 1px; }

/* ---------------- 玩法标签 ---------------- */
.tags { display: flex; flex-wrap: wrap; margin: -5px; }

.tags span {
  border: 1px solid #dfe1e6;
  background: #fff;
  border-radius: 999px;
  padding: 7px 17px;
  margin: 5px;
  font-size: 14px;
}

/* ---------------- 底部 ---------------- */
.foot {
  background: #14161a;
  color: #cfd3d9;
  padding: 50px 0 34px;
  text-align: center;
}

.foot-logo {
  display: block;
  margin: 0 auto 14px;
  /* logo 本身是黑线稿，深色底上要反色才看得见 */
  -webkit-filter: invert(100%);
  filter: invert(100%);
}

.foot-title {
  margin: 0 0 16px;
  font-size: 17px;
  color: #fff;
  letter-spacing: 1px;
}

.contacts-foot { justify-content: center; }

.contacts-foot .contact {
  background: #1e2126;
  border-color: #2c3036;
}

.contacts-foot .contact-icon { background: #fff; }
.contacts-foot .contact-icon svg { fill: #14161a; }
.contacts-foot .contact-value { color: #fff; }
.contacts-foot .contact-copy { background: #fff; color: #14161a; }
.contacts-foot .contact-copy:hover { background: #dfe1e6; }
.contacts-foot .contact-copy-done { background: #1a9e5c; color: #fff; }

.copy {
  margin: 26px 0 0;
  font-size: 12px;
  color: #6b7079;
}

/* ---------------- 复制提示条 ---------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  margin-left: -160px;
  width: 320px;
  background: #14161a;
  color: #fff;
  text-align: center;
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  opacity: 0;
  visibility: hidden;
  z-index: 9999;
}

.toast-show { opacity: 1; visibility: visible; }

/* ---------------- 大屏：卡片分栏 ---------------- */
@media (min-width: 720px) {
  .card { width: calc(50% - 16px); }
  .grid-3 .card { width: calc(33.333% - 16px); }
}

@media (min-width: 1000px) {
  .grid .card-product { width: calc(25% - 16px); }
}

/* ---------------- 手机 ---------------- */
@media (max-width: 719px) {
  .hero { padding: 44px 0 50px; }
  .hero h1 { font-size: 28px; }
  .hero h1 span { font-size: 18px; letter-spacing: 2px; }
  .section { padding: 42px 0; }
  .section h2 { font-size: 21px; }

  .topbar { min-height: 56px; }

  /* 顶栏在手机上换行放联系方式，别挤成一坨 */
  .topbar .contacts { width: 100%; margin-top: 6px; }
  .topbar .contact { margin-left: 0; margin-right: 8px; }

  .contact { width: 100%; margin-right: 0; }
  .hero-actions .contact { margin-right: 0; }

  .toast { width: 82%; left: 9%; margin-left: 0; }
}
