/* 全局设定 */
:root {
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-sub: rgba(255, 255, 255, 0.6);
    --accent-glow: rgba(64, 156, 255, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: #0f172a;
    background-image: radial-gradient(circle at top right, #1e293b, #0f172a);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 动态背景光斑 */
.bg-shape {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    border-radius: 50%;
    animation: float 10s infinite alternate ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: rgba(56, 189, 248, 0.15);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(139, 92, 246, 0.15);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

/* 毛玻璃主面板 */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: panelEnter 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 头部样式 */
.profile-header {
    text-align: center;
    margin-bottom: 25px;
}

.avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #38bdf8, #8b5cf6);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
}

/* 头像发光呼吸效果 */
.glow-effect {
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
    animation: avatarPulse 3s infinite alternate;
}

.title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* 渐变文字效果 */
.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(165, 180, 252, 0.2);
}

.domain {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-top: 4px;
}

/* 分割线 */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 25px 0;
}

/* 访客信息区 */
.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-sub);
    margin-bottom: 15px;
}

.info-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.info-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

/* 卡片内部的图标对齐 */
.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-sub);
}

.info-label svg {
    color: #8b5cf6;
    opacity: 0.8;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 500;
    font-family: monospace;
}

.loading {
    animation: textPulse 1.5s infinite;
    color: #38bdf8;
}

/* 按钮设计 */
.action-section {
    margin-top: 30px;
}

.glass-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 0 15px var(--accent-glow);
}

/* 按钮的流光效果 */
.pulse-btn {
    position: relative;
    overflow: hidden;
}

.pulse-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: btnShine 4s infinite;
}

/* 页脚 */
.footer {
    position: absolute;
    bottom: 20px;
    font-size: 0.8rem;
    color: var(--text-sub);
}

.heart {
    color: #ef4444;
}

/* 动画定义 */
@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 30px); }
}

@keyframes panelEnter {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes avatarPulse {
    0% { box-shadow: 0 0 20px rgba(56, 189, 248, 0.3); }
    100% { box-shadow: 0 0 35px rgba(139, 92, 246, 0.6); }
}

@keyframes btnShine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}
