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

body {
    font-family: 'Cormorant Garamond', 'Times New Roman', 'Georgia', '宋体', serif;
    font-weight: 400;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* ===== 背景 ===== */
.bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #1a1a2e; 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-image 1.2s ease-in-out;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* ===== 内容 ===== */
.content {
    position: relative;
    z-index: 2;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none;
}

.content::-webkit-scrollbar {
    display: none;
}

/* ===== 名字 ===== */
.name-section {
    margin-bottom: 2.2rem;
    width: 100%;
    max-width: 600px;
}

.name {
    font-size: clamp(2.8rem, 10vw, 5rem);
    font-weight: 500;
    letter-spacing: 2px;
    color: #1e1c1a;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.02);
    display: inline-block;
    position: relative;
    padding-bottom: 0.4em;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(8px);
    animation: fadeUp 0.55s ease forwards;
}

.name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #1e1c1a;
    transition: width 0.85s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.name-line-animate.name::after {
    width: 100% !important;
}

.subtitle {
    font-size: clamp(0.9rem, 4vw, 1.2rem);
    letter-spacing: 4px;
    margin-top: 0.9rem;
    color: #2c2825;
    font-weight: 400;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', 'Segoe UI', serif;
    opacity: 0;
    animation: fadeUp 0.6s 0.12s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 链接 ===== */
.links-container {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.link-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.project-link {
    display: block;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 440;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    letter-spacing: 2px;
    padding: 0.7rem 0.2rem;
    color: #1e1c1a;
    text-decoration: none;
    background: none;
    border-radius: 0px;
    line-height: 1.4;
    transition: all 0.28s ease;
    opacity: 0;
    transform: translateY(6px);
    animation: fadeUp 0.5s ease forwards;
}

.project-link:hover {
    color: #000000;
    transform: translateX(5px);
    letter-spacing: 2.5px;
}

.project-link:active {
    opacity: 0.7;
    transform: translateX(2px);
}

.divider-line {
    width: 0%;
    height: 1px;
    background-color: rgba(30, 28, 26, 0.35);
    margin: 0 auto;
    transition: width 0.7s cubic-bezier(0.2, 0.85, 0.4, 1);
}

.divider-line-animate {
    width: 100% !important;
}

.link-item:last-child .divider-line {
    display: none;
}

/* ===== 联系 ===== */
.contact-section {
    margin-top: 2.5rem;
    width: 100%;
    max-width: 360px;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    animation: fadeUp 0.6s 0.25s ease forwards;
}

.contact-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #4a4540;
    margin-bottom: 0.9rem;
    font-weight: 400;
    font-family: 'Cormorant Garamond', monospace;
}

.contact-items {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    flex-wrap: wrap;
    row-gap: 0.8rem;
}

.contact-link {
    font-size: 1.05rem;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    letter-spacing: 1.5px;
    color: #2c2825;
    text-decoration: none;
    border-bottom: 1px dotted rgba(44, 40, 37, 0.4);
    padding-bottom: 0.2rem;
    transition: all 0.25s ease;
    background: none;
    border-radius: 0px;
    cursor: pointer;
}

.contact-link:hover {
    color: #000000;
    border-bottom-color: #1e1c1a;
    letter-spacing: 2px;
    transform: translateY(-1px);
}

.contact-link:active {
    opacity: 0.7;
}

/* ===== 指示点 ===== */
.slider-indicators {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(30, 28, 26, 0.3);
    transition: all 0.4s ease;
    cursor: default;
}

.dot.active {
    background-color: rgba(30, 28, 26, 0.8);
    transform: scale(1.3);
}

/* ===== 自定义弹窗 ===== */
.custom-alert {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(3px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s ease;
}

.custom-alert.active {
    visibility: visible;
    opacity: 1;
}

.alert-box {
    background: rgba(30, 28, 26, 0.92);
    backdrop-filter: blur(12px);
    padding: 1.6rem 2.2rem;
    border-radius: 0px;
    text-align: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    border: none;
    max-width: 280px;
    width: 80%;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.alert-message {
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: #f0ede8;
    margin-bottom: 1.5rem;
    word-break: break-all;
    font-weight: 450;
}

.alert-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-family: 'Cormorant Garamond', 'Georgia', serif;
    letter-spacing: 1px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0px;
    backdrop-filter: blur(4px);
}

.alert-button:hover {
    background: rgba(255, 255, 255, 0.35);
    letter-spacing: 1.5px;
}

/* ===== 响应式 ===== */
@media (max-width: 480px) {
    .content {
        padding: 1.8rem 1.2rem;
        justify-content: center;
    }
    .links-container {
        max-width: 280px;
    }
    .project-link {
        font-size: 1.2rem;
        padding: 0.55rem 0.1rem;
    }
    .name-section {
        margin-bottom: 1.8rem;
    }
    .subtitle {
        letter-spacing: 3px;
        margin-top: 0.6rem;
    }
    .contact-section {
        margin-top: 2rem;
        max-width: 280px;
    }
    .contact-items {
        gap: 1.5rem;
    }
    .contact-link {
        font-size: 0.95rem;
    }
    .contact-label {
        font-size: 0.75rem;
        margin-bottom: 0.7rem;
    }
    .slider-indicators {
        bottom: 20px;
        gap: 8px;
    }
    .dot {
        width: 6px;
        height: 6px;
    }
}

@media (min-width: 1200px) {
    .links-container {
        max-width: 440px;
    }
    .project-link {
        font-size: 1.65rem;
        padding: 0.8rem 0.2rem;
    }
    .contact-section {
        max-width: 440px;
        margin-top: 3rem;
    }
    .contact-items {
        gap: 3rem;
    }
    .contact-link {
        font-size: 1.2rem;
    }
}

.project-link,
.contact-link {
    -webkit-tap-highlight-color: transparent;
}