/* 大师系列官网 · 浅蓝主题（参考 dify.ai 结构/色系） */
:root {
  --bg: #ffffff;
  --bg-tint: #f4f8fd;          /* 浅蓝底 */
  --card: #ffffff;
  --border: #e3edf7;
  --primary: #2470d8;          /* 主蓝 */
  --primary-2: #4a90e2;
  --accent: #35c3f0;           /* 青蓝 */
  --grad: linear-gradient(120deg, #2470d8, #35c3f0);
  --text: #1a2b3c;
  --text-2: #5b7085;
  --purple: #7c5cff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }

/* 导航 */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 62px; display: flex; align-items: center; gap: 28px; }
.logo { font-size: 22px; font-weight: 800; color: var(--text); text-decoration: none; }
.logo span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 22px; flex: 1; }
.links a { color: var(--text-2); text-decoration: none; font-size: 14px; transition: color .2s; }
.links a:hover { color: var(--primary); }

/* 按钮 */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all .2s;
}
.btn-primary { background: var(--primary); color: #fff; border: none; }
.btn-primary:hover { background: #1c5fb8; box-shadow: 0 6px 18px rgba(36,112,216,.28); }
.btn-primary.big { padding: 13px 28px; font-size: 16px; }
.btn-ghost { color: var(--primary); border: 1px solid var(--border); background: #fff; }
.btn-ghost.big { padding: 13px 28px; font-size: 16px; }
.btn-ghost:hover { border-color: var(--primary); background: #f0f6fd; }

/* Hero */
.hero { max-width: 1160px; margin: 0 auto; padding: 80px 20px 60px; text-align: center; }
.badge { display: inline-block; padding: 6px 14px; border-radius: 20px; background: #eaf3fd; color: var(--primary); font-size: 13px; font-weight: 600; }
.hero h1 { font-size: 56px; font-weight: 800; margin: 20px 0 16px; letter-spacing: -1px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subhead { font-size: 18px; color: var(--text-2); margin-bottom: 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; }
.cta-row.center { margin-top: 26px; }
.hero-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 720px; margin: 56px auto 0; }
.hero-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 22px 12px; box-shadow: 0 4px 16px rgba(36,112,216,.06); }
.hero-card .num { font-size: 28px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card .lbl { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* 区块 */
.section { padding: 70px 20px; }
.section.tint { background: var(--bg-tint); }
.section > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.sec-title { font-size: 34px; font-weight: 800; text-align: center; margin-bottom: 12px; }
.sec-desc { text-align: center; color: var(--text-2); font-size: 16px; margin-bottom: 40px; }
.center { text-align: center; }
.muted { color: var(--text-2); font-size: 14px; }

/* 产品卡片 */
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; margin-top: 20px; }
.prod-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; text-decoration: none; color: var(--text); transition: all .25s; }
.prod-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px rgba(36,112,216,.12); transform: translateY(-3px); }
.prod-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 16px; }
.prod-icon.blue { background: #eaf3fd; }
.prod-icon.purple { background: #f0ecff; }
.prod-card h3 { font-size: 22px; margin-bottom: 10px; }
.prod-card p { color: var(--text-2); font-size: 14.5px; margin-bottom: 16px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 6px; background: #eaf3fd; color: var(--primary); font-size: 12px; margin-right: 6px; }

/* 特性网格 */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-top: 26px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; font-size: 14.5px; color: var(--text-2); box-shadow: 0 2px 8px rgba(36,112,216,.04); }
.feature b { display: block; color: var(--text); font-size: 15.5px; margin-bottom: 6px; }
.meta-row { display: flex; align-items: center; gap: 16px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* 开源卡片 */
.repo-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 26px; text-decoration: none; color: var(--text); transition: all .2s; }
.repo-card:hover { border-color: var(--primary); box-shadow: 0 8px 22px rgba(36,112,216,.10); }
.repo-card h3 { font-size: 19px; margin-bottom: 8px; }
.repo-card p { color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.repo-btn { display: inline-block; padding: 6px 14px; border-radius: 7px; background: var(--primary); color: #fff; font-size: 13px; }
.repo-btn.ghost { background: #eef2f6; color: var(--text-2); }

/* 关于我 */
.about { display: flex; gap: 24px; align-items: flex-start; margin-top: 10px; }
.avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; background: var(--grad); }
.about-text { color: var(--text-2); font-size: 15.5px; margin-bottom: 12px; max-width: 760px; }

/* 联系方式 */
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 22px; text-align: center; }
.contact-card .k { font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.contact-card .v { font-size: 19px; font-weight: 700; color: var(--primary); }

/* Footer */
.footer { background: #0e1a2b; color: #b6c6d8; padding: 40px 20px; }
.footer-inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.footer .logo { color: #fff; }
.foot-note { font-size: 13px; color: #8aa1b8; max-width: 680px; margin: 16px auto; line-height: 1.8; }
.foot-copy { font-size: 12.5px; color: #647a90; margin-top: 8px; }

@media (max-width: 720px) {
  .hero h1 { font-size: 40px; }
  .hero-cards { grid-template-columns: repeat(2, 1fr); }
  .links { display: none; }
  .about { flex-direction: column; }
}

/* 留言表单 */
.msg-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.msg-form input, .msg-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit; outline: none; resize: vertical; color: var(--text); background: #fff;
}
.msg-form input:focus, .msg-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,112,216,.08); }

/* 股票大师 下载面板 */
.dl-panel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 30px auto 6px; max-width: 720px; }
.dl-item { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dl-item .dl-os { font-size: 18px; font-weight: 700; }
.dl-item .btn-primary { width: 100%; box-sizing: border-box; }
.dl-hint { font-size: 12px; color: var(--text-2); }

/* 产品图标补充色 + 卡片跳转 + 定价 */
.prod-icon.green { background: #eafaf0; }
.prod-icon.orange { background: #fff4e6; }
.prod-card .go { display: inline-block; margin-top: 12px; color: var(--primary); font-weight: 600; font-size: 13.5px; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 20px; }
.plan { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px 18px; text-align: center; }
.plan .name { font-size: 14px; color: var(--text-2); }
.plan .price { font-size: 30px; font-weight: 800; color: var(--text); margin-top: 6px; }
.plan .price small { font-size: 13px; color: var(--text-2); font-weight: 400; }

/* 留言弹窗 */
.msg-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; background: rgba(10,20,40,.5); padding: 20px; }
.msg-modal.show { display: flex; }
.msg-modal-panel { background: #fff; border-radius: 16px; width: 100%; max-width: 480px; box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden; }
.msg-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; }
.msg-close { background: none; border: none; font-size: 18px; color: var(--text-2); cursor: pointer; }
.msg-modal-body { padding: 20px; }
.msg-modal-body form { display: flex; flex-direction: column; gap: 12px; }
.msg-modal-body input, .msg-modal-body textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: inherit; outline: none; resize: vertical; color: var(--text); }
.msg-modal-body input:focus, .msg-modal-body textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,112,216,.08); }
.msg-img-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--primary); font-size: 13px; font-weight: 600; }
#msgPreview { display: none; max-width: 100%; max-height: 180px; border-radius: 10px; border: 1px solid var(--border); }

/* Hero 产品亮点 4 卡 */
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 900px; margin: 34px auto 0; }
.hl-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 12px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all .2s; }
.hl-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(36,112,216,.12); }
.hl-card .hl-ic { font-size: 30px; }
.hl-card b { font-size: 16px; }
.hl-card .hl-s { font-size: 12.5px; color: var(--text-2); }
.hl-grid { grid-template-columns: repeat(2, 1fr); } /* 移动端2列 */
@media (min-width: 720px) { .hl-grid { grid-template-columns: repeat(4, 1fr); } }

/* 股票大师下载按钮（无框、对称、小） */
.stock-dl { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.stock-dl .btn-primary, .stock-dl .btn-ghost { padding: 11px 22px; font-size: 15px; }
.stock-dl .muted { font-size: 13px; }
