/* === Product Detail Page Styles === */

/* === CSS Variables === */
:root {
  --bg: #ffffff;
  --bg2: #f8fafc;
  --ink: #1e293b;
  --muted: #64748b;
  --rule: #e2e8f0;
  --accent: #0ea5e9;
  --accent2: #f97316;
  --accent-dark: #0284c7;
  --gradient-start: #0c4a6e;
  --gradient-end: #0ea5e9;
  --max: 1200px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* === Base Styles === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* === Top Bar === */
.top-bar {
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  color: white;
  padding: 0.5rem 0;
  font-size: 0.85rem;
}
.top-bar .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: white; opacity: 0.9; }
.top-bar a:hover { opacity: 1; text-decoration: underline; }

/* === Header === */
.main-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.main-header .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gradient-start);
}
.logo img { height: 40px; width: auto; }
.main-nav { display: flex; gap: 2.5rem; }
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a:hover,
.main-nav a.active { color: var(--accent); }
.header-btns { display: flex; gap: 1rem; }
.btn {
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  display: inline-block;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--accent));
  color: white;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: white;
}

/* === Breadcrumb === */
.breadcrumb {
  background: var(--bg2);
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* === Product Hero === */
.product-hero {
  background: linear-gradient(135deg, rgba(12, 74, 110, 0.95), rgba(14, 165, 233, 0.9));
  color: white;
  padding: 4rem 0;
}
.product-hero .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.product-hero-content { max-width: 550px; }
.product-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255,255,255,0.2);
}
.product-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.product-hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}
.product-hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-btns .btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}
.hero-btns .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: white;
}
.hero-btns .btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
}
.product-hero-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.product-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Product Stats === */
.product-stats {
  background: white;
  padding: 3rem 0;
  border-bottom: 1px solid var(--rule);
}
.product-stats .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.product-stats .stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gradient-start), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}
.product-stats .stat-item p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* === Section Common === */
.section {
  padding: 5rem 0;
}
.section .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}
.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* === Feature Grid === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--bg2);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid transparent;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.1);
}
.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* === Module Grid === */
.modules { background: var(--bg2); }
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.module-card {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.3s;
}
.module-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.module-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.module-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.module-card a {
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}
.module-card a:hover { color: var(--accent-dark); }

/* === Solutions === */
.solutions { background: white; }
.solution-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.solution-item {
  background: var(--bg2);
  border-radius: 12px;
  padding: 2rem;
  border-left: 4px solid var(--accent);
}
.solution-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.solution-item p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.solution-item a {
  color: var(--accent);
  font-weight: 500;
}
.solution-item a:hover { color: var(--accent-dark); }

/* === Industries Detail === */
.industries-detail { background: var(--bg2); }
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.industry-tag {
  padding: 0.5rem 1.25rem;
  border-radius: 20px;
  background: white;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid var(--rule);
  transition: all 0.3s;
}
.industry-tag:hover,
.industry-tag.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.industry-detail-content {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.industry-detail-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.industry-detail-content p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.industry-detail-content ul {
  list-style: none;
  margin-bottom: 2rem;
}
.industry-detail-content ul li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--ink);
}
.industry-detail-content ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* === Intro Text === */
.intro-text {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}
.intro-text p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

/* === CTA Section === */
.cta {
  background: linear-gradient(135deg, var(--gradient-start), var(--accent));
  color: white;
  text-align: center;
}
.cta h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-btns .btn {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}
.cta-btns .btn-primary {
  background: white;
  color: var(--gradient-start);
}
.cta-btns .btn-primary:hover {
  background: var(--bg2);
  transform: translateY(-2px);
}
.cta-btns .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: white;
}

/* === Footer === */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
}
.footer .container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  /* 仅保留 LOGO 时与右侧各列上下居中对齐 */
  align-self: center;
}
.footer-brand .logo {
  color: white;
  margin-bottom: 0;
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a:hover { color: white; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* === Mobile Menu === */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--ink);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .product-hero .container { grid-template-columns: 1fr; }
  .product-hero-image { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .product-stats .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-btns { display: none; }
  .mobile-menu-btn { display: block; }
  .product-hero h1 { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .product-stats .container { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
