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

:root {
  /* 高级金色主题配色 */
  --primary-color: #D4AF37;
  --primary-light: #F4D03F;
  --primary-dark: #996515;
  --bg-dark: #0A0A0A;
  --bg-card: #141414;
  --text-primary: #FFFFFF;
  --text-secondary: #B3B3B3;
  
  /* 阴影效果 */
  --shadow-sm: 0 2px 10px rgba(212, 175, 55, 0.1);
  --shadow-md: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-lg: 0 8px 30px rgba(212, 175, 55, 0.2);
  
  /* 渐变和边框 */
  --gradient-gold: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  --gradient-dark: linear-gradient(180deg, var(--bg-dark) 0%, #000000 100%);
  --border-gold: 1px solid rgba(212, 175, 55, 0.3);
}

body {
  margin: 0;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gradient-dark);
  color: var(--text-primary);
  min-height: 100vh;
  letter-spacing: 0.02em;
}

/* 导航栏样式恢复并优化 */
#main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color 0.3s ease;
}

#main-nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: var(--border-gold);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Advertisement styles */
.advertisement {
  background-color: var(--bg-card);
  padding: 1.5rem;
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
  border-radius: 12px;
  border: var(--border-gold);
  box-shadow: var(--shadow-sm);
}

.advertisement a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.advertisement a:hover {
  color: var(--primary-light);
}

/* 头部区域样式 */
header {
  padding: 2rem 2rem 4rem;
  text-align: center;
  position: relative;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), transparent);
}

.header-content {
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 8rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.header-desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 分类导航样式 */
#category-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  padding: 0 2rem;
}

/* Footer样式 */
footer {
  background: var(--bg-card);
  border-top: var(--border-gold);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.friend-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.friend-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 1rem;
  border: var(--border-gold);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  min-width: 200px;
}

.friend-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
}

.friend-link h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.friend-link p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

.footer-copyright {
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.9rem;
  margin-top: 2rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 15px;
  text-align: center;
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.category-btn {
  padding: 0.8rem 1.6rem;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.category-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.category-btn.active {
  background: var(--gradient-gold);
  color: var(--bg-dark);
  border: none;
  font-weight: 600;
}

/* 调整产品网格布局 */
#products-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem 8rem;
}

.category-section {
  margin-bottom: 5rem;
}

/* 分类标题样式简化 */
.category-title {
  font-size: 1.75rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* 移除之前添加的下划线效果 */
.category-title::after {
  display: none;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* 优化产品卡片样式 */
.product-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 800px;
  border: var(--border-gold);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
}

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

.product-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: var(--border-gold);
}

.product-info h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.3;
}

.product-description {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  margin-bottom: 1rem;
}

.product-reason {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover .product-reason {
  opacity: 1;
  height: auto;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: var(--border-gold);
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.btn-detail,
.btn-download {
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  flex: 1;
}

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

.btn-download {
  background: var(--gradient-gold);
  color: var(--bg-dark);
  border: none;
}

.btn-detail:hover {
  background: rgba(212, 175, 55, 0.1);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* 响应式布局优化 */
@media (max-width: 1400px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  
  #products-grid {
    padding: 2rem 2rem 6rem;
  }
}

@media (max-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  h1 {
    font-size: 3rem;
  }
  
  .header-desc {
    font-size: 1.1rem;
  }
}

@media (max-width: 640px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
  
  #products-grid {
    padding: 1.5rem 1rem 4rem;
  }
  
  header {
    padding: 8rem 1.5rem 4rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .product-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 6rem 1rem 4rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .header-desc {
    font-size: 1.25rem;
  }
  
  #category-nav {
    padding: 0 1rem;
    gap: 0.8rem;
  }
  
  /* Footer样式 */
footer {
  background-color: var(--bg-card);
  padding: 3rem 2rem;
  margin-top: 4rem;
  border-top: var(--border-gold);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding: 15px;
  text-align: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.category-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* About page styles */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-header {
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 60px;
  margin-bottom: 2rem;
  border: var(--border-gold);
}

.about-header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 0;
  font-weight: 500;
}

.about-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 560px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
}

.contact-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.contact-links a:hover {
  color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .about-content {
    padding: 6rem 1.5rem 4rem;
  }
  
  .about-header h1 {
    font-size: 2rem;
  }
  
  .profile-image {
    width: 100px;
    height: 100px;
  }
  
  .contact-links {
    gap: 2rem;
  }
}

/* Blog page styles */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  /* 隐私政策页面样式 */
  .privacy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
  }
  
  .privacy-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
  }
  
  .privacy-header h1 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
  }
  
  .privacy-text section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .privacy-text section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
  }

  .privacy-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
  }

  .privacy-text h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 28px;
    background-color: var(--primary-color);
    margin-right: 12px;
    border-radius: 2px;
  }

  .privacy-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
  }

  .privacy-text ul {
    list-style-type: none;
    padding-left: 1rem;
    margin: 0 0 1.5rem 0;
  }

  .privacy-text li {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
  }

  .privacy-text li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
  }
  
  .privacy-text ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
  }
  
  .privacy-text li {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    position: relative;
    padding-left: 2rem;
    font-size: 1.1rem;
  }
  
  .privacy-text li:before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.4rem;
    line-height: 1.4;
  }
  
  .privacy-text p {
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
  }
  
  @media (max-width: 768px) {
    .privacy-content {
      padding: 2rem 1rem;
    }
    
    .privacy-header h1 {
      font-size: 2.2rem;
    }
    
    .privacy-text h2 {
      font-size: 1.5rem;
    }
    
    .privacy-text section {
      padding: 1.5rem;
    }
  }
}

.blog-header {
  text-align: center;
  margin-bottom: 4rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post {
  background: var(--bg-card);
  border: var(--border-gold);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-post h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.post-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-post p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.blog-post p.collapsed {
  max-height: 100px;
}

.blog-post p.expanded {
  max-height: 1000px;
}

.post-content {
  transition: max-height 0.3s ease-out;
  overflow: hidden;
}

.post-content.collapsed {
  max-height: 100px;
}

.post-content .extended-content {
  display: none;
}

.post-content.expanded {
  max-height: 1000px;
}

.post-content.expanded .extended-content {
  display: block;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--primary-light);
}

@media (max-width: 768px) {
  .blog-content {
    padding: 6rem 1.5rem 4rem;
  }
  
  .blog-post {
    padding: 1.5rem;
  }
  
  .blog-post h2 {
    font-size: 1.3rem;
  }
}