/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    padding-bottom: 70px;
    max-width: 500px;
    margin: 0 auto;
}

/* 品牌顶栏 */
.brand-header {
    background: #4a90d9;
    padding: 12px 15px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 200;
}

.brand-name {
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 2px;
}

.brand-subname {
    color: #fff;
    font-size: 16px;
    margin-left: 8px;
}

/* 顶部搜索栏 */
.header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

.back-btn {
    color: white;
    font-size: 20px;
    text-decoration: none;
    padding: 5px;
}

.header-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
}

.search-box {
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

/* 大分类导航 */
.category-nav {
    background: white;
    padding: 15px 10px;
    margin-bottom: 10px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: #e8f4fd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 5px;
}

.category-item span {
    font-size: 12px;
}

/* 区块标题 */
.section-title {
    font-size: 18px;
    font-weight: bold;
    padding: 15px;
    color: #333;
}

/* 产品列表 */
.product-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.product-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    background: #f8f8f8;
}

.product-card-info {
    padding: 10px;
}

.product-card-name {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    margin-bottom: 8px;
}

.product-card-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-current {
    color: #4a90d9;
    font-size: 16px;
    font-weight: bold;
}

.price-original-text {
    color: #999;
    font-size: 12px;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    background: white;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 50px;
    z-index: 50;
}

.filter-item {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.filter-item .arrow {
    font-size: 10px;
    margin-left: 3px;
}

/* 筛选弹窗 */
.filter-panel {
    display: none;
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
}

.filter-panel-content {
    background: white;
    max-height: 60%;
    overflow-y: auto;
    padding: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.filter-panel-content h3 {
    font-size: 16px;
    margin-bottom: 15px;
}

.filter-option {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.filter-option input {
    margin-right: 10px;
}

.filter-confirm {
    width: 100%;
    padding: 12px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 15px;
    cursor: pointer;
}

/* 产品主区域 */
.product-main {
    padding-top: 10px;
}

.category-title {
    font-size: 16px;
    font-weight: bold;
    padding: 15px;
    color: #333;
}

/* 产品详情页 - 头图 */
.product-hero {
    width: 100%;
    height: 300px;
    background: white;
}

.product-hero img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 价格区域 */
.price-section {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.price-row:last-child {
    margin-bottom: 0;
}

.price-label {
    font-size: 14px;
    color: #666;
}

.price-original {
    font-size: 16px;
    color: #999;
}

.price-subsidy {
    font-size: 22px;
    color: #4a90d9;
    font-weight: bold;
}

.subsidy-tag {
    background: #4a90d9;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* 产品信息 */
.product-info {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 10px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-tag {
    background: #e8f4fd;
    color: #4a90d9;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* 购买按钮 */
.action-buttons {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: white;
    position: sticky;
    bottom: 50px;
    max-width: 500px;
    margin: 0 auto;
}

.btn-wechat, .btn-call {
    flex: 1;
    padding: 14px;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-wechat {
    background: #07c160;
    color: white;
}

.btn-call {
    background: #4a90d9;
    color: white;
}

.btn-icon {
    font-size: 18px;
}

/* 产品介绍 */
.product-section {
    background: white;
    margin-bottom: 10px;
    padding: 15px;
}

.product-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* 产品参数 */
.product-params {
    font-size: 14px;
}

.param-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.param-row:last-child {
    border-bottom: none;
}

.param-name {
    width: 100px;
    color: #999;
}

.param-value {
    flex: 1;
    color: #333;
}

/* 产品详细图片 */
.product-images img {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* 底部导航 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: flex;
    border-top: 1px solid #eee;
    max-width: 500px;
    margin: 0 auto;
    z-index: 100;
}

.footer-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    color: #999;
    font-size: 12px;
}

.footer-item.active {
    color: #4a90d9;
}

.footer-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

/* 底部留白 */
.bottom-space {
    height: 30px;
}

/* 联系我们页面 */
.contact-container {
    padding: 20px;
    background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
    min-height: calc(100vh - 200px);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

/* 门头照片卡片 */
.shop-photo-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #f0f0f0;
    max-width: 500px;
    width: 100%;
    flex: none;
}

.shop-photo {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.shop-photo-label {
    padding: 16px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background: white;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 20px 15px;
    margin-bottom: 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: transform 0.2s, box-shadow 0.2s;
    width: calc(50% - 6px);
    flex: none;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-card:first-child {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.contact-card:first-child .contact-label,
.contact-card:first-child .contact-value,
.contact-card:first-child .contact-address,
.contact-card:first-child .contact-tip {
    color: white;
}

.contact-card:first-child .contact-tip {
    color: rgba(255,255,255,0.7);
}

.contact-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: inline-block;
    background: #f8f9fa;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
}

/* 售后电话卡片图片样式 */
.contact-card-image .contact-icon-img {
    margin-bottom: 8px;
}

.contact-card-image .contact-icon-img img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-card:first-child .contact-icon {
    background: rgba(255,255,255,0.2);
}

.contact-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

.contact-address {
    font-size: 13px;
    color: #4a90d9;
    text-decoration: none;
    line-height: 1.5;
    display: block;
    font-weight: 500;
}

.contact-phone {
    font-size: 14px;
    color: #4a90d9;
    font-weight: bold;
    text-decoration: none;
    display: block;
    word-break: break-all;
}

/* 占满一行的卡片 */
.contact-card-full {
    width: 100%;
}

.contact-wechat-box {
    margin-bottom: 8px;
}

.contact-wechat {
    font-size: 14px;
    color: #07c160;
    font-weight: bold;
    text-decoration: none;
    padding: 6px 12px;
    background: #e8f5e9;
    border-radius: 15px;
    display: inline-block;
    word-break: break-all;
}

.contact-tip {
    font-size: 12px;
    color: #aaa;
    margin-top: 10px;
}
    font-size: 20px;
    color: #07c160;
    font-weight: bold;
    text-decoration: none;
}

.contact-tip {
    font-size: 12px;
    color: #bbb;
    margin-top: 8px;
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* 加载中 */
.loading {
    text-align: center;
    padding: 30px;
    color: #999;
}
