/* Tessellated Theme: Layout 412 (Library Index Card & Vintage Vellichor Style) */
body { background: #f4ebe1; font-family: "Georgia", "Times New Roman", "PingFang SC", serif; color: #5c534d; margin: 0; padding: 0; }
.tessellated-layout { display: flex; flex-direction: column; min-height: 100vh; position: relative; }
.tessellated-head-wrap { border-bottom: 2px solid #5c534d; padding: 25px 0; background: #f4ebe1; }
.tessellated-brand-nav { display: flex; justify-content: space-between; align-items: center; max-width: 1140px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.tessellated-logo img { max-height: 42px; display: block; filter: sepia(0.5) contrast(1.1) brightness(0.9); }
.tessellated-menu { display: flex; list-style: none; padding: 0; margin: 0; gap: 30px; }
.tessellated-menu a { color: rgba(92, 83, 77, 0.8); text-decoration: none; font-size: 14px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 4px; transition: all 0.2s; }
.tessellated-menu a:hover, .tessellated-menu .active { border-bottom: 2px solid #5c534d; color: #5c534d; font-weight: bold; }
.tessellated-columns { display: flex; gap: 24px; max-width: 1140px; margin: 30px auto; padding: 0 20px; box-sizing: border-box; width: 100%; flex-grow: 1; }
.tessellated-col-left { width: 25%; flex-shrink: 0; }
.tessellated-col-right { width: 75%; flex-grow: 1; min-width: 0; }
.tessellated-index-panel { background: #fbf9f2; border: 1.5px solid #5c534d; padding: 25px; box-sizing: border-box; position: relative; }
.tessellated-index-panel::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 1px dashed rgba(92, 83, 77, 0.15); pointer-events: none; margin: 4px; }
.tessellated-brass-handle { width: 44px; height: 20px; border: 2px solid #5c534d; border-radius: 4px 4px 0 0; margin: 25px auto 15px auto; position: relative; display: flex; align-items: center; justify-content: center; background: #f4ebe1; }
.tessellated-brass-handle::before { content: ""; width: 14px; height: 2px; background: #5c534d; position: absolute; bottom: -5px; }
.tessellated-notice-pod { background: #fbf9f2; border: 1px solid #5c534d; padding: 20px 25px; margin-bottom: 30px; line-height: 1.7; font-size: 13.5px; color: #5c534d; position: relative; }
.tessellated-notice-pod::before { content: "目录卡 / INDEX"; position: absolute; top: -10px; left: 20px; background: #f4ebe1; padding: 0 8px; font-size: 11px; font-weight: bold; color: #9c4a3f; letter-spacing: 0.5px; }
.tessellated-section-title { font-size: 15px; font-weight: bold; color: #5c534d; margin: 0 0 20px 0; border-top: 1px solid #5c534d; border-bottom: 1px dashed #5c534d; padding: 10px 5px; display: flex; align-items: center; text-transform: uppercase; letter-spacing: 1px; }
.tessellated-section-title i { margin-right: 10px; color: #9c4a3f; }
.tessellated-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tessellated-card-slot { background: #fbf9f2; border: 1.5px solid #5c534d; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; min-height: 180px; position: relative; }
.tessellated-card-slot::after { content: "TAB_SEC"; position: absolute; top: -1px; right: 20px; background: #f4ebe1; border: 1.5px solid #5c534d; border-bottom: none; font-size: 8px; padding: 1px 6px; font-family: monospace; font-weight: bold; }
.tessellated-card-slot:hover { border-color: #9c4a3f; transform: translateY(-2px); }
.tessellated-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.tessellated-card-title { font-size: 14px; font-weight: bold; color: #5c534d; line-height: 1.5; }
.tessellated-badge-auto { border: 1.5px solid #5c534d; color: #5c534d; background: rgba(92,83,77,0.03); padding: 1px 6px; font-size: 10.5px; font-weight: bold; }
.tessellated-badge-manual { border: 1px dashed #7f8c8d; color: #7f8c8d; background: transparent; padding: 1px 6px; font-size: 10.5px; }
.tessellated-card-footer { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 15px; border-top: 1px dashed rgba(92, 83, 77, 0.15); padding-top: 15px; }
.tessellated-price-box { display: flex; flex-direction: column; }
.tessellated-qty-info { font-size: 11px; color: #7f8c8d; margin-bottom: 3px; }
.tessellated-price { font-size: 19px; font-weight: bold; color: #9c4a3f; font-family: "Courier New", Courier, monospace; }
.tessellated-btn-action { background: transparent; color: #5c534d !important; border: 1.5px solid #5c534d; padding: 7px 18px; font-size: 12px; font-weight: bold; cursor: pointer; transition: all 0.25s; text-decoration: none !important; display: inline-block; letter-spacing: 0.5px; }
.tessellated-btn-action:hover { background: #5c534d; color: #fbf9f2 !important; }
.tessellated-paper-panel { border: 1px solid #5c534d; background: #fbf9f2; padding: 35px; box-sizing: border-box; position: relative; }
.tessellated-paper-panel::after { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; border: 1px dashed rgba(92, 83, 77, 0.08); pointer-events: none; margin: 4px; }
.layui-form-label { background: #fdfaf2 !important; border: 1.5px solid #5c534d !important; border-right: none !important; color: #5c534d !important; border-radius: 0 !important; font-weight: bold !important; }
.layui-input { border-radius: 0 !important; border: 1.5px solid #5c534d !important; background: #ffffff !important; color: #5c534d !important; }
.layui-input:focus { border-color: #9c4a3f !important; box-shadow: none !important; }

/* Mobile Adaptations */
@media (max-width: 992px) {
    .tessellated-columns { flex-direction: column; padding: 0 15px; }
    .tessellated-col-left, .tessellated-col-right { width: 100%; }
    .tessellated-col-left { display: none; }
}
@media (max-width: 768px) {
    .tessellated-brand-nav { flex-direction: column; gap: 15px; padding: 0 10px; }
    .tessellated-menu { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .tessellated-grid { grid-template-columns: 1fr; gap: 15px; }
}
