/* ========================================
   浙江趋势信息科技有限公司 - 主样式表
   ======================================== */

/* ---- CSS Variables ---- */
:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #ff6b35;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-gray: #6c757d;
  --text-light: #adb5bd;
  --border: #e9ecef;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), #4a90d9);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  background: rgba(26, 115, 232, 0.06);
}

.nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-tel {
  font-size: 14px;
  color: var(--text-gray);
}

.header-tel strong {
  color: var(--primary);
  font-size: 16px;
  display: block;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* ---- Hero Section ---- */
.hero {
  margin-top: 70px;
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 50%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(26,115,232,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-content p {
  font-size: 17px;
  color: var(--text-gray);
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,115,232,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  width: 100%;
  max-width: 400px;
}

.hero-card .icon-circle {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), #4a90d9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 30px;
  color: #fff;
}

.hero-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.hero-card p {
  color: var(--text-gray);
  font-size: 14px;
}

/* ---- Section Common ---- */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.section-header p {
  font-size: 16px;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.about-text p {
  color: var(--text-gray);
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  background: var(--bg-light);
  padding: 25px 20px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-item .stat-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-item .stat-label {
  font-size: 14px;
  color: var(--text-gray);
  margin-top: 5px;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #e8f0fe, #d4e4ff);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image .placeholder {
  text-align: center;
  color: var(--primary);
  font-size: 18px;
}

.about-image .placeholder .big-icon {
  font-size: 64px;
  margin-bottom: 15px;
  display: block;
}

/* ---- Services Section ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.service-card .s-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 26px;
  color: #fff;
}

.s-icon.responsive { background: linear-gradient(135deg, #667eea, #764ba2); }
.s-icon.enterprise { background: linear-gradient(135deg, #f093fb, #f5576c); }
.s-icon.miniapp { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.s-icon.app { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.s-icon.ecommerce { background: linear-gradient(135deg, #fa709a, #fee140); }
.s-icon.foreign { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.s-icon.seo { background: linear-gradient(135deg, #fccb90, #d57eeb); }

.service-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.service-card p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.6;
}

/* ---- Cases Section ---- */
.cases-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--bg-white);
  color: var(--text-gray);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: var(--transition);
  background: var(--bg-white);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.case-thumb {
  height: 200px;
  background: linear-gradient(135deg, #e8f0fe, #d4e4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.case-thumb .case-icon {
  font-size: 40px;
  color: var(--primary);
  opacity: 0.6;
}

.case-info {
  padding: 18px;
}

.case-info h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.case-info .case-cat {
  font-size: 12px;
  color: var(--primary);
  background: rgba(26,115,232,0.08);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
}

/* ---- Brand Slider ---- */
.brands-section {
  padding: 50px 0;
  background: var(--bg-light);
}

.brands-slider {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
}

.brand-item {
  padding: 15px 25px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  font-size: 14px;
  color: var(--text-gray);
  font-weight: 500;
  transition: var(--transition);
}

.brand-item:hover {
  box-shadow: var(--shadow);
  color: var(--primary);
}

/* ---- News Section ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: var(--transition);
  background: var(--bg-white);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-thumb {
  height: 180px;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--primary);
  opacity: 0.5;
}

.news-body {
  padding: 20px;
}

.news-body h3 {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--text-dark);
}

.news-body p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-date {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 10px;
}

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info h3 {
  font-size: 22px;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-detail .c-icon {
  width: 40px;
  height: 40px;
  background: rgba(26,115,232,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-detail .c-text strong {
  display: block;
  font-size: 14px;
  margin-bottom: 3px;
}

.contact-detail .c-text span {
  font-size: 14px;
  color: var(--text-gray);
}

/* Contact Form */
.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.form-group label .required {
  color: #e74c3c;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-buttons {
  display: flex;
  gap: 12px;
}

.btn-reset {
  background: var(--bg-light);
  color: var(--text-gray);
}

.btn-reset:hover {
  background: var(--border);
}

/* ---- Page Banner ---- */
.page-banner {
  margin-top: 70px;
  padding: 50px 0;
  background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
  text-align: center;
}

.page-banner h1 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.page-banner .breadcrumb {
  font-size: 14px;
  color: var(--text-gray);
}

.page-banner .breadcrumb a {
  color: var(--primary);
}

/* ---- Footer ---- */
.footer {
  background: #1a1a2e;
  color: #adb5bd;
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 14px;
  color: #adb5bd;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact li {
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-partners {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-partners a {
  color: #adb5bd;
  font-size: 13px;
}

.footer-partners a:hover {
  color: var(--primary);
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26,115,232,0.3);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .hero { margin-top: 60px; }
  .page-banner { margin-top: 60px; }

  .menu-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 15px 20px;
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: var(--transition);
    gap: 5px;
  }
  .nav.open { transform: translateY(0); }
  .header-contact { display: none; }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 30px; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image { height: 250px; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section { padding: 50px 0; }
  .section-header h2 { font-size: 26px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .brands-slider { gap: 15px; }
  .brand-item { padding: 10px 15px; font-size: 12px; }
}
