:root {
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #e94560;
  --color-accent-hover: #ff6b6b;
  --color-text: #2d3436;
  --color-text-light: #636e72;
  --color-bg: #fafbfc;
  --color-white: #ffffff;
  --color-border: #e1e5e9;
  --color-success: #00b894;
  --color-warning: #fdcb6e;
  --color-danger: #d63031;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-main: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-heading: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

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

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-logo:hover {
  color: var(--color-accent);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 8px 14px;
  color: var(--color-text);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
  background: rgba(233,69,96,0.08);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.main-content {
  flex: 1;
  margin-top: var(--header-height);
  padding: 40px 0;
}

.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-white);
  padding: 80px 0;
  margin-top: calc(-40px);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.03'%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");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

.hero-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-image {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: auto;
}

.breadcrumb {
  padding: 15px 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span {
  margin: 0 8px;
}

.section {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.card-body p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.card-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card:hover .card-link::after {
  transform: translateX(4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 40px 0;
}

.quick-entry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.quick-entry-item:hover {
  box-shadow: var(--shadow-md);
  color: var(--color-accent);
}

.quick-entry-icon {
  width: 48px;
  height: 48px;
  background: rgba(233,69,96,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.quick-entry-text {
  font-weight: 500;
  color: var(--color-text);
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.faq-answer-inner a {
  text-decoration: underline;
}

.content-block {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
}

.content-block h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-bg);
}

.content-block h3 {
  font-size: 1.2rem;
  color: var(--color-primary);
  margin: 24px 0 12px;
}

.content-block p {
  margin-bottom: 16px;
  color: var(--color-text);
}

.content-block ul,
.content-block ol {
  margin: 16px 0;
  padding-left: 24px;
}

.content-block li {
  margin-bottom: 8px;
}

.alert-box {
  padding: 20px 24px;
  border-radius: var(--radius-md);
  margin: 24px 0;
  display: flex;
  gap: 16px;
}

.alert-box-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.alert-warning {
  background: rgba(253,203,110,0.15);
  border-left: 4px solid var(--color-warning);
}

.alert-danger {
  background: rgba(214,48,49,0.1);
  border-left: 4px solid var(--color-danger);
}

.alert-success {
  background: rgba(0,184,148,0.1);
  border-left: 4px solid var(--color-success);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.compare-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: var(--color-bg);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  border-radius: 20px;
  background: rgba(233,69,96,0.1);
  color: var(--color-accent);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.related-links {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 40px;
}

.related-links h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.related-links ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.related-links li a {
  display: block;
  padding: 12px 16px;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  transition: all 0.2s ease;
}

.related-links li a:hover {
  color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 16px;
}

.footer-nav h5 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.footer-disclaimer {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.6;
}

.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
}

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

.back-to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-4px);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.product-gallery img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.product-gallery img:hover {
  transform: scale(1.02);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.feature-content p {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.news-item:hover {
  box-shadow: var(--shadow-md);
}

.news-thumb {
  width: 200px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.news-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.news-content h3 {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.news-content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.news-meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.page-404 {
  text-align: center;
  padding: 100px 20px;
}

.page-404 h1 {
  font-size: 6rem;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.page-404 p {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 30px;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.sitemap-section h3 {
  font-size: 1.125rem;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.sitemap-section ul {
  list-style: none;
}

.sitemap-section li {
  margin-bottom: 10px;
}

.sitemap-section a {
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sitemap-section a::before {
  content: "›";
  color: var(--color-accent);
}

.sitemap-section a:hover {
  color: var(--color-accent);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-white);
  padding: 20px;
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  
  .main-nav {
    display: none;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .hero-section {
    padding: 60px 0;
  }
  
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-entry {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-block {
    padding: 24px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .news-item {
    flex-direction: column;
  }
  
  .news-thumb {
    width: 100%;
  }
  
  .news-thumb img {
    height: 180px;
  }
  
  .compare-table {
    display: block;
    overflow-x: auto;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .quick-entry {
    grid-template-columns: 1fr;
  }
  
  .hero-section h1 {
    font-size: 1.5rem;
  }
  
  .page-404 h1 {
    font-size: 4rem;
  }
}
