@charset "utf-8";
.auto-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.codex-page {
  background: #F5F8FF;
  color: #202536;
}
.codex-hero {
  padding: 128px 0 0;
  text-align: center;
  overflow: hidden;
  background-position: center 0;
  background-repeat: no-repeat;
  background-size: 1920px 100%;
  background-image: url(../images/codex-banner.webp);
  /* background: radial-gradient(circle at 28% 12%, rgba(116, 136, 255, .26), transparent 28%), radial-gradient(circle at 69% 15%, rgba(255, 124, 210, .34), transparent 28%), linear-gradient(180deg, #f1edff 0%, #eff6ff 68%, #eef5ff 100%) */
}
.codex-hero h1 {
  font-size: 48px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
  color: #171c2d;
}
.codex-hero h1 span,
.codex-cta h2 span {
  background: linear-gradient(90deg, #ff4d68 0%, #6b54ff 78%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.codex-subtitle {
  margin-top: 20px;
  color: #45515E;
  font-size: 16px;
  line-height: 28px;
}
.codex-actions {
  margin-top: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.codex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 180px;
  height: 56px;
  border-radius: 28px;
  padding: 0 40px;
  font-size: 18px;
  font-weight: 700;
  line-height: 56px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.codex-btn:hover {
  transform: translateY(-2px);
}
.codex-btn i {
  margin-left: 2px;
  font-size: 18px;
  font-weight: bold;
  transition: transform 0.2s ease;
}
.codex-btn:hover i {
  transform: translateX(10px);
}
.codex-btn-light {
  background: #fff;
  color: #ff4a4f;
  box-shadow: 0 10px 28px rgba(93, 110, 180, 0.14);
}
.codex-btn-light span {
  background: linear-gradient(90deg, #ff4a4f, #6b54ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.codex-btn-light span.gray {
  background: transparent;
  color: #10131d;
}
.codex-btn-primary {
  background: #ff4148;
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 68, 68, 0.22);
}
.codex-product-frame {
  width: 100%;
  margin: 72px auto 0;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(139, 155, 255, 0.75), rgba(255, 175, 208, 0.75));
}
.codex-window {
  position: relative;
  aspect-ratio: 16/9;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  background: #10131d;
  box-shadow: 0 28px 70px rgba(58, 72, 143, 0.18);
  text-align: left;
  cursor: pointer;
}
.codex-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #10131d;
}
.codex-video-box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(12, 15, 28, 0.08), rgba(12, 15, 28, 0.18));
  transition: opacity 0.2s ease;
}
.codex-video-box.is-playing::after {
  opacity: 0;
}
.window-sidebar {
  background: #f6f7fb;
  border-right: 1px solid #e5e8f0;
  padding: 15px 14px;
  color: #4d5668;
  font-size: 12px;
}
.window-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 18px;
}
.window-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f57;
}
.window-dots span:nth-child(2) {
  background: #ffbd2e;
}
.window-dots span:nth-child(3) {
  background: #28c840;
}
.side-line,
.thread {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 6px;
}
.window-sidebar p {
  margin: 14px 0 8px;
  color: #9299a8;
}
.thread.active,
.side-line.active {
  background: #e9ecf7;
  color: #1b2335;
}
.window-chat {
  padding: 16px 20px;
  border-right: 1px solid #edf0f6;
}
.window-title {
  height: 34px;
  font-size: 13px;
  color: #1b2335;
  border-bottom: 1px solid #eef1f5;
}
.window-title span {
  color: #858fa3;
  margin-left: 8px;
}
.chat-bubble {
  width: 78%;
  margin: 26px auto 22px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #f0f1f4;
  color: #394252;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
}
.task-card {
  margin-bottom: 14px;
  padding: 13px 16px;
  border-radius: 8px;
  background: #f7f8fb;
  color: #4b5565;
  font-size: 13px;
  line-height: 20px;
}
.task-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #7b8495;
  font-size: 12px;
}
.task-row strong {
  color: #293245;
}
.chat-input {
  margin-top: 94px;
  height: 46px;
  border: 1px solid #e9ecf4;
  border-radius: 23px;
  color: #b4bac7;
  line-height: 44px;
  padding-left: 24px;
  font-size: 13px;
}
.window-code {
  background: #fbfcff;
  padding: 12px 14px;
}
.code-toolbar {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #303849;
  font-size: 12px;
}
.code-toolbar button {
  height: 22px;
  padding: 0 10px;
  margin-left: 6px;
  border-radius: 11px;
  border: 1px solid #d8deea;
  background: #fff;
  color: #4b5568;
}
.window-code pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  line-height: 19px;
  color: #586173;
}
.window-code code {
  display: block;
}
.window-code code::first-line {
  color: #2b3446;
}
.play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(40, 45, 60, 0.42);
  color: #fff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.play-btn i {
  margin-left: 4px;
}
.play-btn .fa-pause {
  margin-left: 0;
}
.codex-video-box.is-playing .play-btn {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}
.codex-video-box:hover .play-btn,
.codex-video-box:focus-within .play-btn {
  opacity: 1;
}
.codex-section {
  padding: 64px 0;
  background: #eef5ff;
}
.codex-section-title {
  text-align: center;
  margin-bottom: 80px;
  margin-top: 20px;
}
.codex-section-title.compact {
  margin-bottom: 48px;
}
.codex-section-title h2,
.codex-cta h2 {
  color: #1c2234;
  font-size: 34px;
  line-height: 44px;
  font-weight: 800;
  margin-bottom: 20px;
}
.codex-section-title p,
.codex-cta p {
  margin-top: 10px;
  color: #181E25;
  font-size: 18px;
}
.codex-price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
}
.codex-price-card {
  position: relative;
  min-height: 425px;
  padding: 26px 18px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(78, 91, 130, 0.06);
}
.codex-price-card.featured {
  border: 2px solid #7d5cff;
  box-shadow: 0 14px 34px rgba(125, 92, 255, 0.12);
}
.price-tag {
  position: absolute;
  top: 0;
  left: 0px;
  right: 0px;
  height: 26px;
  line-height: 26px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #ff4c58, #7362ff);
  color: #fff;
  text-align: center;
  font-size: 12px;
}
.codex-price-card.featured h3 {
  margin-top: 14px;
}
.codex-price-card h3 {
  color: #151b2b;
  font-size: 19px;
  line-height: 28px;
  font-weight: 800;
}
.codex-price-card h3 span {
  margin-left: 4px;
  color: #8b93a4;
  font-size: 12px;
  font-weight: 500;
}
.price {
  margin-top: 14px;
  color: #ff4444;
  font-size: 28px;
  line-height: 38px;
  font-weight: 800;
}
.price em {
  color: #6d7485;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
}
.codex-price-card p {
  margin-top: 8px;
  color: #6f7788;
  font-size: 12px;
}
.buy-btn {
  display: block;
  height: 38px;
  margin: 22px 0;
  border-radius: 19px;
  background: #ff4444;
  color: #fff;
  text-align: center;
  line-height: 38px;
  font-size: 13px;
  font-weight: 700;
}
.codex-price-card ul {
  color: #3f4858;
  font-size: 12px;
  line-height: 22px;
}
.codex-price-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}
.codex-price-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff4444;
  font-weight: 800;
}
.codex-advantage-grid {
  margin: 0 auto;
  display: grid;
  gap: 28px;
}
.codex-white-card {
  min-height: 180px;
  padding: 34px 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(78, 91, 130, 0.04);
}
.card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 28px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  background-image: url(../images/codex-advantage-icon.png);
}
.codex-white-card h3,
.codex-feature-card h3 {
  color: #202638;
  font-size: 17px;
  line-height: 28px;
  font-weight: 800;
}
.codex-white-card p,
.codex-feature-card p {
  margin-top: 12px;
  color: #181E25;
  font-size: 13px;
  line-height: 24px;
}
.codex-feature-grid {
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.codex-feature-card {
  min-height: 176px;
  padding: 34px 38px;
  border-radius: 8px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: 0 0;
  background-image: url(../images/codex-feature-bg.webp);
}
.codex-feature-card img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: #fff;
  color: #ff4a54;
  font-size: 18px;
}
.codex-faq-list {
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(78, 91, 130, 0.04);
}
.codex-faq-item {
  border-bottom: 1px solid #edf0f5;
}
.codex-faq-item:last-child {
  border-bottom: 0;
}
.codex-faq-item .faq-button {
  width: 100%;
  height: 58px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #202638;
  font-size: 18px;
  font-weight: 800;
  text-align: left;
}
.codex-faq-item.open .faq-button {
  color: #ff4444;
}
.codex-faq-item .faq-button i {
  color: #9ba4b4;
  font-size: 12px;
}
.faq-content {
  padding: 0 28px 24px;
  color: #45515E;
  font-size: 16px;
  line-height: 26px;
}
.codex-cta {
  padding: 80px 0 92px;
  text-align: center;
  background: radial-gradient(circle at 36% 18%, rgba(255, 122, 199, 0.16), transparent 30%), radial-gradient(circle at 70% 18%, rgba(115, 139, 255, 0.18), transparent 30%), linear-gradient(180deg, #eef5ff, #f4f0ff);
}
.codex-cta h2 {
  font-size: 43px;
  line-height: 56px;
}
.codex-pricing {
  padding-bottom: 20px;
  background-position: center 0;
  background-repeat: no-repeat;
  background-size: 1920px 1080px;
  background-image: url(../images/codex-fixed-bg.webp);
}
.package-item {
  background-color: #fff;
  position: relative;
  color: #181E25 !important;
}
.package-item h3 span {
  font-size: 14px;
  font-weight: 400;
  color: #45515E;
}
.package-item:hover {
  border-color: #E74041;
}
.package-item:hover .package-purchase-trigger {
  background-color: #E74041;
  color: #fff;
}
.package-item.token-hot-package {
  border: 2px solid #ff4444 !important;
}
.package-item > .bg-light {
  border-radius: 0.75rem;
  background-color: #fff !important;
  position: relative;
  z-index: 2;
  color: #45515E !important;
}
.package-item .fa-check,
.package-item .text-3xl.font-bold {
  color: #FF4444 !important;
}
.package-item .package-purchase-trigger {
  background-color: #FF4444;
  color: #fff;
  border-radius: 20px;
}
.package-item .promo-tag {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 13px;
  color: #fff;
  font-size: 14px;
  padding: 10px 10px 20px;
  line-height: 16px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, #ff4444 0%, #6666ff 100%);
  z-index: 0;
  text-align: center;
  transform: translateY(-100%);
  display: block;
}
.package-item .space-y-3 li .text-sm {
  word-break: break-all;
}
.token-hot-package.disabled {
  border-color: rgba(134, 144, 156, 0.2) !important;
}
.token-hot-package.disabled .promo-tag {
  background: rgba(134, 144, 156, 0.2);
  cursor: not-allowed;
}
@media (max-width: 768px) {
  .codex-pricing .codex-section-title {
    margin-bottom: 30px;
  }
  .package-list .package-item > div:nth-child(2) {
    display: block !important;
  }
  .token-hot-package {
    margin-top: 30px;
  }
  .codex-hero {
    padding: 106px 0 44px;
  }
  .codex-hero h1 {
    font-size: 34px;
  }
  .codex-subtitle {
    font-size: 14px;
    line-height: 24px;
  }
  .codex-actions {
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
  }
  .codex-btn {
    width: 100%;
    font-size: 16px;
    max-width: 100%;
  }
  .codex-product-frame {
    margin-top: 42px;
    padding: 7px;
  }
  .codex-window {
    grid-template-columns: 1fr;
  }
  .window-sidebar {
    display: none;
  }
  .window-chat {
    border-right: 0;
  }
  .chat-input {
    margin-top: 34px;
  }
  .codex-section {
    padding: 44px 0;
  }
  .codex-section-title h2,
  .codex-cta h2 {
    font-size: 28px;
    line-height: 38px;
  }
  .codex-price-grid {
    grid-template-columns: 1fr;
  }
  .codex-price-card {
    min-height: auto;
  }
  .codex-white-card,
  .codex-feature-card {
    padding: 28px 22px;
  }
  .codex-faq-item .faq-button {
    height: auto;
    min-height: 56px;
    padding: 16px 18px;
    line-height: 22px;
  }
  .faq-content {
    padding: 0 18px 18px;
  }
  .codex-cta {
    padding: 58px 0 66px;
  }
}
.area-tab-list {
  display: flex;
  flex-wrap: wrap;
}
.area-tab-list.hot-box-area li {
  border: 1px solid transparent;
  border-left: 1px solid #BDC5D3;
}
.area-tab-list.hot-box-area li::before {
  background-image: url(../images/selected02.png);
}
.area-tab-list.hot-box-area li.selected {
  color: #FFF100;
  border-color: #FFF100;
  background-color: #FF4444;
}
.area-tab-list li {
  flex: 1 0;
  height: 36px;
  background: #ffffff;
  border: 1px solid #BDC5D3;
  font-size: 12px;
  line-height: 34px;
  text-align: center;
  font-weight: 400;
  color: #181E25;
  cursor: pointer;
  overflow: hidden;
  margin-left: -1px;
  position: relative;
}
.area-tab-list li::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-image: url(../images/selected01.png);
  display: none;
}
.area-tab-list li:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.area-tab-list li:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}
.area-tab-list li:hover {
  color: #FF4444;
}
.area-tab-list li.selected {
  border-color: #FF4444;
  color: #FF4444;
  z-index: 1;
}
.area-tab-list li.selected::before {
  display: block;
}
@media (max-width: 768px) {
  .codex-package-list {
    max-width: calc(100% - 40px);
  }
}
