/* DHS 德汉斯 电子质保卡 - 与图片完全一致 */
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f0f0f0; min-height: 100vh; color: #333; font-size: 14px; }

/* 顶部导航栏 - 白色背景，与图片一致 */
.top-bar { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid #e0e0e0; padding: 10px 16px; display: flex; align-items: center; }
.top-bar-left { display: flex; align-items: center; flex: 1; position: relative; min-height: 28px; }
.top-bar-close { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #333; text-decoration: none; position: relative; z-index: 2; }
.top-bar-left > div { flex: 1; display: flex; justify-content: center; align-items: center; position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.top-bar-left > div .top-bar-title { pointer-events: auto; }
.top-bar-title { font-size: 15px; font-weight: 600; color: #333; }
.top-bar-url { font-size: 11px; color: #999; margin-top: 2px; }

.page-wrap { max-width: 480px; margin: 0 auto; min-height: 100vh; background: #fff; }
.page-content { padding: 16px; min-height: calc(100vh - 100px); background: #fff; }

/* 查询表单 */
.query-form { padding: 20px 0; }
.query-result-msg { margin: 16px 0; padding: 14px 16px; border-radius: 4px; font-size: 14px; line-height: 1.6; }
.query-result-msg.info { background: #e6f7ff; border: 1px solid #91d5ff; color: #0050b3; }
.query-result-msg.error { background: #fff2f0; border: 1px solid #ffccc7; color: #ff4d4f; }
.query-form .form-group { margin-bottom: 16px; }
.query-form label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; }
.query-form input { width: 100%; padding: 12px 14px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; }
.query-form input:focus { outline: none; border-color: #1890ff; }
.query-form .btn,
.query-form .btn-primary { width: 100%; padding: 12px; border: none; border-radius: 4px; font-size: 15px; font-weight: 500; cursor: pointer; background: #1890ff; color: #fff; }
.query-form .btn:hover,
.query-form .btn-primary:hover { background: #40a9ff; }

/* 电子质保卡主卡片 */
.warranty-main-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 20px; margin-bottom: 16px; position: relative; }
.warranty-main-card .card-header { display: flex; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.warranty-main-card .card-brand { display: flex; align-items: center; gap: 10px; }
.warranty-main-card .brand-icon { width: 40px; height: 40px; background: #52c41a; color: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; }
.warranty-main-card .brand-text { font-size: 16px; font-weight: 600; color: #333; }
.warranty-main-card .status-tag { position: absolute; top: 16px; right: 16px; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.warranty-main-card .status-tag.active { background: #52c41a; color: #fff; }
.warranty-main-card .status-tag.inactive { background: #ff4d4f; color: #fff; }
.warranty-main-card .status-tag.expired { background: #d9d9d9; color: #595959; }

.warranty-info-list { list-style: none; padding: 0; margin: 0; }
.warranty-info-list li { padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 14px; color: #333; }
.warranty-info-list li:last-child { border-bottom: none; }

/* 质保卡状态区域 - 未激活红边框 / 已激活绿色 / 已过期灰色 */
.warranty-status-box { margin: 16px 0; padding: 16px; border-radius: 4px; }
.warranty-status-box.inactive { border: 2px solid #ff4d4f; background: #fafafa; }
.warranty-status-box.active { border: 2px solid #52c41a; background: #f6ffed; }
.warranty-status-box.expired { border: 2px solid #8c8c8c; background: #f5f5f5; }
.warranty-status-box .box-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.warranty-status-box.inactive .box-title { color: #ff4d4f; }
.warranty-status-box.active .box-title { color: #52c41a; }
.warranty-status-box.expired .box-title { color: #8c8c8c; }
.warranty-status-box .box-desc { font-size: 13px; color: #666; line-height: 1.6; margin: 4px 0; }
.warranty-status-box .warm-tip-inline { font-size: 12px; color: #ff4d4f; margin: 8px 0 0; }

/* 登录代理商按钮 - 蓝色 */
.btn-agent-login { display: block; width: 100%; padding: 14px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 15px; font-weight: 500; text-align: center; text-decoration: none; margin: 16px 0; cursor: pointer; }
.btn-agent-login:hover { background: #40a9ff; color: #fff; }

/* 温馨提示 - 浅灰框红色文字 */
.warm-tip { margin-top: 16px; padding: 12px; background: #fafafa; border: 1px solid #e8e8e8; border-radius: 4px; font-size: 12px; color: #ff4d4f; line-height: 1.5; }

/* 代理商已登录提示 */
.agent-logged-msg { margin: 12px 0; padding: 12px; background: #e6f7ff; border: 1px solid #91d5ff; border-radius: 4px; font-size: 13px; color: #0050b3; line-height: 1.5; }

/* 激活类型标签 */
.activation-tabs { display: flex; margin-bottom: 20px; border-bottom: 2px solid #e8e8e8; }
.activation-tabs .tab-item { flex: 1; padding: 12px; text-align: center; cursor: pointer; font-size: 14px; color: #8c8c8c; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.activation-tabs .tab-item.active { color: #1890ff; font-weight: 600; border-bottom-color: #1890ff; }
.activation-tabs .tab-item input { display: none; }

/* 激活表单 */
.activate-form { margin-top: 20px; }
.activate-form .form-group { margin-bottom: 16px; }
.activate-form label { display: block; margin-bottom: 8px; font-weight: 500; color: #333; }
.activate-form .required { color: #ff4d4f; }
.activate-form input[type="text"],
.activate-form input[type="tel"] { width: 100%; padding: 12px 14px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; }
.activate-form input:focus { outline: none; border-color: #1890ff; }

/* 照片上传 - 无相机图标，通用图片上传样式 */
.photo-upload-zone { border: 2px dashed #d9d9d9; border-radius: 4px; padding: 32px 24px; text-align: center; background: #fafafa; }
.photo-upload-zone input[type="file"] { display: none; }
.photo-upload-zone label { display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; font-weight: 400; }
.photo-upload-zone .upload-text { font-size: 14px; color: #8c8c8c; }
.photo-upload-zone .upload-hint { display: block; margin-top: 8px; font-size: 12px; color: #8c8c8c; }
.photo-preview { display: block; margin-top: 12px; font-size: 12px; color: #52c41a; }
.photo-preview img { max-width: 120px; max-height: 120px; border-radius: 4px; margin-top: 8px; }

.btn-submit-activate { width: 100%; padding: 14px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 8px; }
.btn-submit-activate:hover { background: #40a9ff; }

.agent-logout-link { display: block; margin-top: 12px; font-size: 12px; color: #1890ff; text-decoration: none; }

/* 已激活详情框 */
.warranty-active-detail { margin: 16px 0; padding: 16px; background: #f6ffed; border: 2px solid #b7eb8f; border-radius: 4px; }
.warranty-active-detail.expired { background: #f5f5f5; border-color: #d9d9d9; }
.warranty-active-detail p { margin: 6px 0; font-size: 13px; color: #333; }

.error-msg { color: #ff4d4f; font-size: 13px; margin: 8px 0; }
.privacy-checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #333; margin: 16px 0 8px; cursor: pointer; }
.privacy-checkbox input[type="checkbox"] { flex-shrink: 0; margin: 0; width: 15px; height: 15px; vertical-align: middle; }
.privacy-checkbox a { color: #1890ff; text-decoration: none; }
.privacy-checkbox a:hover { text-decoration: underline; }

/* 登录页 */
.login-page .page-content { padding: 24px 16px; }
.login-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 24px; }
.login-card h2 { font-size: 16px; font-weight: 600; margin: 0 0 24px; color: #333; text-align: center; }
.login-card .form-group { margin-bottom: 16px; }
.login-card .form-group.form-group-checkbox { margin-bottom: 12px; }
.login-card label { display: block; margin-bottom: 8px; font-size: 14px; color: #333; }
.login-card label.checkbox-label { margin-bottom: 0; }
.login-card input[type="text"],
.login-card input[type="password"] { width: 100%; padding: 12px 14px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; }
.login-card input[type="checkbox"] { width: auto; margin: 0; flex-shrink: 0; }
.login-card .checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; }
.login-card .btn-login { width: 100%; padding: 14px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 15px; font-weight: 500; cursor: pointer; margin-top: 8px; }
.login-card .btn-login:hover { background: #40a9ff; }
.login-card .back-link { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: #1890ff; text-decoration: none; }
.login-card .login-tip { margin-top: 16px; font-size: 12px; color: #ff4d4f; text-align: center; }

/* 出库表单 */
.outbound-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 20px; margin-bottom: 16px; }
.product-search-wrap { position: relative; }
.product-search-dropdown { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); max-height: 200px; overflow-y: auto; z-index: 10; display: none; list-style: none; padding: 0; margin: 4px 0 0; }
.product-search-dropdown.show { display: block; }
.product-search-dropdown li { padding: 10px 14px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #f5f5f5; }
.btn-success { padding: 12px 24px; background: #52c41a; color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; }
.btn-success:hover { background: #73d13d; }

/* 结果卡片 */
.result-card { background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; padding: 20px; margin-bottom: 16px; }
.result-card.success { border-color: #52c41a; background: #f6ffed; }
.result-card.error { border-color: #ff4d4f; background: #fff2f0; }
.result-card.info { border-color: #91d5ff; background: #e6f7ff; }
.result-card h3 { margin: 0 0 12px; font-size: 16px; }
.result-card p { margin: 8px 0; }
.result-card ul { margin: 12px 0; padding-left: 20px; }
.result-card .btn, .result-card .btn-primary { padding: 10px 20px; background: #1890ff; color: #fff; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; }
.result-card .btn:hover, .result-card .btn-primary:hover { background: #40a9ff; }

.footer { padding: 16px; text-align: center; font-size: 12px; color: #999; border-top: 1px solid #f0f0f0; background: #fafafa; }

/* 产品图片轮播 */
.product-images { margin-bottom: 16px; }
.img-carousel { width: 100%; height: 200px; overflow: hidden; border-radius: 4px; background: #f5f5f5; }
.img-carousel .carousel-img { width: 100%; height: 100%; object-fit: contain; display: none; }
.img-carousel .carousel-img.active { display: block; }
.img-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.img-carousel-dots .dot { width: 8px; height: 8px; border-radius: 50%; background: #d9d9d9; cursor: pointer; }
.img-carousel-dots .dot.active { background: #1890ff; }

/* 隐私政策页 */
.privacy-page { max-width: 600px; margin: 0 auto; padding: 20px 16px 40px; }
.privacy-page h1 { font-size: 18px; margin-bottom: 20px; color: #333; }
.privacy-page h2 { font-size: 15px; margin: 24px 0 12px; color: #333; }
.privacy-page p, .privacy-page li { font-size: 14px; line-height: 1.8; color: #666; margin-bottom: 10px; }
.privacy-page ul { padding-left: 20px; margin: 12px 0; }
.privacy-page .privacy-content { margin-top: 16px; }
.privacy-page .privacy-content h2 { margin-top: 24px; margin-bottom: 12px; }
.privacy-page .privacy-content h2:first-child { margin-top: 0; }
.privacy-page .back-link { display: inline-block; margin-top: 24px; color: #1890ff; text-decoration: none; font-size: 14px; }
.privacy-page .back-link:hover { text-decoration: underline; }
