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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a2e;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 背景动画效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(10px, 10px) scale(1.05);
    }
}

/* 主容器 */
.list-container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 16px;
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.page-title h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-title p {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* 注册福利模块 */
.bonus-section {
    margin-bottom: 30px;
}

.bonus-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.bonus-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.bonus-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(255, 107, 107, 0.4);
}

.bonus-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.bonus-icon {
    font-size: 40px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.bonus-text {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.bonus-btn {
    background: #fff;
    color: #ff6b6b;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bonus-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    background: #f8f9fa;
}

/* 币种列表 */
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.list-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.list-item:hover::before {
    left: 100%;
}

.list-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    transform: translateX(12px) translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
}

.item-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.item-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.list-item:hover .item-logo {
    transform: scale(1.15) rotate(5deg);
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

.item-name {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.item-fullname {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
}

.item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.item-price-row {
    text-align: right;
}

.item-price {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.item-change-row {
    text-align: right;
}

.item-change {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 14px;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.item-change.up {
    color: #00d09c;
    background: rgba(0, 208, 156, 0.2);
    border: 1px solid rgba(0, 208, 156, 0.4);
    box-shadow: 0 4px 15px rgba(0, 208, 156, 0.3);
}

.item-change.down {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

/* 分页样式 */
.page-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding: 20px 0;
}

.page-btn,
.page-num,
.page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(10px);
}

.page-btn:hover,
.page-num:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.page-current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.page-ellipsis {
    color: rgba(255,255,255,0.5);
    padding: 0 12px;
    font-size: 18px;
}

.empty {
    text-align: center;
    padding: 120px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 详情页卡片 */
.detail-card {
    max-width: 1000px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-header {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-header-left {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
}

.detail-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.detail-info h1 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.detail-info time {
    font-size: 16px;
    color: rgba(255,255,255,0.6);
}

.detail-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-price {
    text-align: left;
}

.detail-change {
    text-align: right;
}

.detail-price-label,
.detail-change-label {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-price-value {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.detail-change-value {
    font-size: 24px;
    font-weight: 800;
    padding: 8px 18px;
    display: inline-block;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.detail-change-value.up {
    color: #00d09c;
    background: rgba(0, 208, 156, 0.2);
    border: 1px solid rgba(0, 208, 156, 0.4);
    box-shadow: 0 4px 15px rgba(0, 208, 156, 0.3);
}

.detail-change-value.down {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

/* 统计卡片网格 */
.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px 12px;
    text-align: left;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 描述区域 */
.detail-description {
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
}

.detail-description .h1 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.detail-description p {
    font-size: 16px;
    line-height: 2.2;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

/* 热门币种 */
.section-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 40px 0 24px 0;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: '';
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.hot-coins-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.hot-coin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hot-coin-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
}

.hot-coin-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.hot-coin-logo img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.hot-coin-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.hot-coin-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hot-coin-fullname {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.hot-coin-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.hot-coin-price-row {
    text-align: right;
}

.hot-coin-price {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hot-coin-change-row {
    text-align: right;
}

.hot-coin-change {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 18px;
    display: inline-block;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.hot-coin-change.up {
    color: #00d09c;
    background: rgba(0, 208, 156, 0.2);
    border: 1px solid rgba(0, 208, 156, 0.4);
    box-shadow: 0 4px 15px rgba(0, 208, 156, 0.3);
}

.hot-coin-change.down {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
        padding-bottom: 40px;
    }
    
    .list-container {
        margin: 20px auto;
        padding: 0 12px;
    }
    
    .page-title {
        margin-bottom: 30px;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .page-title p {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .bonus-section {
        margin-bottom: 30px;
    }
    
    .bonus-card {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px;
        border-radius: 16px;
    }
    
    .bonus-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .bonus-icon {
        font-size: 32px;
    }
    
    .bonus-text {
        font-size: 16px;
    }
    
    .bonus-btn {
        padding: 12px 24px;
        font-size: 14px;
        display: block;
        width: 100%;
    }
    
    .coin-list {
        padding: 12px;
        border-radius: 16px;
    }
    
    .list-item {
        padding: 14px 16px;
        border-radius: 12px;
        margin: 6px 0;
    }
    
    .item-left {
        gap: 12px;
    }
    
    .item-logo {
        width: 44px;
        height: 44px;
    }
    
    .item-name {
        font-size: 16px;
    }
    
    .item-fullname {
        font-size: 12px;
    }
    
    .item-right {
        gap: 8px;
    }
    
    .item-price {
        font-size: 18px;
    }
    
    .item-change {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .page-bar {
        margin-top: 30px;
        padding: 20px 0;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .page-btn,
    .page-num,
    .page-current {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
        padding: 0 12px;
        border-radius: 10px;
    }
    
    .page-ellipsis {
        font-size: 14px;
        padding: 0 6px;
    }
    
    .detail-card {
        margin: 20px 0;
        padding: 15px;
        border-radius: 16px;
    }
    
    .detail-header {
        margin-bottom: 24px;
        padding-bottom: 20px;
    }
    
    .detail-header-left {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .detail-logo img {
        width: 64px;
        height: 64px;
    }
    
    .detail-info h1 {
        font-size: 22px;
    }
    
    .detail-header-right {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
        border-radius: 16px;
    }
    .detail-price-section {
        padding: 0;
    }
    
    .detail-price,
    .detail-change {
        padding: 16px;
    }
    
    .detail-price-value {
        font-size: 28px;
    }
    
    .detail-change-value {
        font-size: 20px;
        padding: 8px 16px;
    }
    
    .detail-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .stat-card {
        padding: 20px;
        border-radius: 16px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .detail-description {
        margin-bottom: 24px;
        padding: 20px;
        border-radius: 16px;
    }
    
    .detail-description h1 {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .detail-description p {
        font-size: 14px;
    }
    
    .back-btn {
        padding: 12px 24px;
        font-size: 14px;
        gap: 8px;
    }
    
    .section-title {
        font-size: 20px;
        margin: 40px 0 24px 0;
        gap: 12px;
    }
    
    .section-title::before {
        width: 30px;
        height: 3px;
    }
    
    .hot-coins-section {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .hot-coin-item {
        padding: 20px;
        border-radius: 16px;
    }
    
    .hot-coin-left {
        gap: 16px;
    }
    
    .hot-coin-logo img {
        width: 48px;
        height: 48px;
    }
    
    .hot-coin-name {
        font-size: 18px;
    }
    
    .hot-coin-fullname {
        font-size: 12px;
    }
    
    .hot-coin-right {
        gap: 8px;
    }
    
    .hot-coin-price {
        font-size: 20px;
    }
    
    .hot-coin-change {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .empty {
        padding: 80px 20px;
        font-size: 14px;
        border-radius: 16px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
