/* === 基础重置 === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #f5f7fa;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === 顶部导航 === */
.header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
}
.logo-icon { font-size: 28px; }
.logo-text {
    background: linear-gradient(135deg, #ff6b35, #e91e63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav { display: flex; gap: 24px; }
.nav-link {
    font-size: 15px;
    color: #555;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: #ff6b35;
    background: #fff5f0;
}

/* === Hero区域 === */
.hero {
    background: linear-gradient(135deg, #ff6b35 0%, #e91e63 100%);
    color: #fff;
    padding: 32px 0;
    overflow: hidden;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 40px;
    align-items: center;
}
.hero-text { text-align: left; }
.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
}
.hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 32px;
}
.search-box {
    display: flex;
    max-width: 600px;
    margin: 0;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.search-input {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 15px;
    outline: none;
}
.search-btn {
    background: #ff6b35;
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.search-btn:hover { background: #e55a28; }

/* === 数字人头像 === */
.hero-avatar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 240px;
}
.avatar-glow {
    position: absolute;
    width: 260px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.12) 50%, transparent 75%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}
.avatar-img {
    width: 220px;
    height: 240px;
    object-fit: cover;
    object-position: center top;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.22));
    animation: avatarFloat 4s ease-in-out infinite;
}
@keyframes avatarFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
.avatar-bubble {
    position: absolute;
    top: 40px;
    left: -170px;
    background: #fff;
    color: #333;
    padding: 12px 16px;
    border-radius: 14px 14px 4px 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    font-size: 13px;
    line-height: 1.5;
    max-width: 180px;
    z-index: 3;
    font-weight: 500;
}
.avatar-bubble strong { color: #e91e63; }
.avatar-bubble::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -9px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 10px solid #fff;
}

/* === 分类入口 === */
.categories { padding: 60px 0 40px; }
.section-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    color: #222;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 12px;
    background: #fff;
    border-radius: 12px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.category-icon { font-size: 36px; }
.category-card span {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* === 商品推荐 === */
.recommendations { padding: 40px 0 60px; }
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-emoji { font-size: 64px; }
.product-info { padding: 16px 20px; }
.product-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}
.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #e91e63;
}
.product-origin {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}
.product-tag {
    font-size: 12px;
    color: #ff6b35;
    background: #fff5f0;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
}

/* === 平台优势 === */
.features {
    padding: 60px 0;
    background: #fff;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: 12px;
    background: #f9fafb;
}
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-item h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #222;
}
.feature-item p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* === 页脚 === */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 48px 0 24px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #333;
}
.footer-brand {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}
.footer-desc {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
    font-weight: 400;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 14px;
    color: #aaa;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #666;
}
.footer-bottom p { margin-bottom: 4px; }
.icp { color: #888; }

/* === 响应式 === */
@media (max-width: 768px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 26px; }
    .nav { gap: 12px; }
    .nav-link { font-size: 13px; padding: 4px 8px; }
    .hero-container { grid-template-columns: 1fr; gap: 24px; }
    .hero-text { text-align: center; }
    .search-box { margin: 0 auto; }
    .hero-avatar { min-height: 340px; padding-top: 60px; }
    .avatar-img { max-height: 340px; }
    .avatar-glow { width: 260px; height: 340px; }
    .avatar-bubble {
        position: relative;
        top: auto;
        left: auto;
        margin: 0 auto 12px;
        max-width: 260px;
        border-radius: 16px 16px 16px 4px;
    }
    .avatar-bubble::after {
        top: auto;
        right: auto;
        bottom: -9px;
        left: 18px;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-top: 10px solid #fff;
        border-bottom: none;
    }
}
@media (max-width: 480px) {
    .product-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; height: auto; padding: 12px 0; }
    .nav { flex-wrap: wrap; justify-content: center; }
}
