/* ============================================================
   110V小家电 - 全站样式
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f97316;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 顶部导航 */
.top-bar {
    background: var(--text-dark);
    color: #fff;
    padding: 6px 0;
    font-size: 0.82rem;
}
.top-bar a { color: rgba(255,255,255,0.8); text-decoration: none; transition: color 0.2s; }
.top-bar a:hover { color: #fff; }
.top-bar .lang-switch {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}
.top-bar .lang-switch:hover { background: rgba(255,255,255,0.2); }

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
}
.navbar {
    box-shadow: var(--shadow);
    background: #fff !important;
    padding: 12px 0;
}
.navbar .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-size: 0.92rem;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--primary) !important;
    background: rgba(37,99,235,0.06);
}

/* Hero Banner */
.hero-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(37,99,235,0.15) 0%, transparent 70%);
}
.hero-section h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero-section p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 24px; }
.btn-hero {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(249,115,22,0.4);
}
.btn-hero:hover { background: #ea580c; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(249,115,22,0.5); }

/* 轮播 */
.carousel-item { height: 480px; background: linear-gradient(135deg, #1e3a5f, #0f172a); position: relative; }
.carousel-item .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; }
.carousel-item .content { color: #fff; max-width: 600px; padding: 0 48px; }
.carousel-item h2 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.carousel-item p { font-size: 1.1rem; opacity: 0.9; }

/* 分类卡片 */
.category-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text-dark); }
.category-card .card-body { padding: 28px 20px; text-align: center; }
.category-card .icon { font-size: 3rem; margin-bottom: 12px; display: block; }
.category-card h5 { font-weight: 700; font-size: 1.1rem; }
.category-card p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* 产品卡片 */
.product-card {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    background: #fff;
    height: 100%;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .card-img-top { height: 220px; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .card-img-top { transform: scale(1.05); }
.product-card .card-img-wrapper { overflow: hidden; }
.product-card .card-body { padding: 20px; }
.product-card .card-title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.product-card .card-text { color: var(--text-muted); font-size: 0.85rem; }
.product-card .price { font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.product-card .btn-buy {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 20px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}
.product-card .btn-buy:hover { background: var(--primary-dark); color: #fff; }

/* 菜谱卡片 */
.recipe-card { border: none; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all 0.3s; height: 100%; }
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.recipe-card .card-img-top { height: 200px; object-fit: cover; }
.recipe-card .card-body { padding: 20px; }
.recipe-card h5 { font-weight: 700; font-size: 1rem; }

/* 说明书 */
.manual-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
}
.manual-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.manual-item .file-icon { font-size: 2rem; color: var(--primary); }

/* 页面标题 */
.page-header {
    background: linear-gradient(135deg, #1e3a5f, #0f172a);
    color: #fff;
    padding: 60px 0;
}
.page-header h1 { font-weight: 800; font-size: 2rem; }
.page-header p { opacity: 0.8; margin: 0; }

/* 分区 */
.section { padding: 72px 0; }
.section-title { font-weight: 800; font-size: 2rem; text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-muted); margin-bottom: 48px; font-size: 1rem; }
.bg-section { background: var(--bg-light); }

/* 统计数字 */
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--primary); }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 72px 0;
    text-align: center;
}
.cta-section h2 { font-weight: 800; margin-bottom: 16px; }
.cta-section p { opacity: 0.9; margin-bottom: 32px; }

/* 详情页 */
.product-detail-img { border-radius: var(--radius); overflow: hidden; }
.product-detail-img img { width: 100%; height: 400px; object-fit: cover; }
.specs-table { width: 100%; }
.specs-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.specs-table td:first-child { font-weight: 600; color: var(--text-muted); width: 35%; }

/* 按钮 */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #ea580c; border-color: #ea580c; color: #fff; }

/* 页脚 */
footer { background: var(--text-dark); color: rgba(255,255,255,0.7); padding: 60px 0 24px; }
footer h6 { color: #fff; font-weight: 700; margin-bottom: 20px; }
footer a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #fff; }
footer .bottom-bar { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; font-size: 0.85rem; }

/* 加载动画 */
.loading-spinner { display: flex; justify-content: center; align-items: center; min-height: 200px; }

/* 响应式 */
@media (max-width: 768px) {
    .hero-section { padding: 48px 0; }
    .hero-section h1 { font-size: 1.8rem; }
    .carousel-item { height: 320px; }
    .carousel-item .content { padding: 0 24px; }
    .carousel-item h2 { font-size: 1.6rem; }
    .section { padding: 48px 0; }
    .section-title { font-size: 1.5rem; }
    .product-card .card-img-top { height: 180px; }
    .page-header { padding: 40px 0; }
    .page-header h1 { font-size: 1.5rem; }
}

/* 菜谱内容 */
.recipe-content { line-height: 1.8; font-size: 1rem; }
.recipe-content h3 { font-weight: 700; margin: 24px 0 12px; }

/* 语言切换 */
.lang-en { font-family: 'Inter', sans-serif !important; }
