
body { background: #f3e5f5; color: #333; font-family: "Microsoft YaHei", Arial, sans-serif; margin: 0; padding: 0; }
a { text-decoration: none; color: #333; }
.ywg-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

.ywg-header { background: #9c27b0; color: #fff; height: 65px; display: flex; align-items: center; }
.ywg-nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.ywg-nav > a img { height: 28px; background: #fff; padding: 5px 10px; border-radius: 4px; }
.ywg-menu { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.ywg-menu a { color: #fff; font-size: 15px; opacity: 0.9; transition: 0.3s; }
.ywg-menu a:hover, .ywg-active { opacity: 1; font-weight: bold; }
.ywg-user a { color: #fff; font-size: 14px; opacity: 0.9; }

.ywg-notice-box { background: #fff; padding: 20px; margin: 20px 0; border: 1px solid #e0e0e0; border-top: 3px solid #9c27b0; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.ywg-notice-text { color: #d32f2f; font-size: 16px; line-height: 1.8; font-weight: 500; }

.ywg-table-wrap { background: #fff; border: 1px solid #e0e0e0; margin-bottom: 30px; }
.ywg-thead { background: #9c27b0; display: flex; padding: 12px 20px; color: #fff; font-size: 15px; font-weight: bold; }
.ywg-th-prod { flex: 1; text-align: center; }
.ywg-th-price { width: 120px; text-align: center; }
.ywg-th-stock { width: 100px; text-align: center; }
.ywg-th-action { width: 100px; text-align: center; }

.ywg-tr { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; transition: 0.2s; }
.ywg-tr:hover { background: #f9fbfc; }
.ywg-td-prod { flex: 1; display: flex; align-items: center; gap: 15px; }
.ywg-prod-img { width: 50px; height: 50px; border: 1px solid #eee; border-radius: 4px; object-fit: cover; }
.ywg-prod-title { font-size: 14px; color: #333; line-height: 1.5; }
.ywg-prod-desc { font-size: 12px; color: #999; margin-top: 4px; }
.ywg-td-price { width: 120px; text-align: center; color: #9c27b0; font-size: 16px; font-weight: bold; }
.ywg-td-stock { width: 100px; text-align: center; }
.ywg-stock-badge { background: #555; color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 3px; display: inline-block; }
.ywg-td-action { width: 100px; text-align: center; }
.ywg-btn-buy { background: #9c27b0; color: #fff; border: none; padding: 6px 15px; font-size: 13px; border-radius: 3px; cursor: pointer; transition: 0.3s; display: inline-block; }
.ywg-btn-buy:hover { background: #7b1fa2; color: #fff; }

.ywg-breadcrumb { padding: 15px 0; font-size: 13px; color: #666; }
.ywg-breadcrumb a { color: #333; }
.ywg-detail-box { background: #fff; border: 1px solid #e0e0e0; display: flex; padding: 30px; margin-bottom: 20px; gap: 40px; }
.ywg-detail-left { width: 320px; flex-shrink: 0; }
.ywg-detail-img { width: 100%; border: 1px solid #eee; padding: 5px; box-sizing: border-box; }
.ywg-detail-right { flex: 1; }
.ywg-detail-title { font-size: 20px; font-weight: bold; color: #333; margin-bottom: 20px; line-height: 1.4; }
.ywg-price-panel { background: #f9f9f9; padding: 20px; margin-bottom: 25px; border-top: 1px solid #eee; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 20px; }
.ywg-price-label { color: #888; font-size: 13px; }
.ywg-price-val { color: #9c27b0; font-size: 28px; font-weight: bold; }
.ywg-stock-val { color: #9c27b0; font-size: 13px; margin-left: auto; }

.ywg-form-row { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; }
.ywg-input { border: 1px solid #ccc; padding: 8px 12px; border-radius: 3px; width: 220px; outline: none; }
.ywg-input:focus { border-color: #9c27b0; }
.ywg-submit-lg { background: #9c27b0; color: #fff; border: none; padding: 12px 30px; font-size: 16px; font-weight: bold; border-radius: 3px; cursor: pointer; transition:0.3s; }
.ywg-submit-lg:hover { background: #7b1fa2; }
.ywg-submit-lg:disabled { background: #ccc; cursor: not-allowed; }

.ywg-desc-box { background: #fff; border: 1px solid #e0e0e0; margin-bottom: 40px; }
.ywg-desc-title { background: #f5f5f5; padding: 12px 20px; font-size: 15px; font-weight: bold; border-bottom: 1px solid #e0e0e0; }
.ywg-desc-content { padding: 30px 20px; line-height: 1.8; color: #555; font-size: 14px; }

.ywg-footer { background: #333; color: #aaa; text-align: center; padding: 30px 0; font-size: 13px; margin-top: 40px; }

@media (max-width: 768px) { header ul { display: none !important; } tr img, div img { max-width: 100%; }
    .ywg-thead { display: none; }
    .ywg-tr { position: relative; padding: 15px; display: block; border-bottom: 5px solid #f3e5f5; }
    .ywg-td-prod { margin-bottom: 10px; }
    .ywg-prod-img { width: 60px; height: 60px; }
    .ywg-prod-title { font-size: 15px; }
    .ywg-td-price { text-align: left; width: auto; font-size: 18px; display: inline-block; }
    .ywg-td-stock { text-align: left; width: auto; display: inline-block; margin-left: 10px; }
    .ywg-stock-badge { background: transparent; color: #9c27b0; border: 1px solid #9c27b0; }
    .ywg-td-action { position: absolute; right: 15px; bottom: 15px; width: auto; }
    
    .ywg-detail-box { flex-direction: column; padding: 15px; gap: 20px; }
    .ywg-detail-left { width: 100%; }
    .ywg-price-panel { flex-direction: column; align-items: flex-start; gap: 10px; padding: 15px; }
    .ywg-stock-val { margin-left: 0; }
    .ywg-input { width: 100%; box-sizing: border-box; }
    .ywg-submit-lg { width: 100%; }
}
