/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    color: #ffffff;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 2vw;
}

/* Mac 风格顶部栏 */
.top-bar {
    background: rgba(40, 40, 40, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-bar .container {
    /* width: 100%; */
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    
    /* border-style:solid; */
    /* border-width:5px; */
}

.window-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
}

.control.red { background-color: #ff5f56; }
.control.yellow { background-color: #ffbd2e; }
.control.green { background-color: #27c93f; }

.window-controls h1 {
    margin-left: 16px;
    font-size: 1.1rem;
    font-weight: 500;
}

.nav-buttons {
    display: flex;
    gap: 16px;
    margin-left: 32px;
}

.nav-button {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-left: 16px;
    font-size: 0.9rem;
    font-weight: 700;
}

.nav-button-title {
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 8px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-left: 16px;
    font-size: 1.1rem;
    font-weight: 600;
}

.nav-button:hover {
    opacity: 0.8;
}

.nav-button.active {
    font-weight: 700;
    border-bottom: 3px solid #3498db;
}

.nav-button.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    /* background-color: #ffffff; */
}

/* 玻璃态面板 */
.glass-panel {
    background: rgba(40, 40, 40, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    margin-bottom: 16px;
}

/* 交易区域布局 */
.trading-area {
    display: flex;
    flex-wrap: wrap;
    gap: 2vh;
    padding: 2vh 0;
    min-height: calc(100vh - 56px); /* 减去顶部栏高度 */
}

/* 图表容器 */
.chart-container {
    flex: 1;
    min-width: 300px;
    height: 60vh;
}

.chart {
    width: 100%;
    height: calc(100% - 36px);
    margin-top: 18px;
}

/* 交易面板 */
.trade-form {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    color: #ccc;
}

.form-group input {
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-buy {
    background: #27ae60;
    color: white;
    width: 100%;
}

.btn-sell {
    background: #e74c3c;
    color: white;
    width: 100%;
}

.trade-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

/* 市场行情 */
.coin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2vh;
    padding: 2vh 0;
}

.coin-card {
    background: rgba(60, 60, 60, 0.3);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    max-width: 100%;
}

.coin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.coin-price {
    font-size: 1.5rem;
    font-weight: bold;
}

.price-up { color: #27ae60; }
.price-down { color: #e74c3c; }

/* 钱包样式 */
.wallet-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-address {
    font-family: monospace;
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 1.0rem;
}

.wallet-address:hover{
    opacity: 0.8;
}

.wallet-connected {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

/* 购买容器 */
.purchase-container {
    max-width: 720px;
    margin: 15px auto;
}

/* 代币选择 */
.token-selection {
    margin-bottom: 32px;
}

.token-list {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.token-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.token-option img {
    width: 24px;
    height: 24px;
}

.token-option.selected {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

/* 支付部分 */
.payment-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-with-max {
    display: flex;
    gap: 8px;
}

.input-with-max input {
    flex: 1;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.payment-method img {
    width: 24px;
    height: 24px;
}

.payment-method.selected {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

/* 价格详情 */
.glass-panel-inner {
    background: rgba(30, 30, 30, 0.3);
    border-radius: 12px;
    padding: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #ccc;
}

.price-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    padding-top: 16px;
    color: white;
    font-weight: bold;
}

.btn-large {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    margin-top: 12px;
    background: #3498db;
    color: white;
}


/* 禁用状态 */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 步骤部分 */
.step-section {
    margin-bottom: 12px;
    padding: 8px 15px;
    background: rgba(40, 40, 40, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-section h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 1.1rem;
}

/* 金额选择 */
.amount-options {
    display: grid;
    grid-template-columns: repeat(6, minmax(63px, 77px)) minmax(126px, 144px);
    gap: 10px;
    margin-bottom: 6px;
    justify-content: center;
}

.amount-option {
    height: 44px;
    min-width: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    padding: 0;
    position: relative;
}

.bonus-tag {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #27ae60;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.amount-option:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.amount-option:hover .bonus-tag {
    background: #2ecc71;
}

.amount-option.selected {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.custom-amount {
    position: relative;
    display: flex;
    justify-content: center;
    width: 70%;
}

.custom-amount input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 24px;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    text-align: center;
}


/* 桥 输入金额 */
.custom-amount-bridge {
    position: relative;
    display: flex;
    justify-content: center;
    width: 50%;
    height: 50px;
    background: rgba(45, 45, 45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.custom-amount-bridge input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 24px;
    background: rgba(45, 45, 45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    text-align: center;
}

.custom-amount-bridge-text {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    text-align: center;
    background: rgba(45, 45, 45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}


.currency-symbol {
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; */
    position: absolute;
    left: 12px;
    top: 20px;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.95rem;
}

/* 链选择 */
.chain-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 11px;
}

.chain-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 11px;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.chain-option:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.chain-option.selected {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.chain-option img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.chain-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chain-name {
    font-size: 13.5px;
    font-weight: 500;
    color: #ffffff;
    /* margin-bottom: 2px; */
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chain-price {
    font-size: 0.85rem;
    color: #999;
}

.chain-balance {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.testnet-amount {
    font-size: 13px;
    /* font-size: 0.8rem; */
    color: #999;
    font-weight: normal;
}

/* 交易详情 */
.transaction-details {
    margin-top: 16px;
    padding: 12px;
}

.faucet-details {
    margin-top: 16px;
    padding-bottom: 12px;
}

.transaction-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.send-info, .receive-info {
    flex: 1;
    text-align: center;
}

.info-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 4px;
}

.info-value {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 500;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    color: #ccc;
}

.price-row.total {
    color: #999;
    font-size: 0.9rem;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* 下拉框样式 */
.select-container {
    position: relative;
    width: 100%;
    /* margin-bottom: 0.8rem; */
    margin-bottom: 12px;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-height: 50px;
    max-height: 250px;
}

.select-container.active .dropdown-list {
    display: block;
}

.select-container-bridge-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* 下拉框样式-桥 */
.select-container-bridge {
    position: relative;
    width: 50%;
    /* margin-bottom: 0.8rem; */
    margin-bottom: 12px;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    min-height: 50px;
    max-height: 250px;
}

.select-container-bridge.active .dropdown-list {
    display: block;
}

.selected-chain {
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    gap: 12px;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    height: 50px;
}

.selected-chain img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.selected-chain-point {
    display: flex;
    align-items: center;
    padding: 0 16px;
    cursor: pointer;
    gap: 12px;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    height: 50px;
}

.selected-chain-point img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(40, 40, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    height: 250px;
    /* max-height: 200px; */
    overflow-y: auto;
}

.chain-item {
    padding: 0 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 12px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 50px;
}

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

.chain-item:hover {
    background: rgba(52, 152, 219, 0.2);
}

.chain-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.chain-details {
    flex: 2;
}

.testnet-details {
    flex: 2;
}

.testnet-stock {
    /* font-size: 12px; */
    font-size: 13px;
    color: #999;
    font-weight: normal;
    margin-top: 2px;
}

/* 自定义滚动条样式 */
.dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-list::-webkit-scrollbar-track {
    background: rgba(40, 40, 40, 0.3);
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 测试网预览 */
.testnet-container {
    display: flex;
    gap: 16px;
    align-items: start;
}

.testnet-preview {
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
}

.preview-amount, .preview-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.preview-amount {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 8px;
}

.preview-price {
    font-size: 0.9rem;
    color: #999;
}

.address-input-container {
    margin-top: 12px;
    padding-top: 12px;
    position: relative;
}

.address-label {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 6px;
}

.address-input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    background: rgba(60, 60, 60, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    padding-right: 120px; /* 为右侧文字留出空间 */
}

.address-input:focus {
    outline: none;
    border-color: #3498db;
}

.address-input.invalid {
    border-color: #e74c3c;
}

.address-input::placeholder {
    color: #666;
}

/* 添加右侧文字样式 */
.address-input-container::after {
    content: 'Receive Address';
    position: absolute;
    right: 12px;
    top: 34px;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.85rem;
    pointer-events: none;
    padding: 0;
    margin: 0;
    height: 20px; /* 设置文字高度 */
    line-height: 20px; /* 设置行高等于文字高度 */
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 15px 20px 15px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: grid;
    grid-template-columns: 50% 40% 36px;
    align-items: center;
    margin-bottom: 5px;
    padding-bottom: 0px;
    margin-top: 0px;
}

.modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
}

.close-button {
    position: relative;
    top: 5px;
    left: 13px;
    background: none;
    border: none;
    color: #999;
    font-size: 30px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-button:hover {
    color: #fff;
}

.modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.modal-button {
    background-color: #2a2a2a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    background-color: #3a3a3a;
    transform: translateY(-2px);
}

.token-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 6px;
    padding-left: 2px;
}

.token-type-option {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #2a2a2a;
    color: #ffffff;
}

.token-type-option:hover {
    background-color: #3a3a3a;
}

.token-type-option.selected {
    background-color: #3498db;
}

.token-type-option input[type="radio"] {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border: 2px solid #666;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.token-type-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    /* width: 0px;
    height: 0px;
    background-color: #1d303d; */
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.token-type-option:hover input[type="radio"] {
    border-color: white;
}

.token-type-option.selected input[type="radio"] {
    border-color: white;
    background-color: #3498db;
}

.token-type-label {
    font-size: 14px;
    font-weight: 500;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.history-button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2c2c2c;
    border: 1px solid #3a3a3a;
    color: #808080;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0px;
    transition: all 0.3s ease;
    padding: 0;
}

.history-button:hover {
    background: #333333;
    border-color: #4a4a4a;
    color: #ffffff;
}

.history-button:active {
    background: #262626;
    border-color: #404040;
}

.history-button svg {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.history-button:hover svg {
    transform: scale(1.1);
    opacity: 1;
}

.transaction-status-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.status-table {
    margin: 15px 0;
    border: 1px solid #333333;
    width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
}
.status-checking {
    background-color: #1a3b5d;
    color: #4a9eff;
}
.status-failed {
    background-color: #5d1a1a;
    color: #ff4a4a;
}

.status-pending {
    background-color: #5d3a1a;
    color: #ffa64a;
}
.status-completed {
    background-color: #1a5d1a;
    color: #4aff4a;
}
#closeStatusModal {
    width: 100%;
    padding: 10px;
    background: #4a9eff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1px;
    font-weight: 500;
}
#closeStatusModal:hover {
    background: #66b3ff;
}

.transaction-status-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.transaction-status-content {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    min-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    color: #ffffff;
}
.transaction-status-content h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}
.transaction-status-content-single {
    background: #1a1a1a;
    padding: 10px;
    border-radius: 8px;
    min-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    color: #ffffff;
}
.transaction-status-content-single h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}
.status-header {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1.2fr 1.5fr;
    background: #333333;
    border-bottom: 1px solid #444444;
    font-weight: bold;
    color: #ffffff;
    height: 44px;
}

.status-header-single {
    display: grid;
    grid-template-columns: 0.95fr 0.95fr 0.95fr;
    background: #333333;
    border-bottom: 1px solid #444444;
    font-weight: bold;
    color: #ffffff;
    height: 44px;
}

.status-row {
    display: grid;
    grid-template-columns: 1.5fr 1.5fr 1.2fr 1.5fr;
    /* padding: 8px 1px; */
    border-top: 1px solid #2a2a2a;
    color: #fff;
    border-bottom: 1px solid #444444;
    height: 44px;
}
.status-row:last-child {
    border-bottom: none;
}

.status-row-single {
    display: grid;
    grid-template-columns: 0.95fr 0.95fr 0.95fr;
    border-top: 1px solid #2a2a2a;
    color: #fff;
    border-bottom: 1px solid #444444;
    height: 44px;
}
.status-row-single:last-child {
    border-bottom: none;
}

.status-column {
    flex: 1;
    text-align: center;
    border-right: 1px solid #444444;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.status-column:last-child {
    border-right: none;
}
.status-column a {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 500;
}
.status-column a:hover {
    color: #66b3ff;
    text-decoration: underline;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
}
#closeHistoryModal {
    width: 100%;
    padding: 10px;
    background: #4a9eff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1px;
    font-weight: 500;
}
#closeHistoryModal:hover {
    background: #66b3ff;
}

/* 积分兑换弹窗样式 */
.points-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}
.points-info-label {
    font-size: 16px;
    margin-left: 8px;
}

.points-balance {
    display: flex;
    /* justify-content: space-between; */
    /* align-items: center; */
    justify-content: center;
    padding: 8px;
    background: #2a2a2a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
}

.points-balance label {
    /* border: 1px solid #3a3a3a; */
    text-align: center;
}
.points-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.points-input label {
    color: #999;
    font-size: 16px;
}

.points-input input {
    padding: 8px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    text-align: center;
}

.points-input input:focus {
    outline: none;
    border-color: #4a9eff;
}

.points-chain-select {
    position: relative;
}

.points-chain-select .select-container {
    position: relative;
}

.points-chain-select .select-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    margin-top: 5px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.points-chain-select .select-container.active .select-list {
    display: block;
}

.points-chain-select .chain-details {
    flex: 1;
}

.points-chain-select .chain-name {
    color: #fff;
    font-size: 14px;
}

.points-chain-select .chain-balance {
    color: #999;
    font-size: 12px;
}

.points-receive-address {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0px;
}

.points-receive-address label {
    color: #999;
    font-size: 14px;
}

.points-receive-address input {
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.points-receive-address input:focus {
    outline: none;
    border-color: #4a9eff;
}

.points-receive-address input.invalid {
    border-color: #ff4a4a;
}

#confirmExchange {
    width: 100%;
    padding: 12px;
    background: #4a9eff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

#confirmExchange:hover {
    background: #3a8eef;
}

#confirmExchange:disabled {
    background: #666;
    cursor: not-allowed;
}

.points-info-item {
    display: grid;
    grid-template-columns: 40% 30% 30%;
    align-items: center;
    padding: 5px 8px 5px 15px;
    border-radius: 8px;
    color: #fff;
    border: 1px solid #3a3a3a;
    margin-bottom: 5px;
}

/* 钱包选择弹窗样式 */
.wallet-select-modal {
    max-width: 400px;
    width: 90%;
}

.wallet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
}

.wallet-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wallet-item:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
}

.wallet-item img {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

/* .wallet-item span {
    font-size: 16px;
    color: #e0e0e0;
}

.wallet-item:hover span {
    color: #333;
} */
.wallet-name{
    font-size: 16px;
    color: #e0e0e0;
}
.wallet-name:hover{
    color: #333;
}

/* 4:3 屏幕适配 */
@media screen and (max-aspect-ratio: 4/3) {
    .container {
        max-width: 95vw;
        padding: 0 1vw;
    }
    
    .trading-area {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .chart-container {
        width: 100%;
        height: 40vh;
    }
    
    .trade-form {
        width: 100%;
        margin-top: 2vh;
    }
}

/* 超宽屏适配 */
@media screen and (min-aspect-ratio: 16/9) {
    .container {
        max-width: 85vw;
    }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}


.faucet-component {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.faucet-component h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

.faucet-component p {
    font-size: 1.2rem;
    color: #b8b8b8;
    margin-bottom: 40px;
}

.faucet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faucet-item {
    background: rgba(40, 40, 40, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.faucet-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.faucet-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.faucet-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.faucet-item p {
    font-size: 0.9rem;
    color: #b8b8b8;
    margin: 0;
}

/* Twitter 登录样式 */
.twitter-login-container {
    margin-top: 15px;
    text-align: center;
}

.btn-twitter {
    background-color: #1DA1F2;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-twitter:hover {
    background-color: #1991db;
}

.twitter-icon {
    width: 20px;
    height: 20px;
}

.twitter-status {
    margin-top: 10px;
    padding: 8px;
    background-color: rgba(29, 161, 242, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.twitter-verified-icon {
    color: #1DA1F2;
    font-weight: bold;
}

#twitterUsername {
    color: #1DA1F2;
    font-weight: 500;
}

/* 社交媒体按钮样式 */
.social-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.social-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(40, 40, 40, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-button:hover {
    transform: translateY(-2px);
    background: rgba(60, 60, 60, 0.9);
}

.social-button.twitter:hover {
    color: #1DA1F2;
}

.social-button.telegram:hover {
    color: #0088cc;
}

.social-button.twitter svg {
    transform: scale(0.8);
    transform-origin: center;
}

.close-modal-button {
    font-size: 18px;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    margin-left: 5px;
    margin-right: 5px;
    justify-content: center;
}

.tag {
    background-color: #505050;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 13px;
    font-size: 14px;
    display: inline-block;
}

/* 项目详情页面样式 */
.project-detail {
    max-width: 1200px;
    margin: 2rem auto 0rem auto;
    padding: 2rem;
    background: rgb(27, 27, 27);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.airdrop-category-title {
    max-width: 1200px;
    margin-top: 1.2rem;
    margin-left: 2rem;
    margin-bottom: -1rem;
}

.airdrop-category-title span{
    font-size: 1.3rem;
}

.project-header {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100px;
    border: 1px solid rgba(50, 50, 50);
}

.project-info {
    flex: 1;
    margin-top: -0.6rem;
    margin-left: -0.6rem;
}

.project-info h1 {
    font-size: 1.8rem;
    margin: 0 0 0.4rem;
    color: #ffffff;
}

.project-social {
    display: flex;
    gap: 0.7rem;
}

.social-link {
    display: flex;
    align-items: center;
    /* gap: 0.5rem; */
    padding: 0.3rem 0.8rem;
    background: rgb(80, 80, 80);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-link:hover {
    background: #e9ecef;
    color: rgb(51, 51, 51);
}

.social-link i {
    color: #ffffff;
    transition: color 0.2s ease;
    margin-right: 3px;
    margin-top: 2px;
}

.social-link:hover i {
    color: rgb(51, 51, 51);
}

.project-content {
    margin-top: 2rem;
}

.project-description {
    margin-bottom: 2rem;
}

.project-description h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.project-description p {
    line-height: 1.6;
    color: #ffffff;
    font-size: 1.1rem;
}

.project-details {
    gap: 0.8rem;
}

.detail-item {
    display: flex;
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(20, 20, 20, 0.5);
    margin-bottom: 0.8rem;

    /* background-color: #0088cc; */
}

.detail-item h3 {
    font-size: 1.1rem;
    /* margin-bottom: 0.5rem; */
    margin-right: 0.5rem;
    color: #bcbcbc;
    font-weight: bold;
}

.detail-item p {
    padding: 0.25rem 0.75rem;
    background: rgb(80, 80, 80);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #ffffff;
}

.detail-item h4 {
    padding: 0.25rem 0.75rem;
    background: rgb(52, 152, 219);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #ffffff;
    margin-right: 0.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    /* margin-bottom: 1rem; */
    flex-wrap: wrap;
}

.project-tags .tag {
    padding: 0.25rem 0.75rem;
    background: rgb(80, 80, 80);
    border-radius: 8px;
    font-size: 0.875rem;
    color: #ffffff;
}

/* 汉堡按钮样式 */
.mobile-menu {
    width: 24px;
    height: 24px;
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    margin-right: -10px;
}

.mobile-menu span {
    display: block;
    height: 4px;
    width: 100%;
    background: #ffffff;
    margin: 3px 0;
    border-radius: 1px;
    transition: 0.3s;
}
  
/* 侧边菜单样式 */
.side-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 220px;
    height: 100%;
    background: rgb(25, 25, 25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    transition: right 0.3s;
    z-index: 1002;
}
.side-menu-button {
    width: 80%;
    margin: 10px 0;
    padding: 12px 0;
    font-size: 18px;
    border: none;
    background: rgb(38, 38, 38);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}
/* .side-menu-button:hover {
    background: #e0e0e0;
} */
.side-menu-button.selected {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}
  
/* 菜单显示时 */
.side-menu.active {
    right: 0;
}
  
/* 遮罩层 */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
}
.menu-overlay.active {
    display: block;
}

.open-app-button{
    margin-left: auto;
    display: none;
    font-size: 16px;
}

.ecosystem-container {
    max-width: 1800px;
    margin: 15px auto;
    padding: 15px 10px 10px 10px;
}

.ecosystem-choose-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 6px 2px 6px;
    justify-content: flex-start;
}

.ecosystem-choose-tag{
    display: flex;
    background-color: #454545;
    border: 1px solid #7d7d7d;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 13px;
    font-size: 16px;
    gap: 10px;
    max-width: 200px;
    margin-left: 2px;
    cursor: pointer;
}

.ecosystem-choose-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.ecosystem-choose-tag.selected {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.ecosystem-search-container{
    display:flex;
    width:70%;
    margin: 30px auto -10px auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 16px;
    overflow: hidden;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.ecosystem-item-top-element {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 20px;
    width: 90%;
    margin-top: -5px;
    /* background-color: #0a0a0a; */
}

.ecosystem-item {
    max-width: 275px;
    background: rgba(40, 40, 40, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ecosystem-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.ecosystem-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.ecosystem-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.ecosystem-item p {
    font-size: 0.9rem;
    color: #b8b8b8;
    margin: 0;
}

.search-input{
    flex:1;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px 0 0 16px;
    font-size: 16px;
    outline: none;
    background-color: rgba(40, 40, 40, 0.3);
    color:white;
}

.search-project-button {
    padding: 12px 25px;
    background: linear-gradient(45deg, #1DA1F2, #3eb1f9);
    color: white;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.search-project-button:hover{
    opacity: 0.9;
}

/* 页脚容器 */
footer {
    display: flex; /* 使用 Flexbox 实现横向排列 */
    justify-content: space-around; /* 均匀分布列 */
    width: 50%;
    margin: 40px auto 0 auto;
    color: #fff; /* 文字颜色 */
    padding: 20px; /* 内边距 */
    /* background-color: #0088cc; */
}


/* 每一列的样式 */
.footer-column {
    flex: 1; /* 使每列占据等宽空间 */
    padding: 0 10px; /* 列内边距 */
}

/* 标题样式 */
.footer-column h4 {
    margin-top: 0;
    font-size: 18px;
    font-weight: bold;
    /* border-bottom: 1px solid #777; */
    padding-bottom: 5px;
}

/* 列表样式 */
.footer-column ul {
    list-style: none; /* 去除默认列表点 */
    padding: 0;
}

.footer-column ul li{
    margin-top: 6px;
    cursor: pointer;
}

.footer-column ul li:hover{
    color: #ccc;
}

.footer-column ul li a {
    color: #fff; /* 链接文字颜色 */
    text-decoration: none; /* 去除下划线 */
    /* font-weight: lighter; */
}

/* 鼠标悬停时改变链接颜色 */
.footer-column ul li a:hover {
    color: #ccc;
}

.confirm-exchange {
    width: 100%;
    padding: 12px;
    background: #4a9eff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.confirm-exchange:hover {
    background: #3a8eef;
}

.confirm-exchange:disabled {
    background: #666;
    cursor: not-allowed;
}

.support-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0px;
}

.support-input label {
    color: #999;
    font-size: 14px;
}

.support-input input {
    padding: 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

.support-input input:focus {
    outline: none;
    border-color: #4a9eff;
}

.support-input input.invalid {
    border-color: #ff4a4a;
}

.status-header-support {
    display: grid;
    grid-template-columns: 0.6fr 1.5fr 2fr 1.5fr;
    background: #333333;
    border-bottom: 1px solid #444444;
    font-weight: bold;
    color: #ffffff;
    height: 44px;
}

.status-row-support {
    display: grid;
    grid-template-columns: 0.6fr 1.5fr 2fr 1.5fr;
    border-top: 1px solid #2a2a2a;
    color: #fff;
    border-bottom: 1px solid #444444;
    height: 44px;
    max-height: 220px;
}

.status-row-support:last-child {
    border-bottom: none;
}
.info-icon {
    color: #3498db !important;/* 通常是蓝色 */
    font-size: 18px;
}

.announcement-container {
    margin: -10px 0px -10px 6px;
    display: flex; /* 启用 Flexbox */
    align-items: center; /* 垂直居中所有子项 */
    padding: 5px; /* 添加内边距让内容更美观 */
}

.close-ann-button {
    margin-left: auto; /* 将按钮推到最右侧 */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .chain-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .trading-area {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 11px;
    }
    
    .coin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .testnet-container {
        grid-template-columns: 1fr;
    }

    .token-list {
        flex-wrap: wrap;
    }
    
    .token-option {
        flex: 1;
        min-width: 120px;
    }
    
    .payment-methods {
        flex-direction: column;
    }

    .chain-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-button {
        display: none !important;
    }
    .control {
        display: none !important;
    }
    .nav-buttons {
        margin-left: -16px;
    }
    .mobile-menu {
        display: flex;
    }
    .faucet-grid {
        grid-template-columns: repeat(2, 1fr);
        margin-left: -15px;
        margin-right: -15px;
    }
    .amount-options {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .custom-amount {
        width: 70%;
    }

    .select-container-bridge {
        width: 100%;
    }

    .custom-amount-bridge {
        width: 100%;
    }

    .select-container-bridge-container{
        display: block;
    }

    .open-app-button{
        display: flex;
        color: #0088cc;
    }

    .transaction-status-content{
        transform: scale(0.6);
    }

    .transaction-status-content-single{
        transform: scale(0.6);
    }
    
    .airdrop-category-title{
        margin-left: 0.8rem;
    }

    .ecosystem-search-container{
        width: 85%;
    }

    .ecosystem-grid{
        grid-template-columns: repeat(1, 1fr);
    }

    .ecosystem-item{
        max-width: 95%;
        width: 95%;
	margin: 0 auto;
    }

    .search-input{
        border-radius: 16px;
    }

    .search-project-button{
        display: none;
    }
    .social-buttons {
        bottom: 15px;
        right: 15px;
    }
    
    .social-button {
        width: 36px;
        height: 36px;
    }

    /* ----- */
    footer {
        flex-direction: column;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 100%;
    }

    .footer-column{
        width: 100%;
        margin-left: 10px;
        margin-bottom: 60px;
    }
    /* ----- */
}
