/* ==========================================================================
   星点匠心建站 — 组件库
   含：横向卷轴面板内容、卡片、服务模块、案例、资讯、CTA 等
   ========================================================================== */

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   首页：横向卷轴面板内容
   ========================================================================== */

/* —— 面板 1：Hero —— */
.panel-hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--sun) 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 110%, var(--sky) 0%, transparent 55%),
    linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.panel-hero .panel-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 36px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}

.hero-copy .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 18px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--sky-ink);
  font-size: 12.5px;
  letter-spacing: 2px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-xs);
}

.hero-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sun-deep), var(--sky-deep));
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(245,197,24,0.5); }
  50% { opacity: 0.7; transform: scale(1.35); box-shadow: 0 0 0 8px rgba(245,197,24,0); }
}

.panel-hero h1 {
  font-size: 62px;
  line-height: 1.1;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: var(--ink);
}

.panel-hero h1 .sun-line {
  background: linear-gradient(120deg, var(--sun-deep) 0%, #E8A60A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.panel-hero h1 .sky-line {
  color: var(--sky-ink);
  position: relative;
}

.panel-hero h1 .sky-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 12px;
  background: var(--sun);
  z-index: -1;
  border-radius: 4px;
  opacity: 0.65;
}

.hero-sub {
  color: var(--body);
  font-size: 17px;
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.hero-stats .stat strong {
  display: block;
  font-size: 38px;
  font-family: var(--font-en);
  color: var(--sky-ink);
  line-height: 1;
  margin-bottom: 8px;
}

.hero-stats .stat strong .suffix {
  color: var(--sun-deep);
}

.hero-stats .stat span {
  font-size: 13px;
  color: var(--muted);
}

/* Hero 视觉侧 —— 防晒感叠层卡片 */
.hero-visual {
  position: relative;
  height: 480px;
}

.hero-visual .hv-card {
  position: absolute;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-visual .hv-main {
  width: 78%;
  height: 100%;
  right: 0;
  top: 0;
}

.hero-visual .hv-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual .hv-float {
  width: 46%;
  height: 44%;
  left: 0;
  bottom: 8%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
}

.hero-visual .hv-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual .hv-chip {
  position: absolute;
  left: 8%;
  top: 14%;
  background: var(--white);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.hero-visual .hv-chip .chip-ico {
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--sun), var(--sun-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sun-ink);
}

.hero-visual .hv-chip .chip-txt strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.hero-visual .hv-chip .chip-txt span {
  font-size: 11.5px;
  color: var(--muted);
}

.hero-visual .hv-badge {
  position: absolute;
  right: 6%;
  bottom: 12%;
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  width: 88px;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

.hero-visual .hv-badge strong {
  font-size: 20px;
  color: var(--sun-2);
  font-family: var(--font-en);
  line-height: 1;
}

/* 通用面板内容容器 */
.panel-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 36px;
}

.panel-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.panel-head .eyebrow { margin-bottom: 16px; }

.panel-head h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

.panel-head p {
  color: var(--muted);
  font-size: 15.5px;
}

/* ==========================================================================
   面板：核心优势（错落浮岛卡片）
   ========================================================================== */
.adv-floats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.adv-float {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 32px 26px;
  border: 1px solid var(--line);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.adv-float::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--sun-deep), var(--sky-deep));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.adv-float:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.adv-float:hover::before {
  transform: scaleX(1);
}

.adv-float .af-ico {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--sun), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
}

.adv-float:hover .af-ico {
  transform: rotate(-8deg) scale(1.06);
}

.adv-float h3 {
  font-size: 18px;
  margin-bottom: 11px;
}

.adv-float p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.8;
}

.adv-float .af-no {
  position: absolute;
  right: 20px;
  top: 16px;
  font-size: 42px;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--cloud);
  line-height: 1;
}

/* ==========================================================================
   面板：服务模块（大图交错行）
   ========================================================================== */
.svc-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.svc-row.reverse .svc-media { order: 2; }

.svc-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.svc-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.svc-row:hover .svc-media img {
  transform: scale(1.06);
}

.svc-media .badge-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  color: var(--sky-ink);
  font-weight: 600;
}

.svc-body .step-no {
  font-size: 13px;
  color: var(--sun-deep);
  letter-spacing: 3px;
  font-family: var(--font-en);
  margin-bottom: 12px;
  font-weight: 600;
}

.svc-body h3 {
  font-size: 27px;
  margin-bottom: 16px;
}

.svc-body > p {
  color: var(--muted);
  margin-bottom: 22px;
  font-size: 15px;
  line-height: 1.9;
}

.svc-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 26px;
}

.svc-feat li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--body);
}

.svc-feat li svg {
  flex-shrink: 0;
  color: var(--sun-deep);
}

/* ==========================================================================
   面板：案例矩阵
   ========================================================================== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.case-card {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.case-card .case-img {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.case-card .case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.case-card:hover .case-img img {
  transform: scale(1.08);
}

.case-card .case-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 13px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--sky-ink);
  font-size: 12px;
  border-radius: var(--r-pill);
  font-weight: 600;
}

.case-card .case-info {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-card .case-info h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

.case-card .case-info p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
  flex: 1;
}

.case-card .case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}

.case-card .case-meta .more {
  color: var(--sky-ink);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s ease;
}

.case-card:hover .case-meta .more {
  gap: 8px;
}

/* ==========================================================================
   资讯列表（首页 + 列表页通用横卡）
   ========================================================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.news-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all 0.35s ease;
}

.news-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
  border-color: var(--sky-2);
}

.news-item .n-thumb {
  position: relative;
  overflow: hidden;
  min-height: 160px;
}

.news-item .n-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-item:hover .n-thumb img {
  transform: scale(1.06);
}

.news-item .n-body {
  padding: 22px 26px 22px 0;
  display: flex;
  flex-direction: column;
}

.news-item .n-body h4 {
  font-size: 17px;
  margin-bottom: 9px;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.news-item:hover .n-body h4 {
  color: var(--sky-ink);
}

.news-item .n-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item .n-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
}

.news-item .n-foot .date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-item .n-foot .read {
  color: var(--sky-ink);
  font-weight: 600;
}

/* 紧凑迷你卡（侧边/相关） */
.news-mini {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-mini .mini-item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 11px;
  border-radius: var(--r-sm);
  transition: all 0.3s ease;
}

.news-mini .mini-item:hover {
  background: var(--paper);
  transform: translateX(4px);
}

.news-mini .mini-item .m-thumb {
  width: 82px;
  height: 62px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.news-mini .mini-item .m-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-mini .mini-item .m-body h5 {
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.news-mini .mini-item:hover .m-body h5 {
  color: var(--sky-ink);
}

.news-mini .mini-item .m-body .m-date {
  font-size: 11.5px;
  color: var(--muted);
}

/* ==========================================================================
   建站流程（数字步骤）
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
}

.step-item {
  text-align: center;
  position: relative;
}

.step-item .step-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--white);
  border: 2px dashed var(--sky-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--sky-ink);
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
}

.step-item:hover .step-circle {
  background: linear-gradient(135deg, var(--sun), var(--sun-deep));
  color: var(--sun-ink);
  border-color: var(--sun-deep);
  border-style: solid;
  transform: scale(1.06);
}

.step-item h4 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 13px;
  color: var(--muted);
  padding: 0 8px;
}

/* ==========================================================================
   CTA 行动召唤带
   ========================================================================== */
.cta-band {
  background: linear-gradient(120deg, var(--sky-ink) 0%, var(--ink) 100%);
  border-radius: var(--r-xl);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  position: relative;
  overflow: hidden;
  color: var(--paper);
}

.cta-band::before {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 24, 0.28) 0%, transparent 70%);
}

.cta-band::after {
  content: "";
  position: absolute;
  left: -40px;
  top: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 139, 201, 0.3) 0%, transparent 70%);
}

.cta-band .cta-text {
  position: relative;
  z-index: 2;
}

.cta-band .cta-text h3 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 10px;
}

.cta-band .cta-text p {
  color: rgba(248, 251, 255, 0.75);
  font-size: 15px;
}

.cta-band .cta-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   通用特性卡（详情页用）
   ========================================================================== */
.feature-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 34px 28px;
  border: 1px solid var(--line);
  transition: all 0.4s ease;
  height: 100%;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--sky-2);
  transform: translateY(-4px);
}

.feature-card .f-ico {
  width: 60px;
  height: 60px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--sun), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 19px;
  margin-bottom: 11px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* ==========================================================================
   响应式组件
   ========================================================================== */
@media (max-width: 1100px) {
  .panel-hero .panel-inner { grid-template-columns: 1fr; gap: 40px; }
  .panel-hero h1 { font-size: 46px; }
  .hero-visual { height: 380px; }
  .adv-floats { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 1fr; gap: 34px; }
  .svc-row.reverse .svc-media { order: 0; }
  .svc-media img { height: 300px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; text-align: center; padding: 38px 30px; }
  .panel-head h2 { font-size: 34px; }
}

@media (max-width: 640px) {
  .panel-hero h1 { font-size: 34px; }
  .hero-stats { gap: 26px; }
  .hero-stats .stat strong { font-size: 28px; }
  .hero-visual { height: 280px; }
  .adv-floats { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .n-thumb { min-height: 180px; }
  .news-item .n-body { padding: 18px 20px 22px; }
  .svc-feat { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .panel-head h2 { font-size: 26px; }
}
