:root {
    --primary: #c62828;
    --primary-hover: #b71c1c;
    --success: #2e7d32;
    --bg-start: #fce4ec;
    --bg-end: #f8bbd0;
    --card-bg: rgba(255, 255, 255, 0.88);
    --border: rgba(255, 255, 255, 0.2);
    --text: #2c2c2c;
    --text-secondary: #6b6b6b;
    --shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
}

canvas#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    background: var(--card-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border);
    border-radius: 36px;
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
    padding: 42px 34px 38px;
    text-align: center;
    color: var(--text);
    animation: cardPopIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardPopIn {
    0% { opacity: 0; transform: scale(0.92) translateY(40px); }
    70% { transform: scale(1.02) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

h1 {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 6px rgba(230, 57, 70, 0.2));
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { filter: drop-shadow(0 2px 6px rgba(230, 57, 70, 0.2)); }
    100% { filter: drop-shadow(0 4px 16px rgba(255, 82, 82, 0.6)); }
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.error-box {
    background: rgba(230, 57, 70, 0.08);
    border: 1px solid #e63946;
    color: #c62828;
    padding: 18px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ========== 两列信息卡片行 ========== */
.stats-row {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeSlideUp 0.5s 0.15s ease forwards;
}

.stats-card {
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stats-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.notice-card {
    justify-content: center;
}

.notice-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #2e7d32;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    padding: 4px 14px;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(46,125,50,0.12);
    white-space: nowrap;
}

.available-card {
    background: rgba(255, 248, 225, 0.7);
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.available-card .card-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.available-card .card-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e65100;
    background: linear-gradient(135deg, #ffe0b2, #ffcc80);
    padding: 2px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(230, 81, 0, 0.15);
    line-height: 1.2;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.card-number {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    padding: 2px 14px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    line-height: 1.2;
}

/* ========== 字段行 ========== */
.fields-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.field-row {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 16px 20px;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    backdrop-filter: blur(12px);
    opacity: 0;
    animation: fadeSlideUp 0.5s ease forwards;
}

.field-row:nth-child(1) { animation-delay: 0.25s; }
.field-row:nth-child(2) { animation-delay: 0.35s; }
.field-row:nth-child(3) { animation-delay: 0.45s; }
.field-row:nth-child(4) { animation-delay: 0.55s; }

.field-row:hover {
    background: rgba(230, 57, 70, 0.04);
    border-color: rgba(230, 57, 70, 0.3);
    transform: translateX(4px) scale(1.01);
    box-shadow: 0 12px 28px rgba(230, 57, 70, 0.15);
}

.field-row.highlight-email {
    background: linear-gradient(90deg, #e0f2fe 0%, #f0f9ff 100%);
    border-left: 4px solid #0284c7;
}

.field-row.highlight-email:hover {
    background: linear-gradient(90deg, #bae6fd 0%, #e0f2fe 100%);
    box-shadow: 0 12px 28px rgba(2,132,199,0.2);
}

.field-row.highlight-email .field-value {
    font-weight: 700;
    color: #0369a1;
}

.field-row.highlight-password {
    background: linear-gradient(90deg, #fae8ff 0%, #fdf4ff 100%);
    border-left: 4px solid #a21caf;
}

.field-row.highlight-password:hover {
    background: linear-gradient(90deg, #f3d0ff 0%, #fae8ff 100%);
    box-shadow: 0 12px 28px rgba(162,28,175,0.2);
}

.field-row.highlight-password .field-value {
    font-weight: 700;
    color: #86198f;
}

.field-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 85px;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1;
}

.field-value {
    flex: 1;
    font-size: 1rem;
    word-break: break-all;
    text-align: left;
    padding: 0 12px;
    font-weight: 500;
    line-height: 1.4;
    z-index: 1;
}

.field-value.unknown {
    color: #e63946;
    font-style: italic;
    font-weight: 400;
}

.copy-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 20px;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    z-index: 2;
    pointer-events: auto;
}

.copy-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: scale(0.96);
}

.actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    opacity: 0;
    animation: fadeSlideUp 0.5s 0.65s ease forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 18px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    letter-spacing: 0.5px;
    color: white;
    background: linear-gradient(135deg, #e63946 0%, #d62839 100%);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
    opacity: 0;
}

.btn:hover::after {
    left: 100%;
    opacity: 1;
}

.btn:hover {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(230, 57, 70, 0.4);
}

.channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 18px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    letter-spacing: 0.5px;
    color: #1e40af;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.channel-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: rotate(45deg);
    transition: 0.6s;
    opacity: 0;
}

.channel-btn:hover::after {
    left: 100%;
    opacity: 1;
}

.channel-btn:hover {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    box-shadow: 0 18px 40px rgba(59, 130, 246, 0.35);
    transform: translateY(-3px);
}

.channel-icon {
    font-size: 1.2rem;
}

.copied-feedback {
    display: none;
    color: #2e7d32;
    font-weight: 600;
    margin-top: 14px;
    font-size: 0.95rem;
    animation: fadeSlideIn 0.35s ease;
}

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

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

.footer-info {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
    color: #888;
    opacity: 0;
    animation: fadeSlideUp 0.5s 0.9s ease forwards;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 移动端适配：保持左右排列，缩小尺寸 */
@media (max-width: 480px) {
    .card {
        padding: 30px 20px;
    }
    h1 {
        font-size: 1.9rem;
    }
    .stats-row {
        /* 保持 flex-direction: row（默认），无需修改 */
        gap: 6px;
        margin-bottom: 16px;
    }
    .stats-card {
        padding: 8px 8px;
    }
    .notice-text {
        font-size: 0.8rem;
        white-space: normal;   /* 允许换行避免溢出 */
        padding: 4px 8px;
    }
    .available-card .card-label {
        font-size: 0.75rem;
    }
    .available-card .card-number {
        font-size: 1.4rem;
        padding: 2px 10px;
    }
    .field-row {
        flex-wrap: wrap;
        padding: 12px 14px;
    }
    .field-label {
        min-width: 70px;
        font-size: 0.8rem;
    }
    .field-value {
        font-size: 0.9rem;
    }
    .copy-btn {
        margin-top: 6px;
    }
    .actions {
        flex-direction: column;
        gap: 12px;
    }
    .btn, .channel-btn {
        width: 100%;
        justify-content: center;
    }
}