/* 简单电商风格 + 响应式 + 滚动动画 */

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
    background: #fafafa;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.logo a {
    font-weight: bold;
    font-size: 1.2rem;
    color: #111;
}

.nav-main a {
    margin: 0 0.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.admin-link {
    font-weight: 600;
}

.lang-switch a {
    font-size: 0.8rem;
}

.section {
    padding: 3rem 0;
}

.section-alt {
    background: #fff;
}

.hero {
    background: linear-gradient(135deg, #f4f9ff, #fff);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-image img {
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: #0d6efd;
    color: #fff;
}

.btn-secondary {
    background: #fff;
    border: 1px solid #0d6efd;
    color: #0d6efd;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.site-footer {
    padding: 2rem 0;
    background: #111;
    color: #ddd;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* 产品详情布局 */
.product-detail {
    display: flex;
    gap: 2rem;
    padding-top: 2rem;
}

.product-media img {
    max-width: 400px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.product-info {
    flex: 1;
}

/* 表单 */
.form label {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.form input[type=text],
.form input[type=email],
.form input[type=password],
.form input[type=number],
.form textarea,
.form select {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    margin-top: 0.3rem;
    box-sizing: border-box;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: #fff;
}
.table th, .table td {
    padding: 0.6rem;
    border-bottom: 1px solid #eee;
}

/* 滚动动画：初始透明 + 向上偏移，进入可视窗口后淡入上移 */
.observe-fade, .observe-slide {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.observe-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端导航 */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.mobile-nav a {
    padding: 0.75rem 1rem;
    border-top: 1px solid #f5f5f5;
}

/* 响应式：窄屏处理 */
@media (max-width: 768px) {
    .nav-main {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .grid-3 {
        grid-template-columns: 1fr;
    }
    .product-detail {
        flex-direction: column;
    }
}

