/* 全局样式 */
:root {
    --primary-color: #2563eb;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #e5e7eb;
    --border-light: #e5e7eb;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 1px;
    --radius-lg: 2px;
    --bg-light: #f9fafb;
    --primary-light: #dbeafe;
    --bg-white: #ffffff;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --radius-xl: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 100%;
    /*            max-width: 1200px;*/
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.search-container {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
    width: 240px;
}

.search-container input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.5rem;
    outline: none;
    color: var(--text-dark);
}

.search-container button {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* 汉堡菜单样式 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* 移动端菜单样式 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-white);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    z-index: 999;
    border-top: 1px solid var(--border-color);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-search-container {
    display: flex;
    align-items: center;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
}

.mobile-search-container input {
    border: none;
    background: transparent;
    width: 100%;
    padding: 0.5rem;
    outline: none;
    color: var(--text-dark);
}

.mobile-search-container button {
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
}

/* Hero 区域 */
.hero {
    padding: 140px 0 50px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
}

.hero-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.hero-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 16px;
}

.hero-search-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-weight: 500;
}

/* 分类区 */
.section {
    padding: 10px 0 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-pill {
    padding: 8px 16px;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    background-color: var(--white);
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
}

.category-pill:hover, .category-pill.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.show-more {
    text-align: center;
    margin-top: 16px;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    font-size: 14px;
}

/* 产品展示区 */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

.product-card {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    /*box-shadow: var(--shadow);*/
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.product-image {
    width: 100%;
    height: 380px;
    background-color: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--border-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

.product-image-placeholder img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid #edf0f5;
    /*box-shadow:  0 0 5px #000;*/
}

.product-info {
    padding: 24px;
    background: #f5f5f5;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-type {
    color: var(--primary-color);
    font-size: 14px;
    margin-bottom: 12px;
    display: inline-block;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 16px;
}

.product-tag {
    background-color: var(--background-light);
    color: var(--text-light);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.product-more-btn {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-price{
    font-weight: bold;
    font-family: fangsong;
    font-size: 20px;
}

.origin-price {
    font-size: 15px;
    color: #7ddcbd;
    text-decoration: line-through;
    font-style: italic;
}

.product-detail {
    text-align: right;
}

/* 订阅区 */
.subscription {
    background-color: var(--background-light);
    padding: 80px 0;
    text-align: center;
}

.subscription-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.subscription-subtitle {
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-form {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
}

.subscription-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 16px;
}

.subscription-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 60px 0 24px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-column {
    min-width: 150px;
}

.footer-column-title {
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column-links {
    list-style: none;
}

.footer-column-link {
    margin-bottom: 8px;
}

.footer-column-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-column-link a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background-color 0.2s;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}


/*detail*/
.detail-content {
    margin: 100px;
    display: flex;
}

.detail-info {
    flex: 1;
}
.detail-show {
    flex: 1;
}

.detail-title {
    font-size: 22px;
    line-height: 50px;
}

.detail-show {

}

.detail-show img{
    max-width: 600px;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .nav-links, .search-container {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .products {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 32px;
    }

    .footer-links {
        gap: 24px;
    }
}
