/* =========================================================
   云优数据 - 香港云服务器官网 全站样式
   纯原生 CSS，无外部框架依赖，加载快，利于搜索引擎抓取
   ========================================================= */
:root {
  --primary: #1e56d6;
  --primary-dark: #1443ad;
  --navy: #0b1f3a;
  --navy-2: #123468;
  --cyan: #00b4d8;
  --text: #1f2d3d;
  --muted: #5b6b7f;
  --bg: #f4f7fb;
  --border: #e3eaf3;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(11, 31, 58, .08);
  --shadow-lg: 0 16px 40px rgba(11, 31, 58, .16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul, ol { list-style-position: inside; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt { margin-top: 26px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(11, 31, 58, .07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); flex-shrink: 0; }
.logo img { width: 40px; height: 40px; }
.logo-text strong { display: block; font-size: 18px; letter-spacing: 1px; line-height: 1.2; }
.logo-text em { display: block; font-style: normal; font-size: 10px; color: var(--muted); letter-spacing: 2.5px; }
.main-nav ul { display: flex; list-style: none; gap: 4px; align-items: center; }
.main-nav a { display: block; padding: 8px 13px; color: #22314a; font-weight: 500; font-size: 14px; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: #eef4ff; }
.main-nav a.btn-nav { background: var(--primary); color: #fff; }
.main-nav a.btn-nav:hover { background: var(--primary-dark); color: #fff; }
.nav-burger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(130deg, #0a1c38 0%, #123468 55%, #1e56d6 100%);
  padding: 88px 0 64px;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.hero::before { width: 560px; height: 560px; top: -180px; right: -140px; background: radial-gradient(closest-side, rgba(0, 180, 216, .30), transparent); }
.hero::after { width: 480px; height: 480px; bottom: -220px; left: -160px; background: radial-gradient(closest-side, rgba(94, 130, 255, .28), transparent); }
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-kicker { display: inline-block; font-size: 13px; letter-spacing: 3px; color: #8fd8ff; border: 1px solid rgba(143, 216, 255, .4); border-radius: 999px; padding: 4px 16px; margin-bottom: 18px; }
.hero h1 { font-size: 40px; line-height: 1.3; margin-bottom: 18px; }
.hero h1 .hl { color: #7ee0ff; }
.hero-lead { font-size: 16px; color: rgba(255, 255, 255, .86); margin-bottom: 30px; max-width: 660px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: 16px 10px; text-align: center; }
.stat strong { display: block; font-size: 22px; color: #7ee0ff; line-height: 1.3; }
.stat span { font-size: 12.5px; color: rgba(255, 255, 255, .78); }

/* ---------- 子页头 ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(130deg, #0a1c38 0%, #123468 60%, #1e56d6 100%);
  padding: 52px 0;
}
.page-hero::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; top: -160px; right: -100px; background: radial-gradient(closest-side, rgba(0, 180, 216, .28), transparent); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: 30px; line-height: 1.35; margin-bottom: 10px; }
.page-hero .page-lead { color: rgba(255, 255, 255, .85); max-width: 720px; font-size: 15px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 14px 0 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: #b9c6d8; }
.breadcrumb .cur { color: var(--primary); font-weight: 600; }
.page-hero .breadcrumb { padding: 0 0 14px; }
.page-hero .breadcrumb a { color: rgba(255, 255, 255, .7); }
.page-hero .breadcrumb .cur { color: #7ee0ff; }

/* ---------- 区块 ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 740px; margin: 0 auto 42px; }
.eyebrow { color: var(--primary); font-weight: 700; letter-spacing: 3px; font-size: 13px; }
.section-title { font-size: 28px; color: var(--navy); margin: 8px 0 12px; line-height: 1.4; }
.section-desc { color: var(--muted); font-size: 15px; }

/* ---------- 网格与卡片 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 14px; }
.icon-wrap {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, #eaf1ff, #e2f7fd);
  display: flex; align-items: center; justify-content: center; color: var(--primary);
}
.icon-wrap svg { width: 26px; height: 26px; }
.tag { display: inline-block; background: #eef4ff; color: var(--primary); border-radius: 999px; padding: 2px 12px; font-size: 12px; margin: 0 6px 8px 0; }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 11px 28px; border-radius: 8px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: .2s; text-align: center; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { border-color: var(--primary); color: var(--primary); background: #fff; }
.btn-outline:hover { background: #eef4ff; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-block { display: block; width: 100%; }

/* ---------- 价格卡片 ---------- */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card.featured { border: 2px solid var(--primary); transform: scale(1.02); }
.price-card.featured:hover { transform: scale(1.02) translateY(-4px); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--primary), var(--cyan)); color: #fff; font-size: 12px; padding: 3px 14px; border-radius: 999px; white-space: nowrap; }
.plan-name { font-size: 19px; color: var(--navy); margin-bottom: 4px; }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 14px; min-height: 42px; }
.price { margin-bottom: 16px; }
.price strong { font-size: 34px; color: var(--primary); font-weight: 700; }
.price span { font-size: 13px; color: var(--muted); }
.price .price-tip { display: block; font-size: 12px; color: var(--muted); }
.spec-list { list-style: none; margin-bottom: 22px; flex: 1; }
.spec-list li { padding: 7px 0 7px 26px; position: relative; font-size: 14px; color: #33445c; border-bottom: 1px dashed #eef2f8; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--cyan); font-weight: 700; }
.plan-note { font-size: 12.5px; color: var(--muted); margin-top: 18px; text-align: center; }

/* ---------- 数据表格 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
.data-table th, .data-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.data-table th { background: var(--navy); color: #fff; font-weight: 600; white-space: nowrap; }
.data-table td { color: #33445c; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #f2f7ff; }
.data-table .price-cell { color: var(--primary); font-weight: 700; white-space: nowrap; }

/* ---------- 服务流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); text-align: center; }
.step-num { width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--cyan)); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; color: var(--navy); list-style: none; position: relative; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: #eef4ff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 14px; }
.faq-a p { margin-bottom: 8px; }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- 对比/清单 ---------- */
.check-list { list-style: none; margin: 12px 0; }
.check-list li { padding: 8px 0 8px 28px; position: relative; color: #33445c; }
.check-list li::before { content: "✓"; position: absolute; left: 2px; top: 8px; color: var(--cyan); font-weight: 700; }
.check-list li strong { color: var(--navy); }
.num-list { margin: 12px 0 12px 22px; color: #33445c; }
.num-list li { margin-bottom: 10px; }

/* ---------- 资讯卡片 ---------- */
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.news-body h3 { font-size: 17px; line-height: 1.5; margin-bottom: 10px; }
.news-body h3 a { color: var(--navy); }
.news-body h3 a:hover { color: var(--primary); }
.news-body p { font-size: 13.5px; color: var(--muted); flex: 1; }
.news-body .more { margin-top: 14px; font-size: 14px; font-weight: 600; }

/* ---------- 文章页 ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding-top: 26px; }
.article { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 40px 44px; }
.article h1 { font-size: 26px; color: var(--navy); line-height: 1.45; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.article-body h2 { font-size: 21px; color: var(--navy); margin: 30px 0 14px; padding-left: 12px; border-left: 4px solid var(--primary); line-height: 1.4; }
.article-body h3 { font-size: 17px; color: var(--navy); margin: 22px 0 10px; }
.article-body p { margin-bottom: 14px; color: #33445c; line-height: 1.9; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; color: #33445c; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--navy); }
.article-body blockquote { background: #f2f7ff; border-left: 4px solid var(--cyan); border-radius: 8px; padding: 14px 18px; margin: 16px 0; color: var(--muted); font-size: 14px; }
.article-tags { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.article-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.article-nav a { font-size: 14px; }

/* ---------- 侧栏 ---------- */
.sidebar { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 20px; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.side-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #eef4ff; }
.side-card ul { list-style: none; }
.side-card li { border-bottom: 1px dashed #eef2f8; }
.side-card li:last-child { border-bottom: 0; }
.side-card li a { display: block; padding: 9px 0; font-size: 13.5px; color: #33445c; }
.side-card li a:hover { color: var(--primary); }

/* ---------- CTA 横幅 ---------- */
.cta-band { background: linear-gradient(120deg, #123468, #1e56d6); color: #fff; padding: 60px 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 180, 216, .30), transparent); top: -140px; right: -80px; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: 26px; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .85); margin-bottom: 26px; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }

/* ---------- 联系页 ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: start; }
.info-list { list-style: none; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed #eef2f8; }
.info-list .icon-wrap { width: 44px; height: 44px; margin: 0; flex-shrink: 0; border-radius: 10px; }
.info-list .icon-wrap svg { width: 22px; height: 22px; }
.info-list .info-label { font-size: 12.5px; color: var(--muted); }
.info-list .info-value { font-size: 15px; color: var(--navy); font-weight: 600; }
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.form-card h2 { font-size: 20px; color: var(--navy); margin-bottom: 6px; }
.form-card .form-tip { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { font-size: 13.5px; color: var(--navy); font-weight: 600; }
.form-item label .req { color: #e5484d; margin-left: 2px; }
.form-item input, .form-item select, .form-item textarea {
  border: 1px solid var(--border); border-radius: 8px; padding: 11px 14px;
  font-size: 14px; color: var(--text); font-family: inherit; background: #fbfdff; outline: none;
}
.form-item input:focus, .form-item select:focus, .form-item textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30, 86, 214, .12); }
.form-item textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0b1f3a; color: #9fb0c8; margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 34px; padding: 54px 0 36px; }
.footer-brand .logo { color: #fff; margin-bottom: 4px; }
.footer-brand .logo-text em { color: #7d8ea6; }
.footer-brand p { font-size: 13px; line-height: 1.9; margin-top: 14px; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col a { color: #9fb0c8; font-size: 13px; display: block; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .09); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: #7d8ea6; }
.footer-bottom-inner a { color: #7d8ea6; }
.footer-bottom-inner a:hover { color: #fff; }

/* ---------- 网站地图页 ---------- */
.sitemap-group { margin-bottom: 34px; }
.sitemap-group h2 { font-size: 20px; color: var(--navy); margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--primary); }
.sitemap-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sitemap-links a { display: block; background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: 14px; color: #33445c; }
.sitemap-links a:hover { border-color: var(--primary); color: var(--primary); }

/* ---------- 返回顶部 ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 30px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--primary); color: #fff; border: 0; cursor: pointer; font-size: 20px;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .3s; z-index: 80;
}
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--primary-dark); }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar .side-card { flex: 1 1 280px; }
}
@media (max-width: 920px) {
  .nav-burger { display: flex; }
  .main-nav { position: fixed; top: 66px; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg); transform: translateY(-130%); transition: transform .3s; max-height: calc(100vh - 66px); overflow: auto; z-index: 55; }
  body.nav-open .main-nav { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 12px 16px; gap: 2px; }
  .main-nav a { padding: 12px 14px; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero h1 { font-size: 30px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .sitemap-links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .section { padding: 46px 0; }
  .hero { padding: 60px 0 46px; }
  .hero h1 { font-size: 25px; }
  .grid-2, .grid-3, .grid-4, .price-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .page-hero h1 { font-size: 23px; }
  .article { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .sitemap-links { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
