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

:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --accent: #f472b6;
    --text: #1f2937;
    --text-light: #6b7280;
    --card-bg: rgba(255, 255, 255, 0.72);
    --card-border: rgba(255, 255, 255, 0.9);
    --shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f5f3ff 0%, #fff1f2 50%, #eff6ff 100%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #c7d2fe;
    top: -150px;
    right: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: #fbcfe8;
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(1.05); }
}

.container {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: 0 auto;
    padding: 60px 24px 40px;
    min-height: 100vh;
}

.profile {
    text-align: center;
    margin-bottom: 40px;
}

.avatar {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.25);
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
}

.title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.subtitle {
    font-size: 14px;
    color: var(--text-light);
}

.cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 50px -10px rgba(99, 102, 241, 0.3);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: var(--primary);
    flex-shrink: 0;
}

.card-icon.wechat {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #22c55e;
}

.card-icon.notice {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #f97316;
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.card-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.card-more {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.card-more svg {
    width: 20px;
    height: 20px;
}

.card:hover .card-more {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

.declaration {
    text-align: center;
}

.decl-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.decl-btn:hover {
    background: rgba(255, 255, 255, 0.85);
}

.decl-arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.declaration.open .decl-arrow {
    transform: rotate(180deg);
}

.decl-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.declaration.open .decl-content {
    max-height: 300px;
    opacity: 1;
    margin-top: 16px;
}

.decl-content p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.8;
    padding: 0 12px;
}

.decl-content p + p {
    margin-top: 8px;
}

.toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(31, 41, 55, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 300;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    z-index: 150;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    padding: 20px;
}

.qr-modal.show {
    display: flex;
    animation: qrFadeIn 0.25s ease;
}

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

.qr-content {
    position: relative;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 32px 28px 28px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.25);
    animation: qrPopIn 0.3s ease;
}

@keyframes qrPopIn {
    from { opacity: 0; transform: translateY(16px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.qr-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.qr-close:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.qr-close svg {
    width: 20px;
    height: 20px;
}

.qr-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text);
}

.qr-content img {
    width: 100%;
    max-width: 220px;
    border-radius: 16px;
    margin-bottom: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.qr-content p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

.notice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: 160;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    padding: 20px;
}

.notice-modal.show {
    display: flex;
    animation: qrFadeIn 0.25s ease;
}

.notice-content {
    position: relative;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 28px 20px 24px;
    max-width: 420px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.25);
    animation: qrPopIn 0.3s ease;
}

.notice-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notice-close:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.notice-close svg {
    width: 20px;
    height: 20px;
}

.notice-content h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.notice-content img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.context-menu {
    display: none;
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 6px;
    min-width: 150px;
    z-index: 200;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(12px);
}

.context-menu.show {
    display: block;
    animation: menuIn 0.15s ease;
}

@keyframes menuIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.context-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    color: var(--text);
    font-size: 13px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.context-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

.context-item svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 480px) {
    .container {
        padding-top: 50px;
    }

    .title {
        font-size: 24px;
    }

    .avatar {
        width: 96px;
        height: 96px;
    }
}
