/* =============================================
   SaaS模板建站页面 template-site.html 专用样式
   主色调：紫罗兰
   ============================================= */

/* ---- Hero ---- */
.svc-hero {
  position: relative;
  padding: 180px 0 120px;
  background: linear-gradient(135deg, #2e1065 0%, #6d28d9 50%, #8b5cf6 100%);
  overflow: hidden; color: #fff;
}
.svc-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(139,92,246,.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(196,181,253,.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.06) 0%, transparent 40%);
  pointer-events: none;
}
.svc-hero-bg::after {
  content: ''; position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.svc-hero-inner {
  position: relative; z-index: 2; text-align: center;
}
.svc-hero-inner h1 {
  font-size: clamp(1.8rem,3.5vw,2.8rem);
  font-weight: 800;
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -.3px;
}
.svc-hero-inner h1 span { color: #c4b5fd; }
.svc-hero-inner p {
  font-size: clamp(.95rem,1.3vw,1.08rem);
  color: rgba(255,255,255,.65);
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.svc-hero-actions {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.svc-hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 34px; font-size: .95rem; font-weight: 600;
  border-radius: 50px; text-decoration: none;
  transition: all .3s ease; line-height: 1;
}
.svc-hero-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.svc-hero-btn-primary {
  background: #7c3aed; color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.35);
}
.svc-hero-btn-primary:hover {
  background: #6d28d9; color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,.45);
}
.svc-hero-btn-outline {
  border: 1px solid rgba(255,255,255,.5);
  color: #fff; background: transparent;
}
.svc-hero-btn-outline:hover {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: #fff; transform: translateY(-2px);
}

/* ---- Sections ---- */
.svc-section { padding: 90px 0; }
.svc-section-alt { background: #F5F9F8; }

.svc-header { text-align: center; margin-bottom: 56px; }
.svc-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 800;
  color: #1e293b; margin: 0 0 10px; line-height: 1.2;
}
.svc-header p {
  font-size: 1.05rem; color: #64748b;
  margin: 0; line-height: 1.6;
}

/* ---- Intro ---- */
.svc-intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.svc-intro-text h2 {
  font-size: clamp(1.3rem,2vw,1.7rem);
  font-weight: 800; color: #1e293b;
  margin: 0 0 18px; line-height: 1.3;
}
.svc-intro-text p {
  font-size: .96rem; color: #4A5456;
  line-height: 1.8; margin: 0 0 16px;
}
.svc-intro-list {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; flex-direction: column; gap: 12px;
}
.svc-intro-list li {
  position: relative;
  padding-left: 26px;
  font-size: .93rem; font-weight: 500; color: #334155;
  line-height: 1.5;
}
.svc-intro-list li::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 18px; height: 18px;
  background: linear-gradient(135deg,#7c3aed,#6d28d9);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat;
}
.svc-intro-image { position: relative; }
.svc-intro-img {
  width: 100%; height: auto; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
  display: block; position: relative; z-index: 2;
}
.svc-intro-image-deco {
  position: absolute; width: 80%; height: 80%;
  bottom: -16px; right: -16px;
  background: linear-gradient(135deg,rgba(124,58,237,.1),rgba(124,58,237,.02));
  border-radius: 16px; z-index: 1;
}

/* ---- Template Grid ---- */
.svc-template-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.svc-template-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 16px; overflow: hidden;
  transition: all .35s ease;
  display: flex; flex-direction: column;
}
.svc-template-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
  border-color: #ddd6fe;
}
.svc-template-preview {
  height: 200px; overflow: hidden;
  background: linear-gradient(135deg,#ede9fe,#ddd6fe);
  color: #8b5cf6; flex-shrink: 0;
}
.svc-template-preview svg {
  width: 48px; height: 48px;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.svc-template-preview { position: relative; }
.svc-template-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 22px 22px 24px;
}
.svc-template-body h3 {
  font-size: 1.05rem; font-weight: 700;
  color: #1e293b; margin: 0 0 10px; line-height: 1.3;
}
.svc-template-body p {
  font-size: .88rem; color: #64748b;
  line-height: 1.6; margin: 0 0 14px;
  flex: 1;
}
.svc-template-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 18px;
}
.svc-template-tag {
  padding: 4px 12px;
  font-size: .76rem; font-weight: 600;
  color: #6d28d9;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  border-radius: 50px;
}
.svc-template-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px;
  font-size: .85rem; font-weight: 600;
  color: #7c3aed;
  background: #f5f3ff;
  border-radius: 50px;
  text-decoration: none;
  transition: all .3s ease;
  margin-top: auto;
}
.svc-template-btn svg { width: 15px; height: 15px; }
.svc-template-btn:hover {
  background: #7c3aed; color: #fff;
}

/* ---- Feature Grid ---- */
.svc-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.svc-feature-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 16px; padding: 32px 26px;
  transition: all .35s ease;
}
.svc-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
  border-color: #ddd6fe;
}
.svc-feature-card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  border-radius: 14px;
  color: #7c3aed; margin-bottom: 20px;
}
.svc-feature-card-icon svg { width: 26px; height: 26px; }
.svc-feature-card h3 {
  font-size: 1.05rem; font-weight: 700;
  color: #1e293b; margin: 0 0 10px; line-height: 1.3;
}
.svc-feature-card p {
  font-size: .88rem; color: #64748b;
  line-height: 1.7; margin: 0;
}

/* ---- Price ---- */
.svc-price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: stretch;
}
.svc-price-card {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 20px; padding: 40px 32px 32px;
  display: flex; flex-direction: column;
  transition: all .35s ease;
}
.svc-price-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}
.svc-price-card-featured {
  background: linear-gradient(180deg, #6d28d9 0%, #7c3aed 100%);
  border-color: #6d28d9;
  color: #fff;
  box-shadow: 0 20px 60px rgba(109,40,217,.35);
}
.svc-price-card h3 {
  font-size: 1.1rem; font-weight: 700;
  color: #1e293b; margin: 0 0 16px;
}
.svc-price-card-featured h3 { color: #fff; }
.svc-price-amount {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; color: #7c3aed;
  line-height: 1.2; margin-bottom: 6px;
}
.svc-price-card-featured .svc-price-amount { color: #fff; }
.svc-price-unit {
  font-size: .86rem; color: #64748b;
  margin-bottom: 24px;
}
.svc-price-card-featured .svc-price-unit { color: rgba(255,255,255,.7); }
.svc-price-card ul {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.svc-price-card ul li {
  position: relative; padding-left: 22px;
  font-size: .88rem; color: #4A5456; line-height: 1.5;
}
.svc-price-card-featured ul li { color: rgba(255,255,255,.85); }
.svc-price-card ul li::before {
  content: '';
  position: absolute; left: 0; top: 6px;
  width: 8px; height: 8px;
  background: #8b5cf6; border-radius: 50%;
}
.svc-price-card-featured ul li::before { background: #fff; }
.svc-price-btn {
  display: block; text-align: center;
  padding: 13px 20px;
  font-size: .9rem; font-weight: 600;
  color: #6d28d9;
  background: #f5f3ff;
  border-radius: 50px;
  text-decoration: none;
  transition: all .3s ease;
}
.svc-price-btn:hover { background: #7c3aed; color: #fff; }
.svc-price-btn-featured {
  background: #fff; color: #6d28d9;
}
.svc-price-btn-featured:hover {
  background: #f5f3ff; color: #6d28d9;
  transform: translateY(-2px);
}
.svc-price-badge {
  position: absolute; top: 18px; right: -32px;
  padding: 6px 40px;
  font-size: .74rem; font-weight: 700; letter-spacing: 1px;
  color: #fff; background: #f59e0b;
  transform: rotate(45deg);
}
.svc-price-card-featured { position: relative; overflow: hidden; }

/* ---- Advantage ---- */
.svc-advantage-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.svc-advantage-item {
  border-radius: 16px; padding: 32px 24px 26px;
  text-align: center; position: relative; overflow: hidden;
  transition: transform .4s ease, box-shadow .4s ease;
}
.svc-advantage-item:nth-child(1) { background: linear-gradient(135deg,#eff6ff,#dbeafe); }
.svc-advantage-item:nth-child(2) { background: linear-gradient(135deg,#f0fdf4,#dcfce7); }
.svc-advantage-item:nth-child(3) { background: linear-gradient(135deg,#fefce8,#fef9c3); }
.svc-advantage-item:nth-child(4) { background: linear-gradient(135deg,#f5f3ff,#ede9fe); }
.svc-advantage-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.08);
}
.svc-advantage-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 16px;
  font-size: 1.05rem; font-weight: 800; color: #fff;
  border-radius: 12px;
}
.svc-advantage-item:nth-child(1) .svc-advantage-num { background: linear-gradient(135deg,#3b82f6,#1d4ed8); }
.svc-advantage-item:nth-child(2) .svc-advantage-num { background: linear-gradient(135deg,#10b981,#059669); }
.svc-advantage-item:nth-child(3) .svc-advantage-num { background: linear-gradient(135deg,#f59e0b,#d97706); }
.svc-advantage-item:nth-child(4) .svc-advantage-num { background: linear-gradient(135deg,#8b5cf6,#6d28d9); }
.svc-advantage-item h4 {
  font-size: 1rem; font-weight: 700; color: #1e293b;
  margin: 0 0 10px;
}
.svc-advantage-item p {
  font-size: .88rem; color: #4d4d4d;
  line-height: 1.65; margin: 0;
}

/* ---- Responsive ---- */
@media(max-width:1024px) {
  .svc-template-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-advantage-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:992px) {
  .svc-intro-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-intro-image { order: -1; }
  .svc-intro-image-deco { display: none; }
}
@media(max-width:768px) {
  .svc-section { padding: 56px 0; }
  .svc-hero { padding: 140px 0 90px; }
  .svc-template-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .svc-price-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-advantage-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .svc-header { margin-bottom: 36px; }
}
@media(max-width:480px) {
  .svc-advantage-grid { grid-template-columns: 1fr; }
}
