:root {
    --nrly-primary: #008844;
    --nrly-primary-hover: #006b35;
    --nrly-accent: #ff6600;
    --nrly-accent-hover: #e05a00;
    --nrly-bg: #f5f7f9;
    --nrly-card-bg: #ffffff;
    --nrly-border: #dcdfe6;
    --nrly-text: #303133;
    --nrly-sub: #606266;
    --nrly-gray: #909399;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--nrly-bg); color: var(--nrly-text); font-family: "Microsoft YaHei", Arial, sans-serif; font-size: 13px; line-height: 1.6; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: 0.2s; }

.nearly-topbar { background: #f2f4f7; border-bottom: 1px solid var(--nrly-border); font-size: 12px; height: 32px; line-height: 32px; color: var(--nrly-sub); }
.nearly-topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }

.nearly-header { background: var(--nrly-primary); padding: 18px 0; color: #ffffff; }
.nearly-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; }
.nearly-logo img { height: 48px; width: auto; max-width: 220px; object-fit: contain; }
.nearly-header-contact { text-align: right; font-size: 13px; color: #e1f3d8; }
.nearly-header-tel { font-size: 20px; font-weight: bold; color: #ffffff; }

.nearly-nav-bar { background: #006b35; border-bottom: 3px solid #005027; }
.nearly-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.nearly-nav-list { display: flex; list-style: none; flex-wrap: wrap; }
.nearly-nav-list li a { display: block; padding: 10px 20px; color: #ffffff; font-size: 14px; font-weight: bold; }
.nearly-nav-list li a:hover, .nearly-nav-list li.active a { background: var(--nrly-primary); color: #ffffaa; }

.nearly-notice { max-width: 1200px; margin: 15px auto 0; padding: 10px 15px; background: #fffbe6; border: 1px solid #ffe58f; border-radius: 2px; color: #d46b08; font-size: 13px; }

.nearly-container { max-width: 1200px; margin: 20px auto; padding: 0 15px; min-height: 60vh; }

.nearly-box { background: var(--nrly-card-bg); border: 1px solid var(--nrly-border); margin-bottom: 20px; padding: 15px; }
.nearly-box-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; margin-bottom: 15px; border-bottom: 2px solid var(--nrly-primary); }
.nearly-box-title { font-size: 15px; font-weight: bold; color: var(--nrly-primary); display: flex; align-items: center; }
.nearly-box-title::before { content: "■"; color: var(--nrly-primary); font-size: 12px; margin-right: 6px; }
.nearly-box-more { font-size: 12px; color: var(--nrly-gray); }

.nearly-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.nearly-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.nearly-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.nearly-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }

.nearly-card-item { border: 1px solid #ebeef5; padding: 12px; text-align: center; background: #ffffff; transition: 0.2s; }
.nearly-card-item:hover { border-color: var(--nrly-primary); box-shadow: 0 2px 8px rgba(0,136,68,0.1); }
.nearly-card-img-box { width: 50px; height: 50px; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: #f9fafc; border: 1px solid #ebeef5; }
.nearly-card-img-box img { max-width: 40px; max-height: 40px; object-fit: contain; }
.nearly-card-name { font-size: 13px; font-weight: 500; height: 36px; overflow: hidden; margin-bottom: 6px; color: var(--nrly-text); }
.nearly-card-price { font-size: 15px; font-weight: bold; color: var(--nrly-accent); margin-bottom: 8px; }
.nearly-btn-buy { display: block; width: 100%; padding: 5px 0; background: var(--nrly-primary); color: #ffffff; font-size: 12px; text-align: center; border-radius: 2px; }
.nearly-btn-buy:hover { background: var(--nrly-primary-hover); }

.nearly-row-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px dashed #e4e7ed; font-size: 13px; }
.nearly-row-item:last-child { border-bottom: none; }
.nearly-row-dot { color: var(--nrly-primary); margin-right: 6px; font-size: 11px; }

.nearly-detail-layout { display: flex; gap: 25px; background: #ffffff; border: 1px solid var(--nrly-border); padding: 25px; }
.nearly-detail-media { flex: 0 0 240px; text-align: center; }
.nearly-detail-img-wrap { width: 200px; height: 200px; margin: 0 auto 12px; border: 1px solid #ebeef5; display: flex; align-items: center; justify-content: center; }
.nearly-detail-img-wrap img { max-width: 160px; max-height: 160px; object-fit: contain; }
.nearly-detail-info { flex: 1; }
.nearly-detail-name { font-size: 18px; font-weight: bold; color: var(--nrly-text); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid #ebeef5; }
.nearly-detail-meta-box { background: #f0f9eb; border: 1px solid #e1f3d8; padding: 12px 18px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

.nearly-form-group { margin-bottom: 15px; }
.nearly-form-label { display: block; font-weight: bold; margin-bottom: 6px; font-size: 13px; }
.nearly-input { width: 100%; height: 38px; border: 1px solid var(--nrly-border); border-radius: 2px; padding: 0 10px; outline: none; font-size: 13px; }
.nearly-input:focus { border-color: var(--nrly-primary); }
.nearly-btn-submit { width: 100%; height: 42px; background: var(--nrly-accent); color: #ffffff; font-size: 15px; font-weight: bold; border: none; border-radius: 2px; cursor: pointer; }
.nearly-btn-submit:hover { background: var(--nrly-accent-hover); }

.nearly-footer { background: var(--nrly-primary); color: #ffffff; padding: 25px 15px; text-align: center; margin-top: 30px; border-top: 3px solid #005027; font-size: 13px; }
.nearly-footer-links { margin-bottom: 10px; }
.nearly-footer-links a { color: #ffffff; margin: 0 10px; font-weight: bold; }
.nearly-footer-links a:hover { color: #ffffaa; }

@media (max-width: 992px) {
    .nearly-grid-6 { grid-template-columns: repeat(3, 1fr); }
    .nearly-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .nearly-grid-3 { grid-template-columns: 1fr; }
    .nearly-detail-layout { flex-direction: column; }
    .nearly-detail-media { flex: 1; }
}
@media (max-width: 640px) {
    .nearly-grid-6, .nearly-grid-4, .nearly-grid-2 { grid-template-columns: 1fr; }
    .nearly-nav-list li a { padding: 8px 12px; font-size: 13px; }
}
