:root {
  --primary: #1a5276;
  --primary-light: #2980b9;
  --primary-dark: #0e2f44;
  --accent: #e67e22;
  --accent-light: #f39c12;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-gray: #ecf0f1;
  --border: #dde4e8;
  --shadow: 0 2px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

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

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

.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  padding: 8px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: rgba(255,255,255,0.8); }
.top-bar a:hover { color: #fff; }
.lang-switch { display: flex; gap: 12px; }
.lang-switch a { padding: 2px 10px; border: 1px solid rgba(255,255,255,0.3); border-radius: 3px; font-size: 0.8rem; }
.lang-switch a:hover, .lang-switch a.active { background: rgba(255,255,255,0.15); color: #fff; }

header {
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 50px; height: 50px; background: var(--primary);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: bold; font-size: 1.2rem;
}
.logo-text h1 { font-size: 1.3rem; color: var(--primary); line-height: 1.3; }
.logo-text span { font-size: 0.75rem; color: var(--text-light); }

nav ul { display: flex; list-style: none; gap: 4px; }
nav a {
  padding: 8px 16px; color: var(--text); font-weight: 500;
  border-radius: var(--radius); transition: var(--transition); font-size: 0.95rem;
}
nav a:hover, nav a.active { background: var(--primary); color: #fff; }

.mobile-toggle {
  display: none; background: none; border: none; font-size: 1.5rem;
  color: var(--primary); cursor: pointer;
}

.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff; padding: 80px 0; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,0.03);
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.hero .container { position: relative; z-index: 1; }
.hero h2 { font-size: 2.5rem; margin-bottom: 16px; font-weight: 700; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 650px; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; transition: var(--transition);
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-light); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(230,126,34,0.4); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

.section { padding: 70px 0; }
.section-alt { background: var(--bg-light); }
.section-title {
  text-align: center; margin-bottom: 50px;
}
.section-title h2 { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.section-title p { color: var(--text-light); max-width: 600px; margin: 0 auto; }
.section-title .line {
  width: 60px; height: 3px; background: var(--accent);
  margin: 15px auto 0; border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-card .card-img {
  height: 200px; background: var(--bg-gray);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-body { padding: 20px; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--primary); }
.product-card p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; line-height: 1.6; }
.product-card .card-link {
  color: var(--accent); font-weight: 600; font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 4px;
}
.product-card .card-link:hover { gap: 8px; }

.category-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; justify-content: center; }
.category-tab {
  padding: 8px 20px; border: 1px solid var(--border); border-radius: 30px;
  background: #fff; color: var(--text); cursor: pointer;
  transition: var(--transition); font-size: 0.9rem;
}
.category-tab:hover, .category-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.advantages { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.advantage-card {
  text-align: center; padding: 30px 20px;
  border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); transition: var(--transition);
}
.advantage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.advantage-icon {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: #fff; font-size: 1.8rem;
}
.advantage-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary); }
.advantage-card p { font-size: 0.9rem; color: var(--text-light); }

.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-item {
  display: flex; gap: 20px; padding: 20px;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); transition: var(--transition);
}
.news-item:hover { box-shadow: var(--shadow-lg); }
.news-date {
  min-width: 70px; text-align: center; padding: 10px;
  background: var(--primary); border-radius: var(--radius); color: #fff;
}
.news-date .day { font-size: 1.5rem; font-weight: 700; display: block; }
.news-date .month { font-size: 0.75rem; opacity: 0.8; }
.news-content h3 { font-size: 1.05rem; margin-bottom: 8px; }
.news-content h3 a { color: var(--text); }
.news-content h3 a:hover { color: var(--primary); }
.news-content p { font-size: 0.9rem; color: var(--text-light); }

.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.case-card {
  padding: 24px; background: #fff; border-radius: var(--radius);
  border-left: 4px solid var(--accent); box-shadow: var(--shadow);
  transition: var(--transition);
}
.case-card:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }
.case-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--primary); }
.case-card p { font-size: 0.85rem; color: var(--text-light); }

.contact-section { background: var(--primary); color: #fff; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { font-size: 0.9rem; opacity: 0.85; }

footer { background: var(--primary-dark); color: rgba(255,255,255,0.7); padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; margin-bottom: 30px; }
.footer-col h3 { color: #fff; margin-bottom: 16px; font-size: 1.05rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 0.9rem; line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.85rem; }

.breadcrumb { padding: 15px 0; font-size: 0.9rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 50px 0; text-align: center;
}
.page-header h1 { font-size: 2rem; margin-bottom: 10px; }
.page-header p { opacity: 0.85; max-width: 600px; margin: 0 auto; }

.product-detail { padding: 60px 0; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-gallery { background: var(--bg-gray); border-radius: var(--radius); padding: 30px; display: flex; align-items: center; justify-content: center; min-height: 400px; }
.product-info h1 { font-size: 1.8rem; color: var(--primary); margin-bottom: 15px; }
.product-info .desc { color: var(--text-light); margin-bottom: 20px; line-height: 1.8; }
.product-info .specs { margin-top: 20px; }
.product-info .specs h3 { margin-bottom: 10px; color: var(--primary); }

.article-content { max-width: 800px; margin: 0 auto; padding: 50px 20px; }
.article-content h1 { font-size: 2rem; margin-bottom: 15px; color: var(--primary); }
.article-meta { color: var(--text-light); margin-bottom: 30px; font-size: 0.9rem; }
.article-body { line-height: 1.9; }
.article-body p { margin-bottom: 16px; }
.article-body h2 { font-size: 1.4rem; margin: 30px 0 15px; color: var(--primary); }
.article-body h3 { font-size: 1.2rem; margin: 20px 0 10px; }

.cta-section {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff; padding: 50px 0; text-align: center;
}
.cta-section h2 { font-size: 1.8rem; margin-bottom: 10px; }
.cta-section p { opacity: 0.9; margin-bottom: 25px; }
.cta-section .btn { border-color: #fff; }

@media (max-width: 768px) {
  .hero h2 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .mobile-toggle { display: block; }
  nav ul {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 10px;
    box-shadow: var(--shadow);
  }
  nav ul.show { display: flex; }
  nav a { display: block; padding: 12px 16px; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .news-item { flex-direction: column; }
  .news-date { align-self: flex-start; }
  .header-inner { flex-wrap: wrap; }
  nav { width: 100%; position: relative; }
}

@media (max-width: 480px) {
  .hero { padding: 50px 0; }
  .hero h2 { font-size: 1.5rem; }
  .section { padding: 40px 0; }
  .products-grid { grid-template-columns: 1fr; }
}
