/* =====================================================
   ViewPC 模板样式 - Shopify 风格
   ===================================================== */

/* 变量定义 */
:root {
    /* 颜色 */
    --vp-primary: #008060;
    --vp-primary-hover: #006e52;
    --vp-secondary: #202223;
    --vp-text: #202223;
    --vp-text-light: #6d6f72;
    --vp-border: #d1d4d8;
    --vp-bg: #f6f6f7;
    --vp-white: #ffffff;
    --vp-error: #d82c0d;
    --vp-success: #008060;
    --vp-warning: #e3a614;

    /* 间距 */
    --vp-space-xs: 4px;
    --vp-space-sm: 8px;
    --vp-space-md: 16px;
    --vp-space-lg: 24px;
    --vp-space-xl: 32px;
    --vp-space-2xl: 48px;

    /* 圆角 */
    --vp-radius-sm: 4px;
    --vp-radius-md: 8px;
    --vp-radius-lg: 12px;

    /* 阴影 */
    --vp-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --vp-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --vp-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

    /* 过渡 */
    --vp-transition: all 0.2s ease;

    /* 容器 */
    --vp-container: 1200px;
    --vp-header-height: 64px;
}

/* 重置 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--vp-text);
    line-height: 1.5;
    background: var(--vp-bg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--vp-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* 工具类 */
.vp-container {
    max-width: var(--vp-container);
    margin: 0 auto;
    padding: 0 var(--vp-space-md);
}

.vp-flex {
    display: flex;
}

.vp-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.vp-text-center {
    text-align: center;
}

.vp-hidden {
    display: none !important;
}

/* 按钮 */
.vp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--vp-radius-md);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--vp-transition);
    min-height: 44px;
}

.vp-btn-primary {
    background: var(--vp-primary);
    color: var(--vp-white);
}

.vp-btn-primary:hover {
    background: var(--vp-primary-hover);
}

.vp-btn-outline {
    background: transparent;
    border: 1px solid var(--vp-border);
    color: var(--vp-text);
}

.vp-btn-outline:hover {
    border-color: var(--vp-text);
}

.vp-btn-block {
    width: 100%;
}

/* 输入框 */
.vp-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius-md);
    font-size: 14px;
    transition: var(--vp-transition);
}

.vp-input:focus {
    outline: none;
    border-color: var(--vp-primary);
    box-shadow: 0 0 0 3px rgba(0,128,96,0.1);
}

/* 卡片 */
.vp-card {
    background: var(--vp-white);
    border-radius: var(--vp-radius-lg);
    box-shadow: var(--vp-shadow-sm);
    overflow: hidden;
}

/* 网格系统 */
.vp-row {
    display: grid;
    gap: var(--vp-space-md);
}

.vp-col-2 { grid-template-columns: repeat(2, 1fr); }
.vp-col-3 { grid-template-columns: repeat(3, 1fr); }
.vp-col-4 { grid-template-columns: repeat(4, 1fr); }

/* 标题 */
.vp-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--vp-space-md);
}

.vp-title-sm {
    font-size: 18px;
    font-weight: 600;
}

/* 价格 */
.vp-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--vp-text);
}

.vp-price-original {
    font-size: 14px;
    color: var(--vp-text-light);
    text-decoration: line-through;
    margin-left: var(--vp-space-sm);
}

/* 加载中 */
.vp-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--vp-space-2xl);
}

.vp-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--vp-border);
    border-top-color: var(--vp-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 空状态 */
.vp-empty {
    text-align: center;
    padding: var(--vp-space-2xl);
    color: var(--vp-text-light);
}

.vp-empty img {
    width: 120px;
    margin: 0 auto var(--vp-space-md);
}

/* =====================================================
   响应式设计
   ===================================================== */

/* 移动端 (< 992px) */
@media (max-width: 991px) {
    :root {
        --vp-header-height: 56px;
    }

    .vp-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .vp-container {
        padding: 0 var(--space-sm);
    }

    .vp-hide-mobile {
        display: none !important;
    }
}

/* PC端 (>= 992px) */
@media (min-width: 992px) {
    .vp-show-mobile {
        display: none !important;
    }
}

/* 大屏幕 (>= 1024px) */
@media (min-width: 1024px) {
    .vp-row {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--vp-space-lg);
    }
}

/* =====================================================
   移动端头部导航样式
   ===================================================== */

/* 响应式显示控制 - 使用 992px 断点 */
.vp-show-pc {
    display: none;
}

.vp-show-mobile {
    display: block;
}

@media (min-width: 992px) {
    .vp-show-pc {
        display: block;
    }
    .vp-show-mobile {
        display: none;
    }
}

/* 移动端头部 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--vp-white);
}

.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.bg-transparent {
    background: transparent !important;
}

.bg-white {
    background: var(--vp-white);
}

.shadow {
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
    max-width: 100%;
}

.left-content,
.right-content {
    flex: 0 0 auto;
    min-width: 40px;
    display: flex;
    align-items: center;
}

.mid-content {
    flex: 1;
    text-align: center;
    overflow: hidden;
}

.mid-content .title {
    font-size: 18px;
    font-weight: 600;
    color: var(--vp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--vp-text);
}

.back-btn i {
    font-size: 24px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    max-height: 32px;
    max-width: 120px;
}

/* 移动端页面内容区 */
.page-content {
    padding-top: 56px;
    padding-bottom: 80px;
    min-height: 100vh;
    margin-top: 10px;
}

.p-t56 {
    padding-top: 56px;
}

.p-t80 {
    padding-top: 80px;
}

.p-b80 {
    padding-bottom: 80px;
}

.space-top {
    padding-top: 56px;
}

/* 移动端底部导航 */
.vp-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--vp-white);
    box-shadow: 0 -1px 10px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    z-index: 1000;
}

.vp-mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    font-size: 11px;
    color: var(--vp-text-light);
    text-decoration: none;
}

.vp-mobile-nav-item.active {
    color: var(--vp-primary);
}

.vp-mobile-nav-item i {
    font-size: 20px;
}

/* 移动端内容区域 - 在底部导航上方 */
@media (max-width: 991px) {
    .page-content {
        padding-bottom: 80px;
    }
}
.vp-goods-item{
    color: #000;
    text-decoration: none;
}
* a{
    text-decoration: none!important;
}