/* ========================================
   一键达旧衣服回收 - 公共样式
   ======================================== */

/* CSS变量 */
:root {
  --primary-color: #0066CC;
  --primary-dark: #0052A3;
  --secondary-color: #00A3E0;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #f5f7fa;
  --white: #ffffff;
  --border-color: #e6e6e6;
  --shadow: 0 2px 8px rgba(0, 102, 204, 0.1);
  --radius: 8px;
  --max-width: 480px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-bottom: 70px;
}

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

ul, ol {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ========================================
   Header - 顶部Logo区域
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--primary-color);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 12px 15px;
}

.logo {
  font-size: 14px;
  font-weight: bold;
  color: var(--white);
  white-space: nowrap;
}

/* ========================================
   右侧悬浮Tab导航
   ======================================== */
.right-nav {
  position: fixed;
  right: calc(50% - var(--max-width) / 2);
  top: 50%;
  transform: translateY(-50%);
  z-index: 101;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.right-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  font-size: 18px;
  transition: all 0.3s;
}

.right-nav a:hover,
.right-nav a.active {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.right-nav .nav-tip {
  display: none;
  position: absolute;
  right: 50px;
  background: var(--text-color);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.right-nav a:hover .nav-tip {
  display: block;
}

/* ========================================
   Main Content
   ======================================== */
.main {
  padding-top: 50px;
}

/* ========================================
   Banner轮播
   ======================================== */
.banner {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.banner-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.banner-slide {
  min-width: 100%;
}

.banner-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.banner-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
}

.banner-dot.active {
  background: var(--primary-color);
  width: 20px;
  border-radius: 4px;
}

/* ========================================
   Section通用
   ======================================== */
.section {
  padding: 30px 0;
  background: var(--white);
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 20px;
  padding: 0 15px;
}

.section-title span {
  color: var(--primary-color);
}

/* ========================================
   快捷入口
   ======================================== */
.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 20px 15px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 15px 5px;
  background: var(--bg-color);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.quick-item:hover {
  background: var(--primary-color);
  color: var(--white);
}

.quick-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.quick-text {
  font-size: 12px;
  text-align: center;
}

/* ========================================
   优势展示
   ======================================== */
.advantages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 0 15px 20px;
}

.advantage-item {
  text-align: center;
  padding: 20px 10px;
  background: var(--bg-color);
  border-radius: var(--radius);
}

.advantage-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.advantage-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 5px;
}

.advantage-desc {
  font-size: 11px;
  color: var(--text-light);
}

/* ========================================
   服务流程
   ======================================== */
.process {
  padding: 20px 15px;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
  text-align: center;
}

.process-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 8px;
}

.process-text {
  font-size: 12px;
  color: var(--text-color);
  line-height: 1.4;
}

.process-arrow {
  display: none;
}

/* ========================================
   FAQ手风琴
   ======================================== */
.faq-list {
  padding: 0 15px;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
}

.faq-icon {
  font-size: 12px;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: 15px;
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.8;
}

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

/* ========================================
   服务卡片
   ======================================== */
.service-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--bg-color);
  margin: 10px 15px;
  border-radius: var(--radius);
}

.service-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 30px;
  flex-shrink: 0;
}

.service-info h3 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
}

.service-info p {
  font-size: 13px;
  color: var(--text-light);
}

.service-tag {
  display: inline-block;
  padding: 2px 8px;
  background: #ff6b6b;
  color: var(--white);
  font-size: 10px;
  border-radius: 4px;
  margin-left: 5px;
}

/* ========================================
   联系方式
   ======================================== */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 15px;
  text-align: center;
}

.contact-qr {
  width: 150px;
  height: 150px;
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  border-radius: var(--radius);
  overflow: hidden;
}

.contact-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-label {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 5px;
}

.contact-value {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-color);
}

.contact-phone {
  font-size: 24px;
  color: var(--primary-color);
  margin: 10px 0;
}

/* ========================================
   按钮
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--primary-dark);
}

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

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

/* ========================================
   悬浮底部
   ======================================== */
.floating-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 15px;
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-phone {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: bold;
  color: var(--primary-color);
}

.floating-btn {
  padding: 10px 20px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 20px;
  font-size: 14px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--text-color);
  color: var(--white);
  padding: 20px 15px;
  text-align: center;
  margin-top: 20px;
}

.footer-logo {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 5px;
}

.footer-beian {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 10px;
}

/* ========================================
   关于页面
   ======================================== */
.about-content {
  padding: 20px 15px;
}

.about-intro {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 20px;
}

.about-info {
  background: var(--bg-color);
  padding: 15px;
  border-radius: var(--radius);
}

.about-info-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.about-info-item:last-child {
  border-bottom: none;
}

.about-info-label {
  width: 90px;
  font-size: 13px;
  color: var(--text-light);
}

.about-info-value {
  flex: 1;
  font-size: 13px;
  color: var(--text-color);
}

/* ========================================
   页面头部
   ======================================== */
.page-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 40px 15px 30px;
  text-align: center;
}

.page-title {
  font-size: 22px;
  font-weight: bold;
}

.page-subtitle {
  font-size: 13px;
  margin-top: 5px;
  opacity: 0.8;
}

/* ========================================
   返回顶部
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: calc(50% - 200px);
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 98;
}

.back-to-top.show {
  opacity: 1;
}

/* ========================================
   动画
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  animation: fadeIn 0.5s ease;
}

/* ========================================
   响应式适配
   ======================================== */
@media (max-width: 480px) {
  body {
    max-width: 100%;
  }

  .header-inner {
    padding: 10px 12px;
  }

  .right-nav {
    right: 0;
  }

  .right-nav a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .quick-entry {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 15px 12px;
  }

  .quick-icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .advantages {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .floating-bar {
    padding: 8px 12px;
  }

  .back-to-top {
    right: 10px;
  }
}
