:root {
    --slider-count: 4;
    --slider-width: 200px;
    --slider-height: 400px;
    --gap: 7px;
    --time: 15s;
    --main-bg: #1b2735;
    --main-bg-gradient: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
    --content-bg: rgba(30, 34, 54, 0.55);
    --card-bg: linear-gradient(120deg, rgba(67,233,123,0.18) 0%, rgba(58,123,213,0.18) 100%);
    --text-main: #fff;
    --text-secondary: #e3e2e5;
    --border-main: rgba(255,255,255,0.18);
}
body.light {
    --main-bg: #f5f7fa;
    --main-bg-gradient: linear-gradient(120deg, #f5f7fa 0%, #c3cfe2 100%);
    --content-bg: rgba(255,255,255,0.85);
    --card-bg: linear-gradient(120deg, #e0e7ff 0%, #f0fff0 100%);
    --text-main: #222;
    --text-secondary: #444;
    --border-main: rgba(0,0,0,0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body, section {
    background: var(--main-bg-gradient) !important;
    color: var(--text-main);
    transition: background 0.7s cubic-bezier(.4,0,.2,1), color 0.7s cubic-bezier(.4,0,.2,1);
}
body {
    height: 100vh;
    font-family: 'Inter', 'Douyin Sans', sans-serif;
}
section {
    display: grid;
    grid-template-columns: 50% 50%;
    place-items: center;
    height: 100vh;
    position: relative;
}

/* 星空动画 */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.sliders {
    display: flex;
    gap: 35px;
    transform: rotate(8deg);
}
.slider-container {
    width: var(--slider-width);
    height: 100vh;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.7s cubic-bezier(.4,0,.2,1), color 0.7s cubic-bezier(.4,0,.2,1), border-color 0.7s cubic-bezier(.4,0,.2,1);
}
.slider-track {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    animation: moveup calc(var(--time) * var(--slider-count)) linear infinite;
}
#slider2 .slider-track {
    animation: movedown calc(var(--time) * var(--slider-count)) linear infinite;
}
.slide {
    height: var(--slider-height);
    width: var(--slider-width);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 120px;
    margin: var(--gap) 0;
    padding: 10px;
    box-shadow: 0 8px 32px 0 rgba(67,233,123,0.18), 0 1.5px 8px 0 rgba(58,123,213,0.10);
    border: 1.5px solid var(--border-main);
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    position: relative;
    z-index: 1;
    transition: background 0.7s cubic-bezier(.4,0,.2,1), color 0.7s cubic-bezier(.4,0,.2,1), border-color 0.7s cubic-bezier(.4,0,.2,1);
}

.slide:hover {
    transform: scale(1.06) rotate(-2deg);
    box-shadow: 0 16px 48px 0 rgba(67,233,123,0.28), 0 4px 24px 0 rgba(58,123,213,0.18);
    border: 1.5px solid #fff;
    filter: brightness(1.08);
}

.slide img {
    border-radius: inherit;
}

@keyframes moveup {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(calc(-1 * var(--slider-count) * (var(--slider-height) + var(--gap) * 2)));
    }
}

@keyframes movedown {
    0% {
        transform: translateY(calc(-1 * var(--slider-count) * (var(--slider-height) + var(--gap) * 2)));

    }

    100% {
        transform: translateY(0);
    }
}

.content {
    color: var(--text-main);
    padding: 48px 60px;
    background: var(--content-bg);
    border-radius: 32px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--border-main);
    margin: 40px 0;
    position: relative;
    z-index: 2;
    transition: box-shadow 0.3s, transform 0.3s;
    transition: background 0.7s cubic-bezier(.4,0,.2,1), color 0.7s cubic-bezier(.4,0,.2,1), border-color 0.7s cubic-bezier(.4,0,.2,1);
}
.content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 32px;
    background: linear-gradient(120deg, rgba(67,233,123,0.08), rgba(58,123,213,0.08));
    pointer-events: none;
    z-index: 0;
}
.content::after {
    display: none;
}
.content:hover {
    box-shadow: 0 16px 48px 0 rgba(67,233,123,0.25), 0 8px 32px 0 rgba(58,123,213,0.15);
    transform: translateY(-4px) scale(1.02);
}

.content h1 {
    width: max-content;
    font-size: clamp(2rem, 5vw, 7rem);
    letter-spacing: 2px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #ff8a00, #e52e71, #4a90e2, #00ffb8, #ffe53b, #fd3838, #43e97b, #38f9d7);
    background-size: 400% 400%;
    animation: gradientMove 4s ease-in-out infinite, h1Glow 2s infinite alternate;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 2px #fff,
        0 0 2px #fff,
        0 2px 8px rgba(0,0,0,0.25),
        0 1px 0 #fff,
        0 0 8px #ffe53b,
        0 0 16px #fd3838;
    filter: drop-shadow(0 0 4px #fff) drop-shadow(0 0 8px #ffe53b);
    border-radius: 18px;
    padding: 0 24px;
    border: 2px solid var(--border-main);
    box-shadow: 0 0 24px 4px rgba(255,255,255,0.10);
    transition: transform 0.3s cubic-bezier(.25,.8,.25,1), filter 0.3s;
}

.content h1:hover {
    transform: scale(1.08) rotate(-2deg);
    filter: brightness(1.15) drop-shadow(0 0 12px #fff) drop-shadow(0 0 24px #ffe53b);
}

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

@keyframes h1Glow {
    0% {
        text-shadow:
            0 0 2px #fff,
            0 0 2px #fff,
            0 2px 8px rgba(0,0,0,0.25),
            0 1px 0 #fff,
            0 0 8px #ffe53b,
            0 0 16px #fd3838;
    }
    100% {
        text-shadow:
            0 0 6px #fff,
            0 0 6px #fff,
            0 4px 16px rgba(0,0,0,0.35),
            0 2px 0 #fff,
            0 0 16px #ffe53b,
            0 0 32px #fd3838;
    }
}

.content p {
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 700;
    max-width: 600px;
    line-height: 1.5;
    background: linear-gradient(90deg, #43e97b, #38f9d7, #fa8bff, #2bd2ff, #2bff88);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0,0,0,0.18), 0 1px 0 #fff;
    letter-spacing: 1.5px;
    animation: pGradientMove 6s ease-in-out infinite, waveFlow 2.5s infinite linear;
    margin-bottom: 18px;
    display: inline-block;
}

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

@keyframes waveFlow {
    0% {
        transform: translateY(0) skewX(0deg);
    }
    10% {
        transform: translateY(-2px) skewX(-2deg);
    }
    20% {
        transform: translateY(2px) skewX(2deg);
    }
    30% {
        transform: translateY(-3px) skewX(-3deg);
    }
    40% {
        transform: translateY(3px) skewX(3deg);
    }
    50% {
        transform: translateY(-2px) skewX(-2deg);
    }
    60% {
        transform: translateY(2px) skewX(2deg);
    }
    70% {
        transform: translateY(-1px) skewX(-1deg);
    }
    80% {
        transform: translateY(1px) skewX(1deg);
    }
    90% {
        transform: translateY(0) skewX(0deg);
    }
    100% {
        transform: translateY(0) skewX(0deg);
    }
}

button {
    background-color: #21ad67;
    color: #fff;
    box-shadow: #21ad67 0 0 0 0;
    padding: 15px 30px;
    margin-top: 40px;
    border: 0;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.5 ease;
    cursor: pointer;
}

button:hover,
button:active {
    box-shadow: #21ad67 0 4px 20px 0;
    transform: translateY(3px);
    transition: 0.1s;
}

a > button {
    background: linear-gradient(180deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #222;
    border-radius: 32px;
    box-shadow: 0 6px 24px 0 #b2b6c0, 0 1.5px 8px 0 #fff, inset 0 2px 8px #fff, inset 0 -4px 16px #c3cfe2;
    padding: 20px 56px;
    font-size: 1.22rem;
    font-weight: 700;
    border: 2.5px solid #e3e6ee;
    outline: none;
    transition: box-shadow 0.22s, transform 0.22s, color 0.22s, background 0.22s, border 0.22s;
    cursor: pointer;
    position: relative;
    z-index: 1;
    letter-spacing: 1.2px;
    text-shadow: 0 2px 8px #fff, 0 1px 0 #c3cfe2;
    display: flex;
    align-items: center;
    gap: 8px;
}

a > button:hover, a > button:focus {
    background: linear-gradient(180deg, #e3e6ee 0%, #f5f7fa 100%);
    color: #222;
    box-shadow: 0 12px 32px 0 #b2b6c0, 0 2px 12px 0 #fff, inset 0 4px 16px #fff, inset 0 -6px 24px #c3cfe2;
    transform: translateY(-2px) scale(1.04);
    border: 2.5px solid #b2b6c0;
}

a > button:active {
    background: linear-gradient(180deg, #c3cfe2 0%, #f5f7fa 100%);
    box-shadow: 0 2px 8px 0 #b2b6c0, 0 1px 4px 0 #fff, inset 0 2px 8px #b2b6c0, inset 0 -4px 16px #fff;
    transform: translateY(2px) scale(0.98);
    border: 2.5px solid #b2b6c0;
}

a > button svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

@media (max-width:1500px) {
    :root {
        --slider-width: 180px;
        --slider-height: 350px;
    }

    section {
        grid-template-columns: 45% 55%;
    }

    .sliders {
        gap: 15px;
    }
}

@media (max-width:1200px) {
    :root {
        --slider-width: 150px;
        --slider-height: 300px;
    }

    section {
        grid-template-columns: 40% 60%;
    }

    .content {
        padding-left: 60px;
    }
}
@media (max-width:850px) {
    :root {
        --slider-width: 180px;
        --slider-height: 350px;
    }
    section {
        grid-template-columns: 100%;
    }

    .sliders {
        gap: 35px;}
    .content {
        position: absolute;
        z-index: 2;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        background: rgba(0,0,0,0.7);
        padding: 40px;
        border-radius: 30px;
        align-items: center;
        display: flex;
        flex-direction: column;
        color: #e3e2e5;
    }
    .content p {
        line-height: 1.3;
    }

}
@media (max-width:650px) {
    :root {
        --slider-width: 150px;
        --slider-height: 300px;
    }

    .sliders {
        gap: 15px;
    }

    .button {
        margin-top: 25px;
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

@media (max-width:350px) {
    .content p {
        line-height: 30px;
    }
}

@media (max-width: 900px) {
    .content {
        padding: 24px 8px;
        border-radius: 18px;
        margin: 16px 0;
    }
    .footer-marquee {
        width: 98vw;
        min-width: 0;
        border-radius: 0 12px 12px 0;
        font-size: 0.98rem;
    }
    .cartoon-person {
        top: -56px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
    .cartoon-person img {
        width: 60px;
        border-radius: 14px;
    }
}

.footer-marquee {
    position: relative;
    left: unset;
    bottom: unset;
    width: 400px;
    height: 44px;
    background: rgba(27, 39, 53, 0.92);
    border-radius: 0 22px 22px 0;
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
    z-index: 10;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 80px;
    border-left: 4px solid #38f9d7;
    border-top: 1.5px solid #fff2;
    border-bottom: 1.5px solid #fff2;
    transition: background 0.7s cubic-bezier(.4,0,.2,1), color 0.7s cubic-bezier(.4,0,.2,1), border-color 0.7s cubic-bezier(.4,0,.2,1);
}
.marquee-content {
    display: inline-block;
    white-space: nowrap;
    font-size: 1.18rem;
    font-weight: 700;
    padding-left: 100%;
    animation: marquee-left 12s linear infinite;
    letter-spacing: 1.5px;
    background: linear-gradient(90deg, #43e97b, #38f9d7, #fa8bff, #2bd2ff, #ffe53b, #fd3838, #43e97b);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    text-shadow: 0 2px 12px #38f9d7, 0 1px 0 #fff, 0 0 8px #000a;
    filter: drop-shadow(0 0 6px #38f9d7);
}

@keyframes marquee-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
    background: rgba(30,34,54,0.2);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(120deg, #38f9d7 0%, #fa8bff 100%);
    border-radius: 8px;
}

.tech-list {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.tech-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 8px 18px 8px 12px;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: 0 2px 12px 0 rgba(67,233,123,0.10), 0 1.5px 8px 0 rgba(58,123,213,0.08);
    border: 1.5px solid var(--border-main);
    transition: box-shadow 0.25s, transform 0.25s, background 0.25s, filter 0.25s;
    cursor: pointer;
    letter-spacing: 1px;
    user-select: none;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(32px) scale(1);
    animation: cardFadeIn 0.7s cubic-bezier(.25,.8,.25,1) forwards;
    transition: background 0.7s cubic-bezier(.4,0,.2,1), color 0.7s cubic-bezier(.4,0,.2,1), border-color 0.7s cubic-bezier(.4,0,.2,1);
}
.tech-card:nth-child(1) { animation-delay: 0.1s; }
.tech-card:nth-child(2) { animation-delay: 0.25s; }
.tech-card:nth-child(3) { animation-delay: 0.4s; }
.tech-card:nth-child(4) { animation-delay: 0.55s; }

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

.tech-card:active::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    background: rgba(56,249,215,0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.5s linear;
    z-index: 2;
}
@keyframes ripple {
    to {
        width: 180px;
        height: 180px;
        opacity: 0;
    }
}
.tech-card:hover {
    background: linear-gradient(120deg, #38f9d7 0%, #fa8bff 100%);
    color: #222;
    box-shadow: 0 6px 24px 0 rgba(67,233,123,0.18), 0 2px 12px 0 rgba(58,123,213,0.12);
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.08);
}
.tech-card:hover svg {
    animation: iconBounce 0.5s cubic-bezier(.4,0,.2,1);
    filter: drop-shadow(0 0 12px #fa8bffcc) drop-shadow(0 0 8px #38f9d7cc);
    /* 渐变色填充 */
    color: #fa8bff;
    background: linear-gradient(120deg, #38f9d7, #fa8bff, #ffe53b, #43e97b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
@keyframes iconBounce {
    0% { transform: scale(1) translateY(0); }
    30% { transform: scale(1.18) translateY(-4px); }
    60% { transform: scale(0.92) translateY(2px); }
    100% { transform: scale(1) translateY(0); }
}
.tech-card svg {
    filter: drop-shadow(0 1px 4px #38f9d7cc);
    transition: all 0.3s;
    will-change: filter, transform, color;
}

.theme-toggle {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 200;
    background: var(--content-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    padding: 6px 12px;
    transition: background 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.theme-icon {
    display: flex;
    align-items: center;
    color: var(--text-main);
    margin-right: 2px;
    filter: drop-shadow(0 1px 4px #38f9d7cc);
}
.theme-toggle select {
    background: transparent;
    color: var(--text-main);
    border: none;
    font-size: 1.08rem;
    font-weight: 600;
    outline: none;
    padding: 4px 8px;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    transition: color 0.3s, background 0.3s;
}
.theme-toggle select option {
    color: #222;
    background: #fff;
}

body.aurora {
    --main-bg: #232b3b;
    --main-bg-gradient: linear-gradient(120deg, #232b3b 0%, #38f9d7 50%, #fa8bff 100%);
    --content-bg: rgba(56, 249, 215, 0.13);
    --card-bg: linear-gradient(120deg, #38f9d7 0%, #fa8bff 100%);
    --text-main: #fff;
    --text-secondary: #e3e2e5;
    --border-main: rgba(56,249,215,0.18);
}
body.techblue {
    --main-bg: #0f2027;
    --main-bg-gradient: linear-gradient(120deg, #2c5364 0%, #203a43 50%, #0f2027 100%);
    --content-bg: rgba(44, 83, 100, 0.85);
    --card-bg: linear-gradient(120deg, #2193b0 0%, #6dd5ed 100%);
    --text-main: #e3e2e5;
    --text-secondary: #b2fefa;
    --border-main: rgba(33,147,176,0.18);
}
body.sakura {
    --main-bg: #fff1f7;
    --main-bg-gradient: linear-gradient(120deg, #fff1f7 0%, #f9c6d4 50%, #f6d365 100%);
    --content-bg: rgba(255, 241, 247, 0.92);
    --card-bg: linear-gradient(120deg, #f9c6d4 0%, #f6d365 100%);
    --text-main: #b23a48;
    --text-secondary: #f6d365;
    --border-main: rgba(242, 112, 156, 0.18);
}

#theme-mask {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: var(--main-bg-gradient, #232b3b);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.7;
    transition: none;
}
#theme-mask.active {
    animation: themeCircleExpand 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes themeCircleExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0.7;
    }
    80% {
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(18);
        opacity: 1;
    }
}

.cartoon-person {
    position: absolute;
    top: -90px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 3;
    pointer-events: auto;
    cursor: grab;
    animation: personBounce 2.8s infinite cubic-bezier(.4,0,.2,1);
}
.cartoon-person:active {
    cursor: grabbing;
    animation: none;
}

.cartoon-person img {
    width: 120px;
    height: auto;
    border-radius: 28px;
    box-shadow: none !important;
    filter: none !important;
    animation: personBounce 2.8s infinite cubic-bezier(.4,0,.2,1);
}

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