/* =========================================================
   亿点云计算AI服务商信息发布平台 - 公共样式 common.css
   开发方式：HTML + CSS + 原生 JavaScript
   UI风格：深宝蓝主色 + 洋红紫渐变 + 明青色高亮 + 黄色点缀
========================================================= */


/* =========================
   1. 全局变量
========================= */

:root {
  /* 品牌主色 */
  --color-primary: #141ED2;
  --color-primary-dark: #0B128C;
  --color-primary-light: #2F3BFF;

  /* 辅助色 */
  --color-pink: #E8147F;
  --color-purple: #5B23FF;
  --color-cyan: #36F1FF;
  --color-yellow: #FFE047;

  /* 基础色 */
  --color-white: #FFFFFF;
  --color-black: #000000;

  --color-bg: #F6F8FF;
  --color-bg-light: #FAFBFF;
  --color-card: #FFFFFF;

  --color-title: #101828;
  --color-text: #475467;
  --color-muted: #667085;
  --color-light-text: #98A2B3;

  --color-border: #E5E7F0;
  --color-border-light: rgba(255, 255, 255, 0.18);

  /* 渐变 */
  --gradient-main: linear-gradient(135deg, #141ED2 0%, #1826E8 45%, #5B23FF 100%);
  --gradient-accent: linear-gradient(135deg, #E8147F 0%, #8B2BFF 52%, #5B23FF 100%);
  --gradient-button: linear-gradient(135deg, #36F1FF 0%, #5B23FF 100%);
  --gradient-hot: linear-gradient(135deg, #E8147F 0%, #FFE047 100%);

  /* 阴影 */
  --shadow-card: 0 18px 40px rgba(20, 30, 210, 0.10);
  --shadow-card-hover: 0 24px 60px rgba(20, 30, 210, 0.16);
  --shadow-blue: 0 18px 38px rgba(20, 30, 210, 0.24);
  --shadow-cyan: 0 12px 28px rgba(54, 241, 255, 0.28);

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-round: 999px;

  /* 容器宽度 */
  --container-width: 1200px;

  /* 动效 */
  --transition: all 0.25s ease;
}


/* =========================
   2. CSS Reset
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 15px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

button {
  cursor: pointer;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}


/* =========================
   3. 通用布局
========================= */

.container {
  width: var(--container-width);
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-title {
  margin-bottom: 34px;
}

.section-title.center {
  text-align: center;
}

.section-title .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-weight: 800;
  letter-spacing: 1px;
  font-size: 14px;
  text-transform: uppercase;
}

.section-title .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 0 5px rgba(54, 241, 255, 0.18);
}

.section-title h1,
.section-title h2 {
  margin: 10px 0 12px;
  color: var(--color-title);
  line-height: 1.22;
  font-weight: 900;
}

.section-title h1 {
  font-size: 44px;
}

.section-title h2 {
  font-size: 34px;
}

.section-title p {
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
}


/* =========================
   4. 顶部栏 Header
   由 components.js 注入
========================= */

.site-header {
  position: relative;
  z-index: 100;
}

.topbar {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.topbar-inner {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar a {
  color: rgba(255, 255, 255, 0.92);
  margin-left: 16px;
  transition: var(--transition);
}

.topbar a:hover {
  color: var(--color-cyan);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(20, 30, 210, 0.08);
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.04);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  min-width: 190px;
  color: var(--color-primary);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.logo span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-menu::-webkit-scrollbar {
  display: none;
}

.nav-menu a {
  position: relative;
  color: #344054;
  transition: var(--transition);
  padding: 26px 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 0;
  height: 3px;
  border-radius: var(--radius-round);
  background: var(--gradient-button);
  transform: translateX(-50%);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.nav-menu a:hover::after {
  width: 20px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* =========================
   5. 按钮
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-round);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gradient-button);
  color: var(--color-white);
  box-shadow: var(--shadow-cyan);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(54, 241, 255, 0.36);
}

.btn-blue {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-blue);
}

.btn-light {
  background: rgba(20, 30, 210, 0.08);
  color: var(--color-primary);
  border-color: rgba(20, 30, 210, 0.10);
}

.btn-light:hover {
  background: rgba(20, 30, 210, 0.12);
}

.btn-light-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-block {
  width: 100%;
}


/* =========================
   6. 卡片
========================= */

.card {
  position: relative;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(20, 30, 210, 0.18);
}

.card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(54, 241, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.card-title {
  margin: 0 0 10px;
  color: var(--color-title);
  font-size: 20px;
  font-weight: 800;
}

.card-desc {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}


/* =========================
   7. 标签 Badge / Tag
========================= */

.tag,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-round);
  background: rgba(20, 30, 210, 0.08);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
  margin-bottom: 6px;
}

.tag-cyan {
  background: rgba(54, 241, 255, 0.16);
  color: #078EA0;
}

.tag-pink {
  background: rgba(232, 20, 127, 0.10);
  color: var(--color-pink);
}

.tag-yellow {
  background: rgba(255, 224, 71, 0.22);
  color: #A07900;
}

.badge-hot {
  background: var(--gradient-hot);
  color: var(--color-white);
}


/* =========================
   8. 页面顶部 Banner
   适用于列表页、详情页、表单页等
========================= */

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 72px 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -130px;
  width: 480px;
  height: 480px;
  background: var(--gradient-accent);
  border-radius: 45% 55% 48% 52%;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 40px;
  top: 90px;
  width: 70px;
  height: 150px;
  background: var(--color-yellow);
  border-radius: 100px 0 0 100px;
  opacity: 0.95;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .eyebrow {
  color: var(--color-cyan);
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.18;
  color: var(--color-white);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}


/* =========================
   9. 网格系统
========================= */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* =========================
   10. 表单公共样式
========================= */

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--color-title);
  font-weight: 700;
  font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-title);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
  transition: var(--transition);
}

.form-input,
.form-select {
  height: 46px;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(20, 30, 210, 0.10);
}

.form-help {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 12px;
}


/* =========================
   11. 页脚 Footer
   由 components.js 注入
========================= */

.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  background: #070B4F;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--gradient-accent);
  opacity: 0.35;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(54, 241, 255, 0.14);
}

.footer-grid {
  position: relative;
  z-index: 2;
  padding: 46px 0;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 34px;
}

.site-footer h3,
.site-footer h4 {
  color: var(--color-white);
  margin-top: 0;
  margin-bottom: 14px;
}

.site-footer h3 {
  font-size: 22px;
}

.site-footer h4 {
  font-size: 16px;
}

.site-footer p {
  margin: 0 0 8px;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  transition: var(--transition);
}

.site-footer a:hover {
  color: var(--color-cyan);
  transform: translateX(3px);
}

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  font-size: 13px;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom a {
  display: inline-block;
  margin: 0;
}


/* =========================
   12. 工具类
========================= */

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--color-primary);
}

.text-cyan {
  color: var(--color-cyan);
}

.text-pink {
  color: var(--color-pink);
}

.text-muted {
  color: var(--color-muted);
}

.bg-white {
  background: var(--color-white);
}

.bg-primary {
  background: var(--color-primary);
}

.bg-gradient-main {
  background: var(--gradient-main);
}

.bg-gradient-accent {
  background: var(--gradient-accent);
}

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}


/* =========================
   13. 响应式适配
========================= */

@media (max-width: 1100px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .logo {
    min-width: auto;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    padding-bottom: 4px;
  }

  .nav-menu a {
    padding: 8px 0 12px;
  }

  .nav-menu a::after {
    bottom: 4px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 54px 0;
  }

  .section-title h1 {
    font-size: 36px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .page-hero {
    padding: 58px 0;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom .container {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .container {
    max-width: calc(100% - 24px);
  }

  .topbar-inner {
    height: auto;
    padding: 8px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .topbar a {
    margin-left: 0;
    margin-right: 12px;
  }

  .nav-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .nav-actions .btn {
    flex: 1;
  }

  .section-title h1 {
    font-size: 30px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .page-hero {
    padding: 46px 0;
  }

  .page-hero::before {
    right: -240px;
    top: -180px;
  }

  .page-hero::after {
    right: -10px;
    top: 120px;
    width: 46px;
    height: 100px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .page-hero p {
    font-size: 15px;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 42px;
    padding: 0 16px;
  }
}
/* =========================
   网站底部 Footer
========================= */

.site-footer {
  background: #07104A;
  color: rgba(255, 255, 255, 0.76);
  margin-top: 60px;
}

.footer-main {
  padding: 64px 0 42px;
  background:
    radial-gradient(circle at 15% 20%, rgba(54, 241, 255, 0.14), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(232, 20, 127, 0.13), transparent 30%),
    linear-gradient(135deg, #07104A 0%, #101A88 55%, #141ED2 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 1fr 0.8fr 1.25fr;
  gap: 34px;
}

.footer-logo {
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 16px;
}

.footer-brand p {
  margin: 0;
  line-height: 1.85;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.footer-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #36F1FF;
  background: rgba(54, 241, 255, 0.12);
  border: 1px solid rgba(54, 241, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.footer-column h4 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  margin-bottom: 10px;
  transition: all 0.25s ease;
}

.footer-column a:hover {
  color: #36F1FF;
  transform: translateX(4px);
}

.footer-contact p {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.7;
}

.footer-btn {
  margin-top: 12px;
}

.footer-bottom {
  background: #050B32;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-record {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-record a {
  color: rgba(255, 255, 255, 0.78);
  transition: all 0.25s ease;
}

.footer-record a:hover {
  color: #36F1FF;
}


/* =========================
   底部响应式
========================= */

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .footer-main {
    padding: 46px 0 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom-inner {
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =========================
   返回顶部按钮
========================= */
.back-top {
  position: fixed;
  bottom: 40px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #141ed2, #5b23ff);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(20, 30, 210, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-top.show {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #0f17a8, #4a1cd8);
  box-shadow: 0 6px 16px rgba(20, 30, 210, 0.4);
}