* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Hiragino Sans', sans-serif;
    background-color: #f8f9fa;
    max-width: 450px;
    margin: 0 auto;
    font-size: 14px;
}

/* 顶部标题区域 */
.header {
    background-color: #242424;
    text-align: center;
    padding: 8px 8px;
    margin: 10px 10px 2px 10px;
    border-radius: 8px;
}

.logo {
    color: #D3AE37;
    font-size: 22px;
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 1px solid #D3AE37;
    margin-bottom: 0px;
}

.domain {
    color: #D3AE37;
    font-size: 26px;
    letter-spacing: 3px;  
}

/* 导航栏 */
.nav {
    background-color: #242424;
    display: flex;
    justify-content: space-around;
    padding: 5px 5px;
    margin: 0 10px 0px 10px;
    border-radius: 8px;
    border-bottom: 2px solid #d4af37;
}

.nav-item {
    color: #fff;
    text-decoration: none;
    padding: 8px 10px;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-item:hover,
.nav-item.active {
    background-color: #564d2f;
}

/* 主体内容区域 */
.main-content {
    display: flex;
    background-color: #f8f9fa;
}

/* 左侧分类导航容器 */
.sidebar-container {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 4px 0 10px 10px;
}

/* 左侧分类导航 */
.sidebar {
    border-radius: 10px;
    overflow: hidden;
    background-color: #fff;
}

.category-title {
    padding: 8px 1px 8px 1px;
    background-color: #000000;
    color: #fff;
    font-size: 13px;
    border-radius: 10px 10px 0 0;
}

.category-list {
    list-style: none;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
}

.category-item {
    display: block;
    padding: 8px 1px;
    color: #333;
    text-decoration: none;
    font-size: 11px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.category-item:hover,
.category-item.active {
    background-color: #f9f9f9;
    border-bottom: 1px solid #d4af37;
}

/* 右侧商品区域 */
.products-section {
    flex: 1;
    padding: 10px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0px;
    padding: 0px 0;
}

.page-btn {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    background-color: #fff;
    transition: all 0.3s;
}

.page-btn:hover {
    background-color: #f0f0f0;
}

/* 商品网格 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px 0;
}

/* 商品卡片 */
.product-card {
    background-color: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.product-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background-color: #e0e0e0;
}

.product-info {
    padding: 8px;
}

.product-info p {
    font-size: 11px;
    color: #666;
    margin-bottom: 3px;
    line-height: 1.4;
}

.product-info .label {
    color: #333;
}


/* 商品详情页样式 */
.detail-section {
    flex: 1;
    padding: 4px 10px 10px 10px;
}

.detail-desc {
    background-color: #242424;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #ffffff;
    line-height: 1.8;
}

.detail-images {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-img-item {
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.detail-img-item img {
    width: 100%;
    display: block;
}

/* 专题页样式 */
.topic-section {
    flex: 1;
    min-width: 0;
    padding: 4px 10px 10px 10px;
    overflow: hidden;
}

.topic-title {
    background-color: #242424;
    color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 4px;
    border-left: 4px solid #d3ae37;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.topic-card {
    background-color: #fff;
}

.topic-img {
    background-color: #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.topic-img img {
    width: 100%;
    display: block;
}

.topic-info {
    padding: 8px 5px;
}

.topic-info p {
    font-size: 11px;
    color: #666;
    margin-bottom: 2px;
    line-height: 1.4;
}

/* 最新入荷列表 */
.arrival-list {
    /* margin-bottom: 15px; */
}

.arrival-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.arrival-input {
    flex: 1;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 11px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrival-tag {
    background-color: #fff;
    color: #666;
    font-size: 11px;
    padding: 8px 10px;
    white-space: nowrap;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* 注文方法页面样式 */
.order-section {
    flex: 1;
    min-width: 0;
    padding: 10px;
    overflow: hidden;
}

.order-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
}

.order-icon {
    text-align: center;
    margin-bottom: 15px;
}

.order-icon img {
    max-width: 100%;
}

.order-block {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.order-title {
    font-size: 13px;
    color: #333;
    margin-bottom: 10px;
    font-weight: bold;
}

.order-email {
    margin-bottom: 10px;
}

.order-email a {
    color: #3b82f6;
    text-decoration: none;
}

.order-example {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.order-example p {
    font-size: 11px;
    color: #666;
    margin-bottom: 3px;
}

.order-options p {
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.6;
}

.order-notice {
    background-color: #fff8e1;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.order-notice p {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.order-section-title {
    background-color: #242424;
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #d3ae37;
}

.order-block p {
    font-size: 11px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

.order-list {
    list-style: none;
    padding-left: 0;
}

.order-list li {
    font-size: 11px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 5px;
}

.order-final {
    border-bottom: none;
}

/* 商品详情介绍页面样式 */
.about-section {
    flex: 1;
    min-width: 0;
    padding: 10px;
    overflow: hidden;
}

.about-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
}

.about-header {
    background-color: #242424;
    color: #D3AE37;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
}

.about-intro {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.about-intro p {
    font-size: 12px;
    color: #333;
    text-align: center;
    line-height: 1.6;
}

.about-section-title {
    background-color: #242424;
    color: #fff;
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 4px solid #D3AE37;
}

.about-block {
    margin-bottom: 20px;
    padding: 10px 0;
}

.about-block p {
    font-size: 11px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 8px;
}

.about-rank-list {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.about-rank-list li {
    font-size: 12px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rank-badge {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
    color: #fff;
}

.rank-a {
    background-color: #6b7280;
}

.rank-s {
    background-color: #3b82f6;
}

.rank-n {
    background-color: #D3AE37;
}

.about-highlight {
    background-color: #fff8e1;
    padding: 10px;
    border-radius: 6px;
    font-size: 11px;
    color: #333;
    line-height: 1.6;
}

.about-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.about-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10px;
}

.about-table th,
.about-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
    vertical-align: top;
}

.about-table th {
    background-color: #242424;
    color: #fff;
    font-weight: bold;
}

.about-table .table-label {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    font-size: 11px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
}

.about-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #D3AE37;
}

.about-guarantee {
    background-color: #e8f5e9;
    padding: 15px;
    border-radius: 6px;
}

.about-guarantee p {
    color: #2e7d32;
    font-weight: bold;
}

/* 快递查询页面样式 */
.track-section {
    flex: 1;
    min-width: 0;
    padding: 4px 10px 10px 10px;
    overflow: hidden;
}

.track-title {
    background-color: #242424;
    color: #fff;
    padding: 12px 15px;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #d3ae37;
}

.track-iframe-wrapper {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    min-height: 100vh;
}

.track-iframe {
    width: 100%;
    height: 100vh;
    border: none;
}

.track-notice {
    background-color: #242424;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.track-notice-title {
    background-color: #242424;
    color: #D3AE37;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
    margin-bottom: 10px;
}

.track-notice-list {
    list-style: none;
    padding: 0;
    color: #fff;
}

.track-notice-list li {
    font-size: 11px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.track-notice-list li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: #D3AE37;
    font-size: 8px;
}
/* 底部信息 */
.footer {
    background-color: #242424;
    text-align: center;
    /* padding: 20px 10px; */
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
    color: #666;
    line-height: 1.8;
    border-radius: 8px;
    margin: 0px 10px 10px 10px;
    color: #fff;
}

/* footer 链接样式 */
.footer a {
    color: #fff; /* 链接默认白色 */
    text-decoration: none; /* 去掉下划线 */
    margin-right: 10px; /* 链接间距 */
}

.footer a:hover {
    color: #eee; /* 悬停浅白色 */
    text-decoration: underline; /* 悬停显示下划线 */
}

.footer a:visited {
    color: #fff; /* 已访问链接保持白色 */
}
