/* ============================================================
   tag.css — 服装吊牌扫码详情页样式
   1:1 还原 woolindex.html 视觉
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body { background: #f0f2f5; display: flex; justify-content: center; align-items: flex-start; min-height: 100vh; padding: 16px; }

.container { max-width: 420px; width: 100%; background: white; border-radius: 24px; box-shadow: 0 8px 30px rgba(0,0,0,0.12); overflow: hidden; padding: 20px 18px 30px; margin-top: 10px; }

.status-bar { display: flex; justify-content: space-between; font-size: 12px; color: #888; margin-bottom: 12px; }

.brand-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.brand-logo  { width: 44px; height: 44px; background: #2b3a67; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 20px; }
.brand-name  { font-size: 20px; font-weight: 700; color: #1a1a2e; }
.brand-tag   { background: #eef2ff; color: #4a6cf7; font-size: 11px; padding: 2px 10px; border-radius: 20px; margin-left: auto; }

.anti-fake { background: #f8f9fc; border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; border-left: 4px solid #4a6cf7; }
.anti-fake .icon     { font-size: 28px; }
.anti-fake .info     { flex: 1; }
.anti-fake .info .title { font-weight: 600; font-size: 15px; color: #1a1a2e; }
.anti-fake .info .desc  { font-size: 13px; color: #555; }
.anti-fake .status   { background: #34c759; color: white; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }

.product-image { width: 100%; aspect-ratio: 1/1; background: linear-gradient(135deg, #e8eaf6, #c5cae9); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; position: relative; overflow: hidden; }
.product-image > span { font-size: 72px; opacity: 0.6; }
.product-image .tag   { position: absolute; top: 12px; left: 12px; background: rgba(0,0,0,0.6); color: white; font-size: 12px; padding: 4px 12px; border-radius: 20px; }

.product-info    { margin-bottom: 16px; }
.product-name    { font-size: 20px; font-weight: 700; color: #1a1a2e; margin-bottom: 4px; }
.product-sub     { font-size: 14px; color: #666; margin-bottom: 8px; }
.price-row       { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.price           { font-size: 26px; font-weight: 700; color: #e53935; }
.price-original  { font-size: 16px; color: #999; text-decoration: line-through; }
.discount-badge  { background: #fce4ec; color: #c62828; font-size: 12px; padding: 2px 10px; border-radius: 20px; }

.spec-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; background: #f8f9fc; padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; }
.spec-item       { display: flex; justify-content: space-between; font-size: 14px; }
.spec-item .label { color: #888; }
.spec-item .value { color: #1a1a2e; font-weight: 500; }

.trace-section   { background: #fafbfe; border-radius: 16px; padding: 14px 16px; margin-bottom: 18px; border: 1px solid #eee; }
.trace-title     { font-weight: 600; font-size: 15px; color: #1a1a2e; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.trace-item      { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #444; padding: 6px 0; border-bottom: 1px dashed #e9e9e9; }
.trace-item:last-child { border-bottom: none; }
.trace-item .dot { width: 6px; height: 6px; background: #4a6cf7; border-radius: 50%; flex-shrink: 0; }
.trace-item .time { color: #999; font-size: 12px; margin-left: auto; }

.action-row      { display: flex; gap: 12px; margin-top: 6px; }
.action-row[hidden] { display: none; }
.btn             { flex: 1; padding: 14px 0; border-radius: 30px; border: none; font-size: 15px; font-weight: 600; background: #f0f2f5; color: #1a1a2e; text-align: center; cursor: pointer; }
.btn-primary     { background: #1a1a2e; color: white; }
.btn-outline     { background: transparent; border: 1.5px solid #1a1a2e; }
.btn-warning     { background: #f9a825; color: white; }

/* 右下角隐藏开关（极低调的占位小圆点，点一下显隐营销三按钮） */
.ui-toggle {
    position: fixed; right: 14px; bottom: 14px;
    width: 20px; height: 20px; padding: 0;
    border-radius: 50%; border: none;
    background: rgba(26, 26, 46, 0.10);
    color: transparent; font-size: 0; line-height: 1;
    cursor: pointer; z-index: 50;
    transition: background .2s ease, opacity .2s ease;
    opacity: .55;
}
.ui-toggle:hover { background: rgba(26, 26, 46, 0.28); opacity: 1; }
.ui-toggle.is-on { background: rgba(26, 26, 46, 0.75); opacity: 1; }

.extra-row       { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; }
.pill            { padding: 4px 14px; border-radius: 30px; font-size: 12px; }
.pill-blue       { background: #e3f2fd; color: #0d47a1; }
.pill-purple     { background: #f3e5f5; color: #6a1b9a; }

.footer-note     { margin-top: 20px; font-size: 11px; color: #aaa; text-align: center; border-top: 1px solid #efefef; padding-top: 16px; }

/* 吊牌图片轮播（替换原 emoji 占位） */
.product-carousel {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    border-radius: 18px;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-drag: none;
}
.product-carousel .pc-track {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
}
.product-carousel .pc-slide {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.product-carousel .pc-slide.is-active { opacity: 1; }
.product-carousel .tag {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,0,0,0.6); color: white;
    font-size: 12px; padding: 4px 12px; border-radius: 20px;
    z-index: 2;
}
.product-carousel .pc-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(0,0,0,0.45); color: white;
    border: none; font-size: 22px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 3;
    transition: background .15s ease;
}
.product-carousel .pc-nav:hover { background: rgba(0,0,0,0.7); }
.product-carousel .pc-prev { left: 10px; }
.product-carousel .pc-next { right: 10px; }
.product-carousel .pc-dots {
    position: absolute; left: 50%; bottom: 12px;
    transform: translateX(-50%);
    display: flex; gap: 7px; z-index: 3;
}
.product-carousel .pc-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.55);
    transition: width .15s ease, background .15s ease;
    cursor: pointer;
}
.product-carousel .pc-dot.is-active {
    width: 18px; border-radius: 4px;
    background: rgba(255,255,255,0.95);
}

/* ============================================================
   首页入口
   ============================================================ */
.home-head { text-align: center; padding: 34px 0 26px; }
.home-logo { font-size: 56px; line-height: 1; margin-bottom: 12px; }
.home-head h1 { font-size: 24px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.home-head p  { font-size: 13px; color: #888; letter-spacing: 1px; }

.home-actions { display: flex; flex-direction: column; gap: 12px; }
.home-btn {
    display: block; text-decoration: none;
    border-radius: 16px; padding: 16px 18px;
    transition: transform .12s ease, box-shadow .12s ease;
}
.home-btn:active { transform: scale(.985); }
.home-btn-title { text-align: center; display: block; font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.home-btn-sub   { text-align: center; display: block; font-size: 12.5px; opacity: .78; line-height: 1.5; }
.home-btn-primary { background: #1a1a2e; color: #fff; box-shadow: 0 6px 18px rgba(26,26,46,.22); }
.home-btn-ghost   { background: #f8f9fc; color: #1a1a2e; border: 1px solid #e6e8f0; }

/* ============================================================
   吊牌申请表单
   ============================================================ */
.apply-head { text-align: center; padding: 8px 0 20px; }
.apply-head h1 { font-size: 21px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.apply-head p  { font-size: 13px; color: #888; }

.apply-form label {
    display: block; font-size: 13px; font-weight: 600;
    color: #444; margin: 14px 0 6px;
}
.apply-form label em { color: #e53935; font-style: normal; margin-left: 2px; }
.apply-form input[type="text"],
.apply-form input[type="tel"],
.apply-form input[type="number"],
.apply-form input:not([type]),
.apply-form textarea {
    width: 100%; border: 1px solid #e2e6ef; background: #fafbfe;
    border-radius: 12px; padding: 12px 14px; font-size: 15px; color: #1a1a2e;
    outline: none; transition: border-color .15s ease, background .15s ease;
}
.apply-form input:focus, .apply-form textarea:focus {
    border-color: #4a6cf7; background: #fff;
}
.apply-form textarea { resize: vertical; line-height: 1.6; }

.apply-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field-err { display: block; font-size: 12px; color: #e53935; margin-top: 4px; min-height: 0; }
.apply-err { font-size: 13px; color: #e53935; background: #fdecea; border-radius: 10px; padding: 0; }
.apply-err:not(:empty) { padding: 10px 12px; margin-bottom: 4px; }
.apply-err ul { list-style: none; }

/* 蜜罐：视觉上彻底隐藏，但不使用 display:none（部分爬虫会跳过 display:none 的字段） */
.hp-field {
    position: absolute !important;
    left: -9999px !important; top: auto !important;
    width: 1px; height: 1px; overflow: hidden;
    opacity: 0; pointer-events: none;
}

.apply-btn {
    width: 100%; margin-top: 22px;
    background: #1a1a2e; color: #fff; border: none;
    border-radius: 30px; padding: 15px 0;
    font-size: 16px; font-weight: 600; cursor: pointer;
    transition: opacity .15s ease, transform .12s ease;
}
.apply-btn:active { transform: scale(.99); opacity: .9; }
.apply-btn-ghost {
    display: block; text-align: center; text-decoration: none;
    background: transparent; color: #1a1a2e;
    border: 1.5px solid #1a1a2e; margin-top: 14px;
}
.apply-note { font-size: 11.5px; color: #aaa; line-height: 1.6; margin-top: 14px; text-align: center; }

/* 提交成功页 */
.apply-done { text-align: center; padding: 26px 0 8px; }
.apply-done-icon { font-size: 54px; line-height: 1; margin-bottom: 12px; }
.apply-done h1 { font-size: 21px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.apply-done-sub { font-size: 13.5px; color: #666; line-height: 1.7; }
.apply-done-sub strong { color: #1a1a2e; }
.apply-done-card {
    margin: 20px 0 4px; text-align: left;
    background: #f8f9fc; border: 1px solid #eef0f6;
    border-radius: 14px; padding: 6px 16px;
}
.apply-done-card .row {
    display: flex; justify-content: space-between; gap: 12px;
    font-size: 13.5px; padding: 10px 0; border-bottom: 1px dashed #e6e8f0;
}
.apply-done-card .row:last-child { border-bottom: none; }
.apply-done-card .row span { color: #888; flex-shrink: 0; }
.apply-done-card .row b { color: #1a1a2e; font-weight: 600; text-align: right; word-break: break-all; }
.apply-done-tip { font-size: 12px; color: #aaa; line-height: 1.6; margin-top: 16px; }

@media (max-width: 380px) {
    .apply-row2 { grid-template-columns: 1fr; gap: 0; }
}
