/* 深色模式样式 */

/* 导航按钮样式 */
.nav-button {
    background-color: transparent;
    color: #CCCCCC;
    border: 1px solid transparent;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    text-decoration: none;
}

.nav-button:hover,
.nav-button.active {
    background-color: #3A98B9;
    color: #ffffff;
    border-color: #3A98B9;
}

/* 资源卡片样式 */
.resource-card {
    transition: all 0.3s;
    cursor: pointer;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(58, 152, 185, 0.3);
}

/* 状态标签样式 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-available {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.status-busy {
    background-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.status-frozen {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-locked {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-sold {
    background-color: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

/* 类型标签样式 */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    background-color: rgba(58, 152, 185, 0.2);
    color: #3A98B9;
}

/* 平台图标样式 */
.platform-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A98B9, #2c7a94);
    color: #ffffff;
    font-size: 24px;
}

/* 倒计时样式 */
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    background-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    font-size: 12px;
    font-weight: 600;
}

/* 价格标签样式 */
.price-tag {
    font-size: 24px;
    font-weight: 700;
    color: #3A98B9;
}

/* 按钮样式 */
.btn-primary {
    background-color: #3A98B9;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #2c7a94;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: #202122;
    color: #CCCCCC;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid #555555;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #2a2b2c;
    border-color: #3A98B9;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #202122;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #555555;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3A98B9;
}

/* 国家列表滚动条（更明显） */
.country-list-scroll {
    scrollbar-width: thin;
    scrollbar-color: #3A98B9 #1a1b1c;
}

.country-list-scroll::-webkit-scrollbar {
    width: 12px;
    background: transparent;
}

.country-list-scroll::-webkit-scrollbar-track {
    background: #1a1b1c;
    border-radius: 6px;
    margin: 2px 0;
    border: 1px solid #2a2b2c;
}

.country-list-scroll::-webkit-scrollbar-thumb {
    background: #3A98B9;
    border-radius: 6px;
    border: 2px solid #1a1b1c;
    min-height: 40px;
}

.country-list-scroll::-webkit-scrollbar-thumb:hover {
    background: #4da8c9;
}

.country-list-scroll::-webkit-scrollbar-thumb:active {
    background: #2c7a94;
}

/* 弹窗动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.modal-enter {
    animation: fadeIn 0.3s ease-out;
}

.modal-exit {
    animation: fadeOut 0.3s ease-out;
}

/* 加载动画 */
.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Material Icons 样式 */
.material-symbols-outlined {
    font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
}

/* 国旗表情符号 */
.flag-emoji {
    font-size: 20px;
    margin-right: 4px;
}

/* 国旗图标容器 */
.country-flag-icon {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-family: 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', 'Apple Color Emoji', 'EmojiOne Color', sans-serif !important;
}

/* 标签容器 */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    background-color: rgba(58, 152, 185, 0.15);
    color: #3A98B9;
}

/* 信息行样式 */
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    color: #CCCCCC;
    font-size: 14px;
}

.info-value {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
}

/* 短信记录样式 */
.sms-item {
    padding: 12px;
    border-radius: 8px;
    background-color: #202122;
    border: 1px solid #555555;
}

.sms-time {
    color: #CCCCCC;
    font-size: 12px;
    margin-bottom: 4px;
}

.sms-from {
    color: #3A98B9;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.sms-content {
    color: #FFFFFF;
    font-size: 14px;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 40px;
}

/* 筛选器样式 */
select.form-select {
    min-width: 140px;
}

/* 国家列表项样式 */
.country-item {
    transition: all 0.3s;
}

.country-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(58, 152, 185, 0.2);
}

/* 订单列表项样式 */
.order-item {
    transition: all 0.3s;
}

.order-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 152, 185, 0.2);
}

/* 禁用按钮样式 */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:disabled:hover {
    transform: none;
    opacity: 0.5;
}

/* 验证方式按钮样式 */
.verification-method-btn {
    transition: all 0.3s;
    cursor: pointer;
}

.verification-method-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 152, 185, 0.2);
}

/* 价格卡片样式 */
.price-card {
    transition: all 0.3s;
    cursor: pointer;
}

.price-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 152, 185, 0.2);
}

/* 平台列表样式 */
.platform-item {
    transition: all 0.3s;
}

.platform-item .material-symbols-outlined {
    transition: transform 0.3s;
}

.platform-item .rotate-180 {
    transform: rotate(180deg);
}

.platform-countries {
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

.platform-countries.hidden {
    animation: slideUp 0.2s ease-in;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 1000px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-button {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .resource-card {
        margin-bottom: 12px;
    }
    
    .price-tag {
        font-size: 20px;
    }
}


/* 订单页面样式 */
.order-type-tab { color: #CCCCCC; }
.order-type-tab.active { color: #3A98B9; }
.order-type-tab .tab-indicator { transition: opacity 0.3s ease; }
.status-badge-pending { background-color: rgba(255, 193, 7, 0.1); color: #ffc107; }
.status-badge-completed { background-color: rgba(40, 167, 69, 0.1); color: #28a745; }
.status-badge-timeout { background-color: rgba(220, 53, 69, 0.1); color: #dc3545; }

/* 账号详情选项卡样式 */
.account-tab {
    color: #CCCCCC;
    transition: all 0.3s ease;
    border-bottom-color: transparent;
}
.account-tab:hover {
    background-color: rgba(58, 152, 185, 0.1);
    color: #3A98B9;
}
.account-tab.active {
    color: #3A98B9;
    border-bottom-color: #3A98B9 !important;
}
.account-tab-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.account-tab-content.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}
.account-tab-close-btn {
    opacity: 0;
    transition: opacity 0.2s ease;
}
.account-tab:hover .account-tab-close-btn {
    opacity: 1;
}
.account-detail-basic-info {
    background-color: #202122;
    border: 1px solid #555;
}
.account-detail-description {
    background-color: #1a1b1c;
}

/* 账号详细介绍内容样式 */
.account-description-content {
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}
.account-description-content strong,
.account-description-content b {
    font-weight: bold;
    color: inherit;
}
.account-description-content em,
.account-description-content i {
    font-style: italic;
}
.account-description-content h1,
.account-description-content h2,
.account-description-content h3,
.account-description-content h4,
.account-description-content h5,
.account-description-content h6 {
    font-weight: bold;
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.4;
}
.account-description-content h1 { font-size: 1.8em; }
.account-description-content h2 { font-size: 1.5em; }
.account-description-content h3 { font-size: 1.3em; }
.account-description-content h4 { font-size: 1.1em; }
.account-description-content p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    white-space: normal;
    line-height: 1.6;
}
.account-description-content p:first-child {
    margin-top: 0;
}
.account-description-content p:last-child {
    margin-bottom: 0;
}
.account-description-content br {
    display: block;
    content: "";
    margin-top: 0.3em;
}
.account-description-content ul,
.account-description-content ol {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 1.5em;
}
.account-description-content li {
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    line-height: 1.6;
}
.account-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}
.account-description-content a {
    color: #3A98B9;
    text-decoration: underline;
}
.account-description-content a:hover {
    opacity: 0.8;
}
.account-description-content blockquote {
    border-left: 4px solid #3A98B9;
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: #CCCCCC;
}
.account-description-content code {
    background-color: #202122;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: monospace;
}
.account-description-content pre {
    background-color: #202122;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}
.account-description-content pre code {
    background-color: transparent;
    padding: 0;
}
.account-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}
.account-description-content table th,
.account-description-content table td {
    border: 1px solid #555;
    padding: 0.5em;
    text-align: left;
}
.account-description-content table th {
    background-color: #202122;
    font-weight: bold;
}

/* 分页容器：flex布局，子元素左右分布 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
    margin-bottom: 20px;
}

/* 左侧记录信息：左对齐 */
.pagination-container > div:first-child {
    margin-bottom: 0;
}

/* 右侧分页列表：右对齐 */
.pagination-container > div:last-child {
    width: auto;
}

/* 分页按钮列表样式 */
.pagination {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-item {
    margin: 0 3px;
}

.pagination-link {
    display: flex;
    padding: 10px;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 30px;
    border-radius: 8px;
    background-color: #1e1e1e;
    color: #ccc;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pagination-item.disabled .pagination-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-item.pagination-active .pagination-link {
    background-color: #3A98B9;
    color: #fff;
}

.pagination-link:hover {
    background-color: #2a2a2a;
    color: #fff;
}

/*复制按钮*/
.btn-copy {
    color: #f3f4f6;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: #374151;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-copy:hover {
    background-color: #4b5563;
}