/* 智擎矩阵 门户首页样式（自 网页布局草案.txt 打磨：补移动导航、合规页脚、规划中角标） */
:root {
  --primary: #4f46e5; --primary-light: #6366f1; --secondary: #06b6d4; --accent: #a855f7;
  --text-main: #1e293b; --text-sub: #64748b;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; }
body { color: var(--text-main); line-height: 1.6; background: #f5f7ff; overflow-x: hidden; }
body::before, body::after { content: ''; position: fixed; width: 60vw; height: 60vw; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(40px); }
body::before { top: -20%; left: -10%; background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 65%); }
body::after { bottom: -20%; right: -10%; width: 55vw; height: 55vw; background: radial-gradient(circle, rgba(6,182,212,.15) 0%, transparent 65%); }

/* ===== 导航 ===== */
header { position: fixed; top: 0; width: 100%; z-index: 100; background: rgba(255,255,255,.72);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid rgba(148,163,184,.18); }
.nav-container { max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 72px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 22px; font-weight: 800; color: var(--text-main); text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -.5px; }
.logo span { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; gap: 8px; list-style: none; align-items: center; }
.nav-item { position: relative; }
.nav-item > a { color: var(--text-sub); text-decoration: none; font-size: 15px; font-weight: 500; padding: 24px 16px; display: block; transition: .3s; }
.nav-item:hover > a { color: var(--primary); }
.dropdown { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px); background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%); border-radius: 16px; padding: 20px; min-width: 320px; opacity: 0; visibility: hidden;
  transition: all .3s cubic-bezier(.4,0,.2,1); display: grid; grid-template-columns: 1fr; gap: 8px;
  box-shadow: 0 20px 50px -12px rgba(79,70,229,.18), 0 0 0 1px rgba(148,163,184,.15); }
.dropdown.small { min-width: 240px; }
.nav-item:hover .dropdown, .nav-item:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-item { display: flex; gap: 14px; padding: 12px 14px; border-radius: 10px; text-decoration: none; transition: .25s; align-items: center; }
.dropdown-item:hover { background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(6,182,212,.06)); transform: translateX(4px); }
.dropdown-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: bold; flex-shrink: 0; }
.icon-ji { background: linear-gradient(135deg,#e0e7ff,#c7d2fe); color: var(--primary); }
.icon-shen { background: linear-gradient(135deg,#d1fae5,#a7f3d0); color: #10b981; }
.icon-zhuo { background: linear-gradient(135deg,#fef3c7,#fde68a); color: #f59e0b; }
.icon-lian { background: linear-gradient(135deg,#ede9fe,#ddd6fe); color: #8b5cf6; }
.icon-common { background: #f1f5f9; color: var(--text-sub); }
.dropdown-text h4 { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 2px; }
.dropdown-text p { font-size: 13px; color: var(--text-sub); line-height: 1.4; }
.badge-soon { display: inline-block; margin-left: 8px; padding: 1px 8px; font-size: 11px; font-weight: 600; color: #b45309; background: #fef3c7; border-radius: 10px; vertical-align: middle; }
.badge-beta { display: inline-block; margin-left: 8px; padding: 1px 8px; font-size: 11px; font-weight: 600; color: #047857; background: #d1fae5; border-radius: 10px; vertical-align: middle; }
.btn-login { padding: 9px 24px; background: linear-gradient(135deg,var(--primary),var(--primary-light)); border: none; color: #fff; border-radius: 8px;
  cursor: pointer; font-size: 14px; font-weight: 600; transition: .3s; box-shadow: 0 4px 14px rgba(79,70,229,.25); margin-left: 16px; text-decoration: none; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(79,70,229,.4); }
/* 移动汉堡菜单（草案原为直接隐藏导航，补齐） */
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--text-main); cursor: pointer; padding: 4px 10px; }

/* ===== Hero ===== */
.hero { position: relative; padding: 200px 32px 160px; overflow: hidden; text-align: center; z-index: 1;
  background: radial-gradient(ellipse at top, rgba(99,102,241,.12) 0%, transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(6,182,212,.10) 0%, transparent 55%),
    linear-gradient(180deg,#fff 0%,#f0f4ff 100%); }
.hero::before { content: ''; position: absolute; top: 10%; left: 50%; transform: translateX(-50%); width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(139,92,246,.14) 0%, transparent 60%); filter: blur(60px); pointer-events: none; animation: floatGlow 12s ease-in-out infinite; }
@keyframes floatGlow { 0%,100% { transform: translateX(-50%) translateY(0) scale(1); } 50% { transform: translateX(-50%) translateY(-20px) scale(1.05); } }
.hero-content { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero-tag { display: inline-block; padding: 8px 20px; background: rgba(255,255,255,.7); backdrop-filter: blur(10px); border: 1px solid rgba(99,102,241,.2);
  color: var(--primary); border-radius: 24px; font-size: 13px; font-weight: 600; margin-bottom: 28px; box-shadow: 0 4px 16px rgba(99,102,241,.1); }
.hero h1 { font-size: 64px; font-weight: 800; line-height: 1.15; margin-bottom: 28px; letter-spacing: -2px; }
.hero h1 span { background: linear-gradient(120deg,var(--primary) 0%,var(--accent) 50%,var(--secondary) 100%); background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: gradientFlow 6s linear infinite; }
@keyframes gradientFlow { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
.hero p { font-size: 19px; color: var(--text-sub); margin-bottom: 48px; max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary { position: relative; padding: 16px 36px; background: linear-gradient(135deg,var(--primary),var(--primary-light)); color: #fff; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: .3s; box-shadow: 0 8px 24px rgba(79,70,229,.3); font-size: 16px; overflow: hidden; }
.btn-primary::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transition: .6s; }
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(79,70,229,.45); }
.btn-outline { padding: 16px 36px; background: rgba(255,255,255,.7); backdrop-filter: blur(10px); border: 1px solid rgba(99,102,241,.25);
  color: var(--primary); border-radius: 10px; font-weight: 600; text-decoration: none; transition: .3s; font-size: 16px; }
.btn-outline:hover { border-color: var(--primary); background: #fff; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(99,102,241,.15); }

/* ===== 模块区 ===== */
.modules-section { padding: 120px 32px; max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 72px; }
.section-header h2 { font-size: 42px; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
.section-header p { font-size: 18px; color: var(--text-sub); }
.module-grid { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 24px; justify-content: center; align-items: stretch; }
.module-card { flex: 1 1 0; min-width: 0; position: relative; background: rgba(255,255,255,.72); backdrop-filter: blur(20px) saturate(180%);
  border-radius: 20px; padding: 32px 24px; border: 1px solid rgba(255,255,255,.8); transition: all .45s cubic-bezier(.4,0,.2,1);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 4px 20px rgba(99,102,241,.06), 0 0 0 1px rgba(148,163,184,.08); }
.module-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg,var(--primary),var(--secondary),var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.module-card:hover { transform: translateY(-10px); border-color: rgba(99,102,241,.35); box-shadow: 0 24px 48px -12px rgba(79,70,229,.22), 0 0 0 1px rgba(99,102,241,.15); }
.module-card:hover::before { transform: scaleX(1); }
.module-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800;
  margin-bottom: 24px; position: relative; z-index: 1; transition: transform .4s; }
.module-card:hover .module-icon { transform: scale(1.08) rotate(-4deg); }
.module-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; position: relative; z-index: 1; }
.module-card .subtitle { font-size: 13px; font-weight: 600; margin-bottom: 16px; background: linear-gradient(90deg,var(--primary),var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; position: relative; z-index: 1; }
.module-card .desc { font-size: 14px; color: var(--text-sub); margin-bottom: 24px; min-height: 60px; position: relative; z-index: 1; }
.feature-list { list-style: none; max-height: 0; overflow: hidden; transition: max-height .5s ease, opacity .5s; opacity: 0; margin-top: auto; position: relative; z-index: 1; }
.module-card:hover .feature-list, .module-card:active .feature-list { max-height: 240px; opacity: 1; }
.feature-list li { font-size: 13px; padding: 6px 0; display: flex; align-items: flex-start; gap: 8px; }
.feature-list li::before { content: '✓'; color: var(--primary); font-weight: bold; flex-shrink: 0; margin-top: 1px; }
.card-cta { margin-top: 16px; position: relative; z-index: 1; }
.card-cta a { font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; }
.card-cta a:hover { text-decoration: underline; }
.card-cta .muted { color: var(--text-sub); font-weight: 500; cursor: default; }

/* ===== 角色价值区 ===== */
.audience-section { position: relative; padding: 120px 32px; background: linear-gradient(180deg, rgba(255,255,255,.6) 0%, rgba(240,244,255,.8) 100%);
  border-top: 1px solid rgba(148,163,184,.12); z-index: 1; }
.audience-container { max-width: 1280px; margin: 0 auto; }
.audience-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 64px; flex-wrap: wrap; }
.tab-btn { padding: 14px 36px; border: 1.5px solid rgba(148,163,184,.3); background: rgba(255,255,255,.7); backdrop-filter: blur(10px);
  border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--text-sub); transition: .3s; }
.tab-btn.active { border-color: transparent; background: linear-gradient(135deg,var(--primary),var(--primary-light)); color: #fff; box-shadow: 0 8px 24px rgba(79,70,229,.3); }
.tab-btn:hover:not(.active) { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.tab-content { display: none; animation: fadeIn .5s ease; }
.tab-content.active { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.value-card { padding: 36px; background: rgba(255,255,255,.75); backdrop-filter: blur(16px); border-radius: 18px; border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 20px rgba(99,102,241,.06); transition: all .4s cubic-bezier(.4,0,.2,1); position: relative; overflow: hidden; }
.value-card:hover { border-color: rgba(99,102,241,.3); transform: translateY(-6px); box-shadow: 0 20px 40px -10px rgba(79,70,229,.15); }
.value-card .v-icon { font-size: 36px; margin-bottom: 20px; display: inline-block; transition: transform .4s; }
.value-card:hover .v-icon { transform: scale(1.15) rotate(5deg); }
.value-card h4 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.value-card p { font-size: 15px; color: var(--text-sub); line-height: 1.7; }

/* ===== 页脚（合规：ICP 链接 + 公安备案预留） ===== */
footer { position: relative; background: linear-gradient(180deg,#0b1220 0%,#0f172a 100%); color: #94a3b8; padding: 70px 32px 40px; overflow: hidden; z-index: 1; }
.footer-content { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(148,163,184,.12); padding-bottom: 40px; flex-wrap: wrap; gap: 24px; position: relative; }
.footer-brand { max-width: 420px; }
.footer-brand h3 { color: #fff; font-size: 20px; margin-bottom: 12px; }
.footer-brand h3 span { background: linear-gradient(135deg,var(--primary-light),var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand p { font-size: 14px; line-height: 1.6; }
.footer-contact { display: flex; gap: 40px; }
.footer-contact div { text-align: center; }
.footer-contact h5 { color: #cbd5e1; font-size: 12px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1.5px; }
.footer-contact p, .footer-contact a { color: #fff; font-size: 15px; font-weight: 600; text-decoration: none; }
.copyright { text-align: center; padding-top: 30px; font-size: 13px; color: #64748b; position: relative; line-height: 2; }
.copyright a { color: #94a3b8; text-decoration: none; }
.copyright a:hover { color: #cbd5e1; text-decoration: underline; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .module-grid { flex-wrap: wrap; }
  .module-card { flex: 1 1 calc(50% - 24px); min-width: 240px; }
  .dropdown { min-width: 280px; }
  .hero h1 { font-size: 48px; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: rgba(255,255,255,.97);
    backdrop-filter: blur(18px); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px;
    border-bottom: 1px solid rgba(148,163,184,.2); box-shadow: 0 18px 40px -12px rgba(79,70,229,.15); }
  .nav-links.open { display: flex; }
  .nav-item > a { padding: 14px 8px; }
  .dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: transparent;
    backdrop-filter: none; padding: 4px 0 10px 8px; min-width: 0; display: none; }
  .nav-item.open .dropdown { display: grid; }
  .module-grid { flex-direction: column; flex-wrap: nowrap; }
  .module-card { flex: 1 1 auto; width: 100%; }
  .feature-list { max-height: 240px; opacity: 1; } /* 移动端无 hover，功能列表常显 */
  .tab-content.active { grid-template-columns: 1fr; }
  .hero { padding: 150px 24px 100px; }
  .hero h1 { font-size: 34px; letter-spacing: -1px; }
  .hero p { font-size: 16px; }
  .section-header h2 { font-size: 28px; }
  .footer-content { flex-direction: column; text-align: center; }
  .audience-tabs { gap: 8px; }
  .tab-btn { padding: 12px 20px; font-size: 14px; }
  .btn-login { margin-left: 0; }
}
