/* 活码页样式 - 苹果玻璃拟态 */
:root {
    --bg: #f5f5f7;
    --card-bg: rgba(255, 255, 255, 0.72);
    --card-border: rgba(255, 255, 255, 0.5);
    --text: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --card-bg: rgba(28, 28, 30, 0.72);
        --card-border: rgba(255, 255, 255, 0.08);
        --text: #f5f5f7;
        --text-secondary: #86868b;
        --shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    }
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container {
    width: 100%;
    max-width: 440px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 36px 32px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    position: relative;
    overflow: hidden;
}
.title {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}
.qr-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #ffffff;
    padding: 16px;
}
.qr-image {
    width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}
.qr-overlay {
    position: absolute;
    inset: 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}
.qr-overlay.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
}
.qr-overlay-text {
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    letter-spacing: -0.01em;
}
.qr-overlay-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qr-overlay-icon svg {
    width: 26px;
    height: 26px;
    color: #ffffff;
}
.action-btn {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 18px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s;
    letter-spacing: -0.01em;
}
.action-btn:hover { background: var(--accent-hover); }
.action-btn:active { transform: scale(0.98); }
.text-content {
    background: rgba(0, 0, 0, 0.04);
    border-radius: 20px;
    padding: 24px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    letter-spacing: -0.01em;
}
@media (prefers-color-scheme: dark) {
    .text-content { background: rgba(255, 255, 255, 0.06); }
    .qr-wrapper { background: #1c1c1e; }
}
.empty-state {
    text-align: center;
    padding: 48px 20px;
}
.empty-state svg {
    width: 56px;
    height: 56px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    opacity: 0.4;
}
.empty-state p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}
.pulse {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s infinite cubic-bezier(0.4, 0, 0.6, 1);
}
.pulse-dot:nth-child(2) { animation-delay: 0.2s; }
.pulse-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}
.footer {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.01em;
}
.footer-time {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    opacity: 0.7;
}
.footer-quote {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    font-style: italic;
    opacity: 0.6;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}
@media (max-width: 480px) {
    body { padding: 16px; }
    .card { padding: 28px 24px; border-radius: 24px; }
    .title { font-size: 20px; }
    .qr-overlay-text { font-size: 15px; }
    .action-btn { font-size: 16px; padding: 16px; }
}
