/* styles.css */
:root {
    --primary: #0ff;
    --secondary: #6a0dad;
    --dark: #0a0a1a;
    --light: #e0e0ff;
    --glow: 0 0 10px var(--primary), 0 0 20px rgba(0, 255, 255, 0.5);
    --card-bg: rgba(20, 20, 40, 0.7);
    --card-border: rgba(0, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c0c2d 0%, #1a1a4a 100%);
    color: var(--light);
    min-height: 100vh;
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
header {
    background: rgba(10, 10, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--glow);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 15px var(--primary), 0 0 30px rgba(0, 255, 255, 0.7);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: var(--glow);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 名言模块样式 */
.quote-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 25px;
    margin: 40px 0;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5), var(--glow);
    transition: all 0.4s ease;
}

.quote-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7), 0 0 25px var(--primary);
}

.quote-text {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--primary);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.7);
}

.quote-author {
    font-size: 1.1rem;
    color: var(--light);
    opacity: 0.8;
}

/* 主内容区域 */
.hero {
    padding: 80px 0 40px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--glow);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.section-title {
    font-size: 2rem;
    margin: 50px 0 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

/* 卡片通用样式 */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 25px;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), var(--glow);
    border-color: var(--primary);
}

/* 项目卡片样式 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    composes: card;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.project-card p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.progress-container {
    background: rgba(0, 0, 0, 0.3);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 5px;
    transition: width 1s ease;
}

.progress-text {
    text-align: right;
    font-size: 0.9rem;
    color: var(--primary);
}

/* 技术卡片样式 */
.tech-card {
    composes: card;
    text-align: center;
    padding: 30px 20px;
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.tech-card:hover .tech-icon {
    transform: scale(1.2);
}

.tech-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* 关于页面样式 */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    composes: card;
}

.values-list {
    list-style: none;
}

.values-list li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(30, 30, 60, 0.5);
    transition: all 0.3s ease;
}

.values-list li:hover {
    background: rgba(40, 40, 80, 0.7);
    transform: translateX(5px);
}

.value-icon {
    font-size: 2rem;
    margin-right: 15px;
    min-width: 50px;
    text-align: center;
}

.value-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.team-member {
    text-align: center;
    padding: 20px;
    background: rgba(30, 30, 60, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.member-avatar {
    font-size: 3rem;
    margin-bottom: 15px;
}

.team-member h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary);
}

/* 联系页面样式 */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info, .contact-form {
    composes: card;
}

.contact-list {
    list-style: none;
    margin-top: 20px;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(30, 30, 60, 0.5);
    transition: all 0.3s ease;
}

.contact-list li:hover {
    background: rgba(40, 40, 80, 0.7);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    min-width: 40px;
    text-align: center;
}

.contact-detail h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary);
}

.social-links {
    margin-top: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 1.5rem;
    background: rgba(30, 30, 60, 0.5);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(30, 30, 60, 0.5);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.submit-btn {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: var(--dark);
    border: none;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
}

/* 页脚样式 */
footer {
    background: rgba(10, 10, 30, 0.8);
    border-top: 1px solid var(--card-border);
    padding: 30px 0;
    margin-top: 60px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .projects-grid, .about-content, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .quote-text {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}