/* ================= 软件开发服务平台 ================= */
:root {
  --bg-deep: #060d24;
  --bg-dark: #0a1430;
  --bg-card: #0f1e42;
  --bg-card-2: #13255180;
  --line: #1d3365;
  --green: #2ee6a8;
  --green-dark: #17b381;
  --blue: #3f7cff;
  --text: #d7e3f8;
  --text-dim: #8ea3c8;
  --text-faint: #5f739c;
  --danger: #ff6b6b;
  --radius: 12px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1180px, 92%); margin: 0 auto; }
main { flex: 1; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 13, 36, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: 1px; }
.logo .logo-mark {
  width: 34px; height: 34px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--green), #1f7fe0);
  display: grid; place-items: center; color: #04122b; font-size: 18px; font-weight: 900;
}
.logo em { font-style: normal; color: var(--green); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 8px 13px; border-radius: 8px; font-size: 14px; color: var(--text-dim);
  transition: .2s; white-space: nowrap;
}
.main-nav a:hover { color: #fff; background: rgba(46, 230, 168, .08); }
.main-nav a.active { color: var(--green); background: rgba(46, 230, 168, .12); }
.main-nav a.nav-cta {
  color: #04122b; background: linear-gradient(135deg, var(--green), var(--green-dark));
  font-weight: 600; margin-left: 6px;
}
.main-nav a.nav-cta.ghost {
  background: transparent; color: var(--green);
  border: 1px solid var(--green); font-weight: 500;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 20px; padding: 4px 12px; border-radius: 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 75% 20%, rgba(46, 230, 168, .14), transparent 60%),
    radial-gradient(ellipse 50% 70% at 15% 80%, rgba(63, 124, 255, .18), transparent 60%),
    linear-gradient(160deg, #081228 0%, #0a1a3f 55%, #071026 100%);
  padding: 90px 0 100px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(46, 230, 168, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 230, 168, .05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; max-width: 720px; }
.hero-tag {
  display: inline-block; padding: 5px 14px; border: 1px solid var(--green);
  color: var(--green); border-radius: 999px; font-size: 13px; margin-bottom: 22px;
  letter-spacing: 2px;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.28; letter-spacing: 1px; }
.hero h1 span { color: var(--green); }
.hero p.lead { margin-top: 20px; color: var(--text-dim); font-size: 16px; max-width: 560px; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 11px 28px; border-radius: 999px; font-size: 15px;
  cursor: pointer; border: none; transition: .2s; text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #04122b; font-weight: 700; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46, 230, 168, .35); }
.btn-outline { border: 1px solid var(--line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-sm { padding: 7px 18px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- 区块 ---------- */
.section { padding: 70px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: 28px; letter-spacing: 1px; }
.section-head h2 span { color: var(--green); }
.section-head .sub { color: var(--text-faint); margin-top: 10px; font-size: 14px; }
.section-head .en {
  color: rgba(46, 230, 168, .35); font-size: 34px; font-weight: 800;
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: -14px;
}

/* ---------- 分类卡片 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-grid.three { grid-template-columns: repeat(3, 1fr); }
.cat-card {
  background: linear-gradient(160deg, var(--bg-card), #0b1836);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; transition: .25s; display: flex; flex-direction: column; gap: 12px;
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--green); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.cat-card .icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 24px; background: rgba(46, 230, 168, .12); border: 1px solid rgba(46, 230, 168, .3);
}
.cat-card h3 { font-size: 17px; }
.cat-card p { color: var(--text-dim); font-size: 13px; flex: 1; }
.cat-card .meta { font-size: 12px; color: var(--text-faint); }
.cat-card .more { color: var(--green); font-size: 13px; }

/* ---------- 文章列表 ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: .25s;
  color: inherit; text-decoration: none; cursor: pointer;
}
.article-card:hover { border-color: var(--green); transform: translateY(-4px); }
.article-card .a-cat {
  align-self: flex-start; font-size: 12px; color: var(--green);
  background: rgba(46, 230, 168, .1); border: 1px solid rgba(46, 230, 168, .3);
  padding: 3px 10px; border-radius: 999px;
}
.article-card h3 { font-size: 16px; line-height: 1.5; color: var(--text); transition: .2s; }
.article-card:hover h3 { color: var(--green); }
.article-card .a-sum { color: var(--text-dim); font-size: 13px; flex: 1; }
.article-card .a-foot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px dashed var(--line); padding-top: 12px; font-size: 12px; color: var(--text-faint);
}
.article-card .a-price { color: var(--green); font-weight: 700; font-size: 14px; }

/* ---------- 列表页布局 ---------- */
.page-banner {
  padding: 52px 0; text-align: center;
  background: linear-gradient(160deg, #081228, #0c1c42 60%, #081228);
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { font-size: 28px; }
.page-banner h1 span { color: var(--green); }
.page-banner p { color: var(--text-dim); margin-top: 10px; font-size: 14px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.filter-bar button {
  background: var(--bg-card); border: 1px solid var(--line); color: var(--text-dim);
  padding: 7px 18px; border-radius: 999px; cursor: pointer; font-size: 13px; transition: .2s;
}
.filter-bar button.active, .filter-bar button:hover { border-color: var(--green); color: var(--green); }

/* ---------- 详情页 ---------- */
.detail-wrap { max-width: 860px; margin: 40px auto; }
.detail-head h1 { font-size: 26px; line-height: 1.45; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; padding-bottom: 20px;
  border-bottom: 1px solid var(--line); color: var(--text-faint); font-size: 13px;
}
.detail-meta .cat { color: var(--green); }
.detail-meta .price { color: var(--green); font-weight: 700; }
.detail-body { padding: 26px 0; font-size: 15.5px; }
.detail-body h3 {
  margin: 30px 0 12px; font-size: 19px; color: #fff;
  padding-left: 12px; border-left: 3px solid var(--green);
}
.detail-body p { margin-bottom: 14px; color: var(--text); }
.detail-body ul { margin: 0 0 16px 22px; color: var(--text); }
.detail-body li { margin-bottom: 8px; }
.detail-body strong { color: var(--green); }
.detail-body .tip {
  background: rgba(63, 124, 255, .08); border: 1px solid rgba(63, 124, 255, .3);
  border-radius: 10px; padding: 14px 18px; margin: 20px 0; color: var(--text-dim); font-size: 14px;
}

/* 付费墙 */
.paywall-mask {
  position: relative; margin-top: 8px;
}
.paywall-mask::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, var(--bg-deep) 78%);
  pointer-events: none;
}
.paywall-mask .locked { filter: blur(4px); user-select: none; pointer-events: none; }
.paywall-box {
  position: relative; z-index: 2; margin: 30px auto 10px; max-width: 420px;
  background: var(--bg-card); border: 1px solid var(--green);
  border-radius: 14px; padding: 30px 26px; text-align: center;
  box-shadow: 0 0 40px rgba(46, 230, 168, .12);
}
.paywall-box h3 { color: #fff; font-size: 19px; margin-bottom: 10px; }
.paywall-box p { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.paywall-box .p-price { font-size: 30px; color: var(--green); font-weight: 800; }
.paywall-box .p-price small { font-size: 13px; font-weight: 400; color: var(--text-faint); }

/* ---------- 定价 ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 34px 28px; display: flex; flex-direction: column; position: relative; transition: .25s;
}
.price-card:hover { transform: translateY(-6px); border-color: var(--green); }
.price-card.featured { border-color: var(--green); box-shadow: 0 0 44px rgba(46, 230, 168, .14); }
.price-card .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #04122b;
  font-size: 12px; font-weight: 700; padding: 4px 16px; border-radius: 999px;
}
.price-card h3 { font-size: 19px; text-align: center; }
.price-card .p-num { text-align: center; margin: 18px 0; }
.price-card .p-num b { font-size: 40px; color: var(--green); }
.price-card .p-num i { font-style: normal; color: var(--text-faint); font-size: 13px; }
.price-card ul { list-style: none; margin: 6px 0 24px; flex: 1; }
.price-card li { padding: 9px 0; border-bottom: 1px dashed var(--line); color: var(--text-dim); font-size: 14px; }
.price-card li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* ---------- 表单页 ---------- */
.form-panel {
  max-width: 560px; margin: 50px auto; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 16px; padding: 40px 38px;
}
.form-panel.wide { max-width: 760px; }
.form-panel h1 { font-size: 24px; text-align: center; margin-bottom: 8px; }
.form-panel .sub { text-align: center; color: var(--text-faint); font-size: 13px; margin-bottom: 28px; }
.form-panel .sub a { color: var(--green); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; background: #0a1734; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; color: var(--text); font-size: 14px; font-family: inherit; transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 230, 168, .12);
}
.field textarea { min-height: 220px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 5px; }
.form-msg { margin-top: 14px; font-size: 13px; text-align: center; min-height: 20px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--danger); }

/* ---------- 用户区 / 我的发布 ---------- */
.my-list { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.my-item {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  background: #0a1734; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
}
.my-item .t { font-size: 14px; }
.my-item .s { font-size: 12px; color: var(--text-faint); margin-top: 3px; }
.my-item .ops { display: flex; gap: 10px; flex: none; }
.my-item .ops a, .my-item .ops button { font-size: 12px; color: var(--green); background: none; border: none; cursor: pointer; }
.my-item .ops button.del { color: var(--danger); }
.tag-state { font-size: 11px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-faint); }
.tag-state.pass { color: var(--green); border-color: rgba(46, 230, 168, .4); }

/* ---------- 页脚 ---------- */
.site-footer { background: #050b1e; border-top: 1px solid var(--line); margin-top: 60px; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding: 48px 0 34px;
}
.site-footer h4 { font-size: 15px; margin-bottom: 14px; color: #fff; }
.site-footer p, .site-footer li { color: var(--text-faint); font-size: 13px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a:hover { color: var(--green); }
.site-footer .foot-hint { color: var(--text-faint); font-size: 12px; line-height: 1.7; margin-bottom: 0; }

/* 跨平台入口：导航栏里的特殊样式 */
.main-nav a.cross-link {
  color: var(--green);
  border: 1px solid rgba(46, 230, 168, .4);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  margin-left: 4px;
}
.footer-brand .logo { margin-bottom: 14px; }
.beian {
  border-top: 1px solid var(--line); padding: 16px 0; text-align: center;
  font-size: 12px; color: var(--text-faint);
}
.beian a { color: var(--text-faint); }
.beian a:hover { color: var(--green); }

/* ---------- 其他 ---------- */
.sub-head { font-size: 20px; margin: 46px 0 20px; padding-left: 12px; border-left: 3px solid var(--green); }
.review-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.review-step {
  background: linear-gradient(160deg, var(--bg-card), #0b1836);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px;
}
.review-step .step-no { font-size: 26px; font-weight: 800; color: rgba(46, 230, 168, .35); letter-spacing: 2px; }
.review-step h4 { font-size: 15px; margin: 8px 0 8px; color: #fff; }
.review-step p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.balance-bar {
  max-width: 760px; margin: 0 auto 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 20px; font-size: 14px; color: var(--text-dim);
}
.balance-bar b { color: var(--green); font-size: 20px; margin: 0 4px; }
.balance-bar em { display: block; font-style: normal; font-size: 12px; color: var(--text-faint); margin-top: 2px; }
.fee-line { font-size: 18px; color: var(--green); font-weight: 700; }
.fee-line span { font-size: 12px; color: var(--text-faint); font-weight: 400; margin-left: 10px; }
.main-nav a.nav-balance { color: var(--green); font-size: 13px; border: 1px dashed rgba(46, 230, 168, .4); padding: 4px 10px; }
.notice-strip {
  background: rgba(63, 124, 255, .07); border: 1px solid rgba(63, 124, 255, .25);
  border-radius: 10px; padding: 14px 18px; color: var(--text-dim); font-size: 13px; margin: 26px 0;
}
.empty-tip { text-align: center; color: var(--text-faint); padding: 50px 0; }
.pager-tip { text-align: center; color: var(--text-faint); font-size: 13px; margin-top: 34px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.stat-item { text-align: center; border: 1px solid var(--line); border-radius: 12px; padding: 20px 10px; background: rgba(15, 30, 66, .5); }
.stat-item b { display: block; font-size: 26px; color: var(--green); }
.stat-item span { font-size: 12px; color: var(--text-faint); }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(3, 7, 20, .78); z-index: 200;
  display: none; place-items: center;
}
.modal-mask.show { display: grid; }
.modal {
  width: min(400px, 90%); background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 16px; padding: 32px 28px; text-align: center;
}
.modal h3 { margin-bottom: 10px; }
.modal p { color: var(--text-dim); font-size: 13px; margin-bottom: 20px; }
.modal .ops { display: flex; gap: 12px; justify-content: center; }

@media (max-width: 960px) {
  .cat-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid.three { grid-template-columns: repeat(2, 1fr); }
  .review-steps { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: #081228; flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px; border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 14px; }
  .nav-toggle { display: block; }
}
@media (max-width: 600px) {
  .cat-grid, .cat-grid.three, .article-grid, .pricing-grid, .stat-row, .footer-grid, .review-steps { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
}
