/* ===== 全局重置 & 基础 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

body {
  background: #0f0f1a;
  color: #e0e0e0;
  transition: background 0.3s, color 0.3s;
}

body.light-mode {
  background: #f5f5f5;
  color: #222;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 导航 ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.3s;
}

body.light-mode nav {
  background: rgba(245, 245, 245, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #f7971e;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #f7971e;
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-btn,
.dark-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #e0e0e0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

body.light-mode .search-btn,
body.light-mode .dark-toggle {
  color: #222;
  background: rgba(0, 0, 0, 0.06);
}

.search-btn:hover,
.dark-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 1.5rem;
  cursor: pointer;
}

body.light-mode .mobile-menu-btn {
  color: #222;
}

/* 移动菜单 */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: rgba(15, 15, 26, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  z-index: 999;
  transition: transform 0.3s;
}

body.light-mode .mobile-menu {
  background: rgba(245, 245, 245, 0.98);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1rem;
}

body.light-mode .mobile-menu a {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== Hero ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background: radial-gradient(ellipse at 30% 20%, rgba(247, 151, 30, 0.12), transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(255, 210, 0, 0.08), transparent 60%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  z-index: 2;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: #b0b0b0;
  margin-bottom: 32px;
  line-height: 1.6;
}

body.light-mode .hero p {
  color: #555;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #1a1a2e;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 30px rgba(247, 151, 30, 0.3);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(247, 151, 30, 0.4);
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  border-radius: 50px;
  background: rgba(247, 151, 30, 0.15);
  color: #f7971e;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(247, 151, 30, 0.2);
}

/* ===== 通用区块 ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  text-align: center;
  color: #999;
  margin-bottom: 48px;
  font-size: 1.05rem;
}

body.light-mode .section-sub {
  color: #666;
}

/* ===== 品牌介绍 ===== */
.brand-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.brand-text p {
  line-height: 1.8;
  margin-bottom: 16px;
  color: #ccc;
}

body.light-mode .brand-text p {
  color: #444;
}

.brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s;
}

body.light-mode .stat-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: #999;
  margin-top: 4px;
}

/* ===== 产品中心 ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s, box-shadow 0.3s;
}

body.light-mode .product-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(247, 151, 30, 0.15);
}

.product-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.product-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #f0f0f0;
}

body.light-mode .product-card h3 {
  color: #222;
}

.product-card p {
  color: #999;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== 案例展示 ===== */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.case-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s;
}

body.light-mode .case-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.case-card:hover {
  transform: translateY(-5px);
}

.case-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.case-info {
  padding: 20px;
}

.case-info h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.case-info p {
  color: #999;
  font-size: 0.9rem;
}

/* ===== 合作伙伴 ===== */
.partner-scroll {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.partner-scroll::-webkit-scrollbar {
  display: none;
}

.partner-item {
  flex-shrink: 0;
  width: 120px;
  height: 60px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #999;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}

body.light-mode .partner-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.partner-item:hover {
  background: rgba(247, 151, 30, 0.1);
}

/* ===== 客户评价 ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.light-mode .testimonial-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.testimonial-text {
  font-style: italic;
  color: #ccc;
  line-height: 1.7;
  margin-bottom: 16px;
}

body.light-mode .testimonial-text {
  color: #555;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-role {
  font-size: 0.85rem;
  color: #999;
}

/* ===== 新闻资讯 ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s;
}

body.light-mode .news-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-date {
  font-size: 0.85rem;
  color: #f7971e;
  margin-bottom: 8px;
}

.news-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.news-card p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s;
}

body.light-mode .faq-item {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
}

.faq-question span {
  transition: transform 0.3s;
}

.faq-item.open .faq-question span {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 18px;
  color: #999;
  line-height: 1.7;
  display: none;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ===== HowTo ===== */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  transition: transform 0.3s;
}

.step-card:hover {
  transform: translateY(-5px);
}

body.light-mode .step-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.step-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step-card p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== 联系我们 ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #ccc;
  font-size: 1rem;
}

body.light-mode .contact-info p {
  color: #444;
}

.contact-info svg {
  flex-shrink: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e0e0e0;
  font-size: 1rem;
  margin-bottom: 16px;
  outline: none;
  transition: border 0.3s;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: #222;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f7971e;
}

.contact-form textarea {
  height: 120px;
  resize: vertical;
}

.contact-form button {
  padding: 14px 40px;
  border-radius: 50px;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #1a1a2e;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.3s;
}

.contact-form button:hover {
  transform: translateY(-3px);
}

/* ===== 友情链接 ===== */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.friend-links a {
  color: #999;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.3s, color 0.3s;
}

body.light-mode .friend-links a {
  background: rgba(0, 0, 0, 0.03);
}

.friend-links a:hover {
  background: rgba(247, 151, 30, 0.1);
  color: #f7971e;
}

/* ===== Footer ===== */
footer {
  background: rgba(0, 0, 0, 0.3);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-mode footer {
  background: rgba(0, 0, 0, 0.03);
  border-top-color: rgba(0, 0, 0, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h5 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #f0f0f0;
}

body.light-mode .footer-col h5 {
  color: #222;
}

.footer-col a {
  display: block;
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: #f7971e;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #999;
  font-size: 0.85rem;
  line-height: 1.8;
}

body.light-mode .footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.06);
}

.footer-bottom a {
  color: #f7971e;
}

/* ===== 返回顶部 ===== */
.back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  color: #1a1a2e;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(247, 151, 30, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 999;
}

.back-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-top:hover {
  transform: translateY(-5px);
}

/* ===== 搜索弹窗 ===== */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.search-overlay.open {
  display: flex;
}

.search-modal {
  background: #1a1a2e;
  border-radius: 24px;
  padding: 32px;
  width: 90%;
  max-width: 500px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .search-modal {
  background: #f5f5f5;
  border-color: rgba(0, 0, 0, 0.1);
}

.search-modal input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: #e0e0e0;
  font-size: 1.1rem;
  outline: none;
}

body.light-mode .search-modal input {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: #222;
}

.search-modal .close-search {
  display: block;
  margin-top: 16px;
  text-align: right;
  color: #999;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ===== 滚动动画 ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .brand-intro {
    grid-template-columns: 1fr;
  }

  .brand-stats {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .stat-number {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .brand-stats {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }
}