:root {
  --primary-orange: #ff6b35;
  --scrollbar-color: #fac9b8;
  --light-orange: #ff8c42;
  --accent-orange: #ffa726;
  --deep-orange: #e65100;
  --pure-white: #ffffff;
  --soft-white: #f8f9fa;
  --light-gray: #e9ecef;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  --border-radius: 8px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* 自定义滚动条样式 */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--scrollbar-color), var(--light-orange));
    border-radius: 4px;
    border: 1px solid var(--light-gray);
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--scrollbar-color), var(--scrollbar-color));
  }

  ::-webkit-scrollbar-corner {
    background: var(--light-gray);
  }
}

/* Firefox滚动条样式 */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-color) var(--light-gray);
}

/* 移动端滚动条优化 */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }
  
  ::-webkit-scrollbar-thumb {
    border: none;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 表头吸顶效果 */
#header,
header {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100% !important;
  height: 70px !important;
  transform: none !important;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--pure-white);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--light-orange)
  );
  color: var(--pure-white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: linear-gradient(
    135deg,
    var(--deep-orange),
    var(--primary-orange)
  );
}

.btn-outline {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.btn-outline:hover {
  background: var(--primary-orange);
  color: var(--pure-white);
}

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  width: 100%;
  height: 70px;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
  transform: none !important;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-orange);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

nav a:hover {
  color: var(--primary-orange);
}

nav a.active {
  color: var(--primary-orange);
  font-weight: 600;
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-orange);
  transform: scaleX(1);
  transition: var(--transition);
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

.hero {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* 气泡动画背景 */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 140, 66, 0.08) 50%, rgba(255, 167, 38, 0.05) 100%);
  z-index: 1;
}

/* 创建多个气泡 */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

/* 气泡样式 */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, rgba(255, 107, 53, 0.08) 50%, transparent 100%);
  animation: float 6s ease-in-out infinite;
}

.bubble[data-bubble="1"] {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.bubble[data-bubble="2"] {
  width: 120px;
  height: 120px;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
  animation-duration: 10s;
}

.bubble[data-bubble="3"] {
  width: 60px;
  height: 60px;
  top: 10%;
  left: 70%;
  animation-delay: 4s;
  animation-duration: 7s;
}

.bubble[data-bubble="4"] {
  width: 100px;
  height: 100px;
  top: 80%;
  left: 20%;
  animation-delay: 1s;
  animation-duration: 9s;
}

.bubble[data-bubble="5"] {
  width: 140px;
  height: 140px;
  top: 40%;
  left: 50%;
  animation-delay: 3s;
  animation-duration: 11s;
}

.bubble[data-bubble="6"] {
  width: 90px;
  height: 90px;
  top: 70%;
  left: 60%;
  animation-delay: 5s;
  animation-duration: 8.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translateY(-20px) scale(1.05);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-40px) scale(0.95);
    opacity: 0.4;
  }
  75% {
    transform: translateY(-20px) scale(1.02);
    opacity: 0.7;
  }
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--deep-orange)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--pure-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--light-orange)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--pure-white);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  min-width: 1200px;
}

/* AI图片识别套餐网格 */
.ai-packages-section {
  margin-top: 3rem;
}

.ai-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.ai-package-card {
  background: var(--pure-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.ai-package-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-orange);
}

.ai-package-card.popular {
  border: 2px solid var(--primary-orange);
  transform: scale(1.02);
  background: linear-gradient(145deg, #ffffff 0%, #fef7f3 100%);
  box-shadow: 0 15px 35px rgba(255, 107, 53, 0.15);
}

.ai-package-card.popular:hover {
  transform: scale(1.02) translateY(-10px);
  box-shadow: 0 25px 50px rgba(255, 107, 53, 0.25);
}

.popular-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: var(--pure-white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.ai-package-footer {
  padding: 1.5rem 2rem;
  background: var(--pure-white);
  border-top: 1px solid var(--light-gray);
}

.ai-buy-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-orange), var(--light-orange));
  color: var(--pure-white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ai-buy-btn:hover {
  background: linear-gradient(135deg, var(--deep-orange), var(--primary-orange));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.ai-buy-btn.popular {
  background: linear-gradient(135deg, var(--deep-orange), var(--primary-orange));
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.ai-buy-btn.popular:hover {
  background: linear-gradient(135deg, var(--primary-orange), var(--deep-orange));
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 107, 53, 0.4);
}

.ai-package-header {
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--light-orange)
  );
  color: var(--pure-white);
  padding: 3rem 2.5rem 2.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ai-package-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.ai-package-name {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.ai-package-price {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.currency {
  font-size: 1.8rem;
  opacity: 0.9;
}

.ai-package-usage {
  font-size: 1.1rem;
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.25);
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.product-card {
  background: var(--pure-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  border: 1px solid var(--light-gray);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-header {
  background: linear-gradient(
    135deg,
    var(--primary-orange),
    var(--light-orange)
  );
  color: var(--pure-white);
  padding: 2rem;
  text-align: center;
}

.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  opacity: 0.9;
}

.product-features {
  padding: 2rem;
}

.product-features ul {
  list-style: none;
}

.product-features li {
  padding: 0.5rem 0;
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: bold;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-text h3 {
  color: var(--primary-orange);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--soft-white);
  border-radius: var(--border-radius);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-orange);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

footer {
  background: var(--dark-gray);
  color: var(--pure-white);
  padding: 3rem 0 1rem;
  text-align: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary-orange);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: #adb5bd;
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--primary-orange);
}

.footer-bottom {
  border-top: 1px solid #495057;
  padding-top: 1rem;
  color: #6c757d;
}

.footer-bottom p {
  margin: 0;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
}

.footer-bottom p:hover {
  color: var(--primary-orange);
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--primary-orange);
  text-decoration: underline;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* AI套餐移动端适配 */
  .ai-packages-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: none;
  }

  .ai-package-card {
    min-height: 250px;
  }

  .ai-package-card.popular {
    transform: none;
  }

  .ai-package-card.popular:hover {
    transform: translateY(-5px);
  }

  /* 服务卡片PC端两列布局 */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.ai-package-price {
  font-size: 3rem;
}

.ai-package-name {
  font-size: 1.5rem;
}

.ai-package-usage {
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
}

.ai-package-footer {
  padding: 1.25rem 1.5rem;
}

.ai-buy-btn {
  padding: 0.875rem 1.5rem;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--pure-white);
    box-shadow: var(--shadow-light);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
  }

  nav li {
    border-bottom: 1px solid var(--light-gray);
  }

  nav a {
    display: block;
    padding: 1rem 0;
  }

  .hero {
    padding: 60px 20px 80px;
    background-attachment: scroll;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 手机端气泡动画适配 */
  .bubble[data-bubble="1"] {
    width: 60px;
    height: 60px;
  }

  .bubble[data-bubble="2"] {
    width: 80px;
    height: 80px;
  }

  .bubble[data-bubble="3"] {
    width: 45px;
    height: 45px;
  }

  .bubble[data-bubble="4"] {
    width: 70px;
    height: 70px;
  }

  .bubble[data-bubble="5"] {
    width: 90px;
    height: 90px;
  }

  .bubble[data-bubble="6"] {
    width: 55px;
    height: 55px;
  }

  .hero .container {
    width: 100%;
    padding: 0;
  }

  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: none;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-width: auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-icon svg {
    width: 24px;
    height: 24px;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
