@font-face {
    font-family: "wdnmd";
    src: url("../fonts/1.ttf");
}

:root {
    --bg-color: rgb(255, 165, 92);
    --first-bg-color: linear-gradient(to top, rgb(255, 165, 92), rgb(255, 159, 49));
    --hill-color-1: rgb(115, 49, 54);
    --hill-color-2: rgb(131, 55, 59);
    --hill-color-3: rgb(162, 72, 80);
    --hill-color-4: rgb(221, 102, 107);
    --ground-color: linear-gradient(to top right, rgb(202, 112, 117), rgb(126, 50, 53));
    --grass-color: linear-gradient(to top, rgb(202, 112, 117), rgb(126, 50, 53));
    --title-color: rgb(255, 69, 32);
    --title-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    --icon-shadow: 0 0 5px white;
    --card-bg: rgba(255, 255, 255, 0.15);
    --card-hover-bg: rgba(255, 255, 255, 0.25);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
}

:root[theme="dark"] {
    --bg-color: rgb(48, 37, 95);
    --first-bg-color: linear-gradient(to top, rgb(78, 36, 88), rgb(13, 18, 51));
    --hill-color-1: rgb(36, 32, 74);
    --hill-color-2: rgb(41, 35, 94);
    --hill-color-3: rgb(65, 37, 71);
    --hill-color-4: rgb(87, 50, 95);
    --ground-color: linear-gradient(to top right, rgb(43, 38, 95), rgb(61, 36, 95));
    --grass-color: linear-gradient(to top, rgb(85, 49, 96), rgb(78, 72, 128));
    --title-color: rgb(136, 65, 167);
    --title-shadow: 2px 2px 0px rgba(255, 255, 255, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
    --icon-shadow: 0 0 2px white;
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-hover-bg: rgba(255, 255, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    font-family: "wdnmd";
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    scroll-behavior: smooth;
}

html {
    background-color: white;
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
}

/* 滚动条 */
body::-webkit-scrollbar {
    width: 8px;
    height: 1px;
}

body::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 20px;
}

/* 统一过渡 */
body,
html,
.home-text > ul i,
.section-home,
.celestial div,
.hill-back div,
.ground > div,
.home-text,
.home-text > ul a,
.home-text > ul li span,
.sidebar > div span,
.home-container,
.about-content b::after,
.about-content a::after,
.about-image,
.about-image-overlay-show {
    transition: all 0.3s;
}

/* v-cloak */
[v-cloak] {
    display: none;
}

/* ==================== 侧栏按钮 ==================== */
.sidebar {
    position: fixed;
    right: 50px;
    bottom: 50px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar > div {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--hill-color-4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.8rem;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
    border-radius: 50%;
    transition: all 0.15s;
    opacity: 0.8;
}

.sidebar > div:hover {
    transform: scale(1.1);
    opacity: 1;
}

.sidebar > div:active {
    transform: scale(0.8);
}

.sidebar > div span {
    position: absolute;
    right: 120%;
    white-space: nowrap;
    font-size: 1.2rem;
    visibility: hidden;
    opacity: 0;
    font-weight: bold;
    transition: all 0.3s;
}

.sidebar > div:hover span {
    visibility: inherit;
    opacity: 1;
    text-shadow: 0 0 5px black;
}

.sidebar b {
    margin: 0 2px;
}

.sidebar-dark-text {
    color: rgb(136, 65, 167);
    text-shadow: var(--title-shadow);
}

.sidebar-light-text {
    color: rgb(255, 69, 32);
    text-shadow: var(--title-shadow);
}

/* ==================== 全局盒子定义 ==================== */
#app,
.section-home,
.section-about {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* ==================== 首页 ==================== */
.section-home {
    overflow: hidden;
    background: var(--first-bg-color);
}

/* 首页云朵 */
.section-home > div:nth-child(2),
.section-home > div:nth-child(3),
.section-home > div:nth-child(4),
.section-home > div:nth-child(5) {
    min-width: 120px;
    width: 200px;
    height: 50px;
    background-color: white;
    border-radius: 50px;
    position: absolute;
    z-index: 1;
    animation: cloud 3s ease-in-out infinite;
    opacity: 0.5;
}

.section-home > div:nth-child(2)::after,
.section-home > div:nth-child(2)::before,
.section-home > div:nth-child(3)::after,
.section-home > div:nth-child(3)::before,
.section-home > div:nth-child(4)::after,
.section-home > div:nth-child(4)::before,
.section-home > div:nth-child(5)::after,
.section-home > div:nth-child(5)::before {
    content: "";
    display: block;
    position: absolute;
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
}

.section-home > div:nth-child(2)::after,
.section-home > div:nth-child(3)::after,
.section-home > div:nth-child(4)::after,
.section-home > div:nth-child(5)::after {
    width: 100px;
    height: 100px;
    left: 10%;
    bottom: 0;
}

.section-home > div:nth-child(2)::before,
.section-home > div:nth-child(3)::before,
.section-home > div:nth-child(4)::before,
.section-home > div:nth-child(5)::before {
    right: 10%;
    bottom: 0;
}

.section-home > div:nth-child(2) {
    top: 10%;
    left: -3%;
}

.section-home > div:nth-child(3) {
    top: 26%;
    left: 25%;
    animation-delay: 0.5s;
}

.section-home > div:nth-child(4) {
    top: 13%;
    right: 20%;
    animation-delay: 0.3s;
}

.section-home > div:nth-child(5) {
    top: 35%;
    right: -2%;
    animation-delay: 0.8s;
}

/* 云朵动画 */
@keyframes cloud {
    0% {
        transform: translateX(15px);
    }
    50% {
        transform: translateX(-15px);
    }
    100% {
        transform: translateX(15px);
    }
}

.home-container {
    width: 100%;
    height: 100%;
    position: absolute;
}

/* 太阳与月亮 */
.celestial {
    position: absolute;
    animation: celestial-pulse 1s ease-in-out infinite;
    transition: all 0.5s;
    right: 30%;
    top: 25%;
    z-index: 1;
}

@keyframes celestial-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.celestial div {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    position: absolute;
}

.celestial div:nth-child(1) {
    z-index: 4;
}

.celestial div:nth-child(2) {
    z-index: 3;
    transform: scale(1.3);
}

.celestial div:nth-child(3) {
    z-index: 2;
    transform: scale(1.6);
}

.celestial div:nth-child(4) {
    z-index: 1;
    transform: scale(1.6);
}

/* 太阳或月亮隐藏 */
.celestial-hide {
    top: 100% !important;
}

/* 太阳 */
.sun div:nth-child(1) {
    background: rgb(255, 110, 81);
}

.sun div:nth-child(2) {
    background: rgba(255, 110, 81, 0.5);
}

.sun div:nth-child(3) {
    background: rgba(255, 110, 81, 0.3);
}

.sun div:nth-child(4) {
    box-shadow: 0 0 50px rgba(255, 110, 81, 0.5);
}

/* 月亮 */
.moon div:nth-child(1) {
    background: rgb(253, 253, 253);
}

.moon div:nth-child(2) {
    background: rgba(253, 253, 253, 0.5);
}

.moon div:nth-child(3) {
    background: rgba(253, 253, 253, 0.3);
}

.moon div:nth-child(4) {
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.5);
}

/* 山峰 */
.hill-back,
.hill-front {
    position: absolute;
    width: 800px;
    height: 800px;
    background-color: white;
    border-radius: 50px;
    overflow: hidden;
    transform: rotate(-45deg);
    z-index: 3;
}

.hill-back div,
.hill-front div {
    width: 70%;
    height: 70%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    position: absolute;
    border-radius: 10px;
}

.hill-back div:nth-child(1),
.hill-front div:nth-child(1) {
    background-color: var(--hill-color-1);
}

.hill-back div:nth-child(2),
.hill-front div:nth-child(2) {
    background-color: var(--hill-color-2);
    bottom: 20%;
    right: 20%;
}

.hill-back div:nth-child(3),
.hill-front div:nth-child(3) {
    background-color: var(--hill-color-3);
    top: 20%;
    left: 20%;
}

.hill-back div:nth-child(4),
.hill-front div:nth-child(4) {
    background-color: var(--hill-color-4);
    bottom: 0;
    right: 0;
}

.hill-back {
    left: -10%;
    bottom: -500px;
}

.hill-front {
    width: 700px;
    height: 700px;
    right: -5%;
    bottom: -450px;
}

/* 大地 */
.ground {
    width: 100%;
    height: 20%;
    background: var(--ground-color);
    position: absolute;
    bottom: 0;
    z-index: 3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.ground > div:nth-child(2),
.ground > div:nth-child(3),
.ground > div:nth-child(4),
.ground > div:nth-child(5) {
    position: absolute;
}

.ground > div:nth-child(5),
.ground > div:nth-child(2)::after,
.ground > div:nth-child(2)::before,
.ground > div:nth-child(3)::after,
.ground > div:nth-child(3)::before,
.ground > div:nth-child(4)::after,
.ground > div:nth-child(4)::before,
.ground > div:nth-child(5)::after,
.ground > div:nth-child(5)::before {
    content: "";
    display: block;
    width: 10px;
    height: 35px;
    background: var(--grass-color);
    position: absolute;
    bottom: 0;
}

.ground > div:nth-child(2)::before,
.ground > div:nth-child(3)::before,
.ground > div:nth-child(4)::before,
.ground > div:nth-child(5)::before {
    left: 15px;
}

.ground > div:nth-child(2) {
    top: 10px;
    left: 25%;
}

.ground > div:nth-child(2)::before {
    height: 30px;
}

.ground > div:nth-child(3) {
    right: 35%;
}

.ground > div:nth-child(3)::before {
    height: 40px;
}

.ground > div:nth-child(4) {
    top: 50%;
    right: 20%;
}

.ground > div:nth-child(4)::before {
    height: 50px;
}

.ground > div:nth-child(5) {
    top: 40%;
    left: 40%;
}

.ground > div:nth-child(5)::after {
    left: -20px;
    height: 50px;
}

.ground > div:nth-child(5)::before {
    height: 55px;
}

/* 标题文字 */
.home-text {
    width: 100%;
    text-align: center;
    font-size: 6rem;
    font-weight: bold;
    color: var(--title-color);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    text-shadow: var(--title-shadow);
}

.home-text p:nth-child(2) {
    font-size: 2rem;
    margin: 10px 0;
}

/* 图标菜单 */
.home-text > ul {
    font-size: 1rem;
    display: flex;
    justify-content: center;
}

.home-text > ul li {
    margin: 0 10px;
}

.home-text > ul a {
    color: var(--title-color);
    font-size: 1.8rem;
    text-shadow: var(--icon-shadow);
    position: relative;
}

.home-text > ul li:hover i {
    transform: scale(1.2) rotate(5deg);
}

.home-text > ul li span {
    padding: 0;
    overflow: hidden;
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    white-space: nowrap;
    background: var(--title-color);
    color: white;
    text-shadow: none;
    transform: translate(-50%, 100%);
    border-radius: 10px;
    box-shadow: var(--icon-shadow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.home-text > ul li:hover span {
    opacity: 1;
    visibility: visible;
    padding: 5px;
    z-index: 1;
    transform: translate(-50%, 110%);
}

/* 房屋 */
.house {
    position: absolute;
    top: -40px;
    left: 55%;
    transform: scale(0.8);
}

.house > div:nth-child(1) {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, rgb(155, 70, 0), rgb(201, 114, 43));
    position: absolute;
    top: 0;
    left: 0;
}

.house > div:nth-child(1)::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-bottom: 35px solid rgb(155, 70, 0);
    border-left: 35px solid transparent;
    border-right: 35px solid transparent;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -50%;
}

.house > div:nth-child(1)::before {
    content: "";
    display: block;
    width: 10px;
    height: 30px;
    background: rgb(155, 70, 0);
    position: absolute;
    top: -30px;
    right: 5px;
}

/* 烟囱动画 */
@keyframes smoke-right {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(45px) translateY(-330px) scale(4.3);
        opacity: 0.1;
    }
}

@keyframes smoke-left {
    0% {
        transform: translateX(0) translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-45px) translateY(-330px) scale(4.3);
        opacity: 0;
    }
}

.house > div:nth-child(2),
.house > div:nth-child(3),
.house > div:nth-child(4),
.house > div:nth-child(5),
.house > div:nth-child(6),
.house > div:nth-child(7),
.house > div:nth-child(8),
.house > div:nth-child(9) {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(75, 75, 75, 0.8);
    left: 35px;
    bottom: 20px;
    z-index: -1;
    animation: smoke-left 5s ease-in-out infinite;
}

.house > div:nth-child(2),
.house > div:nth-child(3),
.house > div:nth-child(4),
.house > div:nth-child(5) {
    animation: smoke-right 5s ease-in-out infinite;
}

.house > div:nth-child(3) {
    animation-delay: 1.5s;
}

.house > div:nth-child(4) {
    animation-delay: 0.7s;
}

.house > div:nth-child(5) {
    animation-delay: 1.9s;
}

.house > div:nth-child(6) {
    animation-delay: 0.2s;
}

.house > div:nth-child(7) {
    animation-delay: 1.4s;
}

.house > div:nth-child(8) {
    animation-delay: 0.6s;
}

.house > div:nth-child(9) {
    animation-delay: 1.8s;
}

/* ==================== 关于我 - 森林场景 ==================== */
.section-about {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8C8 50%, #7CB342 100%);
}

:root[theme="dark"] .section-about {
    background: linear-gradient(to bottom, #1a237e 0%, #283593 50%, #1b5e20 100%);
}

.about-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

/* 关于我 - 文案 */
.about-content {
    position: relative;
    width: 100%;
    max-width: 800px;
}

.about-content h1,
.about-content h2,
.about-content p,
.about-content b {
    color: white;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

.about-content h1 {
    font-size: 25rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.1;
    white-space: nowrap;
    z-index: -1;
}

.about-content h2 {
    font-size: 2.5rem;
    margin: 20px 0 12px;
}

.about-content p,
.about-content b,
.about-content a {
    font-size: 1.5rem;
    margin: 8px 0;
}

.about-content p {
    margin: 20px 0;
}

.about-content b,
.about-content a {
    padding: 0 5px;
    margin: 0 3px;
    position: relative;
}

.about-content b::after,
.about-content a::after {
    content: "";
    display: block;
    width: 100%;
    height: 20%;
    background: #ff4757;
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: -1;
    transition: all 0.3s;
}

.about-content b:hover::after,
.about-content a:hover::after {
    height: 100%;
}

.about-content a {
    color: white;
    font-weight: bold;
}

.about-content a::after {
    background: #1e90ff;
}

/* 关于我 - 图片（已隐藏） */
.about-image {
    display: none;
    flex-shrink: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image:hover {
    transform: rotate(3deg) scale(1.05);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 19px 38px, rgba(0, 0, 0, 0.22) 0px 15px 12px;
}

/* 图片点击放大 */
.about-image-active {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) rotate(0) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5) !important;
    z-index: 99;
    width: auto;
    max-width: 90vw;
    height: auto;
    max-height: 80vh;
}

.about-image-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.about-image-overlay-show {
    opacity: 1;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    visibility: visible;
    z-index: 10;
}

/* ==================== 通用板块标题 ==================== */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 3rem;
    color: var(--text-primary);
    text-shadow: var(--title-shadow);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* ==================== 我的项目 - 沙漠场景 ==================== */
.section-projects {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, #FF8C00 0%, #FFD700 30%, #F4A460 100%);
}

:root[theme="dark"] .section-projects {
    background: linear-gradient(to bottom, #4a148c 0%, #6a1b9a 30%, #4a148c 100%);
}

.projects-wrapper {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

/* 项目内容 */
.projects-content {
    position: relative;
}

.projects-content h1 {
    font-size: 20rem;
    position: absolute;
    opacity: 0.15;
    white-space: nowrap;
    z-index: -1;
    color: white;
    top: -80px;
    left: -30px;
    text-shadow: none;
}

.projects-content h2 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.projects-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.4);
    margin-bottom: 40px;
}

/* 项目卡片网格 */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.project-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 20px;
    color: white;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-item b {
    font-size: 1.2rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
    display: block;
}

.project-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
}

.project-item em {
    font-style: normal;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.project-item em i {
    color: #FFD700;
    margin-right: 5px;
}

/* ==================== 我的网站 - 海洋场景 ==================== */
.section-links {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: linear-gradient(to bottom, #87CEEB 0%, #5DADE2 40%, #3498DB 100%);
}

:root[theme="dark"] .section-links {
    background: linear-gradient(to bottom, #1a237e 0%, #283593 40%, #1a237e 100%);
}

.links-wrapper {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 0 250px;
    position: relative;
    z-index: 10;
}

/* 海洋场景配色 */
.section-links .link-icon {
    background: #2980B9;
}

:root[theme="dark"] .section-links .link-icon {
    background: #5C6BC0;
}

.section-links .link-card {
    background: rgba(255, 255, 255, 0.15);
}

.section-links .link-card:hover {
    background: rgba(255, 255, 255, 0.25);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.link-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 30px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.link-card:hover {
    background: var(--card-hover-bg);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.link-icon {
    width: 60px;
    height: 60px;
    background: var(--title-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.link-icon i {
    font-size: 1.8rem;
    color: white;
}

.link-info h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.link-info p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==================== 底部版权 ==================== */
.footer {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}

.footer a:hover {
    color: white;
}

/* ==================== 响应式适配 ==================== */
@media screen and (max-width: 1200px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .about-wrapper .about-content {
        width: 100%;
    }

    .about-content h1 {
        font-size: 15rem;
    }
}

@media screen and (max-width: 768px) {
    .home-text {
        font-size: 3.5rem;
    }

    .home-text p:nth-child(2) {
        font-size: 1.2rem;
    }

    .home-text > ul a {
        font-size: 1.4rem;
    }

    .about-wrapper,
    .links-wrapper {
        width: 90%;
        padding: 60px 0;
    }
    
    .projects-wrapper {
        width: 92%;
        padding: 30px 20px;
    }

    .about-content h1 {
        font-size: 8rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-content p,
    .about-content b,
    .about-content a {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }
    
    /* 项目列表响应式 */
    .project-card {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .project-title {
        min-width: auto;
        flex: 1;
    }
    
    .project-desc {
        width: 100%;
        order: 3;
        margin-right: 0;
    }
    
    .project-footer {
        order: 2;
    }

    .sidebar {
        right: 20px;
        bottom: 20px;
    }

    .sidebar > div {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    /* 场景缩放 */
    .tree { transform: scale(0.5) !important; }
    .cactus { transform: scale(0.5) !important; }
    .lighthouse { transform: scale(0.6); right: 2%; bottom: 100px; }
    .boat { transform: scale(0.6); bottom: 100px; }
    .dune-1 { height: 100px; }
    .dune-2 { height: 130px; }
    .dune-3 { height: 80px; }
    
    /* 项目内容响应式 */
    .projects-content h1 {
        font-size: 10rem;
        top: -50px;
    }
    
    .projects-content h2 {
        font-size: 2rem;
    }
    
    .projects-list {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media screen and (max-width: 480px) {
    .home-text p:nth-child(2) {
        font-size: 1rem;
    }

    .about-content h1 {
        display: none;
    }

    .link-card {
        padding: 20px;
    }

    .link-icon {
        width: 50px;
        height: 50px;
    }

    .link-icon i {
        font-size: 1.5rem;
    }
    
    /* 项目内容移动端 */
    .projects-content h1 {
        display: none;
    }
    
    .projects-content h2 {
        font-size: 1.8rem;
    }
    
    .projects-list {
        grid-template-columns: 1fr;
    }
    
    .project-item {
        padding: 15px;
    }
    
    .project-item b {
        font-size: 1.1rem;
    }
    
    .project-item span {
        font-size: 0.9rem;
    }
    
    /* 隐藏部分场景元素 */
    .bird, .butterfly, .seagull { display: none; }
    .tree-3, .tree-4, .tree-5 { display: none; }
    .cactus-2 { display: none; }
    .camel { display: none; }
    .boat { display: none; }
}

/* ========================================
   场景共用太阳/月亮 - Scene Celestial
   ======================================== */
.scene-celestial {
    position: absolute;
    animation: scene-celestial-pulse 2s ease-in-out infinite;
    transition: all 0.5s ease-in-out;
    z-index: 1;
}

/* 森林场景太阳/月亮位置 */
.forest-scene .scene-celestial {
    top: 10%;
    left: 15%;
}

/* 沙漠场景太阳/月亮位置 */
.desert-celestial {
    top: 10%;
    right: 15%;
    left: auto;
}

/* 海洋场景太阳/月亮位置 */
.ocean-celestial {
    top: 8%;
    left: 15%;
}

@keyframes scene-celestial-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.scene-celestial div {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    transition: all 0.5s;
}

.scene-celestial div:nth-child(1) { z-index: 4; }
.scene-celestial div:nth-child(2) { z-index: 3; transform: scale(1.3); }
.scene-celestial div:nth-child(3) { z-index: 2; transform: scale(1.6); }
.scene-celestial div:nth-child(4) { z-index: 1; transform: scale(1.6); }

/* 太阳或月亮隐藏 - 落山效果 */
.scene-celestial-hide {
    top: 120% !important;
}

/* 场景太阳 */
.scene-sun div:nth-child(1) { background: rgb(255, 200, 50); }
.scene-sun div:nth-child(2) { background: rgba(255, 200, 50, 0.5); }
.scene-sun div:nth-child(3) { background: rgba(255, 200, 50, 0.3); }
.scene-sun div:nth-child(4) { box-shadow: 0 0 40px rgba(255, 200, 50, 0.5); }

/* 场景月亮 */
.scene-moon div:nth-child(1) { background: rgb(230, 230, 250); }
.scene-moon div:nth-child(2) { background: rgba(230, 230, 250, 0.5); }
.scene-moon div:nth-child(3) { background: rgba(230, 230, 250, 0.3); }
.scene-moon div:nth-child(4) { box-shadow: 0 0 40px rgba(230, 230, 250, 0.5); }

/* ========================================
   森林场景 - Forest Scene
   ======================================== */
.forest-scene {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* 树木 - 使用多层三角形 */
.tree {
    position: absolute;
    bottom: 0;
    width: 160px;
    height: 280px;
    animation: tree-sway 4s ease-in-out infinite;
    transform-origin: bottom center;
}

/* 树干 */
.tree::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 80px;
    background: linear-gradient(to right, #5D4037, #8D6E63, #5D4037);
    border-radius: 3px;
}

/* 树冠 - 三层叠加 */
.tree::after {
    content: "";
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 180px solid #2E7D32;
    filter: drop-shadow(0 -30px 0 #388E3C) drop-shadow(0 -55px 0 #43A047);
}

:root[theme="dark"] .tree::after {
    border-bottom-color: #1B5E20;
    filter: drop-shadow(0 -30px 0 #2E7D32) drop-shadow(0 -55px 0 #388E3C);
}

.tree-1 {
    left: 2%;
    height: 320px;
}
.tree-1::before { height: 90px; }
.tree-1::after { 
    bottom: 70px;
    border-left-width: 90px;
    border-right-width: 90px;
    border-bottom-width: 200px;
}

.tree-2 {
    left: 10%;
    height: 240px;
    transform: scale(0.85);
}

.tree-3 {
    right: 3%;
    height: 350px;
}
.tree-3::before { height: 100px; }
.tree-3::after { 
    bottom: 80px;
    border-left-width: 100px;
    border-right-width: 100px;
    border-bottom-width: 220px;
}

.tree-4 {
    right: 15%;
    height: 280px;
}

.tree-5 {
    left: 22%;
    height: 220px;
    transform: scale(0.75);
}

.tree-2 { animation-delay: 0.5s; }
.tree-3 { animation-delay: 1s; }
.tree-4 { animation-delay: 1.5s; }
.tree-5 { animation-delay: 2s; }

@keyframes tree-sway {
    0%, 100% { transform: rotate(-1deg); }
    50% { transform: rotate(1deg); }
}

/* 飞鸟 */
.bird {
    position: absolute;
    width: 30px;
    height: 10px;
}

.bird::before,
.bird::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 3px;
    background: #333;
    border-radius: 50%;
    animation: bird-flap 0.3s ease-in-out infinite alternate;
}

:root[theme="dark"] .bird::before,
:root[theme="dark"] .bird::after {
    background: #fff;
}

.bird::before {
    left: 0;
    transform-origin: right center;
}

.bird::after {
    right: 0;
    transform-origin: left center;
}

@keyframes bird-flap {
    0% { transform: rotate(-30deg); }
    100% { transform: rotate(30deg); }
}

.bird-1 {
    top: 15%;
    left: 20%;
    animation: bird-fly 8s linear infinite;
}

.bird-2 {
    top: 25%;
    left: 40%;
    animation: bird-fly 10s linear infinite;
    animation-delay: 2s;
}

.bird-3 {
    top: 10%;
    left: 60%;
    animation: bird-fly 12s linear infinite;
    animation-delay: 4s;
}

@keyframes bird-fly {
    0% {
        transform: translateX(-100px) translateY(0);
    }
    25% {
        transform: translateX(25vw) translateY(-20px);
    }
    50% {
        transform: translateX(50vw) translateY(10px);
    }
    75% {
        transform: translateX(75vw) translateY(-15px);
    }
    100% {
        transform: translateX(100vw) translateY(0);
    }
}

/* 蝴蝶 */
.butterfly {
    position: absolute;
    width: 20px;
    height: 20px;
}

.butterfly::before,
.butterfly::after {
    content: "";
    position: absolute;
    width: 15px;
    height: 20px;
    background: linear-gradient(135deg, #FF6B6B, #FFE66D);
    border-radius: 50% 50% 50% 0;
    animation: butterfly-wing 0.3s ease-in-out infinite alternate;
}

:root[theme="dark"] .butterfly::before,
:root[theme="dark"] .butterfly::after {
    background: linear-gradient(135deg, #E040FB, #7C4DFF);
}

.butterfly::before {
    transform-origin: right bottom;
    left: 0;
}

.butterfly::after {
    transform-origin: left bottom;
    right: 0;
    animation-delay: 0.15s;
}

@keyframes butterfly-wing {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(60deg); }
}

.butterfly-1 {
    top: 40%;
    left: 25%;
    animation: butterfly-float 6s ease-in-out infinite;
}

.butterfly-2 {
    top: 50%;
    right: 30%;
    animation: butterfly-float 8s ease-in-out infinite reverse;
}

@keyframes butterfly-float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -30px) rotate(10deg);
    }
    50% {
        transform: translate(100px, 20px) rotate(-5deg);
    }
    75% {
        transform: translate(50px, -20px) rotate(15deg);
    }
}

/* 草丛 */
.grass {
    position: absolute;
    bottom: 0;
    width: 100px;
    height: 60px;
}

.grass::before,
.grass::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 40px;
    background: linear-gradient(to top, #388E3C, #66BB6A);
    border-radius: 50% 50% 0 0;
    transform-origin: bottom center;
    animation: grass-wave 2s ease-in-out infinite;
}

:root[theme="dark"] .grass::before,
:root[theme="dark"] .grass::after {
    background: linear-gradient(to top, #1B5E20, #2E7D32);
}

.grass::before {
    left: 20%;
    animation-delay: 0.1s;
}

.grass::after {
    left: 50%;
    height: 50px;
    animation-delay: 0.3s;
}

.grass-1 { left: 10%; }
.grass-2 { left: 50%; }
.grass-3 { right: 15%; }

@keyframes grass-wave {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* 小屋 */
.cabin {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-80%);
    width: 120px;
    height: 130px;
    z-index: 5;
}

.cabin-body {
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 100px;
    height: 70px;
    background: linear-gradient(135deg, #8B4513 0%, #654321 100%);
    border-radius: 3px;
}

:root[theme="dark"] .cabin-body {
    background: linear-gradient(135deg, #5D4037 0%, #3E2723 100%);
}

.cabin-roof {
    position: absolute;
    bottom: 70px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 45px solid #A0522D;
}

:root[theme="dark"] .cabin-roof {
    border-bottom-color: #4E342E;
}

.cabin-door {
    position: absolute;
    bottom: 0;
    left: 45px;
    width: 25px;
    height: 40px;
    background: #3E2723;
    border-radius: 3px 3px 0 0;
}

.cabin-window {
    position: absolute;
    bottom: 35px;
    left: 70px;
    width: 20px;
    height: 20px;
    background: #FFEB3B;
    border: 2px solid #5D4037;
    box-shadow: 0 0 10px rgba(255, 235, 59, 0.5);
}

:root[theme="dark"] .cabin-window {
    background: #FFF59D;
    box-shadow: 0 0 15px rgba(255, 245, 157, 0.8);
}

.cabin-chimney {
    position: absolute;
    bottom: 100px;
    right: 30px;
    width: 15px;
    height: 30px;
    background: #795548;
}

/* 烟囱烟雾 */
.cabin-smoke {
    position: absolute;
    bottom: 128px;
    right: 32px;
    width: 12px;
    height: 12px;
    background: rgba(200, 200, 200, 0.6);
    border-radius: 50%;
    animation: smoke-rise 3s ease-out infinite;
}

:root[theme="dark"] .cabin-smoke {
    background: rgba(180, 180, 180, 0.4);
}

.smoke-1 { animation-delay: 0s; }
.smoke-2 { animation-delay: 1s; right: 30px; }
.smoke-3 { animation-delay: 2s; right: 24px; }

@keyframes smoke-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) translateX(10px) scale(1.5);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-60px) translateX(20px) scale(2);
        opacity: 0;
    }
}

/* 篝火 */
.campfire {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 60px;
    z-index: 6;
}

.fire {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 40px;
    background: linear-gradient(to top, #FF5722 0%, #FF9800 40%, #FFEB3B 80%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: fire-flicker 0.5s ease-in-out infinite alternate;
}

.fire::before,
.fire::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 20px;
    height: 30px;
    background: linear-gradient(to top, #FF5722 0%, #FF9800 50%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: fire-flicker 0.4s ease-in-out infinite alternate;
}

.fire::before {
    left: -8px;
    animation-delay: 0.1s;
}

.fire::after {
    right: -8px;
    animation-delay: 0.2s;
}

.fire-glow {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 40px;
    background: radial-gradient(ellipse, rgba(255, 152, 0, 0.4) 0%, transparent 70%);
    animation: glow-pulse 1s ease-in-out infinite alternate;
}

.logs {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 12px;
    background: #5D4037;
    border-radius: 3px;
}

.logs::before,
.logs::after {
    content: "";
    position: absolute;
    width: 45px;
    height: 10px;
    background: #4E342E;
    border-radius: 3px;
}

.logs::before {
    top: -5px;
    left: -5px;
    transform: rotate(-15deg);
}

.logs::after {
    top: -5px;
    right: -5px;
    transform: rotate(15deg);
}

@keyframes fire-flicker {
    0% { transform: translateX(-50%) scaleY(1) scaleX(1); }
    100% { transform: translateX(-50%) scaleY(1.1) scaleX(0.9); }
}

@keyframes glow-pulse {
    0% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    100% { opacity: 0.8; transform: translateX(-50%) scale(1.1); }
}

/* ========================================
   沙漠场景 - Desert Scene
   ======================================== */
.desert-scene {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* 沙丘 */
.dune {
    position: absolute;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(to top, #D4A574, #E8C99B);
}

:root[theme="dark"] .dune {
    background: linear-gradient(to top, #4a148c, #7b1fa2);
}

.dune-1 {
    left: -10%;
    width: 60%;
    height: 200px;
    z-index: 3;
}

.dune-2 {
    right: -5%;
    width: 50%;
    height: 250px;
    z-index: 2;
}

.dune-3 {
    left: 30%;
    width: 40%;
    height: 180px;
    z-index: 1;
}

/* 仙人掌 */
.cactus {
    position: absolute;
    bottom: 150px;
    width: 30px;
    height: 80px;
    background: linear-gradient(to right, #2E7D32, #43A047, #2E7D32);
    border-radius: 15px 15px 5px 5px;
    z-index: 5;
}

:root[theme="dark"] .cactus {
    background: linear-gradient(to right, #1B5E20, #2E7D32, #1B5E20);
}

.cactus::before,
.cactus::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 40px;
    background: inherit;
    border-radius: 10px 10px 5px 5px;
}

.cactus::before {
    top: 20px;
    left: -15px;
    transform: rotate(-30deg);
}

.cactus::after {
    top: 30px;
    right: -15px;
    transform: rotate(30deg);
}

.cactus-1 {
    left: 15%;
    transform: scale(1);
}

.cactus-2 {
    left: 45%;
    bottom: 180px;
    transform: scale(0.8);
}

.cactus-3 {
    right: 20%;
    bottom: 200px;
    transform: scale(1.2);
}

/* 骆驼 */
.camel {
    position: absolute;
    bottom: 180px;
    left: 60%;
    width: 80px;
    height: 50px;
    z-index: 4;
    animation: camel-walk 20s linear infinite;
}

.camel::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 35px;
    background: #8D6E63;
    border-radius: 30px 30px 10px 10px;
    bottom: 15px;
    left: 10px;
}

.camel::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 30px;
    background: #8D6E63;
    border-radius: 10px 10px 0 0;
    bottom: 40px;
    left: 50px;
}

:root[theme="dark"] .camel::before,
:root[theme="dark"] .camel::after {
    background: #5D4037;
}

@keyframes camel-walk {
    0% { transform: translateX(-200px); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

/* 热浪效果 */
.heat-wave {
    position: absolute;
    bottom: 100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 50px,
        rgba(255, 255, 255, 0.1) 50px,
        rgba(255, 255, 255, 0.1) 100px
    );
    animation: heat-wave-move 3s linear infinite;
    opacity: 0.5;
}

@keyframes heat-wave-move {
    0% { transform: translateX(0) scaleY(1); }
    50% { transform: translateX(-50px) scaleY(1.1); }
    100% { transform: translateX(0) scaleY(1); }
}

/* ========================================
   海洋场景 - Ocean Scene
   ======================================== */
.ocean-scene {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

/* 海洋云朵 */
.ocean-cloud {
    position: absolute;
    width: 150px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    animation: cloud-drift 15s linear infinite;
}

:root[theme="dark"] .ocean-cloud {
    background: rgba(255, 255, 255, 0.3);
}

.ocean-cloud::before,
.ocean-cloud::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.ocean-cloud::before {
    width: 70px;
    height: 70px;
    top: -35px;
    left: 20px;
}

.ocean-cloud::after {
    width: 50px;
    height: 50px;
    top: -25px;
    right: 25px;
}

.ocean-cloud-1 {
    top: 10%;
    left: 30%;
}

.ocean-cloud-2 {
    top: 18%;
    left: 60%;
    transform: scale(0.7);
    animation-delay: 5s;
}

@keyframes cloud-drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(100px); }
}

/* 海鸥 */
.seagull {
    position: absolute;
    width: 40px;
    height: 15px;
}

.seagull::before,
.seagull::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 4px;
    background: #37474F;
    border-radius: 50%;
    animation: seagull-flap 0.5s ease-in-out infinite alternate;
}

:root[theme="dark"] .seagull::before,
:root[theme="dark"] .seagull::after {
    background: #CFD8DC;
}

.seagull::before {
    left: 0;
    transform-origin: right center;
}

.seagull::after {
    right: 0;
    transform-origin: left center;
}

@keyframes seagull-flap {
    0% { transform: rotate(-20deg); }
    100% { transform: rotate(20deg); }
}

.seagull-1 {
    top: 25%;
    left: 20%;
    animation: seagull-fly 12s linear infinite;
}

.seagull-2 {
    top: 30%;
    left: 35%;
    animation: seagull-fly 15s linear infinite;
    animation-delay: 3s;
}

.seagull-3 {
    top: 20%;
    left: 50%;
    animation: seagull-fly 18s linear infinite;
    animation-delay: 6s;
}

@keyframes seagull-fly {
    0% { transform: translateX(-100px) translateY(0); }
    25% { transform: translateX(25vw) translateY(-30px); }
    50% { transform: translateX(50vw) translateY(20px); }
    75% { transform: translateX(75vw) translateY(-20px); }
    100% { transform: translateX(100vw) translateY(0); }
}

/* 灯塔 */
.lighthouse {
    position: absolute;
    bottom: 180px;
    right: 6%;
    width: 50px;
    height: 200px;
    background: linear-gradient(to right, #ECEFF1 0%, #fff 30%, #ECEFF1 70%, #CFD8DC 100%);
    clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
    z-index: 5;
}

/* 灯塔红色条纹 */
.lighthouse::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 25px,
        #1565C0 25px,
        #1565C0 50px
    );
    clip-path: inherit;
}

:root[theme="dark"] .lighthouse::before {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 25px,
        #5C6BC0 25px,
        #5C6BC0 50px
    );
}

/* 灯塔顶部灯光 */
.lighthouse::after {
    content: "";
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #FFEB3B 0%, #FFC107 50%, transparent 70%);
    border-radius: 50%;
    box-shadow: 0 0 40px 20px rgba(255, 235, 59, 0.5), 0 0 80px 40px rgba(255, 235, 59, 0.2);
    animation: lighthouse-glow 2s ease-in-out infinite;
}

@keyframes lighthouse-glow {
    0%, 100% { 
        opacity: 1; 
        box-shadow: 0 0 40px 20px rgba(255, 235, 59, 0.5), 0 0 80px 40px rgba(255, 235, 59, 0.2);
        transform: translateX(-50%) scale(1);
    }
    50% { 
        opacity: 0.7; 
        box-shadow: 0 0 20px 10px rgba(255, 235, 59, 0.3), 0 0 40px 20px rgba(255, 235, 59, 0.1);
        transform: translateX(-50%) scale(0.9);
    }
}

/* 小船 */
.boat {
    position: absolute;
    bottom: 140px;
    left: 25%;
    width: 100px;
    height: 45px;
    z-index: 6;
    animation: boat-rock 3s ease-in-out infinite, boat-drift 35s linear infinite;
}

.boat::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 30px;
    background: linear-gradient(to bottom, #6D4C41, #4E342E);
    border-radius: 5px 5px 20px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.boat::after {
    content: "";
    position: absolute;
    bottom: 25px;
    left: 45px;
    width: 8px;
    height: 60px;
    background: #3E2723;
    border-radius: 4px;
}

/* 船帆 */
.boat .sail {
    position: absolute;
    bottom: 30px;
    left: 53px;
    width: 0;
    height: 0;
    border-left: 40px solid rgba(255, 255, 255, 0.95);
    border-top: 12px solid transparent;
    border-bottom: 35px solid transparent;
    filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.2));
}

@keyframes boat-rock {
    0%, 100% { transform: rotate(-2deg) translateY(0); }
    25% { transform: rotate(1deg) translateY(-5px); }
    50% { transform: rotate(2deg) translateY(0); }
    75% { transform: rotate(-1deg) translateY(-5px); }
}

@keyframes boat-drift {
    0% { left: 15%; }
    50% { left: 50%; }
    100% { left: 15%; }
}

/* 波浪 - SVG波浪效果 */
.wave {
    position: absolute;
    left: 0;
    width: 200%;
    height: 200px;
    background-repeat: repeat-x;
    background-size: 50% 100%;
}

.wave-1 {
    bottom: 0;
    z-index: 5;
    height: 150px;
    opacity: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z' fill='%23154360'/%3E%3C/svg%3E");
    animation: wave-move 8s linear infinite;
}

:root[theme="dark"] .wave-1 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z' fill='%230d1b2a'/%3E%3C/svg%3E");
}

.wave-2 {
    bottom: 20px;
    z-index: 4;
    height: 170px;
    opacity: 0.7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,100 400,20 600,60 C800,100 1000,20 1200,60 L1200,120 L0,120 Z' fill='%231a5276'/%3E%3C/svg%3E");
    animation: wave-move 10s linear infinite reverse;
}

:root[theme="dark"] .wave-2 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,100 400,20 600,60 C800,100 1000,20 1200,60 L1200,120 L0,120 Z' fill='%231b263b'/%3E%3C/svg%3E");
}

.wave-3 {
    bottom: 40px;
    z-index: 3;
    height: 190px;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C100,110 300,10 500,60 C700,110 900,10 1100,60 L1100,10 L1200,60 L1200,120 L0,120 Z' fill='%232471a3'/%3E%3C/svg%3E");
    animation: wave-move 12s linear infinite;
}

:root[theme="dark"] .wave-3 {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C100,110 300,10 500,60 C700,110 900,10 1100,60 L1100,10 L1200,60 L1200,120 L0,120 Z' fill='%23283593'/%3E%3C/svg%3E");
}

@keyframes wave-move {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
