/* 沈阳明雨科技 - 官网样式 */
:root {
  --primary: #1a56db;
  --primary-dark: #1240a8;
  --accent: #f59e0b;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-light: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --radius: 8px;
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; color: var(--text);
}
.logo img { width: 40px; height: 40px; }
.logo span { color: var(--primary); }

.main-nav { display: flex; gap: 28px; list-style: none; }
.main-nav a {
  color: var(--text); font-size: .95rem; font-weight: 500;
  padding: 4px 0; position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--primary); border-radius: 1px;
}

.header-phone {
  display: flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 1.05rem;
}
.header-phone svg { width: 18px; height: 18px; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* Hero */
.hero {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #3b82f6 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: 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='0.05'%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");
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 680px; }
.hero-tag { display: inline-block; background: rgba(255,255,255,.15); padding: 6px 16px; border-radius: 20px; font-size: .875rem; margin-bottom: 20px; }
.hero h1 { font-size: 2.75rem; line-height: 1.3; margin-bottom: 20px; font-weight: 700; }
.hero p { font-size: 1.15rem; opacity: .9; margin-bottom: 32px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  border: 2px solid transparent; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #d97706; border-color: #d97706; color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Section */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { font-size: 2rem; margin-bottom: 12px; color: var(--text); }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-tag { color: var(--primary); font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px 24px; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.service-card h3 a { color: var(--text); }
.service-card h3 a:hover { color: var(--primary); }
.service-card p { color: var(--text-light); font-size: .9rem; margin-bottom: 16px; }
.service-link { color: var(--primary); font-size: .875rem; font-weight: 600; }

/* Advantages */
.advantages { background: var(--bg-light); }
.advantages-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.advantage-item { text-align: center; }
.advantage-num {
  width: 48px; height: 48px; margin: 0 auto 16px;
  background: var(--primary); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
}
.advantage-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.advantage-item p { color: var(--text-light); font-size: .9rem; }

/* Cases */
.case-filters {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.case-filter {
  padding: 8px 20px; border: 1px solid var(--border); border-radius: 20px;
  background: var(--bg); color: var(--text-light); font-size: .9rem;
  cursor: pointer; transition: all .2s;
}
.case-filter:hover, .case-filter.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg);
  transition: box-shadow .3s;
}
.case-card:hover { box-shadow: var(--shadow); }
.case-card.hidden { display: none; }
.case-img {
  height: 220px; overflow: hidden; position: relative;
  background: #f1f5f9;
}
.case-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.case-card:hover .case-img img { transform: scale(1.05); }
.case-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(26, 86, 219, .92); color: #fff;
  padding: 4px 12px; border-radius: 4px;
  font-size: .75rem; font-weight: 600; z-index: 1;
}
.case-tag.tag-miniprogram { background: rgba(7, 193, 96, .92); }
.case-tag.tag-software { background: rgba(107, 114, 128, .92); }
.case-body { padding: 20px; }
.case-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.case-body p { color: var(--text-light); font-size: .875rem; margin-bottom: 6px; }
.case-body p:last-child { margin-bottom: 0; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; transition: box-shadow .3s;
}
.news-card:hover { box-shadow: var(--shadow); }
.news-date { color: var(--text-light); font-size: .8rem; margin-bottom: 8px; }
.news-card h3 { font-size: 1rem; margin-bottom: 8px; line-height: 1.5; }
.news-card h3 a { color: var(--text); }
.news-card h3 a:hover { color: var(--primary); }
.news-card p { color: var(--text-light); font-size: .875rem; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, #1e3a8a, #1a56db);
  color: #fff; text-align: center; padding: 80px 0;
}
.cta-section h2 { font-size: 2rem; margin-bottom: 16px; }
.cta-section p { opacity: .9; margin-bottom: 32px; font-size: 1.05rem; }

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { font-size: 1.25rem; margin-bottom: 24px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 20px; }
.contact-item-icon {
  width: 44px; height: 44px; background: #eff6ff;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--primary); flex-shrink: 0;
}
.contact-form { background: var(--bg-light); padding: 32px; border-radius: 12px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: .95rem; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* Page Banner */
.page-banner {
  padding: 120px 0 60px;
  background: linear-gradient(135deg, #1e3a8a, #1a56db);
  color: #fff; text-align: center;
}
.page-banner h1 { font-size: 2.25rem; margin-bottom: 12px; }
.page-banner p { opacity: .9; font-size: 1.05rem; }
.breadcrumb { margin-top: 16px; font-size: .875rem; opacity: .8; }
.breadcrumb a { color: #fff; }

/* Service Detail */
.service-detail { padding: 60px 0; }
.service-detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.service-content h2 { font-size: 1.5rem; margin: 32px 0 16px; color: var(--text); }
.service-content h2:first-child { margin-top: 0; }
.service-content p { margin-bottom: 16px; color: var(--text-light); }
.service-content ul { margin: 16px 0 16px 24px; color: var(--text-light); }
.service-content li { margin-bottom: 8px; }
.service-sidebar {
  background: var(--bg-light); padding: 32px; border-radius: 12px;
  position: sticky; top: 90px; height: fit-content;
}
.service-sidebar h3 { font-size: 1.1rem; margin-bottom: 16px; }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a {
  display: block; padding: 10px 16px; border-radius: var(--radius);
  color: var(--text); font-size: .9rem; transition: background .2s;
}
.sidebar-links a:hover, .sidebar-links a.active {
  background: var(--primary); color: #fff;
}

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 24px 0; }
.feature-item {
  padding: 20px; background: var(--bg-light); border-radius: var(--radius);
  border-left: 3px solid var(--primary);
}
.feature-item h4 { font-size: .95rem; margin-bottom: 6px; }
.feature-item p { font-size: .85rem; color: var(--text-light); margin: 0; }

/* Footer */
.site-footer {
  background: #111827; color: #9ca3af; padding: 60px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand h3 { color: #fff; font-size: 1.25rem; margin-bottom: 16px; }
.footer-brand p { font-size: .9rem; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #9ca3af; font-size: .875rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #374151; padding: 24px 0;
  text-align: center; font-size: .85rem;
}
.footer-bottom a { color: #9ca3af; }

/* Floating Contact */
.float-contact {
  position: fixed; right: 20px; bottom: 80px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px;
}
.float-btn {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: transform .2s;
  border: none; text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); color: #fff; }
.float-phone { background: var(--primary); }
.float-wechat { background: #07c160; }
.float-top { background: #374151; opacity: 0; transition: opacity .3s; }
.float-top.visible { opacity: 1; }

/* SEO Content Block */
.seo-content { background: var(--bg-light); }
.seo-content .container { max-width: 900px; }
.seo-content h2 { font-size: 1.5rem; margin-bottom: 16px; }
.seo-content p { color: var(--text-light); margin-bottom: 12px; font-size: .95rem; }

/* Responsive */
@media (max-width: 1024px) {
  .services-grid, .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 70px; left: 0; right: 0; background: #fff;
    padding: 20px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .menu-toggle { display: block; }
  .header-phone { display: none; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 120px 0 80px; }
  .services-grid, .advantages-grid, .cases-grid, .news-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
