/* 基础样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, 'Microsoft YaHei', 'PingFang SC', sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}
a { color: #ff6b35; text-decoration: none; }
a:hover { color: #ff8c5a; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 顶部电话栏 */
.top-phone-bar {
  background: linear-gradient(135deg, #ff6b35, #ff8c5a);
  color: #fff;
  padding: 15px 20px;
  text-align: center;
  font-size: 1.15em;
  box-shadow: 0 2px 15px rgba(255,107,53,0.3);
}
.top-phone-bar .phone-number {
  color: #fff;
  font-weight: bold;
  font-size: 1.4em;
  margin: 0 15px;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
  padding: 5px 20px;
  border-radius: 25px;
  display: inline-block;
  transition: all 0.3s;
}
.top-phone-bar .phone-number:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}
.top-phone-bar .service-time {
  background: rgba(0,0,0,0.1);
  padding: 3px 12px;
  border-radius: 15px;
  font-size: 0.85em;
  margin-left: 10px;
}

/* 导航栏 */
.navbar {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}
.nav-logo a {
  font-size: 1.5em;
  font-weight: bold;
  color: #ff6b35;
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: #333;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #ff6b35;
  border-bottom-color: #ff6b35;
}
.nav-user {
  display: flex;
  gap: 15px;
}
.btn-login,
.btn-register {
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s;
}
.btn-login {
  border: 1px solid #ff6b35;
  color: #ff6b35;
}
.btn-login:hover {
  background: #ff6b35;
  color: #fff;
}
.btn-register {
  background: #ff6b35;
  color: #fff;
}
.btn-register:hover {
  background: #ff8c5a;
}

/* 英雄区 */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 120px 20px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
  position: relative;
}
.hero p {
  font-size: 1.35em;
  opacity: 0.95;
  margin-bottom: 40px;
  position: relative;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 40px auto;
  max-width: 600px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  position: relative;
}
.stat {
  text-align: center;
}
.stat-num {
  display: block;
  font-size: 2.8em;
  font-weight: bold;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.stat-label {
  font-size: 0.9em;
  opacity: 0.9;
}
.btn-hero {
  display: inline-block;
  padding: 18px 45px;
  background: #fff;
  color: #667eea;
  border-radius: 35px;
  font-size: 1.15em;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.btn-hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* 特色功能 */
.features {
  padding: 80px 20px;
  background: #fff;
}
.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 50px;
  color: #333;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}
.feature-card {
  text-align: center;
  padding: 35px 30px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b35, #ff8c5a, #ffd93d);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.feature-card:hover::before {
  transform: scaleX(1);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  border-color: rgba(255,107,53,0.2);
}
.feature-icon {
  font-size: 3.5em;
  margin-bottom: 20px;
  display: block;
}
.feature-card h3 {
  font-size: 1.35em;
  margin-bottom: 15px;
  color: #333;
  font-weight: 600;
}
.feature-card p {
  color: #666;
  line-height: 1.7;
}

/* 热门帖子 */
.hot-posts,
.featured-products {
  padding: 80px 20px;
}
.post-list {
  display: grid;
  gap: 20px;
}
.post-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s;
  border-left: 4px solid #ff6b35;
}
.post-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  border-left-width: 6px;
  transform: translateX(5px);
}
.post-title {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 10px;
  font-weight: 500;
}
.post-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85em;
  color: #888;
}
.btn-more {
  display: inline-block;
  margin-top: 30px;
  color: #ff6b35;
  font-weight: 500;
}

/* 产品网格 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}
.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.product-image {
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
}
.product-info {
  padding: 20px;
}
.product-name {
  font-size: 1.1em;
  font-weight: 500;
  margin-bottom: 10px;
}
.product-price {
  color: #ff6b35;
  font-size: 1.3em;
  font-weight: bold;
}
.product-cod {
  display: inline-block;
  background: #ffece6;
  color: #ff6b35;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.8em;
  margin-top: 10px;
}

/* 打赏区域 */
.donate-section {
  padding: 80px 20px;
  background: #fff;
  text-align: center;
}
.section-desc {
  text-align: center;
  color: #666;
  margin-bottom: 40px;
}
.donate-card {
  max-width: 300px;
  margin: 0 auto;
  background: #f8f9fa;
  padding: 30px;
  border-radius: 15px;
}
.donate-qr img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 15px;
}
.donate-qr p {
  color: #666;
}

/* 页脚 */
.footer {
  background: #2d3436;
  color: #fff;
  padding: 40px 20px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #aaa;
}
.footer-links a:hover {
  color: #fff;
}
.footer-beian {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.footer-beian a {
  color: #aaa;
  font-size: 0.9em;
}
.beian-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}
.footer-copy {
  text-align: center;
  color: #666;
  font-size: 0.85em;
}

/* 表单样式 */
.form-container {
  max-width: 450px;
  margin: 60px auto;
  background: #fff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}
.form-title {
  text-align: center;
  font-size: 1.8em;
  color: #333;
  margin-bottom: 30px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #eee;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #ff6b35;
}
.btn-submit {
  width: 100%;
  padding: 15px;
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-submit:hover {
  background: #ff8c5a;
}

/* 论坛样式 */
.forum-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.btn-new-post {
  padding: 12px 25px;
  background: #ff6b35;
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
}

/* 响应式 */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero h1 { font-size: 2em; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .footer-beian { flex-direction: column; }
}
