/* Web Design Page Specific Styles */

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--text-sub);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent-gold);
}

.breadcrumb-separator {
  color: var(--text-sub);
  opacity: 0.5;
}

/* Web Design Hero */
.webdesign-hero {
  background: linear-gradient(135deg, rgba(99,102,241,0.75), rgba(168,85,247,0.65)),
              url('../../assets/images/websitezhizuo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 80px 0 60px;
  position: relative;
}

.webdesign-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 0%, transparent 40%);
  pointer-events: none;
}

.webdesign-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.webdesign-hero .hero-lead {
  font-size: 1.1rem;
  color: #ffffff;
  max-width: 600px;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.25);
}

.webdesign-hero .breadcrumb a,
.webdesign-hero .breadcrumb-separator,
.webdesign-hero .breadcrumb span {
  color: rgba(255,255,255,0.9);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
}

/* Introduction Section */
.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-content p {
  text-align: left;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .section-title {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-header .section-subtitle {
  font-size: 1rem;
  color: var(--text-sub);
}

/* Service Grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.service-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(99,102,241,0.08);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(99,102,241,0.2);
  border-color: rgba(99,102,241,0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: white;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-card > p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border-soft);
  padding-top: 16px;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-sub);
  padding: 6px 0 6px 20px;
  position: relative;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6366f1;
  font-weight: bold;
}

/* Process Timeline */
.process-timeline {
  max-width: 900px;
  margin: 40px auto 0;
  position: relative;
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  margin-bottom: 40px;
  position: relative;
}

.process-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 39px;
  top: 80px;
  width: 2px;
  height: calc(100% - 40px);
  background: linear-gradient(180deg, #6366f1, var(--border-soft));
}

.step-marker {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(99,102,241,0.4);
}

.step-content {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px 28px;
  transition: all 0.3s ease;
}

.step-content:hover {
  background: rgba(255,255,255,1);
  box-shadow: 0 8px 24px rgba(99,102,241,0.15);
  border-color: rgba(99,102,241,0.3);
}

.step-content h3 {
  font-size: 1.15rem;
  margin: 0 0 12px 0;
  color: var(--text-main);
}

.step-content p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin: 0;
}

/* Reasons Grid */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.reason-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.reason-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #a855f7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.reason-card:hover::before {
  transform: scaleX(1);
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(99,102,241,0.2);
}

.reason-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #6366f1;
  opacity: 0.25;
  margin-bottom: 16px;
  font-family: 'Georgia', serif;
}

.reason-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.reason-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-sub);
  margin: 0;
}

/* Tech Section */
.tech-list {
  margin-top: 24px;
}

.tech-category {
  margin-bottom: 20px;
}

.tech-category h4 {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tags span {
  display: inline-block;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.1));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #6366f1;
  font-weight: 500;
  transition: all 0.2s ease;
}

.tech-tags span:hover {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: white;
  border-color: transparent;
}

/* Code Block */
.tech-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.code-block {
  background: #1e1e2e;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 400px;
}

.code-header {
  background: #2d2d3f;
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca40; }

.code-block pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
}

.code-block code {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #a6adc8;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.1));
  padding: 80px 0;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.cta-content p {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .webdesign-hero h1 {
    font-size: 1.8rem;
  }

  .webdesign-hero .hero-lead {
    font-size: 1rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-step {
    grid-template-columns: 60px 1fr;
    gap: 16px;
  }

  .process-step:not(:last-child)::before {
    left: 29px;
    top: 70px;
  }

  .step-number {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .code-block {
    max-width: 100%;
  }
}
