/* ===== 富发电脑维修 - 主样式表 ===== */
/* 设计风格：极简专业、信任感、移动优先 */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #0f172a;
  --accent: #3b82f6;
  --success: #059669;
  --warning: #d97706;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --bg-gray: #f1f5f9;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --max-width: 1200px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== Typography ===== */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { margin-bottom: 0.5rem; }
.section-title p { color: var(--text-light); font-size: 1.125rem; max-width: 600px; margin: 0 auto; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-light); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header / Nav ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; padding: 0 20px; max-width: var(--max-width); margin: 0 auto;
}
.logo { font-size: 1.35rem; font-weight: 800; color: var(--secondary); display: flex; align-items: center; gap: 8px; }
.logo-icon { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.logo-img { width: 100%; height: 100%; object-fit: contain; }
.logo span { color: var(--primary); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--text); font-size: 0.95rem; font-weight: 500; position: relative; padding: 0.25rem 0; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.2s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--primary); }
.nav-phone { display: flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: 1.05rem; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  color: #fff;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero-content h1 { margin-bottom: 1rem; }
.hero-content h1 span { color: var(--accent); }
.hero-content p { font-size: 1.125rem; color: rgba(255,255,255,0.8); margin-bottom: 2rem; max-width: 520px; line-height: 1.7; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero-badge { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); padding: 0.5rem 1rem; border-radius: 50px; font-size: 0.875rem; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.hero-stat { text-align: center; padding: 2rem; background: rgba(255,255,255,0.08); border-radius: var(--radius); backdrop-filter: blur(5px); }
.hero-stat-number { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.hero-stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.7); margin-top: 0.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* ===== Trust Bar ===== */
.trust-bar { background: var(--bg-light); padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.trust-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--text-light); }

/* ===== Services ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: all 0.3s;
}
.service-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.service-icon { width: 56px; height: 56px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 24px; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.25rem; }
.service-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.service-price small { font-weight: 400; font-size: 0.8rem; color: var(--text-muted); }
.service-features { margin-bottom: 1.25rem; }
.service-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 0.9rem; color: var(--text-light); padding: 0.35rem 0; }
.service-features li::before { content: '✓'; color: var(--success); font-weight: 700; }

/* ===== Why Us ===== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.why-card { text-align: center; padding: 2rem 1.5rem; }
.why-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.why-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.why-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; }

/* ===== Pricing Table ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.pricing-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s; }
.pricing-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); position: relative; }
.pricing-card.featured::before { content: '主推服务'; position: absolute; top: 12px; right: 12px; background: var(--primary); color: #fff; font-size: 0.75rem; padding: 0.25rem 0.75rem; border-radius: 50px; font-weight: 600; }
.pricing-header { padding: 2rem; text-align: center; background: var(--bg-light); }
.pricing-header h3 { margin-bottom: 0.5rem; }
.pricing-amount { font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.pricing-amount small { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.pricing-body { padding: 2rem; }
.pricing-body ul li { display: flex; align-items: center; gap: 8px; padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-light); border-bottom: 1px solid var(--border); }
.pricing-body ul li:last-child { border-bottom: none; }
.pricing-body ul li::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-footer { padding: 0 2rem 2rem; text-align: center; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-image { border-radius: var(--radius); overflow: hidden; background: var(--bg-gray); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.about-content h2 { margin-bottom: 1rem; }
.about-content p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.7; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.about-stat { text-align: center; padding: 1.25rem; background: var(--bg-light); border-radius: var(--radius-sm); }
.about-stat-num { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.about-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ===== Team ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.team-card { text-align: center; padding: 2rem; border: 1px solid var(--border); border-radius: var(--radius); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--primary-light); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 32px; }
.team-card h3 { margin-bottom: 0.25rem; }
.team-role { font-size: 0.85rem; color: var(--primary); font-weight: 600; margin-bottom: 0.5rem; }
.team-desc { font-size: 0.85rem; color: var(--text-light); }

/* ===== Testimonials ===== */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.testi-text { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testi-text::before { content: '"'; color: var(--primary); font-size: 1.5rem; font-weight: 700; }
.testi-text::after { content: '"'; color: var(--primary); font-size: 1.5rem; font-weight: 700; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-gray); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.testi-name { font-weight: 600; font-size: 0.9rem; }
.testi-company { font-size: 0.8rem; color: var(--text-muted); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.75rem; overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; padding: 1.25rem 1.5rem;
  font-size: 1rem; font-weight: 600; cursor: pointer;
  background: var(--bg); border: none; color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: var(--bg-light); }
.faq-question::after { content: '+'; font-size: 1.25rem; color: var(--primary); transition: transform 0.3s; }
.faq-item.active .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer-inner { padding: 0 1.5rem 1.25rem; color: var(--text-light); line-height: 1.7; font-size: 0.95rem; }

/* ===== Contact / Booking ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info h2 { margin-bottom: 1rem; }
.contact-info p { color: var(--text-light); margin-bottom: 2rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; }
.contact-detail-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.contact-detail-text h4 { font-size: 0.9rem; margin-bottom: 0.15rem; }
.contact-detail-text p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0; }

.booking-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.5rem; }
.booking-form h3 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text); }
.form-group label .required { color: #ef4444; }
.form-control { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 0.95rem; font-family: var(--font); transition: border-color 0.2s; background: var(--bg); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-success { display: none; text-align: center; padding: 3rem; }
.form-success.show { display: block; }
.form-success-icon { width: 64px; height: 64px; margin: 0 auto 1rem; background: #d1fae5; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.form-success h3 { color: var(--success); margin-bottom: 0.5rem; }
.form-success p { color: var(--text-light); }

/* ===== CTA ===== */
.cta { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; text-align: center; padding: 4rem 0; }
.cta h2 { margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.125rem; }
.cta .btn-outline { border-color: #fff; color: #fff; }
.cta .btn-outline:hover { background: #fff; color: var(--primary); }
.cta-phone { font-size: 1.5rem; font-weight: 800; margin-top: 1rem; display: block; color: #fff; }

/* ===== Footer ===== */
.footer { background: var(--secondary); color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-brand .logo { color: #fff; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 300px; }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); font-size: 16px; transition: all 0.2s; }
.footer-social a:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; }
.footer-bottom a { color: rgba(255,255,255,0.6); }

/* ===== Page Header ===== */
.page-header {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
  color: #fff; text-align: center;
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto; font-size: 1.1rem; }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; font-size: 0.85rem; }
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb span { color: rgba(255,255,255,0.4); }
.breadcrumb .current { color: var(--accent); }

/* ===== Service Detail ===== */
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.service-detail-image { border-radius: var(--radius); overflow: hidden; background: var(--bg-gray); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; color: var(--text-muted); }
.service-detail-content h2 { margin-bottom: 1rem; }
.service-detail-content p { color: var(--text-light); margin-bottom: 1rem; line-height: 1.7; }
.service-detail-list { margin: 1.5rem 0; }
.service-detail-list li { display: flex; align-items: flex-start; gap: 10px; padding: 0.5rem 0; font-size: 0.95rem; color: var(--text-light); }
.service-detail-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.service-detail-price { font-size: 2rem; font-weight: 800; color: var(--primary); margin: 1rem 0; }

/* ===== Comparison Table ===== */
.comparison-table { width: 100%; border-collapse: collapse; margin: 2rem 0; }
.comparison-table th, .comparison-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.comparison-table th { background: var(--bg-light); font-weight: 700; color: var(--text); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .highlight { background: var(--primary-light); font-weight: 600; color: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid, .why-grid, .pricing-grid, .team-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 3rem 0; }

  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 1rem 20px; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: none; }
  .nav-phone { display: none; }
  .mobile-toggle { display: flex; }

  .services-grid, .why-grid, .pricing-grid, .team-grid, .testi-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid, .service-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-badges { justify-content: center; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat-number { font-size: 2rem; }
  .about-stats { grid-template-columns: 1fr; }
}
