/* 资产面板样式 */
.asset-panel-container {
  background: var(--van-card-background);
  border-radius: 0.25rem;
  padding: 0.25rem;
  transition: all 0.3s ease-in-out;
}

.asset-panel-inner {
}

/* 资产头部布局 */
.asset-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.asset-info {
  flex: 1;
}

.asset-title {
  font-size: 0.28rem;
  color: #999;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
}

.info-icon {
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
  color: #ccc;
}

.asset-value {
  font-size: 0.45rem;
  font-weight: bold;
  color: var(--van-text-color);
  margin-bottom: 0.1rem;
}

.asset-usd-value {
  font-size: 0.24rem;
  color: #999;
}

.deposit-btn {
  margin-left: 1rem;
}

.deposit-link {
  text-decoration: none;
}

.deposit-button {
  font-size: 0.28rem;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
}

/* 快捷链接网格布局 */
.quick-links-grid {
  padding: 0.1rem 0;
}

.grid-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  margin-bottom: 0.1rem;
  margin-top: .3rem;
}

.grid-row:last-child {
  margin-bottom: 0;
}

.quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  flex: 1;
  max-width: 25%;
  padding: 0.1rem 0.1rem;
}

.quick-link-item:hover {
  transform: translateY(-2px);
}

.quick-link-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 4px;
  object-fit: cover;
}

.quick-link-text {
  text-align: center;
  line-height: 1.2;
  word-break: keep-all;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  font-size: 0.22rem;
}

/* 响应式调整 */
@media (max-width: 375px) {
  /* .quick-link-icon {
    width: 2rem;
    height: 2rem;
  } */
  
  /* .quick-link-text {
    font-size: 0.2rem;
  } */
}

/* 语言选择弹出层样式 */
.language-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.language-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.language-modal-content {
  position: relative;
  background: var(--van-card-background, #fff);
  border-radius: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: hidden;
  box-shadow: none;
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.language-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--van-border-color, #eee);
  background: var(--van-background-2, #f8f9fa);
}

.language-modal-header span:first-child {
  font-size: 18px;
  font-weight: 600;
  color: var(--van-text-color, #333);
}

.language-modal-close {
  font-size: 24px;
  color: var(--van-text-color-2, #666);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.language-modal-close:hover {
  background: var(--van-background, #f0f0f0);
  color: var(--van-text-color, #333);
}

.language-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.language-option {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.language-option:hover {
  background: var(--van-background, #f0f0f0);
}

.language-option.active {
  background: var(--van-primary-color-light, rgba(33, 206, 231, 0.1));
  color: var(--van-primary-color, #21cee7);
}

.flag-icon {
  width: 24px;
  height: 18px;
  margin-right: 12px;
  border-radius: 2px;
  object-fit: cover;
}

.language-option span:nth-child(2) {
  flex: 1;
  font-size: 16px;
  color: var(--van-text-color, #333);
}

.language-option.active span:nth-child(2) {
  color: var(--van-primary-color, #21cee7);
  font-weight: 500;
}

.language-check {
  font-size: 18px;
  color: var(--van-primary-color, #21cee7);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.language-option.active .language-check {
  opacity: 1;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .language-modal-content {
    width: 95%;
    margin: 0 auto;
  }

  .language-option {
    padding: 14px 16px;
  }

  .language-modal-header {
    padding: 14px 16px;
  }
}

/* RTL支持 */
[dir="rtl"] .flag-icon {
  margin-right: 0;
  margin-left: 12px;
}

[dir="rtl"] .language-modal-header {
  direction: rtl;
}

[dir="rtl"] .language-option {
  direction: rtl;
}

/* Default view states */
.pc-view {
  display: none;
}

/* PC-specific styles */
@media (min-width: 1024px) {
  .mobile-view {
    display: none;
  }

  .pc-view {
    display: block;
  }

  body {
    font-size: 16px; /* Reset base font size for PC */
    background: #f8f9fa;
  }

  #htmlRoot {
    font-size: 16px !important;
  }

  /* Header Styles */
  .pc-header {
    background: #ffffff;
    border-bottom: 1px solid #e8ecef;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  }

  .pc-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .logo-and-nav {
    display: flex;
    align-items: center;
    gap: 48px;
  }

  .pc-nav {
    display: flex;
    gap: 32px;
  }

  .pc-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
  }

  .pc-nav a:hover {
    color: var(--van-primary-color);
  }

  .header-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .language-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }

  .language-btn:hover {
    background: #f5f5f5;
  }

  .arrow-down {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #666;
  }

  .login-signup-btn {
    text-decoration: none;
    color: #ffffff;
    background: var(--van-primary-color);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
  }

  .login-signup-btn:hover {
    background: #1bb5d1;
    transform: translateY(-1px);
  }

  /* Main Content */
  .pc-main-content {
    margin-top: 70px;
    background: #f8f9fa;
  }

  /* Hero Section */
  .hero-section {
    background: #fff;
    padding: 80px 0;
  }

  .hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 80px;
  }

  .hero-left {
    flex: 1;
  }

  .hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    color: #333;
    margin-bottom: 24px;
  }

  .brand-name {
    color: var(--van-primary-color);
    display: block;
    margin-top: 8px;
  }

  .hero-description {
    margin-bottom: 40px;
  }

  .hero-description p {
    font-size: 18px;
    color: #666;
    margin: 8px 0;
  }

  .hero-cta-btn {
    background: var(--van-primary-color);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .hero-cta-btn:hover {
    background: #1bb5d1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 206, 231, 0.3);
  }

  .hero-right {
    flex: 1;
    max-width: 500px;
  }

  /* Trading Table */
  .trading-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
  }

  .table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
  }

  .tab-buttons {
    display: flex;
    gap: 8px;
  }

  .tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
  }

  .tab-btn.active {
    background: var(--van-primary-color);
    color: white;
  }

  .table-actions span {
    font-size: 14px;
    color: #666;
  }

  .table-content {
    padding: 0 24px 24px;
  }

  .table-header-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 12px 0;
    font-weight: 600;
    color: #666;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
  }

  .table-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 16px 0;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.3s ease;
  }

  .table-row:hover {
    background: #f8f9fa;
  }

  .table-row span {
    font-size: 14px;
    color: #333;
  }

  .trade-btn {
    background-color: var(--van-primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }

  .trade-btn:hover {
    background-color: #1bb5d1;
  }

  .pc-coin-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
  }

  .pc-coin-item:hover {
    background-color: #f8f9fa;
  }

  .pc-coin-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    cursor: pointer;
  }

  .pc-coin-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
  }

  .pc-coin-price {
    font-size: 15px;
    font-weight: 500;
    text-align: right;
  }

  .pc-coin-change {
    font-size: 13px;
    text-align: right;
  }

  .pc-coin-action {
    text-align: right;
  }

  .pc-coin-action button {
    background-color: var(--van-primary-color);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }

  .pc-coin-action button:hover {
    background-color: #1bb5d1;
  }

  /* Stats Section */
  .stats-section {
    padding: 80px 0;
    background: white;
  }

  .stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
  }

  .stat-item {
    text-align: center;
  }

  .stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--van-primary-color);
    margin-bottom: 16px;
  }

  .stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
  }

  /* Section Styles */
  .section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
  }

  .section-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
  }

  /* Announcements Section */
  .announcements-section {
    padding: 80px 0;
    background: #f8f9fa;
  }

  .announcements-list {
    max-width: 800px;
    margin: 0 auto;
  }

  .announcement-item {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .announcement-content {
    flex: 1;
  }

  .announcement-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
  }

  .announcement-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
  }

  .announcement-date {
    font-size: 14px;
    color: var(--van-primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* Trading App Section */
  .trading-app-section {
    padding: 80px 0;
    background: white;
  }

  .app-content {
    display: flex;
    align-items: center;
    gap: 80px;
  }

  .app-left {
    flex: 1;
  }

  .app-left h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
  }

  .app-left p {
    font-size: 18px;
    color: #666;
    margin-bottom: 32px;
  }

  .download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--van-primary-color);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .download-btn:hover {
    background: #1bb5d1;
    transform: translateY(-2px);
  }

  .app-right {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .phone-mockup {
    flex: 1;
    text-align: center;
  }

  .phone-mockup img {
    max-width: 200px;
    height: auto;
  }

  .qr-code {
    flex-shrink: 0;
  }

  .qr-placeholder {
    width: 120px;
    height: 120px;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
  }

  .qr-placeholder::before {
    content: "QR Code";
  }

  /* Product Introduction Section */
  .product-intro-section {
    padding: 80px 0;
    background: #f8f9fa;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }

  .product-item {
    background: white;
    padding: 40px 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
  }

  .product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }

  .product-icon {
    width: 64px;
    height: 64px;
    /* background: linear-gradient(135deg, var(--van-primary-color), #1bb5d1); */
    border-radius: 16px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-icon > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    color: white;
  }

  .product-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
  }

  .product-item p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
  }

  /* FAQ Section */
  .faq-section {
    padding: 80px 0;
    background: white;
  }

  .faq-list {
    max-width: 800px;
    margin: 0 auto;
  }

  .faq-item {
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
  }

  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 18px;
    color: #333;
    transition: color 0.3s ease;
  }

  .faq-question:hover {
    color: var(--van-primary-color);
  }

  .faq-toggle {
    font-size: 24px;
    color: var(--van-primary-color);
    transition: transform 0.3s ease;
    font-weight: 300;
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #666;
  }

  .faq-answer p {
    padding-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
  }

  .faq-item.active .faq-answer {
    max-height: 200px;
  }

  .faq-item.active .faq-toggle {
    transform: rotate(45deg);
  }

  /* Registration CTA Section */
  .registration-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--van-primary-color), #1bb5d1);
    color: white;
    text-align: center;
  }

  .cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
    color: white;
  }

  .cta-register-btn {
    background: white;
    color: var(--van-primary-color);
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .cta-register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
  }

  /* Footer */
  .pc-footer {
    background: #333;
    color: white;
    padding: 60px 0 40px;
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 60px;
  }

  .footer-column {
    flex: 1;
  }

  .footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
  }

  .footer-column a {
    display: block;
    text-decoration: none;
    color: #ccc;
    margin-bottom: 12px;
    font-size: 14px;
    transition: color 0.3s ease;
  }

  .footer-column a:hover {
    color: var(--van-primary-color);
  }

  .social-icons {
    display: flex;
    gap: 16px;
    margin-top: 24px;
  }

  .social-icons img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    transition: transform 0.3s ease;
  }

  .social-icons img:hover {
    transform: scale(1.1);
  }

  /* Icon placeholders */
  .icon-spot-trading::before { content: "📊"; }
  .icon-futures::before { content: "📈"; }
  .icon-staking::before { content: "💰"; }
  .icon-p2p::before { content: "🔄"; }
  .icon-security::before { content: "🔒"; }
  .icon-api::before { content: "⚙️"; }
  .android-icon::before { content: "🤖"; }
}

/* PC Carousel Styles */
.pc-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.pc-carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.pc-carousel-item {
    min-width: 100%;
    box-sizing: border-box;
    display: none; /* Hide all items by default */
}

.pc-carousel-item.active {
    display: block; /* Show only the active item */
}

.pc-carousel-item img {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.pc-carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active {
    background-color: var(--van-primary-color, #21cee7);
}

/* User Dropdown Menu */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.user-dropdown-btn:hover {
  background: #f5f5f5;
}

.user-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 4px;
}

.user-dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.user-dropdown-content a:hover {
  background-color: #f1f1f1;
}

.user-dropdown:hover .user-dropdown-content {
  display: block;
}

.hidden {
  display: none !important;
}
