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

:root {
    --primary-green: #5d9e56;
    --secondary-green: #8cb369;
    --accent-orange: #f4a460;
    --accent-yellow: #f4c672;
    --brown-dark: #5c4033;
    --brown-light: #8b6c4e;
    --sky-blue: #87ceeb;
    --grass-light: #9acd32;
    --text-dark: #2d2d2d;
    --text-light: #ffffff;
    --card-bg: #f8f5f0;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: linear-gradient(180deg, var(--sky-blue) 0%, #b8d4e8 100%);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* 云朵动画背景 */
.clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    animation: floatCloud linear infinite;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud-1 {
    width: 120px;
    height: 40px;
    top: 10%;
    left: -150px;
    animation-duration: 25s;
    animation-delay: 0s;
}

.cloud-1::before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 20px;
}

.cloud-1::after {
    width: 40px;
    height: 40px;
    top: -15px;
    left: 60px;
}

.cloud-2 {
    width: 100px;
    height: 35px;
    top: 20%;
    left: -120px;
    animation-duration: 30s;
    animation-delay: 8s;
}

.cloud-2::before {
    width: 40px;
    height: 40px;
    top: -20px;
    left: 15px;
}

.cloud-2::after {
    width: 35px;
    height: 35px;
    top: -12px;
    left: 50px;
}

.cloud-3 {
    width: 140px;
    height: 45px;
    top: 15%;
    left: -170px;
    animation-duration: 28s;
    animation-delay: 15s;
}

.cloud-3::before {
    width: 60px;
    height: 60px;
    top: -30px;
    left: 25px;
}

.cloud-3::after {
    width: 45px;
    height: 45px;
    top: -20px;
    left: 70px;
}

@keyframes floatCloud {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(120vw);
    }
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    background: rgba(93, 158, 86, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 3px solid var(--brown-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-light);
}

.logo-icon {
    width: 32px;
    height: 32px;
    vertical-align: middle;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.navbar-links {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, #f0ebe5 100%);
    border: 2px solid var(--brown-dark);
    border-radius: 25px;
    color: var(--brown-dark);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-orange) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(92, 64, 51, 0.3);
}

.nav-link .icon {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 英雄区域 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 4rem;
    background: linear-gradient(180deg, 
        rgba(135, 206, 235, 0.4) 0%, 
        rgba(135, 206, 235, 0.2) 50%,
        rgba(154, 205, 50, 0.3) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(154, 205, 50, 0.4) 100%);
    clip-path: polygon(0% 100%, 5% 85%, 10% 95%, 15% 80%, 20% 90%, 
                25% 75%, 30% 85%, 35% 70%, 40% 80%, 45% 65%, 
                50% 75%, 55% 60%, 60% 70%, 65% 55%, 70% 65%, 
                75% 50%, 80% 60%, 85% 45%, 90% 55%, 95% 40%, 100% 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.farm-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--card-bg);
    border: 3px solid var(--primary-green);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-green);
    animation: bounce 2s ease-in-out infinite;
}

.badge-icon {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--brown-dark);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 0 var(--accent-yellow);
    letter-spacing: 0.1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 3px solid var(--brown-dark);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--text-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(93, 158, 86, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-orange) 100%);
    color: var(--brown-dark);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 164, 96, 0.4);
}

.btn-icon {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* 装饰元素 */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.decoration-item {
    position: absolute;
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.decoration-flower-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.decoration-flower-2 {
    top: 30%;
    right: 15%;
    animation-delay: 0.5s;
}

.decoration-flower-3 {
    top: 60%;
    left: 5%;
    animation-delay: 1s;
}

.decoration-flower-4 {
    top: 70%;
    right: 10%;
    animation-delay: 1.5s;
}

.decoration-vegetable-1 {
    top: 40%;
    left: 20%;
    animation-delay: 0.3s;
}

.decoration-vegetable-2 {
    top: 50%;
    right: 25%;
    animation-delay: 0.8s;
}

.decoration-vegetable-3 {
    top: 80%;
    left: 30%;
    animation-delay: 1.2s;
}

/* 通用区块标题 */
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--brown-dark);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 0 var(--accent-yellow);
}

.title-icon {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* 服务器信息区块 */
.server-info-section {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, 
        rgba(154, 205, 50, 0.3) 0%, 
        rgba(180, 212, 232, 0.3) 100%);
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: var(--card-bg);
    border: 4px solid var(--brown-dark);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(92, 64, 51, 0.3);
}

.card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-icon img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.info-card h3 {
    font-size: 1.3rem;
    color: var(--brown-dark);
    margin-bottom: 1rem;
}

.info-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-green);
    margin-bottom: 1rem;
    word-break: break-all;
}

.info-note {
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.8;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: var(--primary-green);
    border: 2px solid var(--brown-dark);
    border-radius: 20px;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.copy-btn:hover {
    background: var(--secondary-green);
    transform: scale(1.05);
}

.copy-icon {
    font-size: 1rem;
}

/* 特色区块 */
.features-section {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, 
        rgba(180, 212, 232, 0.3) 0%, 
        rgba(248, 245, 240, 0.5) 100%);
}

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

.feature-card {
    background: var(--card-bg);
    border: 3px solid var(--secondary-green);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(140, 179, 105, 0.4);
    border-color: var(--primary-green);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.feature-card h3 {
    font-size: 1.4rem;
    color: var(--brown-dark);
    margin-bottom: 0.8rem;
}

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

/* 加入方式区块 */
.join-section {
    position: relative;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, 
        rgba(248, 245, 240, 0.8) 0%, 
        rgba(154, 205, 50, 0.2) 100%);
}

.join-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: var(--card-bg);
    border: 3px solid var(--accent-orange);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
}

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    border: 3px solid var(--brown-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    box-shadow: 2px 2px 0 var(--brown-dark);
}

.step-card h3 {
    font-size: 1.3rem;
    color: var(--brown-dark);
    margin-bottom: 0.8rem;
    margin-top: 1rem;
}

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

.step-card code {
    display: block;
    background: var(--brown-dark);
    color: var(--accent-yellow);
    padding: 0.8rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    word-break: break-all;
}

/* 温馨提示区块 */
.tips-section {
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, 
        rgba(154, 205, 50, 0.2) 0%, 
        rgba(93, 158, 86, 0.3) 100%);
}

.tips-card {
    background: var(--card-bg);
    border: 4px solid var(--primary-green);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.tips-card::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tips-card::before::after {
    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 48 48"><image href="https://cdn1.stardewvalleywiki.com/zh/images/9/93/Diamond.png" width="32" height="32"/></svg>');
}

.tips-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.tips-icon img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.tips-card h3 {
    font-size: 1.8rem;
    color: var(--brown-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

.tips-card ul {
    list-style: none;
    padding: 0;
}

.tips-card li {
    padding: 0.8rem 0;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1.05rem;
    line-height: 1.6;
}

.tips-card li::before {
    content: '🌿';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.tips-card li:not(:last-child) {
    border-bottom: 2px dashed var(--secondary-green);
}

/* 页脚 */
.footer {
    position: relative;
    padding: 3rem 2rem;
    background: var(--brown-dark);
    color: var(--text-light);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--accent-yellow);
    margin-bottom: 1.5rem;
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-yellow);
}

.footer-divider {
    color: var(--accent-yellow);
    margin: 0 0.5rem;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 复制提示 */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--brown-dark);
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-container {
        flex-direction: column;
    }

    .info-cards,
    .features-grid,
    .join-steps {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero {
        padding: 100px 1rem 3rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .title-icon {
        font-size: 2rem;
    }
}
