/* 
  TRON 智能闪兑与哈希查询平台 - 核心样式表
  设计风格: Web3 极客暗黑风 (Dark Neon & Glassmorphism)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --bg-color: #070a13;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-bg-hover: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary-cyan: #06b6d4;
    --primary-purple: #a855f7;
    --primary-green: #10b981;
    --primary-red: #ef4444;
    --primary-yellow: #f59e0b;
    
    --neon-cyan-glow: 0 0 15px rgba(6, 182, 212, 0.3);
    --neon-purple-glow: 0 0 15px rgba(168, 85, 247, 0.3);
    
    --font-header: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.08) 0%, transparent 45%);
    background-attachment: fixed;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 容器布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部导航 */
header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 10, 19, 0.7);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    filter: drop-shadow(var(--neon-cyan-glow));
}

.logo-text {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(to right, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

nav a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.btn-connect {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    border: none;
    color: white;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--neon-cyan-glow);
}

.btn-connect:hover {
    transform: translateY(-1px);
    box-shadow: var(--neon-cyan-glow), var(--neon-purple-glow);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--primary-green);
}

.status-dot.disconnected {
    background-color: var(--primary-red);
    box-shadow: 0 0 8px var(--primary-red);
}

/* 主搜索区 */
.search-hero {
    text-align: center;
    padding: 60px 0 40px 0;
}

.search-hero h1 {
    font-family: var(--font-header);
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(to right, #fff 30%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.search-hero p {
    color: var(--text-secondary);
    font-size: 15px;
    max-width: 600px;
    margin: 0 auto 32px auto;
    line-height: 1.6;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 6px 6px 6px 18px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.search-wrapper:focus-within {
    border-color: var(--primary-cyan);
    box-shadow: var(--neon-cyan-glow), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 15px;
    padding-right: 12px;
    width: 100%;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.btn-search {
    background-color: var(--primary-cyan);
    border: none;
    color: white;
    padding: 10px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    flex-shrink: 0; /* 防止被左侧输入框挤压 */
    white-space: nowrap; /* 保持在单行 */
    animation: radar-pulse 2s infinite; /* 雷达闪烁效果 */
}

@keyframes radar-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

.btn-search:hover {
    background-color: #0891b2;
    transform: scale(1.02);
}

/* 实时币价跑马灯/卡片 */
.price-section {
    margin-bottom: 40px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.price-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.price-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.price-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.price-card:hover::after {
    transform: translateX(100%);
}

.coin-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px;
}

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

.coin-name {
    font-family: var(--font-header);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.coin-price {
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.coin-price-cny {
    font-size: 12px;
    color: var(--text-secondary);
}

.price-tag-sub {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 12px;
}

/* 导航小工具栏 / 批量查询 */
.quick-tools {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.btn-batch {
    background: rgba(78, 110, 242, 0.1);
    border: 1px dashed rgba(78, 110, 242, 0.3);
    color: #818cf8;
    padding: 10px 30px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(78, 110, 242, 0.05);
}

.btn-batch:hover {
    background: rgba(78, 110, 242, 0.18);
    border-color: #818cf8;
    color: #ffffff;
}

/* 合作伙伴与服务区 (原导航列表) */
.services-section {
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-cyan);
    box-shadow: var(--neon-cyan-glow);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.service-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--card-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.service-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.service-title {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.4;
}

/* 哈希查询结果面板 (核心交互模块) */
.result-section {
    display: none; /* 初始隐藏，查询后显示 */
    margin-bottom: 60px;
    animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.result-title {
    font-family: var(--font-header);
    font-size: 20px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-tag-display {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 6px 14px;
    border-radius: 15px;
    font-family: monospace;
    font-size: 14px;
    color: var(--primary-cyan);
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-copy-small {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-copy-small:hover {
    color: white;
}

/* 结果统计面板 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-value {
    font-family: var(--font-header);
    font-size: 22px;
    font-weight: 700;
}

.stat-value.income { color: var(--primary-green); }
.stat-value.expense { color: var(--primary-red); }
.stat-value.cyan { color: var(--primary-cyan); }
.stat-value.yellow { color: var(--primary-yellow); }

.stat-cny {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 2px;
    font-family: var(--font-body);
}

/* 交易列表 */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--card-border);
    border-radius: 12px;
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.tx-table th, .tx-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--card-border);
}

.tx-table th {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    font-weight: 600;
}

.tx-table tr:last-child td {
    border-bottom: none;
}

.tx-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.01);
}

.direction-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    display: inline-block;
}

.direction-badge.in {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-green);
}

.direction-badge.out {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--primary-red);
}

.hash-link {
    color: var(--primary-cyan);
    text-decoration: none;
    font-family: monospace;
}

.hash-link:hover {
    text-decoration: underline;
}

/* 模拟实时流水 */
.live-stream-section {
    margin-bottom: 60px;
}

.live-stream-header {
    position: relative;
    margin-bottom: 16px;
}

#whale-filter-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}

.live-badge {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: 0 auto 16px auto;
}

.live-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-green);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 8px var(--primary-green); }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* FAQ 常见问题区 */
.faq-section {
    margin-bottom: 60px;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: var(--card-bg-hover);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease, padding 0.2s ease;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px 24px;
    max-height: 200px;
}

.faq-icon {
    font-size: 18px;
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-cyan);
}

/* 页脚与官方客服 */
footer {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--card-border);
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
}

.footer-links a:hover {
    color: white;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-kefu {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.btn-kefu:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-cyan);
    box-shadow: var(--neon-cyan-glow);
}

.btn-kefu img {
    width: 20px;
    height: 20px;
}

/* Toast 提示通知样式 */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.toast-message {
    background: rgba(7, 10, 19, 0.9);
    border: 1px solid var(--primary-cyan);
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--neon-cyan-glow);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toastIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 模态弹窗 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    animation: fadeInOverlay 0.25s ease forwards;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #0b0f19;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-family: var(--font-header);
    font-size: 18px;
    font-weight: 700;
}

.btn-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
}

.btn-modal-close:hover {
    color: white;
}


/* 安全评级标签及警报 */
.badge-safe {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    display: inline-block;
}
.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--primary-yellow);
    color: var(--primary-yellow);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    display: inline-block;
}
.badge-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    display: inline-block;
    animation: flash-red-badge 1.5s infinite;
}
@keyframes flash-red-badge {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* AML 评级与备注系统新增样式 */
#aml-profile-card {
    display: none;
}
@media (max-width: 768px) {
    #aml-profile-card {
        grid-template-columns: 1fr !important;
    }
}
.badge-entity {
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
}
.badge-binance {
    background: rgba(243, 186, 47, 0.15);
    border: 1px solid #f3ba2f;
    color: #f3ba2f;
}
.badge-okx {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffffff;
    color: #ffffff;
}
.badge-other-exchange {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid var(--primary-cyan);
    color: var(--primary-cyan);
}
.badge-contract {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
}
.badge-user-note {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #10b981;
}

/* ========================================================================
   全面移动端适配 v2.0 — 覆盖所有模块 (TG 群引流用户 90% 手机端)
   三层断点: 768px(平板) → 480px(手机) → 360px(小屏手机)
   ======================================================================== */

/* ===================== 平板 & 小屏笔电 (≤768px) ===================== */
@media (max-width: 768px) {
    /* — 头部导航 — */
    .header-container { height: 56px; }
    nav { display: none; }  /* 导航链接隐藏 */

    /* — 搜索区 — */
    .search-hero { padding: 40px 0 28px 0; }
    .search-hero h1 { font-size: 26px; }
    .search-hero p { font-size: 13px; margin-bottom: 20px; }
    .search-wrapper { padding: 4px 4px 4px 12px; }
    .btn-search { padding: 8px 18px; font-size: 13px; }

    /* — 价格卡片 — */
    .price-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
    .price-card { padding: 14px 16px; justify-content: center; }
    .coin-icon { width: 36px; height: 36px; }

    /* — 查询结果 — */
    .result-card { padding: 20px 14px; border-radius: 16px; }
    .result-header { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 14px; margin-bottom: 16px; }
    .result-title { font-size: 17px; }
    .address-tag-display { font-size: 12px; padding: 5px 10px; width: 100%; overflow-x: auto; }

    /* — AML 面板 — */
    #aml-profile-card { grid-template-columns: 1fr !important; gap: 14px !important; }

    /* — 统计卡片 — */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-value { font-size: 18px; }

    /* — Token 持仓 — */
    #token-holdings-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }

    /* — 交易流水表格 — */
    .tx-table { font-size: 12px; min-width: 650px; }
    .tx-table th, .tx-table td { padding: 10px 8px; }
    .table-responsive { -webkit-overflow-scrolling: touch; }

    /* — 服务卡片 — */
    .services-grid { grid-template-columns: 1fr 1fr !important; gap: 12px; }
    .service-card { padding: 18px 14px; border-radius: 14px; }

    /* — 实时流水表 — */
    .live-stream-section .tx-table { min-width: 700px; }
    .live-badge { font-size: 10px; }

    /* — FAQ — */
    .faq-question { padding: 14px 16px; font-size: 14px; }
    .faq-answer { font-size: 13px; }
    .faq-item.active .faq-answer { padding: 0 16px 16px 16px; }

    /* — 弹窗通用 — */
    .modal-content { width: 95% !important; max-width: 95% !important; max-height: 90vh; overflow-y: auto; padding: 20px 16px; border-radius: 16px; }
    .modal-title { font-size: 16px; }

    /* — 底部 — */
    footer { padding: 24px 0; }
    .footer-container { flex-direction: column; align-items: flex-start; gap: 16px; }
    .footer-right { width: 100%; justify-content: space-between; }
    .footer-links { gap: 14px; font-size: 12px; }
    .btn-kefu { padding: 8px 14px; font-size: 12px; }

    /* — 批量查询入口 — */
    .quick-tools { flex-direction: column; }
    .quick-tools .btn-batch { width: 100%; text-align: center; }

    /* — 全局间距 — */
    .section-title { font-size: 20px; }
    .services-section, .live-stream-section, .faq-section { margin-bottom: 40px; }
}

/* ===================== 手机竖屏 (≤480px) ===================== */
@media (max-width: 480px) {
    /* — 容器 — */
    .container { padding-left: 12px; padding-right: 12px; }

    /* — 头部 — */
    .header-container { padding: 0 10px; height: 50px; }
    .logo-icon { width: 24px !important; height: 24px !important; }
    .logo-text { font-size: 15px !important; }
    .logo-section { gap: 6px; }
    .btn-connect { font-size: 12px; padding: 7px 12px; border-radius: 16px; gap: 4px; }
    .status-dot { width: 6px; height: 6px; }

    /* — 实时流水头部（解决手机端重叠冲突） — */
    .live-stream-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
    }
    #whale-filter-toggle {
        position: static;
        transform: none;
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: var(--text-secondary);
        cursor: pointer;
        user-select: none;
    }

    /* — 搜索区：纵向排列 — */
    .search-hero { padding: 24px 0 20px 0; }
    .search-hero h1 { font-size: 19px; line-height: 1.35; letter-spacing: -0.5px; }
    .search-hero p { font-size: 12px; margin-bottom: 14px; line-height: 1.5; }
    .search-wrapper {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
        border-radius: 16px;
    }
    .search-input {
        font-size: 14px;
        padding: 12px 14px;
        border-radius: 12px;
        width: 100%;
        /* 手机上输入框要够大，方便手指点击 */
        min-height: 44px;
    }
    .btn-search {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 12px;
        border-radius: 12px;
        font-size: 15px;
        min-height: 44px;
    }
    #search-history-dropdown { border-radius: 0 0 16px 16px !important; }

    /* — 价格卡片更紧凑 — */
    .price-section { margin-bottom: 24px; }
    .price-card { padding: 12px 14px; border-radius: 12px; gap: 10px; justify-content: center; }
    .coin-icon { width: 32px; height: 32px; }
    .coin-name { font-size: 12px; }
    .coin-price { font-size: 16px; }
    .coin-price-cny { font-size: 11px; }
    .price-tag-sub { font-size: 10px; }

    /* — 查询结果区 — */
    .result-card { padding: 14px 10px; border-radius: 14px; }
    .result-header { gap: 8px; padding-bottom: 10px; margin-bottom: 12px; }
    .result-title { font-size: 15px; gap: 6px; }
    .address-tag-display {
        font-size: 11px;
        padding: 4px 8px;
        border-radius: 10px;
        flex-wrap: wrap;
        gap: 4px;
    }
    #searched-address-text { font-size: 11px !important; word-break: break-all; }
    .btn-copy-small { font-size: 12px; padding: 2px; }

    /* — 安全警报 — */
    #security-warning-banner { padding: 10px 12px !important; font-size: 12px !important; border-radius: 10px !important; }

    /* — AML 面板 — */
    #aml-profile-card { gap: 10px !important; }
    #aml-profile-card > div { padding: 14px !important; border-radius: 12px !important; min-height: 140px !important; }

    /* — 统计卡片 — */
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .stat-item { padding: 10px 8px; border-radius: 10px; gap: 4px; }
    .stat-label { font-size: 10px; }
    .stat-value { font-size: 15px; }

    /* — Token 持仓 — */
    #token-holdings-card { padding: 12px !important; border-radius: 10px !important; }
    #token-holdings-list { grid-template-columns: 1fr 1fr !important; gap: 6px !important; }

    /* — 资金来源分析 — */
    #source-analysis-card { padding: 12px !important; border-radius: 10px !important; }
    #source-analysis-card span { font-size: 11px !important; }

    /* — 交易明细表头按钮 — */
    #btn-view-graph { font-size: 11px !important; padding: 3px 10px !important; }

    /* — 交易流水表格 — */
    .table-responsive { border-radius: 10px; -webkit-overflow-scrolling: touch; }
    .tx-table { font-size: 11px; min-width: 580px; }
    .tx-table th { font-size: 11px; padding: 8px 6px; }
    .tx-table td { padding: 8px 6px; }
    .direction-badge { font-size: 10px; padding: 1px 6px; }
    .hash-link { font-size: 11px; }

    /* — 服务卡片 — */
    .services-grid { grid-template-columns: 1fr !important; gap: 10px; }
    .service-card { padding: 16px 14px; flex-direction: row; border-radius: 12px; gap: 12px; text-align: left; }
    .service-icon-wrapper { width: 48px; height: 48px; min-width: 48px; border-radius: 12px; }
    .service-icon { width: 36px; height: 36px; }
    .service-icon-wrapper svg { width: 48px !important; height: 48px !important; }
    .service-title { font-size: 14px; }
    .service-desc { font-size: 11px; }
    .section-title { font-size: 18px; margin-bottom: 16px; }

    /* — 实时流水表格 — */
    .live-stream-section .tx-table { min-width: 620px; font-size: 11px; }
    .live-badge { font-size: 10px; padding: 3px 8px; margin: 0; }
    .live-stream-section { margin-bottom: 32px; }

    /* — FAQ — */
    .faq-section { margin-bottom: 32px; }
    .faq-question { padding: 12px 14px; font-size: 13px; }
    .faq-answer { font-size: 12px; line-height: 1.5; }
    .faq-item.active .faq-answer { padding: 0 14px 14px 14px; }
    .faq-icon { font-size: 16px; }

    /* — 所有弹窗 — */
    .modal-content {
        width: 96% !important;
        max-width: 96% !important;
        padding: 16px 12px;
        border-radius: 14px;
        max-height: 92vh;
    }
    .modal-title { font-size: 15px; }
    .modal-header { margin-bottom: 14px; }
    .btn-modal-close { font-size: 20px; }

    /* — 拓扑图弹窗自适应（不再全屏，去掉下方空白） — */
    #graph-modal .modal-content {
        width: 96% !important;
        max-width: 96% !important;
        height: auto;
        max-height: 95vh;
        overflow-y: auto;
        border-radius: 14px;
        padding: 10px;
    }
    #graph-modal .modal-content canvas {
        border-radius: 10px;
    }

    /* — 底部 — */
    footer { padding: 20px 0; }
    .footer-container { gap: 10px; }
    .footer-left { gap: 6px; }
    .footer-left p { font-size: 11px; }
    .footer-links { gap: 10px; flex-wrap: wrap; }
    .footer-links a { font-size: 11px; }
    .footer-right { flex-wrap: wrap; gap: 8px; }
    .btn-kefu { padding: 6px 12px; font-size: 11px; border-radius: 14px; }

    /* — Toast 提示 — */
    .toast-container { bottom: 16px; }
    .toast-message { padding: 8px 16px; font-size: 12px; border-radius: 20px; }

    /* — 全局间距压缩 — */
    .services-section { margin-bottom: 32px; }
}

/* ===================== 超小屏手机 (≤360px) ===================== */
@media (max-width: 360px) {
    .search-hero h1 { font-size: 17px; }
    .search-hero p { font-size: 11px; }
    .logo-text { font-size: 13px !important; }
    .btn-connect { font-size: 11px; padding: 6px 10px; }
    .stat-value { font-size: 14px; }
    .stat-label { font-size: 9px; }
    .result-title { font-size: 14px; }
    .coin-price { font-size: 14px; }
    .section-title { font-size: 16px; }
    #token-holdings-list { grid-template-columns: 1fr !important; }
    .service-card { padding: 12px 10px; }
}
