/* ============================================
   首页特定样式
   ============================================ */
.page-wrapper {
  overflow-x: hidden;
}

/* ============================================
   Hero 首屏
   ============================================ */
.hero {
  margin-top: var(--navbar-height);
  background: var(--color-bg-hero);
}

.hero-bg {
  text-align: center;
}

.hero-inner {
  display: inline-block;
  position: relative;
  width: 100%;
  max-width: var(--max-width);
}

.hero-cover-img {
  margin: auto;
}

.hero-cta {
  position: absolute;
  background: url('/images/CoverButton_240x75.png');
  background-size: cover;
  width: calc(240px * var(--hero-scale-ratio));
  height: calc(75px * var(--hero-scale-ratio));
  bottom: calc(90px * var(--hero-scale-ratio));
  left: calc(97px * var(--hero-scale-ratio));
  text-indent: -10000px;
  transition: var(--transition-base);
}

.hero-cta:hover {
  transform: translateY(-5px) scale(1.02);
  filter: brightness(1.05);
}

/* ============================================
   波浪线装饰
   ============================================ */
.wave-divider {
  margin-top: min(-10px, calc(-44px * var(--hero-scale-ratio)));
  position: relative;
}

.wave-divider img {
  width: 100%;
  height: max(10px, calc(50px * var(--hero-scale-ratio)));
}

.wave-divider-two {
  margin: 0;
}

/* ============================================
   AI工具展示区域
   ============================================ */
.tools-section {
  background: var(--color-bg-tools);
  position: relative;
}

.section-header {
  text-align: center;
  position: relative;
  max-width: var(--max-width);
  margin: auto;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.section-deco-left {
  position: absolute;
  width: calc(57px * var(--hero-scale-ratio));
  left: calc(350px * var(--hero-scale-ratio));
  top: calc(80px * var(--hero-scale-ratio));
  z-index: 100;
  animation: float 3s ease-in-out infinite;
}

.section-title {
  padding-top: calc(40px * var(--hero-scale-ratio));
  padding-bottom: calc(20px * var(--hero-scale-ratio));
}

.title-img {
  width: max(240px, calc(545px * var(--hero-scale-ratio)));
  margin: auto;
}

.tool-card {
  max-width: var(--max-width);
  margin: 0 auto;
}

.tool-card-left {
  flex: 0 0 420px;
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.tool-sparkle {
  color: var(--color-primary);
  font-size: 20px;
}

.tool-name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text-primary);
}

.tool-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  background: var(--color-bg-page);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-light);
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.feature-dot.green {
  background: var(--color-accent-green);
}

.feature-dot.blue {
  background: var(--color-accent-blue);
}

.feature-dot.orange {
  background: var(--color-accent-orange);
}

.tool-card-right {
  flex: 1;
  overflow: hidden;
}

.tool-showcase-img {
  transition: var(--transition-base);
  cursor: pointer;
}

.tool-showcase-img:hover {
  transform: translateY(-5px) scale(1.02) rotate(1deg);
}

/* ============================================
   工具入口网格（4 卡片）
   ============================================ */
.tools-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl) var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.tool-item {
  position: relative;
  display: block;
  min-height: 270px;
  background: #fdfcfb;
  border-radius: 28px;
  overflow: hidden;
  transition: var(--transition-base);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.03);
}

.tool-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.tool-item-info {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--space-2xl);
  max-width: 58%;
}

.tool-item-icon {
  width: 45px;
  height: 45px;
  margin-bottom: var(--space-md);
}

.tool-item-title {
  font-size: 32px;
  font-weight: 1000;
  color: #1a1a1a;
  line-height: 1.25;
}

.tool-item-sub {
  display: block;
  font-size: 24px;
  font-weight: 1000;
}

.tool-item-desc {
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  color: #9a9a9a;
  line-height: 1.9;
}

.tool-item-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--space-lg);
  padding: 11px 26px;
  background: var(--color-primary);
  border-radius: 999px;
  font-size: var(--font-size-md);
  font-weight: 600;
  color: #1a1a1a;
  transition: var(--transition-base);
}

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

.tool-item-arrow {
  transition: var(--transition-base);
}

.tool-item:hover .tool-item-arrow {
  transform: translateX(4px);
}

.tool-item-img {
  position: absolute;
  z-index: 1;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 105%;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .tools-grid {
    grid-template-columns: 1fr;
    padding: var(--space-md) var(--space-md) var(--space-xl);
    gap: var(--space-md);
  }
  .tool-item {
    min-height: 190px;
    border-radius: 20px;
  }
  .tool-item:hover {
    transform: none;
    box-shadow: none;
  }
  .tool-item-info {
    padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-md);
    max-width: 55%;
  }
  .tool-item-icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-sm);
  }
  .tool-item-title {
    font-size: 20px;
  }
  .tool-item-sub {
    font-size: 15px;
  }
  .tool-item-desc {
    font-size: 12px;
    line-height: 1.7;
  }
  .tool-item-btn {
    margin-top: var(--space-md);
    padding: 8px 18px;
    font-size: 13px;
  }
  .tool-item-img {
    height: 92%;
    right: -8px;
  }
}

/* ============================================
   定价方案区域
   ============================================ */
.pricing-section {
  background: var(--color-bg-pricing);
}

.pricing-header {
  max-width: var(--max-width);
  margin: auto;
  position: relative;
  margin-bottom: calc(var(--space-2xl) * var(--hero-scale-ratio));
}

.pricing-deco {
  position: absolute;
  right: 0;
  top: 0;
  width: calc(204px * var(--hero-scale-ratio));
}

.pricing-cards {
  max-width: var(--max-width);
  padding: 0 calc(var(--space-xl) * var(--hero-scale-ratio));
  margin: auto;
  display: flex;
  gap: calc(var(--space-xl) * var(--hero-scale-ratio));
  align-items: stretch;
}

.pricing-card {
  flex: 1;
  background: var(--color-text-white);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  border: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

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

.card-badge {
  position: absolute;
  top: 19px;
  right: -32px;
  font-size: var(--font-size-xs);
  padding: 6px 42px;
  font-weight: 600;
  transform: rotate(45deg);
  transform-origin: center center;
  clip-path: polygon(24% 0%, 76% 0%, 100% 100%, 0% 100%);
}

.free-badge {
  background: var(--color-accent-green);
  color: var(--color-text-white);
}

.vip-badge {
  background: var(--color-primary);
  color: var(--color-text-primary);
}

.plan-name {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.plan-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-lg);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.price-symbol {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text-primary);
}

.price-value {
  font-size: 50px;
  font-weight: 800;
  color: var(--color-text-primary);
  line-height: 1;
}

.price-unit {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

.price-original {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  text-decoration: line-through;
  width: 100%;
  margin-top: var(--space-xs);
}

.plan-features {
  flex: 1;
  margin-bottom: var(--space-lg);
}

.plan-features li {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  padding: var(--space-sm) 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.check-icon {
  color: var(--color-accent-green);
  font-weight: 700;
  font-size: var(--font-size-sm);
}

.plan-btn {
  display: block;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-lg);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.free-btn {
  background: var(--color-accent-green);
  color: var(--color-text-white);
}

.free-btn:hover {
  background: #43A047;
}

.vip-btn {
  background: var(--color-primary);
  color: var(--color-text-primary);
  position: relative;
  overflow: hidden;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 1000%;
  }
}

.vip-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 30%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: shine 6s ease-in-out infinite;
  pointer-events: none;
  transform-origin: center center;
  transform: skewX(-25deg);
}

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

.points-btn {
  background: var(--color-accent-purple);
  color: var(--color-text-white);
}

.points-btn:hover {
  background: #8A6FC4;
}

/* 积分列表 */
.points-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.points-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  font-size: var(--font-size-base);
  position: relative;
  transition: all var(--transition-fast);
}

.points-item:hover,
.points-item.active {
  border-color: var(--color-accent-purple);
  background: var(--color-accent-purple-light);
}

.points-recommend {
  border-color: var(--color-accent-purple);
  background: var(--color-accent-purple-light);
}

.points-list:has(.points-item:hover) .points-recommend:not(:hover):not(.active),
.points-list:has(.points-item.active) .points-recommend:not(.active):not(:hover) {
  border-color: var(--color-border-light);
  background: transparent;
}

.points-amount {
  font-weight: 600;
  color: var(--color-text-primary);
  min-width: 90px;
}

.points-price {
  color: var(--color-accent-purple);
  font-weight: 700;
}

.points-save {
  font-size: var(--font-size-xs);
  color: var(--color-accent-green);
  margin-left: auto;
}

.points-hot {
  position: absolute;
  top: -8px;
  right: -1px;
  background: var(--color-accent-purple);
  color: white;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-full) var(--radius-full) 0 var(--radius-full);
  font-weight: 600;
}

.free-card .plan-name {
  color: var(--color-accent-green);
}

.vip-card .plan-name {
  color: var(--color-primary);
}

.points-card .plan-name {
  color: var(--color-accent-purple);
}

.vip-card .check-icon {
  color: var(--color-primary);
}

/* 定价说明 */
.pricing-note {
  padding: var(--space-xl) 0 var(--space-2xl) 0;
}

.note-img {
  width: max(250px, calc(437px * var(--hero-scale-ratio)));
  margin: auto;
}

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--color-bg-tools);
  position: relative;
}

.footer-wave {
  width: 100%;
  display: block;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--space-xl) * var(--hero-scale-ratio));
  padding-bottom: 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2xl);
}

.footer-brand img {
  width: calc(141px * var(--hero-scale-ratio));
}

.footer-links {
  display: flex;
  gap: var(--space-4xl);
  flex: 1;
  justify-content: center;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-col h5 {
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-xs);
}

.footer-col a {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  padding: var(--space-lg);
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.footer-cta {
  position: relative;
  margin-top: -35px;
}

.footer-cta img {
  width: calc(170px * var(--hero-scale-ratio));
}

.copyright {
  padding: var(--space-lg);
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
}

.copyright-img {
  max-width: 100%;
  height: auto;
  opacity: 0.6;
}

/* ==================== 响应式 ==================== */

/* 媒体查询 */
@media screen and (max-width: 768px) {
  .vip-btn::before {
    display: none;
  }
  .tool-showcase-img:hover {
    transform: none;
  }
  .pricing-cards {
    flex-direction: column;
  }
}

@media screen and (max-width: 1024px) {
  .pricing-card:hover {
    transform: none;
    box-shadow: none;
  }
  .plan-name {
      font-size: var(--font-size-xl);
  }
  .plan-desc {
      font-size: var(--font-size-sm);
  }
  .plan-features li {
      font-size: var(--font-size-sm);
      padding: var(--space-xs) 0;
  }
  .points-item {
      font-size: var(--font-size-sm);
  }
  .plan-btn {
      padding: var(--space-sm);
      font-size: var(--font-size-md);
  }
}

/* ============================================
   移动端底部导航栏
   ============================================ */
.mobile-tab-bar {
  display: none;
}

@media screen and (max-width: 768px) {
  .mobile-tab-bar-wrap {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 110rem;
  }

  .mobile-tab-bar {
    display: flex;
    position: absolute;
    width: 100%;
    height: 110rem;
    padding: 0 40rem;
  }

  .tab-bar-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    margin-top: 10rem;
  }

  .tab-bar-item.active {
    color: var(--color-primary-dark);
  }

  .tab-bar-label {
    font-size: 0;
    line-height: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24rem;
    color: transparent;
    width: 50rem;
    height: 50rem;
    border-radius: 50%;
    background-color: #333;
  }

  .tab-bar-inspiration {
    background-image: url('/images/inspiration_24x24.png');
  }

  .tab-bar-profile {
    background-image: url('/images/profile_25x25.png');
  }

  .tab-bar-tools {
    background-image: url('/images/tools_50x50.png');
    background-size: 50rem;
    width: 110rem;
    height: 110rem;
    background-color: #FDD220;
    top: -27rem;
    position: relative;
    box-shadow: 0 0 10rem rgba(255, 235, 59, 0.5);
    overflow: hidden;
  }

  .tab-bar-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: shine 6s ease-in-out infinite;
    pointer-events: none;
    transform: skewX(-25deg);
  }

  @keyframes shine {
    0% {
      left: -100%;
    }
    100% {
      left: 4000%;
    }
  }

  .mobile-tab-bar-bg {
    display: flex;
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .bottom_nav_bg_left {
    flex-shrink: 0;
    width: 35rem;
    height: 100%;
    background: url('/images/bottom_nav_bg_left_35x110.png') no-repeat left center / contain;
  }

  .bottom_nav_bg_flexible {
    flex: 1;
    height: 100%;
    background: url('/images/bottom_nav_bg_flexible_35x110.png') repeat-x center / auto 100%;
  }

  .bottom_nav_bg_center {
    flex-shrink: 0;
    width: 251rem;
    height: 100%;
    background: url('/images/bottom_nav_bg_center_251x110.png') no-repeat center / contain;
  }

  .bottom_nav_bg_right {
    flex-shrink: 0;
    width: 35rem;
    height: 100%;
    background: url('/images/bottom_nav_bg_right_35x110.png') no-repeat right center / contain;
  }

  /* 为页面底部留出导航栏空间 */
  .page-wrapper {
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0));
  }
  .pricing-note {
    padding: 40rem 0 0 0;
  }
}
