/* ========== 防伪查询系统 - 全局样式（HighGo 橙色主题） ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --hg-orange: #E94A08;
    --hg-orange-light: #FD6612;
    --hg-orange-dark: #C53709;
    --hg-orange-warm: #FE8839;
    --hg-gold: #E9B65F;
    --hg-dark: #333333;
    --hg-text: #606266;
    --hg-text-light: #9CA3AF;
    --hg-bg: #FFFFFF;
    --hg-bg-gray: #F5F4F3;
    --hg-bg-dark: #222427;
    --hg-border: #E5E7ED;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--hg-dark);
    background: #FFFFFF;
    min-height: 100vh;
}

/* ========== 前台查询页 ========== */
.container {
    max-width: 600px;
    margin: 80px auto;
    padding: 0 20px;
}

.verify-card {
    background: #fff;
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hg-border);
}

.verify-header {
    text-align: center;
    margin-bottom: 36px;
}

.verify-header .logo {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--hg-orange);
}

.verify-header h1 {
    font-size: 28px;
    color: var(--hg-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.verify-header p {
    color: var(--hg-text);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--hg-text);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--hg-border);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
    background: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: var(--hg-orange);
    box-shadow: 0 0 0 3px rgba(233, 74, 8, 0.12);
}

.form-group input::placeholder { color: var(--hg-text-light); }

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--hg-orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-primary:hover { background: var(--hg-orange-light); }
.btn-primary:active { background: var(--hg-orange-dark); }
.btn-primary:disabled { background: #DCDCDC; cursor: not-allowed; }

/* 验证码区域 */
.captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.captcha-row .form-group { margin-bottom: 0; flex: 1; }

.captcha-img {
    height: 48px;
    border-radius: 6px;
    border: 1px solid var(--hg-border);
    cursor: pointer;
    flex-shrink: 0;
}

.error-msg {
    background: #fff7f0;
    border: 1px solid #ffd4b8;
    color: var(--hg-orange-dark);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.tips {
    text-align: center;
    margin-top: 24px;
    font-size: 12px;
    color: var(--hg-text-light);
}

/* ========== 结果页 ========== */
.result-container {
    max-width: 700px;
    margin: 60px auto;
    padding: 0 20px;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--hg-border);
}

.result-header {
    text-align: center;
    padding: 20px 0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.result-genuine {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    color: #fff;
}

.result-fake {
    background: linear-gradient(135deg, #E94A08 0%, #C53709 100%);
    color: #fff;
}

.result-unknown {
    background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
    color: #fff;
}

.result-error {
    background: linear-gradient(135deg, #8c8c8c 0%, #595959 100%);
    color: #fff;
}

.result-icon { font-size: 44px; margin-bottom: 6px; }
.result-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.result-message { font-size: 14px; opacity: 0.95; }

.result-info {
    background: var(--hg-bg-gray);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.result-info h3 {
    font-size: 15px;
    color: var(--hg-text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hg-border);
    font-weight: 600;
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #EDEFF3;
}
.info-row:last-child { border-bottom: none; }

.info-label {
    width: 110px;
    flex-shrink: 0;
    color: var(--hg-text);
    font-size: 14px;
}

.info-value {
    flex: 1;
    color: var(--hg-dark);
    font-size: 14px;
    word-break: break-all;
}

.actions { text-align: center; padding-top: 8px; }

.btn-secondary {
    display: inline-block;
    padding: 12px 32px;
    background: var(--hg-bg-gray);
    color: var(--hg-dark);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: background 0.2s;
    border: 1px solid var(--hg-border);
}

.btn-secondary:hover { background: #EDEFF3; }

/* ========== 加载动画 ========== */
.loading-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex; align-items: center; justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 48px; height: 48px;
    border: 4px solid var(--hg-border);
    border-top-color: var(--hg-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== 品牌顶部条 ========== */
.brand-topbar {
    background: linear-gradient(90deg, #222427 0%, #3A1E12 50%, #222427 100%);
    border-bottom: 2px solid var(--hg-orange);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.brand-topbar-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.brand-topbar-logo {
    font-size: 22px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.brand-topbar-img {
    max-height: 48px;
    max-width: 200px;
    height: auto;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.brand-topbar-title {
    font-weight: 600;
    color: #fff;
}

.brand-topbar-tag {
    margin-left: auto;
    padding: 3px 10px;
    font-size: 11px;
    background: rgba(233, 74, 8, 0.85);
    color: #fff;
    border-radius: 10px;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ========== 品牌底部 ========== */
.brand-footer {
    margin-top: 36px;
    text-align: center;
    color: var(--hg-text-light);
    font-size: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--hg-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.brand-logo-mini {
    font-size: 14px;
    color: var(--hg-orange);
}

/* ========== 结果页品牌条 ========== */
.result-card .brand-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(90deg, #222427, #3A1E12);
    color: #fff;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.result-card .brand-bar .brand-logo {
    font-size: 18px;
}

.result-card .brand-bar .brand-title {
    font-weight: 600;
}

/* ========== 结果页图标 ========== */
.result-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.icon-genuine {
    width: 72px; height: 72px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    font-size: 40px; font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.icon-unknown {
    width: 72px; height: 72px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,0.22);
    border: 3px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    font-size: 44px; font-weight: 700;
    color: #fff;
}

/* ========== 大 logo（查询页） ========== */
.logo-big {
    width: 72px; height: 72px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--hg-orange) 0%, var(--hg-orange-warm) 100%);
    color: #fff;
    font-size: 36px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(233, 74, 8, 0.25);
}

.logo-big-img {
    max-width: 130px;
    max-height: 130px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
}

/* 旧 logo 兼容 */
.verify-header .logo { display: none; }

/* ========== 响应式 ========== */
@media (max-width: 600px) {
    .container { margin: 40px auto; }
    .verify-card { padding: 28px 20px; }
    .verify-header h1 { font-size: 22px; }
    .result-container { margin: 30px auto; }
    .result-card { padding: 24px 16px; }
    .info-row { flex-direction: column; }
    .info-label { width: auto; margin-bottom: 4px; }
    .brand-topbar-tag { display: none; }
    .brand-topbar-title { font-size: 13px; }
}
