/* ==========================================================
   熊屁孩 官方网站 - 统一样式
   主题色: #FAD307 (明黄)
   ========================================================== */

:root {
    --theme-color: #FAD307;
    --theme-dark: #e6bf00;
    --text-dark: #222222;
    --text-light: #666666;
    --text-gray: #999999;
    --bg-gray: #f9f9f9;
    --bg-light: #fafafa;
    --border-color: #eaeaea;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; }
body { color: var(--text-dark); line-height: 1.6; background-color: #fff; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ---------- 顶部导航 ---------- */
header {
    background-color: #ffffff;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
}
.logo img {
    height: 45px;
    width: 45px;
    object-fit: contain;
}
.nav-links { display: flex; gap: 40px; }
.nav-links a {
    font-size: 16px;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--theme-color); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background-color: var(--theme-color);
    border-radius: 2px;
}

/* ---------- Hero banner（首页） ---------- */
.hero-banner {
    background-color: var(--theme-color);
    width: 100%;
    min-height: 550px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}
.hero-text { flex: 1; max-width: 600px; }
.hero-text h1 {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #000;
    letter-spacing: 2px;
}
.hero-text p {
    font-size: 22px;
    color: #222;
    margin-bottom: 40px;
    font-weight: 500;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}
.hero-image img {
    width: 100%;
    max-width: 450px;
    animation: floatUpDown 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 15px rgba(0,0,0,0.2));
    z-index: 2;
}
.hero-bg-circle {
    position: absolute;
    width: 600px; height: 600px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: -100px; right: -100px;
    z-index: 1;
}

@keyframes floatUpDown {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
    100% { transform: translateY(0px); }
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}
.btn-black {
    background-color: #000;
    color: var(--theme-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.btn-black:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.3);
    background-color: #222;
}
.btn-primary {
    background-color: var(--theme-color);
    color: #000;
    box-shadow: 0 6px 14px rgba(250,211,7,0.3);
}
.btn-primary:hover {
    background-color: var(--theme-dark);
    transform: translateY(-2px);
}

/* ---------- 通用 section ---------- */
.content-section {
    padding: 80px 20px;
    background-color: #fff;
}
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2,
.section-title {
    font-size: 36px;
    color: #000;
    display: inline-block;
    position: relative;
    text-align: center;
}
.section-title {
    display: block;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}
.section-title::after,
.section-header h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 6px;
    background: var(--theme-color);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

/* ---------- 表情包/商品网格 ---------- */
.grid-container,
.grid-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.grid-item,
.card {
    background: var(--bg-gray);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    display: block;
}
.grid-item:hover,
.card:hover {
    background: #fff;
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(250, 211, 7, 0.15);
    border-color: var(--theme-color);
}
.grid-item img,
.card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s;
}
.grid-item:hover img,
.card:hover img { transform: scale(1.1); }
.grid-item h3,
.card h3 { font-size: 18px; margin-bottom: 10px; }

/* ---------- 页脚 ---------- */
footer {
    background-color: #111;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    margin-top: 40px;
}
footer h2 { margin-bottom: 10px; }
footer p,
.footer-bottom {
    color: #888;
    font-size: 14px;
    margin-top: 10px;
}

/* ---------- Flash 消息 ---------- */
.flash-area {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}
.flash {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 500;
    border-left: 5px solid;
}
.flash.success { background: #f0fdf4; color: #15803d; border-color: #22c55e; }
.flash.error { background: #fef2f2; color: #b91c1c; border-color: #ef4444; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .hero-text h1 { font-size: 40px; }
    .hero-image { justify-content: center; margin-top: 40px; }
    .hero-image img { max-width: 300px; }
    .grid-container,
    .grid-layout { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
}
@media (max-width: 500px) {
    .grid-container,
    .grid-layout { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 32px; }
    .hero-text p { font-size: 18px; }
}
