/* Base Styles */
:root {
    --primary-color: #6c5ce7;
    --secondary-color: #a29bfe;
    --accent-color: #fd79a8;
    --dark-color: #2d3436;
    --light-color: #f5f6fa;
    --glass-color: rgba(255, 255, 255, 0.15);
    --text-color: #2d3436;
    --text-light: #636e72;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-color);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    opacity: 0.7;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header/Navigation */
.glass-nav {
    background: var(--glass-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

#logo .logo-link {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

#logo .logo-link:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

#menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Main Content */
.main-content {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Home Page Styles */
.hero-section {
    text-align: center;
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.highlight {
    color: var(--primary-color);
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* About Page Styles */
.about-section {
    padding: 2rem 0;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-header h1 span {
    color: var(--primary-color);
}

.decoration-line {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.github-card-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.github-card {
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    max-width: 100%;
    height: auto;
}

.github-card:hover {
    transform: scale(1.02);
}

.about-text {
    width: 100%;
    max-width: 800px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-text p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.approach-list {
    margin-top: 2rem;
}

.approach-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.approach-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.approach-item h3 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.approach-item p {
    margin-bottom: 0;
}

/* Contact Page Styles */
.contact-section {
    padding: 2rem 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-header h1 span {
    color: var(--primary-color);
}

.contact-header p {
    color: var(--text-light);
    font-size: 1.2rem;
}

.contact-container {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-form {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.contact-info h2, .contact-form h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-icon {
    font-size: 1.5rem;
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--light-color);
    color: var(--dark-color);
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about-content, .contact-container {
        flex-direction: column;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    #menu {
        gap: 1rem;
    }
    
    .main-content {
        padding: 6rem 1rem 2rem;
    }
    
    .github-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .glass-nav {
        flex-direction: column;
        padding: 1rem;
    }
    
    #logo {
        margin-bottom: 1rem;
    }
    
    #menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}
/* 脚注 */
/* Footer Styles */
.site-footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.copyright {
    margin-bottom: 0.5rem;
}

/* GitHub Footer Styles */
.github-footer {
    margin-top: 0.5rem;
}

.github-footer a {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.github-footer a:hover {
    color: var(--primary-color);
}

.github-icon {
    display: inline-flex;
    margin: 0 5px;
}

.github-icon svg {
    width: 20px;
    height: 20px;
}

/* Dark mode adaptation */
@media (prefers-color-scheme: dark) {
    .site-footer {
        background: rgba(0, 0, 0, 0.2);
    }
    
    .github-footer a {
        color: rgba(255, 255, 255, 0.7);
    }
    
    .github-footer a:hover {
        color: var(--secondary-color);
    }
}