/* ===== 基础重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== 全局样式 ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a25;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-cyan: #00f5ff;
    --accent-purple: #b026ff;
    --accent-blue: #4d79ff;
    --border-glow: rgba(0, 245, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== 粒子背景 ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== 主容器 ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ===== 头部 ===== */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease;
}

.avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-cyan);
    border-right-color: var(--accent-purple);
    animation: spin 3s linear infinite;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--accent-blue);
    animation: spin 5s linear infinite reverse;
}

.avatar {
    position: relative;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(0, 245, 255, 0.4);
}

.avatar-text {
    font-size: 48px;
    font-weight: bold;
    color: var(--bg-primary);
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

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

.name {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

.title {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.location {
    font-size: 16px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.location-icon {
    font-size: 14px;
}

/* ===== 通用区块样式 ===== */
.section {
    margin-bottom: 50px;
    animation: fadeInUp 1s ease;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600;
}

.title-line {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan));
}

.title-line:last-child {
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

.title-text {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== 标签区域 ===== */
.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.tag-item {
    background: var(--bg-card);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.tag-item:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
    transform: translateY(-5px);
}

.tag-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 10px;
}

.tag-content {
    flex: 1;
}

.tag-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.tag-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== 圈子区域 ===== */
.community-grid {
    display: grid;
    gap: 20px;
}

.community-item {
    background: var(--bg-card);
    border: 1px solid rgba(176, 38, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.community-item:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.2);
}

.community-label {
    font-size: 14px;
    color: var(--accent-purple);
    margin-bottom: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.community-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.community-tag {
    background: rgba(176, 38, 255, 0.15);
    border: 1px solid rgba(176, 38, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.community-tag:hover {
    background: rgba(176, 38, 255, 0.3);
    transform: scale(1.05);
}

/* ===== 成就区域 ===== */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid rgba(77, 121, 255, 0.2);
    border-radius: 10px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-cyan), var(--accent-blue));
    transition: width 0.3s ease;
}

.achievement-card:hover::before {
    width: 100%;
    opacity: 0.1;
}

.achievement-card:hover {
    border-color: var(--accent-blue);
    transform: translateX(10px);
}

.achievement-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-blue);
    min-width: 30px;
    text-shadow: 0 0 10px rgba(77, 121, 255, 0.5);
}

.achievement-text {
    font-size: 14px;
    line-height: 1.6;
}

.highlight {
    color: var(--accent-cyan);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* ===== 技能区域 ===== */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-bar {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(0, 245, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-bar:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.1);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-name {
    font-size: 16px;
    font-weight: 600;
}

.skill-percent {
    font-size: 14px;
    color: var(--accent-cyan);
}

.skill-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

/* ===== 社交媒体区域 ===== */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.social-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-card:not([href]) {
    cursor: pointer;
}

.social-card[cursor-pointer] {
    cursor: pointer;
}

.social-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    transform: translateY(-5px);
}

.social-card[cursor-pointer] {
    cursor: pointer;
}

.social-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 12px;
}

.social-info {
    flex: 1;
}

.social-platform {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.social-handle {
    font-size: 14px;
    color: var(--accent-cyan);
    margin-bottom: 3px;
}

.social-followers {
    font-size: 12px;
    color: var(--text-secondary);
}

.social-tip {
    font-size: 12px;
    color: var(--accent-purple);
    margin-top: 3px;
}

/* ===== 弹窗样式 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    font-size: 22px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    text-align: center;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(0, 245, 255, 0.3);
    margin-bottom: 20px;
}

.modal-placeholder {
    width: 200px;
    height: 200px;
    background: rgba(0, 245, 255, 0.1);
    border: 2px dashed rgba(0, 245, 255, 0.3);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.modal-tip {
    font-size: 16px;
    color: var(--accent-cyan);
    margin-top: 15px;
}

/* ===== 服务区域 ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(176, 38, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.3);
    transform: translateY(-10px);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(176, 38, 255, 0.5));
}

.service-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent-purple);
}

.service-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 页脚 ===== */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid rgba(0, 245, 255, 0.1);
    margin-top: 60px;
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-quote {
    font-style: italic;
    color: var(--accent-cyan);
    opacity: 0.8;
}

/* ===== 动画 ===== */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }

    .name {
        font-size: 36px;
    }

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

    .avatar-text {
        font-size: 36px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .tags-grid,
    .social-links {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 20px;
    }
}
