/* 
 * Theme: slate 
 * Style: SaaS Cloud Flat Design
 */
:root {
    --m-color: #0984e3;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --border-color: #ebeef5;
    --text-main: #303133;
    --text-muted: #909399;
    --price-color: #f56c6c;
    --radius: 12px;
    --btn-bg: #0984e3;
}

body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-main);
    font-family: 'PingFang SC', 'Helvetica Neue', Helvetica, 'Microsoft YaHei', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* ================= 顶部导航 ================= */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 60px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 2000;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--m-color);
}

.user-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
}

/* ================= 通用布局 ================= */
.main-container {
    max-width: 1200px;
    margin: 80px auto 40px;
    padding: 0 20px;
    min-height: 80vh;
}

.box-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
}

/* ================= 首页左右分栏 ================= */
.index-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    align-items: start;
}

.cat-header {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.cat-header i {
    margin-right: 8px;
    color: var(--text-main);
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.prod-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--card-bg);
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.prod-card:hover {
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.1);
    border-color: var(--m-color);
}

.p-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 4px;
}

.p-icon img {
    max-width: 100%;
    max-height: 100%;
}

.p-info {
    flex: 1;
}

.p-title {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 8px;
    color: var(--text-main);
}

.p-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}

.tag-auto { color: #67c23a; border: 1px solid #67c23a; padding: 1px 6px; border-radius: 2px; }
.tag-stock { color: #f56c6c; border: 1px solid #f56c6c; padding: 1px 6px; border-radius: 2px; }
.tag-sales { color: #e6a23c; border: 1px solid #e6a23c; padding: 1px 6px; border-radius: 2px; }
.tag-manual { color: #909399; border: 1px solid #909399; padding: 1px 6px; border-radius: 2px; }

.p-price {
    color: var(--price-color);
    font-size: 16px;
    font-weight: bold;
}

/* ================= 详情页左右分栏 ================= */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 20px;
    align-items: start;
}

.d-left {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
    text-align: center;
}

.d-left img {
    max-width: 200px;
    margin: 40px 0;
}

.d-right {
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
}

.price-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.fire-icon { color: #e6a23c; font-weight: bold; font-size: 13px; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.price-mega { color: var(--price-color); font-size: 28px; font-weight: bold; }
.price-ori { color: var(--text-muted); text-decoration: line-through; font-size: 14px; margin-left: 10px; font-weight: normal; }

.d-form-group {
    margin-bottom: 15px;
}

.d-form-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 8px;
}

.d-input {
    width: 100%;
    height: 40px;
    background: #f5f7fa;
    border: 1px solid #e4e7ed;
    color: var(--text-main);
    padding: 0 15px;
    font-size: 14px;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    transition: 0.3s;
}

.d-input:focus {
    border-color: var(--m-color);
    background: #fff;
}

.d-submit-btn {
    width: 100%;
    height: 45px;
    background: var(--btn-bg);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    margin-top: 20px;
}

.d-submit-btn:hover {
    opacity: 0.9;
}
.d-submit-btn:disabled {
    background: #a0cfff;
    cursor: not-allowed;
}

.sales-info-box {
    margin-top: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: var(--radius);
}

.s-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-muted);
}
.s-item:last-child { margin-bottom: 0; }
.s-item i { margin-right: 15px; font-size: 18px; color: var(--m-color); width: 20px; text-align: center; }
.s-item span { color: var(--text-main); display: block; margin-top: 2px; }

.service-tips {
    margin-top: 15px;
    background: #eef5fe;
    border: 1px solid #d6e8fc;
    padding: 15px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    color: var(--m-color);
    font-size: 13px;
    gap: 10px;
}

@media (max-width: 992px) {
    .index-layout, .detail-layout { grid-template-columns: 1fr; }
    .prod-grid { grid-template-columns: 1fr; }
    .sidebar-right { order: -1; margin-bottom: 20px; }
}
