/* 51吃瓜 - 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=ZCOOL+KuaiLe&display=swap');

:root {
    --melon-red: #FF4D6D;
    --melon-green: #2D6A4F;
    --melon-light-green: #95D5B2;
    --melon-dark: #1B1B1B;
    --melon-white: #FFFFFF;
    --melon-gray: #F5F5F5;
    --melon-text: #333333;
    --melon-accent: #FFB703;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--melon-gray);
    color: var(--melon-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .brand-font {
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 900;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--melon-red);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--melon-red);
    font-size: 24px;
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--melon-text);
    font-weight: 700;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--melon-red);
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--melon-red);
    color: white;
}

.btn-primary:hover {
    background: #e63946;
    transform: scale(1.05);
}

.btn-green {
    background: var(--melon-green);
    color: white;
}

/* 卡片 */
.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

/* 响应式网格 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 页脚 */
footer {
    background: var(--melon-dark);
    color: white;
    padding: 60px 20px;
    margin-top: 100px;
}

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

.animate-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* 搜索框 */
.search-box {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 50px;
    border: 2px solid var(--melon-red);
    outline: none;
    font-size: 16px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}
