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

:root {
    /* 主色调 */
    --color-bg: #0a0a0a;
    --color-text: #f0f0f0;
    --color-text-muted: #888;
    
    /* 项目主题色（移除邮箱色） */
    --color-build: #ffaa00;   /* 建站工具 - 金色 */
    --color-random: #00ff00;  /* 随机视频 - 绿色 */
    --color-cinema: #ff00ff;  /* 私人影院 - 紫色 */
    
    /* 新增红色友联色 */
    --color-link: #ff3366;    /* 醒目的红色 */
    
    /* 动画时间 */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    /* 阴影 */
    --shadow-normal: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-modal: 0 20px 60px rgba(0, 0, 0, 0.8);
    
    /* 边框半径 */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 16px;
    --radius-xlarge: 20px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== 导航栏样式 ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-build), var(--color-cinema));
    color: var(--color-bg);
    font-weight: bold;
    border-radius: 50%;
    font-size: 1.1rem;
}

.brand-text {
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

/* ===== 英雄区域样式 ===== */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, rgba(255, 170, 0, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.title-text {
    background: linear-gradient(135deg, var(--color-build), var(--color-cinema));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* 调整为三个点的视觉元素 */
.hero-visual {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 2rem auto 0;
}

.visual-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    filter: blur(1px);
    animation: floatDot 15s infinite ease-in-out;
}

.dot-build {
    background-color: var(--color-build);
    top: 40%;
    left: 30%;
    animation-delay: 0s;
    box-shadow: 0 0 20px var(--color-build);
}

.dot-random {
    background-color: var(--color-random);
    top: 30%;
    right: 30%;
    animation-delay: 2s;
    box-shadow: 0 0 20px var(--color-random);
}

.dot-cinema {
    background-color: var(--color-cinema);
    bottom: 35%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
    box-shadow: 0 0 20px var(--color-cinema);
}

@keyframes floatDot {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -15px) scale(1.2);
    }
    50% {
        transform: translate(-15px, 20px) scale(0.9);
    }
    75% {
        transform: translate(10px, 10px) scale(1.1);
    }
}

/* ===== 主要内容区域 ===== */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.section-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-build), var(--color-cinema));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== 3个项目网格布局 ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    position: relative;
    background: rgba(30, 30, 30, 0.8);
    border-radius: var(--radius-large);
    padding: 2.5rem 2rem;
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: currentColor;
}

.project-card:hover::before {
    opacity: 1;
}

/* 项目卡片特定颜色 */
.build-card {
    color: var(--color-build);
}

.build-card:hover {
    background: rgba(255, 170, 0, 0.05);
}

.random-card {
    color: var(--color-random);
}

.random-card:hover {
    background: rgba(0, 255, 0, 0.05);
}

.cinema-card {
    color: var(--color-cinema);
}

.cinema-card:hover {
    background: rgba(255, 0, 255, 0.05);
}

/* 项目徽章样式 */
.master-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--color-build), #ff5500);
    color: var(--color-bg);
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: bold;
    letter-spacing: 1px;
    animation: badgeGlow 2s infinite;
}

.lock-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.2rem;
    opacity: 0.7;
    animation: lockPulse 3s infinite;
}

@keyframes badgeGlow {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 1; box-shadow: 0 0 10px var(--color-build); }
}

@keyframes lockPulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: currentColor;
}

.project-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-style: italic;
}

.project-features {
    list-style: none;
    margin: 0 auto 2rem;
    padding: 0;
    flex-grow: 1;
    max-width: 250px;
}

.project-features li {
    margin-bottom: 0.75rem;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    padding: 0 1rem;
}

.project-button {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: currentColor;
    color: var(--color-bg);
    text-decoration: none;
    border-radius: var(--radius-medium);
    font-weight: bold;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
    margin-top: auto;
}

.project-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.build-button {
    background: var(--color-build);
}

.random-button {
    background: var(--color-random);
}

.cinema-button {
    background: var(--color-cinema);
}

/* 联系按钮特殊样式 */
.contact-button {
    background: linear-gradient(135deg, var(--color-cinema), #cc00cc);
    font-size: 1rem;
    padding: 0.85rem 2rem;
    width: 100%;
}

.contact-button:hover {
    background: linear-gradient(135deg, #cc00cc, var(--color-cinema));
}

/* ===== 关于区域 ===== */
.about-section {
    padding: 1rem 1.5rem;
    background: rgba(20, 20, 20, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-random), var(--color-build));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content {
    font-size: 0.95rem;
    line-height: 1.5;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--color-text);
}

.email-link {
    margin-top: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    line-height: 1.4;
}

.email-address {
    color: var(--color-cinema);
    text-decoration: none;
    font-weight: bold;
    transition: all var(--transition-normal);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    background: rgba(255, 0, 255, 0.1);
    border: 1px solid rgba(255, 0, 255, 0.2);
}

.email-address:hover {
    background: rgba(255, 0, 255, 0.2);
    border-color: var(--color-cinema);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
}

/* 新增版权信息样式 */
.copyright {
    margin-top: 0.8rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.copyright-text {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.copyright-link {
    color: var(--color-link);
    text-decoration: none;
    font-weight: bold;
    transition: all var(--transition-normal);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid rgba(255, 51, 102, 0.2);
}

.copyright-link:hover {
    background: rgba(255, 51, 102, 0.2);
    border-color: var(--color-link);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

/* ===== 邮箱模态框 ===== */
.email-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.email-modal.active {
    display: flex;
    opacity: 1;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.email-modal .modal-content {
    background: rgba(30, 30, 30, 0.95);
    border-radius: var(--radius-xlarge);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 255, 0.3);
    box-shadow: var(--shadow-modal);
    backdrop-filter: blur(10px);
    animation: modalSlideIn 0.4s ease;
}

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

.modal-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.modal-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--color-cinema);
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.modal-title {
    color: var(--color-text);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.modal-text {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

.modal-button {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: var(--radius-medium);
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.95rem;
    min-width: 90px;
}

.modal-button.confirm {
    background: var(--color-cinema);
    color: var(--color-bg);
}

.modal-button.confirm:hover {
    background: #cc00cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.3);
}

.modal-button.cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-button.cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
    }
    
    .nav-brand {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding-top: 4rem;
        min-height: 60vh;
    }
    
    .hero-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        min-height: auto;
        padding: 1.8rem 1.2rem;
    }
    
    .about-section {
        padding: 0.8rem 1rem;
    }
    
    .about-content {
        font-size: 0.9rem;
    }
    
    .email-link {
        padding: 0.7rem;
        font-size: 0.85rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 3.5rem;
        min-height: 55vh;
    }
    
    .hero-visual {
        width: 140px;
        height: 140px;
    }
    
    .visual-dot {
        width: 10px;
        height: 10px;
    }
    
    .project-card {
        padding: 1.5rem 1rem;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .project-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .about-title {
        font-size: 1.4rem;
    }
    
    .modal-body {
        padding: 1.2rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-button {
        width: 100%;
    }
}

/* ===== 滚动条样式 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 添加CSS动画关键帧 */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
    50% { box-shadow: 0 8px 30px currentColor; }
}

@keyframes highlightPulse {
    0%, 100% { 
        background: rgba(255, 0, 255, 0.1);
        box-shadow: 0 0 15px rgba(255, 0, 255, 0.3);
    }
    50% { 
        background: rgba(255, 0, 255, 0.3);
        box-shadow: 0 0 25px rgba(255, 0, 255, 0.5);
    }
}

@keyframes buttonPulse {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(-2px) scale(1.05); }
}