/* ==================== CSS 重置 & 基础样式 ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* --- 主题色变量：修改这里可以调整整体发光色调 --- */
    --glow-blue: #00b8ff;
    --glow-cyan: #00e5ff;
    --glow-deep: #0055cc;
    --bg-deep: #020b1a;
    --bg-mid: #0a1628;
    --text-primary: #e0e8f0;
    --text-secondary: #8899aa;
    --card-bg: rgba(15, 28, 50, 0.65);
    --card-border: rgba(0, 160, 255, 0.18);
    --card-hover-border: rgba(0, 200, 255, 0.55);
    --card-hover-glow: rgba(0, 160, 255, 0.25);
    --font-family: 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', sans-serif;
}

body {
    font-family: var(--font-family);
    /* --- 深色渐变背景 --- */
    background: radial-gradient(ellipse at 50% 30%, #0b1a35 0%, #030d1e 40%, #010610 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 16px 60px;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==================== 粒子背景画布 ==================== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* 不阻挡鼠标事件 */
}

/* ==================== 主内容容器 ==================== */
.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    /* --- 容器微发光边框 --- */
    background: rgba(8, 20, 40, 0.45);
    border: 1px solid rgba(0, 160, 255, 0.12);
    border-radius: 20px;
    padding: 40px 36px 44px;
    box-shadow:
        0 0 80px rgba(0, 120, 220, 0.06),
        0 0 20px rgba(0, 160, 255, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    margin-top: 30px;
}

/* ==================== 顶部 ICP 备案号 ==================== */
/* --- 修改备案号：在这里改你的ICP备案号 --- */
.icp-line {
    font-size: 0.78rem;
    color: #5a6a7a;
    letter-spacing: 0.4px;
    text-align: center;
    margin-bottom: -6px;
    user-select: none;
}

/* --- 备案号链接：修改 href 跳转地址 --- */
.icp-line a {
    color: #6b7d8e;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    cursor: pointer;
}
.icp-line a:hover {
    color: #a0c8e8;
    text-shadow: 0 0 10px rgba(140, 200, 240, 0.4);
}

/* ==================== 标题区域 ==================== */
.title-section {
    text-align: center;
}
.title-section h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 2px;
    color: #d0dce8;
    line-height: 1.4;
}
/* --- WINDQI 发光渐变突出显示 --- */
.title-section h1 .highlight {
    /* 渐变蓝色文字 */
    background: linear-gradient(135deg, #00c6ff 0%, #0080ff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 多层发光 text-shadow（与渐变文字配合 filter 使用） */
    filter: drop-shadow(0 0 18px rgba(0, 170, 255, 0.7)) drop-shadow(0 0 40px rgba(0, 130, 255, 0.4));
    -webkit-filter: drop-shadow(0 0 18px rgba(0, 170, 255, 0.7)) drop-shadow(0 0 40px rgba(0, 130, 255, 0.4));
    font-weight: 800;
    letter-spacing: 3px;
}

/* --- 标题下方发光线条 --- */
.glow-divider {
    width: 70%;
    max-width: 400px;
    height: 1.5px;
    margin: 8px auto 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 160, 255, 0.1) 10%,
            rgba(0, 200, 255, 0.8) 50%,
            rgba(0, 160, 255, 0.1) 90%,
            transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 16px rgba(0, 180, 255, 0.5), 0 0 30px rgba(0, 140, 255, 0.25);
    animation: dividerPulse 3s ease-in-out infinite;
}
@keyframes dividerPulse {
    0%,
    100% {
        opacity: 0.7;
        box-shadow: 0 0 16px rgba(0, 180, 255, 0.5), 0 0 30px rgba(0, 140, 255, 0.25);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 24px rgba(0, 200, 255, 0.75), 0 0 44px rgba(0, 160, 255, 0.4);
    }
}

/* ==================== 社交按钮区域 ==================== */
.social-section {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
}
.social-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(12, 24, 44, 0.7);
    border: 1.5px solid rgba(0, 170, 255, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.25, 0, 0.25, 1);
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    /* 微弱常驻发光 */
    box-shadow: 0 0 14px rgba(0, 140, 255, 0.15);
}
.social-btn:hover {
    border-color: rgba(0, 210, 255, 0.7);
    box-shadow: 0 0 28px rgba(0, 180, 255, 0.5), 0 0 50px rgba(0, 140, 255, 0.25);
    transform: translateY(-3px);
    background: rgba(18, 34, 58, 0.85);
}
.social-btn:active {
    transform: scale(0.94);
    transition: transform 0.15s ease;
}
.social-btn svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #c8dde8;
    stroke-width: 1.8;
    transition: stroke 0.3s ease, filter 0.3s ease;
}
.social-btn:hover svg {
    stroke: #e0f0ff;
    filter: drop-shadow(0 0 6px rgba(180, 220, 255, 0.7));
}
/* QQ 图标需要 fill 处理 */
.social-btn.qq-btn svg {
    fill: rgba(200, 220, 235, 0.15);
    stroke: #c8dde8;
}
.social-btn.qq-btn:hover svg {
    fill: rgba(220, 240, 255, 0.3);
    stroke: #e0f0ff;
}
/* 品牌填充图标（抖音、QQ）使用 fill 而非 stroke */
.social-btn.brand-fill svg {
    fill: #c8dde8;
    stroke: none;
}
.social-btn.brand-fill:hover svg {
    fill: #e0f0ff;
    stroke: none;
    filter: drop-shadow(0 0 6px rgba(180, 220, 255, 0.7));
}

/* ==================== 项目链接区域 ==================== */
.projects-section {
    width: 100%;
    margin-top: 10px;
}
.projects-section h2 {
    text-align: center;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #b8ccdd;
    margin-bottom: 20px;
    position: relative;
}
/* --- "我的项目"下方短发光线条 --- */
.projects-section h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 1.2px;
    margin: 10px auto 0;
    background: linear-gradient(90deg, transparent, rgba(0, 190, 255, 0.7), transparent);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.45);
}

/* 卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .social-section {
        gap: 20px;
    }
    .social-btn {
        width: 54px;
        height: 54px;
    }
    .social-btn svg {
        width: 22px;
        height: 22px;
    }
    .main-container {
        padding: 28px 18px 32px;
        border-radius: 16px;
        gap: 20px;
    }
    .glow-divider {
        width: 85%;
    }
}
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .social-section {
        gap: 16px;
    }
    .social-btn {
        width: 48px;
        height: 48px;
    }
    .social-btn svg {
        width: 20px;
        height: 20px;
    }
    .main-container {
        padding: 20px 12px 24px;
        border-radius: 14px;
        gap: 16px;
        margin-top: 16px;
    }
    .title-section h1 {
        letter-spacing: 1px;
    }
    .icp-line {
        font-size: 0.7rem;
    }
}

/* --- 单个项目卡片 --- */
/* --- 修改项目链接：增删改下面卡片的 href 和文字 --- */
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.25, 0, 0.25, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
    /* 微弱常驻发光 */
    box-shadow: 0 0 10px rgba(0, 120, 200, 0.06);
}
/* 卡片顶部隐藏发光条 */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--glow-cyan), transparent);
    border-radius: 2px;
    transition: width 0.5s ease;
    box-shadow: 0 0 14px var(--glow-cyan);
}
/* 悬停发光效果 */
.project-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 0 30px var(--card-hover-glow), 0 8px 28px rgba(0, 0, 0, 0.35);
    transform: translateY(-4px);
    background: rgba(18, 34, 58, 0.78);
}
.project-card:hover::before {
    width: 90%;
}
.project-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #d0dce8;
    transition: color 0.3s ease;
}
.project-card:hover .card-title {
    color: #e8f4ff;
    text-shadow: 0 0 16px rgba(180, 220, 255, 0.5);
}
.project-card .card-desc {
    font-size: 0.85rem;
    color: #7a8e9e;
    line-height: 1.5;
    flex-grow: 1;
    transition: color 0.3s ease;
}
.project-card:hover .card-desc {
    color: #a0b8c8;
}
/* --- 访问项目按钮 --- */
.project-card .card-btn {
    display: inline-block;
    align-self: flex-start;
    padding: 9px 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.8px;
    color: #c0d8e8;
    text-decoration: none;
    background: rgba(0, 140, 220, 0.12);
    border: 1px solid rgba(0, 170, 240, 0.3);
    border-radius: 22px;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    z-index: 1;
    text-align: center;
}
.project-card .card-btn:hover {
    background: rgba(0, 160, 240, 0.25);
    border-color: rgba(0, 210, 255, 0.7);
    color: #e8f4ff;
    box-shadow: 0 0 18px rgba(0, 180, 255, 0.45), 0 0 36px rgba(0, 140, 255, 0.2);
}

/* ==================== 弹窗（Modal）样式 ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 4, 15, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    /* 毛玻璃效果（应用于overlay背景之后的内容） */
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* --- 弹窗卡片：科技感毛玻璃效果 --- */
.modal-dialog {
    background: rgba(10, 22, 42, 0.72);
    /* 毛玻璃核心 */
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(0, 180, 255, 0.3);
    border-radius: 18px;
    padding: 32px 28px 26px;
    max-width: 420px;
    width: 88%;
    box-shadow:
        0 0 50px rgba(0, 150, 240, 0.2),
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.25, 0, 0.25, 1);
    text-align: center;
}
.modal-overlay.active .modal-dialog {
    transform: translateY(0) scale(1);
}

/* 弹窗顶部平台图标 */
.modal-platform-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: rgba(0, 160, 240, 0.1);
    border: 1px solid rgba(0, 190, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 160, 255, 0.25);
}
.modal-platform-icon svg {
    width: 22px;
    height: 22px;
    stroke: #c0dcee;
    fill: none;
    stroke-width: 1.6;
}
/* 弹窗中品牌填充图标（抖音/QQ） */
.modal-platform-icon.brand-icon svg {
    fill: #c0dcee;
    stroke: none;
}

/* 弹窗文字 */
.modal-dialog .modal-contact-info {
    font-size: 1.05rem;
    color: #d0dce8;
    letter-spacing: 1px;
    margin: 10px 0 6px;
    word-break: break-all;
}
.modal-dialog .modal-contact-label {
    font-size: 0.8rem;
    color: #6b7d8e;
    letter-spacing: 0.5px;
}

/* --- 关闭按钮 --- */
.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 2;
}
.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 14px rgba(180, 210, 240, 0.35);
}
.modal-close-btn svg {
    width: 14px;
    height: 14px;
    stroke: #aabbcc;
    stroke-width: 2;
    transition: stroke 0.3s ease;
}
.modal-close-btn:hover svg {
    stroke: #e8f0f8;
}

/* ==================== 响应式微调 ==================== */
@media (max-width: 380px) {
    .social-btn {
        width: 42px;
        height: 42px;
    }
    .social-btn svg {
        width: 18px;
        height: 18px;
    }
    .modal-dialog {
        padding: 24px 16px 20px;
        border-radius: 14px;
    }
}

/* ==================== 密码验证弹窗 ==================== */
.pwd-dialog {
    max-width: 360px;
    text-align: center;
    padding: 36px 28px 30px;
}
.pwd-icon {
    font-size: 2.6rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.5));
}
.pwd-label {
    font-size: 0.85rem;
    color: #7a8e9e;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}
.pwd-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    color: #d0dce8;
    background: rgba(0, 20, 50, 0.6);
    border: 1px solid rgba(0, 170, 255, 0.3);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
    box-sizing: border-box;
    font-family: inherit;
}
.pwd-input::placeholder {
    color: #4a5a6a;
    letter-spacing: 0px;
}
.pwd-input:focus {
    border-color: rgba(0, 210, 255, 0.6);
    box-shadow: 0 0 18px rgba(0, 160, 255, 0.2);
}
.pwd-error {
    font-size: 0.8rem;
    color: #ff6b6b;
    margin-top: 10px;
    display: none;
    letter-spacing: 0.5px;
}
.pwd-error.show {
    display: block;
}
.pwd-confirm-btn {
    width: 100%;
    margin-top: 16px;
    padding: 11px 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #d0e4f0;
    background: rgba(0, 140, 220, 0.2);
    border: 1px solid rgba(0, 170, 240, 0.35);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}
.pwd-confirm-btn:hover {
    background: rgba(0, 160, 240, 0.3);
    border-color: rgba(0, 210, 255, 0.6);
    color: #f0f8ff;
    box-shadow: 0 0 18px rgba(0, 180, 255, 0.3);
}
.pwd-confirm-btn:active {
    transform: scale(0.97);
}

/* 输入错误抖动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

