/* 环岛GEO 官网 - 前台样式（响应式 · 精修版） */
:root {
  --primary: #1a5cff;
  --primary-dark: #0f3fb3;
  --text: #1c2333;
  --muted: #6b7688;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --border: #e3e9f2;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(26, 92, 255, .08);
  --maxw: 1160px;
  /* 质感层：分层阴影 / 渐变 / 统一缓动 */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --shadow-md: 0 2px 6px rgba(16, 24, 40, .06), 0 14px 32px rgba(16, 24, 40, .10);
  --shadow-lg: 0 4px 12px rgba(16, 24, 40, .08), 0 28px 56px rgba(16, 24, 40, .14);
  --grad-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-base, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif); color: var(--text); background: var(--bg); line-height: 1.7; font-size: var(--fs-base, 16px); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { letter-spacing: .01em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: .92em; }
::selection { background: rgba(26, 92, 255, .18); background: color-mix(in srgb, var(--primary) 20%, transparent); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* 按钮 */
.btn { display: inline-block; padding: .6em 1.6em; border-radius: 999px; border: 1px solid var(--primary); cursor: pointer; font-size: 1em; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn-primary { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; box-shadow: var(--shadow-md); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: .8em 2.2em; font-size: 1.08em; }
.btn-block { width: 100%; }

/* 头部导航（透明度由设计器「顶栏透明度」控制） */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255, var(--header-alpha, .78)); backdrop-filter: blur(10px) saturate(1.4); -webkit-backdrop-filter: blur(10px) saturate(1.4); border-bottom: 1px solid var(--border); transition: box-shadow .3s var(--ease), background .3s var(--ease); }
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25em; color: var(--text); letter-spacing: .02em; }
.logo img { height: 34px; }
.logo-text { background: linear-gradient(120deg, var(--primary), #00c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { position: relative; color: var(--text); font-weight: 500; font-size: var(--fs-nav, 15px); padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav .nav-cta { background: var(--grad-primary); color: #fff !important; padding: .45em 1.3em; border-radius: 999px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.main-nav .nav-cta::after { display: none; }
.main-nav .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 35%, transparent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* 首屏轮播 */
.carousel { position: relative; overflow: hidden; background: #0b1530; }
.carousel-slide { display: none; position: relative; min-height: 440px; }
.carousel-slide.active { display: block; }
.carousel-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.carousel-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,12,28,.10), rgba(6,12,28,.42) 78%); }
.carousel-text { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding: 120px 20px; color: #fff; }
.carousel-text h1 { font-size: 2.6em; line-height: 1.25; margin-bottom: .35em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.carousel-text p { font-size: 1.15em; opacity: .94; margin-bottom: 1.6em; max-width: 560px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.carousel-slide.active .carousel-text > * { animation: riseIn .8s var(--ease) both; }
.carousel-slide.active .carousel-text > *:nth-child(2) { animation-delay: .08s; }
.carousel-slide.active .carousel-text > *:nth-child(3) { animation-delay: .16s; }
.carousel-slide.active .carousel-text > *:nth-child(4) { animation-delay: .24s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.carousel-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.carousel-dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s var(--ease), background .3s var(--ease); }
.carousel-dots span.active { width: 26px; background: #fff; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); font-size: 1.3em; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; transition: background .25s var(--ease); }
.carousel-arrow:hover { background: rgba(255,255,255,.24); }
.carousel-arrow.prev { left: 16px; } .carousel-arrow.next { right: 16px; }

/* 区块 */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { text-align: center; font-size: 1.9em; margin-bottom: .3em; letter-spacing: .02em; }
.section-title::after { content: ""; display: block; width: 44px; height: 3px; border-radius: 2px; background: var(--grad-primary); margin: 14px auto 0; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 2.6em; }
.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary) 55%, #00b3ff); color: #fff; padding: 72px 0; }
.cta-band h2 { margin-bottom: .4em; letter-spacing: .02em; }
.cta-band p { opacity: .92; margin-bottom: 1.5em; }

/* 卡片 */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 2em; }
.card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.card > a { display: block; }
.card img { width: 100%; height: 190px; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover img { transform: scale(1.045); }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { font-size: 1.08em; margin-bottom: .4em; line-height: 1.5; }
.price-tag { display: inline-block; padding: 1px 10px; border-radius: 999px; background: rgba(224, 52, 44, .08); color: #e0342c; font-weight: 700; font-size: .95em; }
.price-lg { font-size: 1.6em; }

/* 优势 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature { background: #fff; border-radius: var(--radius); padding: 28px 22px; border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.6em; margin-bottom: .8em; background: rgba(26, 92, 255, .08); background: color-mix(in srgb, var(--primary) 10%, #fff); border: 1px solid rgba(26, 92, 255, .16); border-color: color-mix(in srgb, var(--primary) 16%, transparent); }
.feature h3 { font-size: 1.05em; margin-bottom: .4em; }
.stat-num { color: var(--primary); font-weight: 800; font-size: 1.1em; }

/* 文章列表 */
.article-list { display: flex; flex-direction: column; gap: 18px; }
.article-item { display: flex; gap: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; color: var(--text); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.article-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(26, 92, 255, .3); border-color: color-mix(in srgb, var(--primary) 26%, var(--border)); }
.article-item img { width: 180px; height: 110px; object-fit: cover; border-radius: 8px; flex-shrink: 0; transition: transform .5s var(--ease); }
.article-item:hover img { transform: scale(1.03); }
.article-item h3 { font-size: 1.05em; margin-bottom: .3em; transition: color .25s var(--ease); }
.article-item:hover h3 { color: var(--primary); }
.tag-top { font-style: normal; background: #fff2e8; color: #e65100; font-size: .72em; padding: 1px 8px; border-radius: 4px; vertical-align: middle; }
.article-item time { color: var(--muted); font-size: .85em; }

/* 页头横幅 */
.page-banner { position: relative; background: linear-gradient(120deg, #0b1530, #123a8f 70%, #0f6fbe); color: #fff; padding: 56px 0; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -80px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.06); pointer-events: none; }
.page-banner h1 { font-size: 1.8em; letter-spacing: .02em; }
.page-banner p { opacity: .85; }

/* 详情页 */
.detail-wrap { display: flex; flex-direction: column; }
.detail-main { display: grid; grid-template-columns: 1fr 260px; gap: 36px; }
.detail-title { font-size: 1.7em; line-height: 1.35; margin-bottom: .4em; }
.detail-meta { color: var(--muted); font-size: .9em; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 24px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.detail-meta .md-link { margin-left: auto; font-size: .92em; border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; transition: border-color .25s var(--ease), color .25s var(--ease); }
.detail-meta .md-link:hover { border-color: var(--primary); }
.detail-cover { border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.detail-summary { background: var(--bg-alt); border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; padding: 14px 18px; margin-bottom: 22px; color: var(--muted); }
.detail-content { font-size: 1.02em; }
.detail-content h3 { margin: 1.2em 0 .5em; }
.detail-content p { margin-bottom: 1em; }
.detail-content ul, .detail-content ol { margin: 0 0 1em 1.6em; }
.detail-content img { border-radius: 8px; margin: 12px 0; }
.product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; background: var(--bg-alt); border-radius: var(--radius); padding: 22px; margin-bottom: 26px; }
.product-buy h2 { font-size: 1.3em; margin-bottom: .4em; }
.feat-list { margin: 12px 0 16px 1.2em; }
.detail-cta { margin-top: 2em; }
.detail-related { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; height: fit-content; }
.detail-related h3 { font-size: 1.05em; margin-bottom: .8em; }
.detail-related ul { list-style: none; }
.detail-related li { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.detail-related li:last-child { border-bottom: none; }
.detail-related a { color: var(--text); font-size: .93em; transition: color .25s var(--ease); }
.detail-related a:hover { color: var(--primary); }

/* 联系页 */
.contact-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 40px; }
.contact-info { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.contact-info h3 { margin-bottom: .8em; }
.contact-info p { margin-bottom: .7em; }
.qrcode { width: 130px; margin-top: 14px; border-radius: 8px; }
.form-tabs { display: flex; gap: 6px; margin-bottom: 20px; }
.tab-btn { padding: .5em 1.4em; border: 1px solid var(--border); background: #fff; border-radius: 999px; cursor: pointer; font-size: .95em; transition: all .25s var(--ease); }
.tab-btn.active { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .93em; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { padding: .65em .9em; border: 1px solid var(--border); border-radius: 8px; font-size: 1em; font-family: inherit; background: #fbfcfe; transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 92, 255, .12); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.privacy-tip { font-size: .8em; color: var(--muted); }
.form-result { min-height: 1.4em; font-weight: 600; }
.form-result.ok { color: #188038; } .form-result.err { color: #e0342c; }

/* 标题列表（栏目可切换列表样式） */
.title-list { display: flex; flex-direction: column; }
.title-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 6px; border-bottom: 1px dashed var(--border); color: var(--text); transition: color .25s var(--ease), padding-left .25s var(--ease); }
.title-item:hover { color: var(--primary); padding-left: 12px; }
.ti-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.title-item time { color: var(--muted); font-size: .88em; flex-shrink: 0; }

/* 首页栏目入口 chips */
.home-chips-bar { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 14px 0; }
.home-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.home-chips a { padding: 6px 18px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font-size: .92em; transition: all .25s var(--ease); }
.home-chips a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.hero-slogan { letter-spacing: .2em; font-size: .9em !important; text-transform: uppercase; opacity: .75; }

/* 面包屑 */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid var(--border); font-size: .88em; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; }
.breadcrumb li { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--border); }
.breadcrumb a { color: var(--muted); transition: color .2s var(--ease); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li[aria-current] { color: var(--text); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 导航搜索框 */
.nav-search { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.6); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 92, 255, .12); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.nav-search input { border: none; outline: none; padding: 6px 12px; width: 130px; font-size: .9em; background: transparent; color: inherit; }
.nav-search button { border: none; background: transparent; cursor: pointer; padding: 4px 8px; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.pagination a { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; color: var(--text); transition: all .25s var(--ease); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active { background: var(--grad-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }

/* 页脚 */
.site-footer { position: relative; background: #0d1526; color: #c6cfdd; margin-top: 72px; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(26,92,255,.7), transparent); background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 70%, transparent), transparent); opacity: .8; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 30px; padding: 48px 20px 32px; }
.footer-col h4 { color: #fff; margin-bottom: .8em; font-size: 1em; letter-spacing: .04em; }
.footer-col a, .footer-col p { display: block; color: #c6cfdd; font-size: .9em; margin-bottom: .5em; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-col .qrcode { width: 110px; border-radius: 6px; }

/* AI 索引入口条（页脚） */
.ai-index-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 13px 0; font-size: .85em; }
.ai-index-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ai-index-label { color: #8fa3bf; letter-spacing: .04em; }
.ai-index-bar a { color: #c6cfdd; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 2px 12px; transition: all .25s var(--ease); }
.ai-index-bar a:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.footer-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .85em; }
.footer-bar .container { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bar a { color: #c6cfdd; }

/* 滚动浮现（JS 渐进增强：无 JS 时内容照常显示） */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .carousel-slide.active .carousel-text > * { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 移动端 */
@media (max-width: 900px) {
  .main-nav { position: fixed; top: 64px; right: -260px; width: 240px; bottom: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; box-shadow: -8px 0 24px rgba(0,0,0,.08); transition: right .25s var(--ease); }
  .main-nav.open { right: 0; }
  .nav-toggle { display: block; }
  .nav-search { display: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .detail-main { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .carousel-text { padding: 80px 20px; }
  .carousel-text h1 { font-size: 1.8em; }
  .product-hero { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .article-item img { width: 110px; height: 80px; }
  .section { padding: 44px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-meta .md-link { margin-left: 0; }
}
