/* 易谋BI · 官网落地页样式 */
:root {
  --primary: #195cf8;
  --primary-dark: #0f46c7;
  --accent: #ff2e63;
  --text: #1a1a2e;
  --text-secondary: #5a5a6e;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e3eaf3;
  --radius: 12px;
  --shadow: 0 8px 28px rgba(25, 92, 248, 0.08);
  --max-width: 1160px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* 顶部导航 */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.logo img {
  height: 34px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav .btn-login {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
}

.nav .btn-login:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* 主要内容区 */
main {
  padding-top: 68px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 50%, #f5f9ff 100%);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-ribbon {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.55;
  animation: floatRibbon 18s ease-in-out infinite;
}

.hero-ribbon-1 {
  --r: -12deg;
  width: 720px;
  height: 220px;
  top: -60px;
  left: -120px;
  background: linear-gradient(120deg, rgba(25, 92, 248, 0.35), rgba(0, 198, 255, 0.25), rgba(110, 86, 255, 0.3));
  animation-duration: 22s;
}

.hero-ribbon-2 {
  --r: 18deg;
  width: 640px;
  height: 180px;
  top: 80px;
  right: -160px;
  background: linear-gradient(120deg, rgba(255, 46, 99, 0.22), rgba(255, 110, 120, 0.18), rgba(25, 92, 248, 0.28));
  animation-duration: 26s;
  animation-delay: -6s;
}

.hero-ribbon-3 {
  --r: -6deg;
  width: 560px;
  height: 160px;
  bottom: -20px;
  left: 50%;
  margin-left: -280px;
  background: linear-gradient(120deg, rgba(0, 198, 255, 0.28), rgba(25, 92, 248, 0.22), rgba(110, 86, 255, 0.25));
  animation-duration: 20s;
  animation-delay: -10s;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(25, 92, 248, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes floatRibbon {
  0%, 100% { transform: translateX(0) translateY(0) rotate(var(--r, 0deg)); }
  33% { transform: translateX(30px) translateY(-20px) rotate(calc(var(--r, 0deg) + 3deg)); }
  66% { transform: translateX(-20px) translateY(15px) rotate(calc(var(--r, 0deg) - 2deg)); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.08); }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .brand {
  color: var(--primary);
  display: block;
  font-size: 64px;
  margin-bottom: 8px;
}

.hero .subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero .tagline {
  display: inline-block;
  font-size: 15px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(25, 92, 248, 0.08);
  border-radius: 20px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(25, 92, 248, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(25, 92, 248, 0.04);
}

/* 区块标题 */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg);
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* 功能卡片 */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(25, 92, 248, 0.12);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(25, 92, 248, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
  font-weight: 700;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 内容块 */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-block h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.content-block p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 16px;
  line-height: 1.8;
}

.content-block ul {
  list-style: none;
}

.content-block li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
}

.content-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* 通用文字页 */
.page-intro {
  padding: 64px 0 40px;
  text-align: center;
  background: linear-gradient(160deg, #ffffff 0%, #f1f6ff 100%);
}

.page-intro h1 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-intro p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

.text-content {
  max-width: 820px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.text-content h3 {
  font-size: 22px;
  color: var(--text);
  margin: 36px 0 14px;
}

.text-content p {
  margin-bottom: 14px;
}

.text-content ul {
  margin-bottom: 16px;
  padding-left: 22px;
}

.text-content li {
  margin: 8px 0;
}

/* 联系卡片 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  font-size: 20px;
  margin-bottom: 18px;
}

.contact-card img {
  max-width: 220px;
  border-radius: 8px;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.contact-list {
  text-align: left;
  display: inline-block;
  margin-top: 10px;
}

.contact-list li {
  list-style: none;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-list strong {
  color: var(--text);
  display: inline-block;
  min-width: 70px;
}

/* 备案信息 */
.record-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 40px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.record-table th,
.record-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.record-table th {
  width: 160px;
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.record-table td {
  color: var(--text-secondary);
  font-size: 15px;
}

.record-table tr:last-child th,
.record-table tr:last-child td {
  border-bottom: none;
}

.notice {
  background: #fff8e6;
  border-left: 4px solid #f5b70e;
  padding: 16px 20px;
  border-radius: 6px;
  color: #6b5600;
  font-size: 15px;
}

/* 页脚 */
.footer {
  background: #0b1120;
  color: #94a3b8;
  padding: 48px 0 28px;
  font-size: 14px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  max-width: 360px;
}

.footer-brand img {
  height: 32px;
  margin-bottom: 14px;
}

.footer-brand p {
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-links h4 {
  color: #e2e8f0;
  font-size: 14px;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin: 8px 0;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-beian {
  color: #94a3b8;
}

.footer-beian a {
  color: #94a3b8;
  text-decoration: underline;
}

/* 响应式 */
/* 汉堡菜单按钮（PC 默认隐藏） */
.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* 平板及以下（≤860px） */
@media (max-width: 860px) {
  .header-inner {
    height: 60px;
  }

  main {
    padding-top: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 20px;
    border-bottom: 1px solid transparent;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .nav.open {
    max-height: calc(100vh - 60px);
    padding: 8px 20px 20px;
    border-color: var(--border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  }

  .nav a {
    padding: 14px 8px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav .btn-login {
    margin-top: 10px;
    text-align: center;
    border-radius: 8px;
    padding: 12px 16px;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero h1 .brand {
    font-size: 40px;
    margin-bottom: 4px;
  }

  .hero .tagline {
    font-size: 13px;
    padding: 5px 12px;
    margin-bottom: 14px;
  }

  .hero .subtitle {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    padding: 0 16px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    margin-bottom: 36px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .section-title p {
    font-size: 15px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-card h3 {
    font-size: 17px;
  }

  .feature-card p {
    font-size: 14px;
  }

  .content-block,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .content-block.reverse {
    direction: ltr;
  }

  .content-block img {
    order: -1;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: var(--radius);
  }

  .content-block h3 {
    font-size: 22px;
  }

  .content-block p {
    font-size: 15px;
  }

  .footer {
    padding: 36px 0 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .page-intro {
    padding: 52px 0 32px;
  }

  .page-intro h1 {
    font-size: 30px;
  }

  .page-intro p {
    font-size: 15px;
  }

  .text-content {
    font-size: 15px;
  }

  .text-content h3 {
    font-size: 20px;
  }

  .contact-card {
    padding: 24px;
  }

  .contact-card h3 {
    font-size: 18px;
  }

  .contact-card img {
    max-width: 180px;
  }

  .contact-list li {
    font-size: 14px;
  }

  .record-table th,
  .record-table td {
    padding: 12px 14px;
    font-size: 14px;
  }

  .record-table th {
    width: 110px;
  }

  .notice {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* 手机小屏（≤480px） */
@media (max-width: 480px) {
  .container,
  .header-inner,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    padding: 48px 0 36px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero h1 .brand {
    font-size: 34px;
  }

  .hero .subtitle {
    font-size: 15px;
  }

  .section {
    padding: 40px 0;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand img {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .page-intro {
    padding: 40px 0 24px;
  }

  .page-intro h1 {
    font-size: 26px;
  }

  .page-intro p {
    font-size: 14px;
  }

  .text-content h3 {
    font-size: 18px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-card h3 {
    font-size: 17px;
  }

  .contact-list strong {
    display: block;
    margin-bottom: 2px;
  }

  .record-table th,
  .record-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .record-table th {
    width: 100px;
  }
}

/* 占位图片 / 预览 */
.preview-placeholder {
  background: linear-gradient(135deg, #eef4ff 0%, #f8fafc 100%);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 15px;
}
