:root {
    --primary-lightest: #e3fdfd;
    --primary-lighter: #cbf1f5;
    --primary-light: #a6e3e9;
    --primary-color: #71c9ce;

    --primary-dark: #5ab3b8;
    --primary-darker: #469a9f;

    --secondary-color: #7fd8c4;
    --accent-color: #ff9a76;

    --light-bg: #f8fafc;
    --dark-bg: #2b3541;
    --light-text: #4a5568;
    --dark-text: #f0f4f8;

    --card-bg: rgba(255, 255, 255, 0.98);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--light-text);
    overflow-x: hidden;
    font-weight: 300;
    line-height: 1.6;
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://t.alcy.cc/ycy');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
    opacity: 0.3;
}
@media (max-width: 768px) {
    .parallax-bg {
        background-image: url('https://t.alcy.cc/mp');
    }
}
.section {
    min-height: 100vh;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    opacity: 0;
    transform: translateY(50px);
}

.section.active {
    opacity: 1;
    transform: translateY(0);
}

.section-content {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: 100%;
}

h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--dark-text);
}

h1 {
    font-size: 3.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    color: var(--primary-color);
}

h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.project-card, .feature, .skill-category {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.project-card {
    margin: 20px 0;
    border-left: 5px solid var(--primary-light);
}

.project-card:hover, .feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-title {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.tech-tag {
    background: var(--primary-lightest);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-darker);
}

.project-links {
    display: flex;
    gap: 15px;
}

.contact-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px auto 0;
    width: fit-content;
    max-width: 100%;
    text-decoration: none;
}

.project-links {
    margin-top: 20px;
}

.project-link, .join-btn {
    display: inline-block;
    padding: 8px 20px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.project-link {
    background: var(--primary-color);
}

.project-link:hover {
    background: var(--primary-dark);
}

.feature {
    flex: 1 1 300px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.skills-container, .features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
}

.skill-item {
    margin: 15px 0;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    height: 10px;
    background: var(--primary-lightest);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary-color));
    border-radius: 5px;
}

.join-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.join-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s, background 0.3s;
}

.contact-icon:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
    text-decoration: none;
}

#contact .contact-icons a.contact-icon {
    text-decoration: none !important;
}

footer {
    padding: 20px;
    text-align: center;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

footer a {
    color: #777;
    text-align: center;
    text-decoration: none;
}

.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(113, 201, 206, 0.7);
    border-radius: 15px;
    opacity: 0.7;
    animation: bounce 2s infinite;
    z-index: 100;
    display: none;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

#welcome .section-content {
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .quote-container {
        width: 100%;
        margin: 20px auto 0;
        position: relative;
        z-index: 5;
    }

    #welcome .section-content {
        padding-bottom: 30px;
    }

    .quote-content {
        margin-top: 40px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
}

.quote-container {
    width: 80%;
    margin: 30px auto -50px;
    position: relative;
    z-index: 5;
}

.quote-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.6));
    backdrop-filter: blur(5px);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.quote-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.5;
    position: relative;
    padding: 0 20px;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    color: var(--accent-color);
    font-size: 1.5em;
    position: absolute;
    opacity: 0.6;
}

.quote-text::before {
    left: -5px;
    top: -5px;
}

.quote-text::after {
    right: -5px;
    bottom: -15px;
}

.quote-author {
    font-size: 0.95rem;
    color: var(--secondary-color);
    font-style: italic;
    position: relative;
    display: inline-block;
    padding: 0 15px;
}

.quote-author::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 10px;
    height: 1px;
    background: var(--secondary-color);
    opacity: 0.5;
}

.skill-progress {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

h1::after {
    background: var(--accent-color);
}

.project-card, .feature {
    background: var(--card-bg);
    border-left: 4px solid var(--primary-light);
}

@media (max-width: 768px) {
    .quote-container {
        margin: -20px auto 20px;
        padding: 0 15px;
    }

    .quote-content {
        padding: 20px;
    }

    .quote-text {
        font-size: 1.1rem;
        padding: 0 15px;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section {
        padding: 60px 5%;
    }

    .section-content {
        padding: 30px 20px;
    }

    .feature, .skill-category {
        flex: 1 1 100%;
    }
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.dark-mode {
    --primary-lightest: #1a3a4a;
    --primary-lighter: #225566;
    --primary-light: #2d7282;
    --primary-color: #3a8a9e;
    --primary-dark: #4d9cb0;
    --primary-darker: #5aadc1;

    --secondary-color: #5cc7b0;
    --accent-color: #ff8a65;

    --dark-bg: #1a2a32;
    --card-bg: rgba(26, 42, 51, 0.95);
    --light-text: #e2e8f0;
}

.dark-mode {

    body {
        background-color: var(--dark-bg);
    }

    .project-card, .feature, .section-content {
        background: var(--card-bg);
        border: 1px solid var(--primary-lighter);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    h1, h2, h3, p {
        color: var(--light-text);
    }

    .project-card:hover, .feature:hover {
        background: rgba(45, 55, 72, 0.6);
        border-color: var(--primary-light);
    }

    .skill-progress {
        box-shadow: 0 0 8px rgba(92, 199, 176, 0.3);
    }

    .project-link, .join-btn {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
}

.dark-mode {
    transition: background-color 0.5s ease, color 0.3s ease;
}

.dark-mode .quote-content {
    background: linear-gradient(
            135deg,
            rgba(26, 58, 74, 0.9),
            rgba(34, 85, 102, 0.9)
    );
    border: 1px solid var(--primary-dark);
}

.dark-mode .contact-icon:hover {
    box-shadow: 0 0 15px rgba(58, 138, 158, 0.5);
}

.dark-mode .tech-tag {
    background: rgba(34, 85, 102, 0.7);
    color: var(--secondary-color);
}

.dark-mode .section-content,
.dark-mode .project-card,
.dark-mode .feature,
.dark-mode .skill-category,
.dark-mode footer {
    background-color: rgba(26, 42, 51, 0.9);
    color: #eee;
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode p {
    color: #eee;
}

.dark-mode .tech-tag {
    background: #225566;
    color: #eee;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(113, 201, 206, 0.15);
}

.contact-icon:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

footer a {
    color: var(--primary-dark);
}