/* ===== 全局重置 & 字体 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #fafafa;
    color: #1e1e1e;
    line-height: 1.5;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== 导航栏 (ID: navbar) 无圆角 ===== */
#navbar {
    background: #ffffff;
    border-bottom: 2px solid #1e1e1e;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 0 rgba(0,0,0,0.03);
}

.nav-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #000;
    text-decoration: none;
    border: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-weight: 500;
}

.nav-links a {
    text-decoration: none;
    color: #1e1e1e;
    font-size: 1rem;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s;
}

.nav-links a:hover {
    border-bottom-color: #1e1e1e;
}

/* ===== 标题 & 段落 ===== */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.2rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #1e1e1e;
    padding-bottom: 0.3rem;
    display: inline-block;
}

.section-subhead {
    font-size: 1.2rem;
    color: #3a3a3a;
    margin-top: -0.2rem;
    margin-bottom: 2rem;
}

/* ===== 英雄区 (Hero) ===== */
#home {
    padding: 64px 0 48px 0;
    border-bottom: 2px solid #1e1e1e;
}

.hero-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1 1 300px;
}

.hero-text p {
    font-size: 1.25rem;
    margin: 1.2rem 0 1.8rem;
    color: #2c2c2c;
    max-width: 500px;
}

.btn {
    display: inline-block;
    background: #1e1e1e;
    color: #ffffff;
    padding: 12px 32px;
    font-weight: 500;
    text-decoration: none;
    border: 2px solid #1e1e1e;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
}

.btn:hover {
    background: #ffffff;
    color: #1e1e1e;
}

.hero-image {
    flex: 1 1 280px;
    background: #e6e6e6;
    border: 2px solid #1e1e1e;
    padding: 20px;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* ===== 商品区 (商店) 无圆角卡片，无购买按钮 ===== */
#shop {
    padding: 56px 0 48px 0;
    border-bottom: 2px solid #1e1e1e;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 32px 24px;
    margin-top: 28px;
}

.product-card {
    background: #ffffff;
    border: 2px solid #1e1e1e;
    padding: 20px 16px 16px;
    transition: box-shadow 0.1s;
    border-radius: 0;
}

.product-card:hover {
    box-shadow: 6px 6px 0 #1e1e1e;
}

/* 商品图片容器 - 居中显示 */
.product-img {
    background: #f0f0f0;
    border: 2px solid #1e1e1e;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}

/* 图片居中且保持比例 */
.product-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.product-card .price {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 6px 0 10px;
}

.product-card .price span {
    font-weight: 400;
    font-size: 0.9rem;
    color: #3d3d3d;
}

.product-card .desc {
    color: #3d3d3d;
    font-size: 0.95rem;
    border-top: 1px solid #ccc;
    padding-top: 10px;
    margin-top: 6px;
}

/* ===== 关于区 (about) ===== */
#about {
    padding: 56px 0 48px 0;
    border-bottom: 2px solid #1e1e1e;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.about-text {
    flex: 1 1 300px;
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

/* ===== 页脚 footer ===== */
#footer {
    border-top: 2px solid #1e1e1e;
    padding: 28px 0 24px;
    margin-top: 20px;
    background: #fff;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.95rem;
}

.footer-inner a {
    color: #1e1e1e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== 响应式微调 ===== */
@media (max-width: 600px) {
    h1 { font-size: 2.4rem; }
    .nav-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .nav-links { gap: 1.2rem; flex-wrap: wrap; }
}