@charset "UTF-8";
:root {
    --t-bg: #f8fafc;
    --t-card: #ffffff;
    --t-text: #1e293b;
    --t-sub: #64748b;
    --t-border: #e2e8f0;
    --t-accent: #0d9488;
    --t-orange: #ff5000;
    --t-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
body {
    margin: 0; background: var(--t-bg); color: var(--t-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
}
a { color: var(--t-text); text-decoration: none; }
.pegmatite-header {
    position: sticky; top: 0; z-index: 1000;
    background: var(--t-card); border-bottom: 2px solid var(--t-border);
    box-shadow: var(--t-shadow);
}
.pegmatite-header-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 20px;
    height: 65px; display: flex; align-items: center; justify-content: space-between;
}
.pegmatite-logo img { height: 32px; }
.pegmatite-nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.pegmatite-nav a { color: var(--t-text); font-weight: bold; transition: color 0.2s; }
.pegmatite-nav a:hover, .pegmatite-nav .pegmatite-active { color: var(--t-accent); }
.pegmatite-user-zone { display: flex; align-items: center; }
.pegmatite-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--t-border); }
.pegmatite-btn-login { background: var(--t-accent); color: #fff; padding: 6px 16px; border-radius: 4px; font-weight: bold; }
.pegmatite-notice-bar { background: #f0fdfa; border-bottom: 1px solid #ccfbf1; padding: 10px 20px; }
.pegmatite-notice-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 10px; }
.pegmatite-notice-tag { background: var(--t-accent); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 2px; font-weight: bold; }
.pegmatite-notice-text { color: #115e59; font-size: 13px; font-weight: bold; }
.pegmatite-home-container { max-width: 1200px; margin: 30px auto; padding: 0 20px; display: flex; gap: 30px; }
.pegmatite-main-content { flex: 1; min-width: 0; }
.pegmatite-sidebar { width: 280px; flex-shrink: 0; }
.pegmatite-widget { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 4px; padding: 20px; margin-bottom: 20px; }
.pegmatite-widget-title { font-size: 14px; font-weight: bold; margin-bottom: 15px; border-left: 3px solid var(--t-accent); padding-left: 10px; }
.pegmatite-hero-section { display: flex; gap: 20px; margin-bottom: 30px; }
.pegmatite-hero-left { flex: 2; height: 300px; border-radius: 6px; overflow: hidden; position: relative; border: 1px solid var(--t-border); }
.pegmatite-hero-left-img { width: 100%; height: 100%; object-fit: cover; }
.pegmatite-hero-left-overlay { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 20px; color: #fff; }
.pegmatite-hero-left-title { font-size: 18px; font-weight: bold; margin-bottom: 8px; }
.pegmatite-hero-left-price { color: var(--t-accent); font-size: 16px; font-weight: bold; }
.pegmatite-hero-right { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.pegmatite-hero-right-card { flex: 1; background: var(--t-card); border: 1px solid var(--t-border); border-radius: 6px; padding: 15px; display: flex; align-items: center; gap: 15px; transition: transform 0.2s; }
.pegmatite-hero-right-card:hover { transform: translateY(-2px); border-color: var(--t-accent); }
.pegmatite-hero-right-img { width: 60px; height: 60px; object-fit: contain; background: #fafafa; border-radius: 4px; }
.pegmatite-hero-right-title { font-size: 13px; font-weight: bold; color: var(--t-text); line-height: 1.4; }
.pegmatite-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.pegmatite-tag-badge { display: block; padding: 6px 12px; background: #fafafa; border: 1px solid var(--t-border); border-radius: 4px; font-size: 12px; font-weight: bold; transition: all 0.2s; }
.pegmatite-tag-badge:hover { background: var(--t-accent); color: #fff; border-color: var(--t-accent); }
.pegmatite-featured-section { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 6px; padding: 25px; margin-bottom: 30px; }
.pegmatite-featured-title { font-size: 15px; font-weight: bold; margin-bottom: 20px; border-bottom: 1px solid var(--t-border); padding-bottom: 10px; }
.pegmatite-featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pegmatite-featured-card { background: #fafafa; border: 1px solid var(--t-border); border-radius: 4px; overflow: hidden; transition: transform 0.2s; }
.pegmatite-featured-card:hover { transform: translateY(-2px); border-color: var(--t-accent); }
.pegmatite-featured-img-box { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; background: #ffffff; border-bottom: 1px solid var(--t-border); }
.pegmatite-featured-img-box img { max-width: 90%; max-height: 90%; object-fit: contain; }
.pegmatite-featured-info { padding: 15px; }
.pegmatite-featured-name { font-size: 13px; font-weight: bold; margin-bottom: 8px; }
.pegmatite-cat-btn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pegmatite-cat-entry-btn { display: block; padding: 12px 10px; color: #fff; border-radius: 6px; text-align: center; font-size: 13px; font-weight: bold; }
.pegmatite-cat-entry-btn-1 { background: #0d9488; }
.pegmatite-cat-entry-btn-2 { background: #ea580c; }
.pegmatite-cat-entry-btn-3 { background: #2563eb; }
.pegmatite-feed-section { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 6px; padding: 25px; }
.pegmatite-feed-title { font-size: 15px; font-weight: bold; margin-bottom: 20px; border-bottom: 1px solid var(--t-border); padding-bottom: 10px; }
.pegmatite-feed-list { display: flex; flex-direction: column; gap: 15px; }
.pegmatite-feed-row { background: #fafafa; border: 1px solid var(--t-border); border-radius: 4px; padding: 15px; display: flex; align-items: center; gap: 20px; transition: transform 0.2s; }
.pegmatite-feed-row:hover { transform: translateY(-2px); border-color: var(--t-accent); }
.pegmatite-feed-img-box { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: #ffffff; border: 1px solid var(--t-border); border-radius: 4px; flex-shrink: 0; }
.pegmatite-feed-img-box img { max-width: 90%; max-height: 90%; object-fit: contain; }
.pegmatite-feed-info { flex: 1; }
.pegmatite-feed-name { font-size: 14px; font-weight: bold; margin: 0 0 8px 0; }
.pegmatite-feed-meta { display: flex; gap: 20px; align-items: center; }
.pegmatite-feed-price { color: var(--t-accent); font-size: 15px; font-weight: bold; }
.pegmatite-feed-stock { color: var(--t-sub); font-size: 12px; }
.pegmatite-feed-action { background: var(--t-accent); color: #fff; padding: 6px 16px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.pegmatite-query-entries { display: flex; flex-direction: column; gap: 10px; }
.pegmatite-query-entry-btn { display: block; padding: 10px; background: #fafafa; border: 1px solid var(--t-border); border-radius: 4px; text-align: center; font-size: 13px; font-weight: bold; }
.pegmatite-query-entry-btn:hover { background: var(--t-accent); color: #fff; border-color: var(--t-accent); }
.pegmatite-contact-box { text-align: center; }
.pegmatite-contact-avatar { width: 44px; height: 44px; line-height: 44px; background: #fafafa; border: 1px solid var(--t-border); border-radius: 50%; margin: 0 auto 10px; font-size: 18px; color: var(--t-sub); }
.pegmatite-contact-name { font-size: 14px; font-weight: bold; margin-bottom: 5px; }
.pegmatite-contact-sub { font-size: 11px; color: var(--t-sub); }
.pegmatite-breadcrumb { max-width: 1200px; margin: 20px auto 0; padding: 0 20px; font-size: 13px; color: var(--t-sub); }
.pegmatite-breadcrumb a { color: var(--t-sub); }
.pegmatite-detail-layout { max-width: 1200px; margin: 20px auto; padding: 0 20px; display: flex; gap: 40px; }
.pegmatite-detail-main { flex: 1; }
.pegmatite-detail-title { font-size: 24px; font-weight: bold; margin: 0 0 10px 0; }
.pegmatite-detail-meta { font-size: 12px; color: var(--t-sub); margin-bottom: 25px; }
.pegmatite-checkout-panel { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 4px; padding: 30px; margin-bottom: 30px; display: flex; gap: 30px; }
.pegmatite-detail-left { width: 35%; flex-shrink: 0; }
.pegmatite-detail-img-box { background: #ffffff; border: 1px solid var(--t-border); border-radius: 4px; padding: 30px; display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; }
.pegmatite-detail-img-box img { max-width: 90%; max-height: 90%; object-fit: contain; }
.pegmatite-badges { display: flex; justify-content: space-between; margin-top: 20px; gap: 10px; }
.pegmatite-badge-item { flex: 1; text-align: center; font-size: 11px; font-weight: bold; padding: 8px 0; background: #e0f2fe; border: 1px solid #bae6fd; color: var(--t-accent); border-radius: 2px; }
.pegmatite-detail-right { flex: 1; }
.pegmatite-price-row { background: #f8fafc; padding: 15px 20px; border-radius: 4px; margin-bottom: 25px; display: flex; align-items: center; gap: 15px; }
.pegmatite-price-label { font-size: 13px; color: var(--t-sub); }
.pegmatite-price-val { font-size: 26px; color: var(--t-accent); font-weight: bold; }
.pegmatite-stock-val { font-size: 12px; color: var(--t-sub); }
.pegmatite-form-item { margin-bottom: 15px; }
.pegmatite-form-item label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 6px; }
.pegmatite-input { width: 100%; height: 38px; border: 1px solid var(--t-border); border-radius: 4px; padding: 0 12px; box-sizing: border-box; outline: none; }
.pegmatite-input:focus { border-color: var(--t-accent); }
.pegmatite-btn-submit { width: 100%; height: 44px; background: var(--t-accent); color: #fff; border: none; border-radius: 4px; font-size: 14px; font-weight: bold; cursor: pointer; transition: background 0.2s; }
.pegmatite-btn-submit:hover { background: #0f766e; }
.pegmatite-btn-submit:disabled { background: #cbd5e1; cursor: not-allowed; }
.pegmatite-desc-section { margin-top: 30px; }
.pegmatite-desc-title { font-size: 16px; font-weight: bold; margin-bottom: 15px; border-bottom: 1px solid var(--t-border); padding-bottom: 10px; }
.pegmatite-desc-content { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 4px; padding: 30px; line-height: 1.8; color: #333; }
.pegmatite-detail-sidebar { width: 280px; flex-shrink: 0; }
.pegmatite-mini-search { display: flex; gap: 8px; }
.pegmatite-btn-search { background: var(--t-accent); color: #fff; border: none; border-radius: 4px; padding: 0 15px; cursor: pointer; font-weight: bold; }
.pegmatite-about-wrap { max-width: 800px; margin: 40px auto; padding: 0 20px; }
.pegmatite-about-card { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 4px; padding: 40px; }
.pegmatite-about-title { font-size: 20px; font-weight: bold; margin: 0 0 25px 0; text-align: center; }
.pegmatite-about-content { line-height: 1.8; }
.pegmatite-footer { background: var(--t-card); border-top: 1px solid var(--t-border); padding: 30px 0; margin-top: 60px; }
.pegmatite-footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.pegmatite-footer-copyright { color: var(--t-sub); font-size: 12px; }
.pegmatite-footer-nav { display: flex; gap: 20px; }
.pegmatite-footer-nav a { color: var(--t-sub); font-size: 12px; }
.pegmatite-footer-nav a:hover { color: var(--t-accent); }
.pegmatite-password-container { max-width: 500px; margin: 40px auto; padding: 0 20px; }
.pegmatite-password-card { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 4px; padding: 40px; }
.pegmatite-password-title { font-size: 18px; font-weight: bold; margin: 0 0 25px 0; text-align: center; }
.pegmatite-wholesale-trigger { color: var(--t-accent); cursor: pointer; font-size: 13px; margin-bottom: 15px; font-weight: bold; }
.pegmatite-wholesale-popup { padding: 20px; }
.pegmatite-wholesale-popup-title { font-size: 14px; font-weight: bold; margin-bottom: 15px; }
.pegmatite-group-wrap { max-width: 1000px; margin: 40px auto; padding: 0 20px; }
.pegmatite-group-title { font-size: 18px; font-weight: bold; margin-bottom: 20px; }
.pegmatite-group-container { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 4px; overflow: hidden; }
.pegmatite-table-header { display: flex; background: #f8fafc; border-bottom: 1px solid var(--t-border); padding: 12px 20px; font-weight: bold; color: var(--t-sub); font-size: 13px; }
.pegmatite-th-item { flex: 1; }
.pegmatite-table-row { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--t-border); }
.pegmatite-table-row:last-child { border-bottom: none; }
.pegmatite-table-row:hover { background: #f8fafc; }
.pegmatite-td-item { flex: 1; }
.pegmatite-item-name a { font-weight: bold; }
.pegmatite-item-name a:hover { color: var(--t-accent); }
.pegmatite-type-tag { font-size: 11px; background: #f1f5f9; color: #475569; padding: 2px 6px; border-radius: 3px; }
.pegmatite-type-auto { background: #e0f2fe; color: #0369a1; }
.pegmatite-item-price { font-weight: bold; color: var(--t-accent); }
.pegmatite-item-stock { color: var(--t-sub); }
.pegmatite-btn-table { background: var(--t-accent); color: #fff; padding: 6px 16px; border-radius: 4px; font-size: 12px; font-weight: bold; }
.pegmatite-btn-table:hover { background: #0a7369; color: #fff; }
.pegmatite-btn-disabled { background: #cbd5e1; cursor: not-allowed; }
.pegmatite-btn-disabled:hover { background: #cbd5e1; color: #fff; }
.pegmatite-checkout-wrap { max-width: 500px; margin: 40px auto; padding: 0 20px; }
.pegmatite-checkout-card { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 4px; padding: 30px; margin-bottom: 20px; }
.pegmatite-card-header { font-size: 16px; font-weight: bold; margin-bottom: 20px; border-bottom: 1px solid var(--t-border); padding-bottom: 10px; }
.pegmatite-checkout-alert { background: #fef2f2; border: 1px solid #fee2e2; color: #ef4444; padding: 15px; border-radius: 4px; font-size: 13px; }
.pegmatite-checkout-return { color: var(--t-sub); font-size: 13px; }
.pegmatite-checkout-return:hover { color: var(--t-accent); }
.pegmatite-checkout-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--t-border); }
.pegmatite-checkout-row:last-of-type { border-bottom: none; }
.pegmatite-checkout-total { font-weight: bold; font-size: 18px; color: var(--t-accent); border-top: 1px solid var(--t-border); padding-top: 20px; margin-top: 10px; }
.pegmatite-success-title { color: #10b981; font-size: 18px; font-weight: bold; margin-bottom: 20px; }
.pegmatite-checkout-btn { width: 100%; height: 44px; background: var(--t-accent); color: #fff; border: none; border-radius: 4px; font-size: 14px; font-weight: bold; cursor: pointer; }
.pegmatite-pay-select-title { font-size: 14px; font-weight: bold; color: var(--t-sub); text-align: center; margin-bottom: 20px; }
.pegmatite-pay-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.pegmatite-pay-button { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 4px; padding: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pegmatite-pay-button:hover { border-color: var(--t-accent); }
.pegmatite-pay-button img { height: 24px; }
.pegmatite-query-card { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 4px; padding: 30px; }
.pegmatite-query-tip { background: #f0fdf4; border: 1px solid #dcfce7; color: #15803d; padding: 12px; border-radius: 4px; font-size: 13px; margin-bottom: 20px; }
.pegmatite-query-table { border: 1px solid var(--t-border); border-radius: 4px; overflow: hidden; }
.pegmatite-query-header-row { display: flex; background: #f8fafc; border-bottom: 1px solid var(--t-border); padding: 12px 15px; font-weight: bold; color: var(--t-sub); }
.pegmatite-query-col { flex: 1; }
.pegmatite-query-data-row { display: flex; align-items: center; padding: 15px; }
.pegmatite-query-btn { background: var(--t-accent); color: #fff; padding: 6px 16px; border-radius: 4px; font-size: 12px; font-weight: bold; border: none; cursor: pointer; }
.pegmatite-query-back { color: var(--t-sub); font-size: 12px; }
.pegmatite-query-back:hover { color: var(--t-accent); }
.pegmatite-query-empty { text-align: center; padding: 40px 0; color: var(--t-sub); }
.pegmatite-query-container { background: var(--t-card); border: 1px solid var(--t-border); border-radius: 4px; overflow: hidden; }
.pegmatite-query-tabs { display: flex; background: #f8fafc; border-bottom: 1px solid var(--t-border); }
.pegmatite-query-tab-link { flex: 1; text-align: center; padding: 15px 0; color: var(--t-sub); font-weight: bold; border-bottom: 2px solid transparent; }
.pegmatite-query-tab-link:hover { color: var(--t-accent); }
.pegmatite-query-tabs .pegmatite-active { color: var(--t-accent); border-bottom-color: var(--t-accent); background: var(--t-card); }
.pegmatite-query-body { padding: 30px; }
.pegmatite-query-info { background: #f8fafc; border: 1px solid var(--t-border); padding: 12px; border-radius: 4px; font-size: 12px; color: var(--t-sub); margin-bottom: 25px; text-align: center; }
.pegmatite-mobile-order-card { border: 1px solid var(--t-border); background: #f8fafc; padding: 15px; border-radius: 4px; margin-bottom: 10px; }
.pegmatite-mobile-card-title { display: flex; justify-content: space-between; font-weight: bold; cursor: pointer; }
@media (max-width: 900px) {
    .pegmatite-home-container { padding: 0; flex-direction: column; gap: 20px; }
    .pegmatite-sidebar { width: 100%; }
    .pegmatite-hero-section { flex-direction: column; gap: 20px; }
    .pegmatite-hero-left { width: 100%; }
    .pegmatite-featured-grid { grid-template-columns: repeat(2, 1fr); }
    .pegmatite-detail-layout { flex-direction: column; gap: 20px; }
    .pegmatite-detail-sidebar { width: 100%; }
    .pegmatite-checkout-panel { flex-direction: column; gap: 20px; }
    .pegmatite-detail-left { width: 100%; }
}
@media (max-width: 600px) {
    .pegmatite-featured-grid { grid-template-columns: 1fr; }
    .pegmatite-feed-row { flex-direction: column; align-items: flex-start; gap: 8px; position: relative; padding: 20px; }
    .pegmatite-feed-action { position: absolute; right: 20px; bottom: 20px; }
    .pegmatite-table-header { display: none; }
    .pegmatite-table-row { flex-direction: column; align-items: flex-start; gap: 8px; position: relative; padding: 20px; }
    .pegmatite-td-item { width: 100%; text-align: left; }
    .pegmatite-btn-table { position: absolute; right: 20px; bottom: 20px; }
    .pegmatite-footer-inner { flex-direction: column; gap: 15px; }
}
