/* ===== SINUOSMART 思诺智造 ===== */
:root {
  --primary: #0D47A1;
  --primary-light: #1565C0;
  --primary-dark: #0A2E6E;
  --accent: #00BCD4;
  --accent-gold: #FFA000;
  --text-dark: #1a1a2e;
  --text-muted: #666;
  --text-light: #888;
  --bg-white: #fff;
  --bg-light: #f5f7fa;
  --bg-dark: #0D47A1;
  --border-color: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all .3s ease;
}
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; color: var(--text-dark); line-height: 1.6; background: var(--bg-white); }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  padding: 8px 0;
  display: none;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
@media (min-width:768px) { .top-bar { display: block; } }

/* ===== Header ===== */
.header {
  background: var(--bg-white);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 70px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 44px; width: auto; }
.logo-text h1 { font-size: 20px; color: var(--primary); font-weight: 700; line-height: 1.2; }
.logo-text span { font-size: 11px; color: var(--text-light); letter-spacing: 1px; }

/* ===== Navigation ===== */
.nav { display: none; gap: 4px; }
.nav a {
  padding: 8px 16px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.nav a:hover, .nav a.active { background: var(--bg-light); color: var(--primary); }
@media (min-width:768px) { .nav { display: flex; } }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-dark); border-radius: 2px; transition: var(--transition); }
@media (min-width:768px) { .hamburger { display: none; } }

/* ===== Mobile Nav ===== */
.mobile-nav {
  display: none;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 10px 20px 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 16px;
  color: var(--text-dark);
  font-size: 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--bg-light); color: var(--primary); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 80px 0 70px;
  text-align: center;
}
.hero h1 { font-size: clamp(28px,4vw,48px); font-weight: 800; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 16px; max-width: 700px; margin: 0 auto 30px; opacity: .9; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: none;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--bg-white); color: var(--primary); }
.btn-primary:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; transform: translateY(-2px); }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section:nth-child(even) { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: clamp(24px,3vw,32px); color: var(--primary-dark); font-weight: 700; }
.section-header .subtitle { color: var(--text-muted); font-size: 15px; margin-top: 8px; }
.section-header .line { width: 60px; height: 3px; background: var(--accent); margin: 16px auto 0; border-radius: 2px; }

/* ===== Service Cards ===== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width:640px) { .service-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:900px) { .service-grid { grid-template-columns: repeat(4,1fr); } }

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid transparent;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--accent);
}
.service-card .icon { font-size: 44px; margin-bottom: 16px; display: block; }
.service-card h3 { font-size: 17px; color: var(--primary); margin-bottom: 10px; }
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width:768px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-text h2 { font-size: 28px; color: var(--primary-dark); margin-bottom: 20px; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; font-size: 15px; }
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 30px; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 32px; font-weight: 800; color: var(--primary); }
.stat-item .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ===== News Grid ===== */
.news-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width:640px) { .news-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:900px) { .news-grid { grid-template-columns: repeat(3,1fr); } }
.news-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}
.news-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.news-card-body { padding: 24px; }
.news-card-body .date { font-size: 13px; color: var(--text-light); }
.news-card-body h3 { font-size: 16px; margin: 8px 0; color: var(--text-dark); line-height: 1.4; }
.news-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.news-card .read-more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--primary); }

/* ===== Partners ===== */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
  padding: 20px 0;
}
.partner-grid img { height: 40px; opacity: .5; transition: var(--transition); filter: grayscale(100%); }
.partner-grid img:hover { opacity: 1; filter: grayscale(0%); }

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 50px 0;
  text-align: center;
}
.page-banner h1 { font-size: 32px; font-weight: 700; }
.page-banner .breadcrumb { font-size: 13px; margin-top: 8px; opacity: .8; }
.page-banner .breadcrumb a { color: #fff; text-decoration: underline; }

/* ===== Page Main ===== */
.page-main { padding: 50px 0; }
.page-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width:768px) { .page-layout { grid-template-columns: 240px 1fr; } }

/* ===== Sidebar ===== */
.sidebar h3 { font-size: 16px; color: var(--primary); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--accent); }
.sidebar a {
  display: block;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  transition: var(--transition);
}
.sidebar a:hover, .sidebar a.active { background: var(--bg-light); color: var(--primary); font-weight: 600; }

/* ===== Service Detail ===== */
.service-detail h2 { font-size: 24px; color: var(--primary-dark); margin-bottom: 20px; }
.service-detail p { color: var(--text-muted); line-height: 1.9; font-size: 15px; margin-bottom: 16px; }
.service-flow { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 30px 0; }
@media (min-width:600px) { .service-flow { grid-template-columns: repeat(2,1fr); } }
@media (min-width:900px) { .service-flow { grid-template-columns: repeat(4,1fr); } }
.flow-step {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border-left: 3px solid var(--accent);
}
.flow-step .step-num { font-size: 28px; font-weight: 800; color: var(--primary); opacity: .3; }
.flow-step h4 { font-size: 15px; color: var(--primary); margin: 8px 0; }
.flow-step p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media (min-width:768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-info-card { background: var(--bg-white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-info-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.contact-item .ci-icon { font-size: 20px; width: 36px; height: 36px; background: var(--bg-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .ci-label { font-size: 12px; color: var(--text-light); }
.contact-item .ci-value { font-size: 14px; color: var(--text-dark); font-weight: 500; }

/* ===== Form ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--text-dark); }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
  background: var(--bg-light);
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); background: var(--bg-white); }

/* ===== Footer ===== */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
  padding: 50px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width:640px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:900px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 2fr; } }
.footer h3, .footer h4 { color: #fff; margin-bottom: 16px; }
.footer h3 { font-size: 20px; }
.footer h4 { font-size: 15px; }
.footer p { font-size: 13px; line-height: 1.7; opacity: .8; }
.footer a { color: rgba(255,255,255,.7); font-size: 13px; display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--accent); }
.footer .contact-label { font-weight: 600; color: rgba(255,255,255,.9); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  opacity: .7;
}
.footer-bottom a { display: inline; color: rgba(255,255,255,.7); font-size: 12px; }

/* ===== Utils ===== */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ===== News List ===== */
.news-list-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--border-color);
}
.news-list-item:last-child { border-bottom: none; }
.news-list-title {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  margin: 6px 0;
  transition: var(--transition);
  cursor: pointer;
}
.news-list-title:hover { color: var(--primary); }
.news-list-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.back-btn { display: inline-block; margin-bottom: 20px; font-size: 14px; color: var(--primary); text-decoration: none; font-weight: 500; }
.back-btn:hover { color: var(--accent); }
.news-detail { padding: 10px 0; }
.news-detail-title { font-size: 22px; margin: 10px 0; color: var(--text-dark); line-height: 1.4; }

/* ===== Responsive ===== */
@media (max-width:767px) {
  .section { padding: 50px 0; }
  .hero { padding: 50px 0; }
  .hero h1 { font-size: 26px; }
  .page-banner { padding: 35px 0; }
  .page-banner h1 { font-size: 24px; }
  .logo-text h1 { font-size: 16px; }
  .logo-img { height: 36px; }
}

/* ===== Print ===== */
@media print {
  .header, .footer, .hamburger, .mobile-nav, .top-bar, .sidebar { display: none !important; }
  .page-layout { display: block; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}
