/* ===== 重庆云传输 站点样式 ===== */
:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #eff6ff;
  --ink: #1e293b;
  --ink-soft: #475569;
  --muted: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 8px 24px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(37,99,235,.15);
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.mt { margin-top: 24px; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ===== 按钮 ===== */
.btn-primary, .btn-outline, .btn-ghost {
  display: inline-block; padding: 11px 22px; border-radius: 8px;
  font-weight: 600; cursor: pointer; border: 1px solid transparent;
  transition: all .18s ease; text-align: center; font-size: .98rem;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; box-shadow: var(--shadow-lg); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); text-decoration: none; }
.btn-ghost { color: var(--ink-soft); padding: 6px 12px; }
.btn-ghost:hover { color: var(--brand); text-decoration: none; }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-sm { padding: 7px 16px; font-size: .9rem; }

/* ===== 头部导航 ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 8px; background: var(--brand);
  color: #fff; display: grid; place-items: center; font-size: 1.1rem;
}
.site-nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.site-nav a { color: var(--ink-soft); padding: 8px 14px; border-radius: 7px; font-weight: 500; }
.site-nav a:hover { background: var(--bg-alt); color: var(--brand); text-decoration: none; }
.site-nav a.active { color: var(--brand); background: var(--brand-light); }
.nav-user { display: flex; align-items: center; gap: 12px; }
.nav-user a { color: var(--ink-soft); }
.nav-user a.active, .nav-user a:hover { color: var(--brand); text-decoration: none; }
.nav-name { color: var(--ink); font-weight: 600; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); }

/* ===== Flash ===== */
.flash { max-width: var(--max); margin: 16px auto; padding: 12px 18px; border-radius: 8px; }
.flash-info { background: var(--brand-light); color: var(--brand-dark); }
.flash-error { background: #fef2f2; color: #b91c1c; }
.flash-success { background: #f0fdf4; color: #15803d; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, var(--brand) 55%, #3b82f6 100%);
  color: #fff; padding: 90px 0 100px; text-align: center;
}
.hero h1 { font-size: 2.9rem; line-height: 1.2; font-weight: 800; letter-spacing: -.5px; }
.hero-accent { color: #bfdbfe; }
.hero-sub { max-width: 640px; margin: 22px auto 0; font-size: 1.15rem; color: #dbeafe; }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-outline:hover { background: rgba(255,255,255,.22); }

/* ===== Section ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 2rem; text-align: center; font-weight: 700; letter-spacing: -.3px; }
.section-title.left { text-align: left; margin: 36px 0 18px; }
.section-sub { text-align: center; color: var(--ink-soft); margin-top: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 22px; margin-top: 40px; }
.feature-item { background: #fff; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); }
.feature-item h4 { font-size: 1.15rem; margin-bottom: 8px; color: var(--brand); }
.feature-item p { color: var(--ink-soft); font-size: .96rem; }

/* ===== 套餐卡片 ===== */
.pkg-grid, .price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; margin-top: 40px; align-items: start; }
.pkg-card, .price-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; box-shadow: var(--shadow);
}
.pkg-hot { border-color: var(--brand); border-width: 2px; }
.pkg-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.pkg-card h3, .price-card h3 { font-size: 1.3rem; }
.pkg-price { font-size: 2rem; font-weight: 800; color: var(--brand); margin: 12px 0; }
.pkg-price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.pkg-desc { color: var(--ink-soft); font-size: .95rem; min-height: 44px; }
.feature-list { list-style: none; margin: 18px 0 22px; }
.feature-list li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-soft); font-size: .94rem; border-bottom: 1px dashed var(--line); }
.feature-list li:before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ===== CTA ===== */
.cta-band {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; border-radius: 18px; padding: 44px; display: flex;
  align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { font-size: 1.7rem; }
.cta-band p { color: #dbeafe; margin-top: 6px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: #f1f5f9; }

/* ===== 页头 ===== */
.page-head { background: var(--bg-alt); padding: 54px 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 2.3rem; font-weight: 700; }
.page-head p { color: var(--ink-soft); margin-top: 10px; max-width: 720px; }
.back-link { font-size: .92rem; display: inline-block; margin-bottom: 8px; }

/* ===== 表格 ===== */
.table-wrap { overflow-x: auto; margin-top: 24px; }
.price-table, .data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .data-table th { background: var(--bg-alt); text-align: left; padding: 14px 16px; font-size: .9rem; color: var(--ink-soft); border-bottom: 2px solid var(--line); }
.price-table td, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.price-cell { color: var(--brand); font-weight: 700; white-space: nowrap; }
.status-tag { background: #fef3c7; color: #92400e; padding: 3px 10px; border-radius: 20px; font-size: .82rem; }

/* ===== 提示框 ===== */
.notice-box { background: var(--brand-light); border: 1px solid #dbeafe; border-radius: var(--radius); padding: 24px; margin-top: 30px; }
.notice-box h4 { color: var(--brand-dark); margin-bottom: 10px; }
.notice-box ul { margin-left: 18px; color: var(--ink-soft); }
.notice-box li { margin: 6px 0; }
.notice-box p { color: var(--ink-soft); }

/* ===== 案例 ===== */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 24px; }
.case-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.case-thumb { height: 130px; background: linear-gradient(135deg, var(--brand) 0%, #60a5fa 100%); color: #fff; display: grid; place-items: center; font-size: 1.1rem; font-weight: 600; }
.case-body { padding: 22px; }
.case-body h3 { color: var(--ink); font-size: 1.2rem; }
.case-body p { color: var(--ink-soft); font-size: .94rem; margin: 8px 0 12px; }
.case-link { color: var(--brand); font-size: .9rem; font-weight: 600; }
.case-detail-box { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; margin: 20px 0 10px; color: var(--ink-soft); }
.tag { display: inline-block; background: var(--brand-light); color: var(--brand-dark); padding: 3px 12px; border-radius: 20px; font-size: .85rem; }

/* ===== 评论 ===== */
.comment-form textarea, .stack-form textarea, .auth-card textarea { width: 100%; }
.comment-form { margin-bottom: 26px; }
.comment-form textarea { padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-family: inherit; font-size: .95rem; resize: vertical; }
.comment-form button { margin-top: 10px; }
.comment-list { display: flex; flex-direction: column; gap: 14px; }
.comment { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.comment-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.comment-head strong { color: var(--ink); }
.comment-time { color: var(--muted); font-size: .85rem; }
.comment p { color: var(--ink-soft); }
.login-hint { background: var(--bg-alt); padding: 16px; border-radius: 8px; color: var(--ink-soft); margin-bottom: 22px; }

/* ===== 关于/信息行 ===== */
.info-row { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-row > div { background: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.info-k { color: var(--muted); font-size: .85rem; }
.info-v { color: var(--ink); font-weight: 600; }

/* ===== 联系 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.contact-card h4 { color: var(--brand); margin-bottom: 8px; }
.contact-card .muted { font-size: .85rem; display: block; margin-top: 6px; }

/* ===== 法律页 ===== */
.legal h3 { margin: 28px 0 10px; color: var(--ink); font-size: 1.2rem; }
.legal p { color: var(--ink-soft); margin: 10px 0; }
.legal ul { margin: 10px 0 10px 22px; color: var(--ink-soft); }
.legal li { margin: 6px 0; }

/* ===== 表单 ===== */
.auth-wrap { min-height: 70vh; display: grid; place-items: center; padding: 50px 20px; background: var(--bg-alt); }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 38px; width: 100%; max-width: 420px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.7rem; }
.auth-sub { color: var(--ink-soft); margin: 8px 0 22px; font-size: .95rem; }
.auth-foot { margin-top: 18px; text-align: center; color: var(--ink-soft); font-size: .92rem; }
.auth-note { margin-top: 14px; font-size: .82rem; color: var(--muted); text-align: center; }
label { display: block; margin-bottom: 16px; font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
input, select, textarea { margin-top: 6px; width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; font-family: inherit; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.stack-form { background: #fff; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-error { background: #fef2f2; color: #b91c1c; padding: 11px 16px; border-radius: 8px; margin-bottom: 18px; font-size: .92rem; }
.dash-actions { margin-bottom: 10px; }

/* ===== 成功页 ===== */
.success-icon { width: 70px; height: 70px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 2.2rem; display: grid; place-items: center; margin: 0 auto 20px; }
.success-card { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; max-width: 460px; margin: 24px auto; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.success-card > div { display: flex; justify-content: space-between; gap: 12px; }

/* ===== 页脚 ===== */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; padding: 50px 20px 36px; }
.footer-brand { font-size: 1.25rem; font-weight: 700; color: #fff; }
.footer-col p { font-size: .9rem; margin: 6px 0; color: #94a3b8; }
.footer-company { font-size: .85rem; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-col a { display: block; color: #94a3b8; font-size: .9rem; margin: 8px 0; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 18px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .85rem; color: #64748b; }
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #94a3b8; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .site-nav, .nav-user { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  body.nav-open .site-nav { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 10px; }
  body.nav-open .nav-user { display: flex; position: absolute; top: 100%; }
  .hero h1 { font-size: 2.1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .section { padding: 50px 0; }
  .cta-band { flex-direction: column; text-align: center; }
  /* 表格转卡片 */
  .data-table thead, .price-table thead { display: none; }
  .data-table tr, .price-table tr { display: block; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
  .data-table td, .price-table td { display: flex; justify-content: space-between; border: none; padding: 8px 10px; }
  .data-table td:before, .price-table td:before { content: attr(data-label); font-weight: 600; color: var(--ink-soft); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
}

/* ===== 平台：双角色卡片 ===== */
.role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 24px; margin-top: 40px; }
.role-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); border-top: 4px solid var(--brand); }
.role-card.role-provider { border-top-color: #f59e0b; }
.role-card h3 { font-size: 1.4rem; }
.role-sub { color: var(--muted); margin: 4px 0 16px; }
.role-points { list-style: none; margin: 0 0 22px; }
.role-points li { padding: 8px 0 8px 26px; position: relative; color: var(--ink-soft); font-size: .96rem; border-bottom: 1px dashed var(--line); }
.role-points li:before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.role-card.role-provider .role-points li:before { color: #f59e0b; }

/* ===== 平台运作流程 ===== */
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 22px; margin-top: 40px; }
.flow-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; position: relative; }
.flow-step { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.2rem; display: grid; place-items: center; margin: 0 auto 14px; }
.flow-item h4 { color: var(--ink); margin-bottom: 6px; }
.flow-item p { color: var(--ink-soft); font-size: .92rem; }

/* ===== 列表卡片（服务/需求） ===== */
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.cat-chip { padding: 6px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.cat-chip:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.cat-chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 22px; }
.listing-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.listing-cat { display: inline-block; align-self: flex-start; background: var(--brand-light); color: var(--brand-dark); padding: 3px 12px; border-radius: 20px; font-size: .82rem; margin-bottom: 12px; }
.listing-cat-demand { background: #fef3c7; color: #92400e; }
.listing-card h3 { color: var(--ink); font-size: 1.2rem; }
.listing-desc { color: var(--ink-soft); font-size: .94rem; margin: 8px 0 16px; flex: 1; }
.listing-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 12px; }
.listing-by { color: var(--muted); font-size: .88rem; }
.listing-price { color: var(--brand); font-weight: 700; }
.listing-budget { color: #b45309; font-weight: 700; font-size: .9rem; }

/* ===== 详情对接框 ===== */
.detail-box { margin: 22px 0; }
.contact-form-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.contact-form-box h3 { margin-bottom: 16px; color: var(--ink); }
.tag-demand { background: #fef3c7; color: #92400e; }

/* ===== 注册角色选择 ===== */
.auth-card-wide { max-width: 480px; }
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.role-opt { margin: 0; cursor: pointer; }
.role-opt input { position: absolute; opacity: 0; }
.role-opt-box { display: block; border: 2px solid var(--line); border-radius: 10px; padding: 14px; transition: all .15s; height: 100%; }
.role-opt-box strong { display: block; color: var(--ink); }
.role-opt-box small { color: var(--muted); font-size: .8rem; line-height: 1.4; display: block; margin-top: 4px; }
.role-opt input:checked + .role-opt-box { border-color: var(--brand); background: var(--brand-light); }
.role-badge { display: inline-block; background: var(--brand); color: #fff; padding: 2px 12px; border-radius: 20px; font-size: .82rem; vertical-align: middle; }

@media (max-width: 600px) {
  .role-pick { grid-template-columns: 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; }
}
