/* 建优选资质服务 - 样式表 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* 强制统一颜色渲染，防止不同设备/浏览器色差 */
html {
    color-scheme: normal;
    -webkit-font-smoothing: antialiased;
}

/* 统一图片显示，防止设备差异导致颜色偏差 */
img {
    image-rendering: auto;
}

/* 链接统一颜色，移除 hover 透明度（避免不同背景下视觉差异） */
a:hover { opacity: 1; }

/* 强制所有按钮和输入框背景色，防止浏览器自动填充变色 */
button, input, select, textarea {
    background-color: inherit;
}

/* 服务卡片图标区域固定背景色 */
.service-card-icon {
    background: var(--primary-light, #EBF3FD) !important;
}

/* 确保底部导航在所有设备上颜色一致 */
.bottom-nav {
    background: var(--white, #FFFFFF) !important;
}

/* 浮动电话球强制背景 */
.phone-ball-main {
    background: var(--primary, #1E6FD9) !important;
}

/* 桌面端最大宽度，保持居中不撑满屏幕 */
body {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg, #F5F7FA);
}

:root {
    --primary: #1E6FD9;
    --primary-light: #EBF3FD;
    --accent: #FF6B35;
    --bg: #F5F7FA;
    --white: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
    --border: #E8ECF0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --radius: 8px;
    --radius-lg: 16px;
    /* 全局链接颜色：强制使用主色，防止浏览器默认紫色visited */
}
a { color: var(--primary); text-decoration: none; }
a:visited { color: var(--primary); }
a:hover { opacity: 0.85; }
a:active { color: var(--primary); }
}

body {
    font-family: "PingFang SC", "Helvetica Neue", -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    max-width: 750px;
    margin: 0 auto;
    padding-bottom: 320px;
    min-height: 100vh;
}

/* ===== Banner 滑动触摸优化 ===== */
.banner-slider {
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    cursor: grab;
}
.banner-slider.dragging {
    cursor: grabbing;
    transition: none !important;
}
.banner-slide {
    transition: transform 0.3s ease, opacity 0.4s ease;
}

/* ===== 顶部导航 ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--primary);
    color: var(--white);
    padding: 0 16px;
    height: 50px;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 18px;
    font-weight: 600;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
}

/* ===== Banner轮播 ===== */
.banner {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #1E6FD9 0%, #3B8FE5 50%, #5DA3F0 100%);
}

.banner-slider {
    position: relative;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide:nth-child(2) {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
}

.banner-slide:nth-child(3) {
    background: linear-gradient(135deg, #1A237E 0%, #283593 100%);
}

.banner-slide.active {
    opacity: 1;
}

.banner-content {
    text-align: center;
    color: var(--white);
    padding: 20px;
}

.banner-content h2 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.banner-content p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.banner-content-highlight {
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    backdrop-filter: blur(10px);
}

.banner-badge {
    display: inline-block;
    background: var(--accent);
    color: white;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.banner-btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 10px 28px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.banner-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 20px;
    border-radius: 4px;
    background: white;
}

/* ===== 快捷服务 ===== */
.quick-services {
    padding: 20px 16px;
    background: var(--white);
    margin-top: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
    padding-left: 8px;
    border-left: 4px solid var(--primary);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-item {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-item:active {
    transform: scale(0.96);
    background: var(--primary);
    color: white;
}

.quick-item:active .quick-icon {
    transform: scale(1.1);
}

.quick-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.quick-item span {
    font-size: 13px;
    color: var(--text);
    font-weight: 500;
}

/* ===== 服务分类 ===== */
.service-category {
    padding: 20px 16px;
    background: var(--white);
    margin-top: 10px;
}

.more-btn {
    text-align: center;
    color: var(--primary);
    font-size: 14px;
    padding: 12px;
    cursor: pointer;
    font-weight: 500;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.service-card {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.service-card:active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.service-card-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.service-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.service-card-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

/* ===== 服务卡片价格徽章 ===== */
.service-card {
    position: relative;
    overflow: hidden;
}
.service-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    text-align: left;
}
.service-card-price .price-label {
    font-size: 11px;
    color: #999;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
}
.service-card-price .price-val {
    font-size: 14px;
    color: #ef4444;
    font-weight: 700;
}

/* ===== 热门资讯 ===== */
.article-section {
    padding: 20px 16px;
    background: var(--white);
    margin-top: 10px;
}
.article-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.article-card {
    display: flex;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}
.article-card:active {
    transform: scale(0.98);
}
.article-cover {
    width: 120px;
    aspect-ratio: 750 / 400;  /* v41: 匹配后台上传比例 750x400,横向显示不再被压成正方形 */
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-light), #D6E5F7);
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-no-img {
    font-size: 32px;
    opacity: 0.6;
}
.article-info {
    flex: 1;
    margin-left: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}
.article-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}
.article-summary {
    font-size: 12px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 4px 0;
}
.article-date {
    font-size: 11px;
    color: var(--text-light);
    opacity: 0.7;
}
.empty-article {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    font-size: 13px;
}

/* ===== 资质到期提醒徽章 ===== */
.alert-badge {
    display: inline-block;
    background: #FF4444;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.expiry-warning {
    color: #FF4444;
    font-weight: 600;
}
.expiry-normal {
    color: var(--text-light);
}

/* ===== 联系栏 ===== */
.contact-bar {display: none !important;     position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    padding: 0 16px;
    z-index: 99;
}

.contact-content {
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-icon {
    font-size: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 11px;
    color: var(--text-light);
}

.contact-value {
    font-size: 15px;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-btn {
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    max-width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-light);
    text-decoration: none;
    padding: 4px 16px;
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 22px;
}

.nav-item span:last-child {
    font-size: 11px;
}

/* ===== 产品列表页 ===== */
.products-header {
    background: var(--primary);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.products-header h2 {
    font-size: 18px;
}

.tabs {
    display: flex;
    background: var(--white);
    padding: 0 16px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
}

.tab {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-light);
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.products-container {
    padding: 16px;
}

.category-section {
    margin-bottom: 24px;
}

.category-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 3px solid var(--primary);
}

/* ===== 产品详情页 ===== */
.detail-header {
    background: var(--primary);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-price-box {
    background: linear-gradient(135deg, #FFF5F0, #FFE8D6);
    border: 1px solid #FFD0B0;
    border-radius: var(--radius);
    padding: 10px 16px;
    margin: 12px 0 0;
    text-align: left;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.detail-price-label {
    font-size: 12px;
    color: #999;
    background: rgba(0,0,0,0.04);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}
.detail-price-val {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.detail-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.detail-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.detail-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.detail-content {
    padding: 20px 16px 90px;
}

.detail-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
}

.detail-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--primary);
}

.detail-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}

.detail-footer {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    background: var(--white);
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 99;
}

.detail-footer .contact-btn {
    flex: 1;
    text-align: center;
}

/* ===== 咨询表单页 ===== */
.consult-header {
    background: linear-gradient(135deg, var(--primary), #3B8FE5);
    color: white;
    padding: 32px 16px;
    text-align: center;
}

.consult-header h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.consult-header p {
    font-size: 14px;
    opacity: 0.9;
}

.form-container {
    padding: 20px 16px;
}

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

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

.form-label .required {
    color: #FF4757;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--white);
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 15px;
    background: var(--white);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-tip {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.submit-btn:active {
    opacity: 0.9;
    transform: scale(0.98);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* 提交成功弹窗 */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.success-modal.show {
    display: flex;
}

.success-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    max-width: 300px;
    margin: 0 20px;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.success-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

.success-content p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.success-btn {
    background: var(--primary);
    color: white;
    padding: 12px 32px;
    border-radius: 24px;
    border: none;
    font-size: 15px;
    cursor: pointer;
}

/* ===== 后台管理页 ===== */
.admin-header {
    background: linear-gradient(135deg, var(--primary), #3B8FE5);
    color: white;
    padding: 24px 16px;
    text-align: center;
}

.admin-header h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.admin-header p {
    font-size: 13px;
    opacity: 0.8;
}

.admin-stats {
    display: flex;
    padding: 16px;
    gap: 12px;
    background: var(--white);
}

.stat-card {
    flex: 1;
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.admin-section {
    padding: 16px;
}

.admin-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    font-size: 12px;
    cursor: pointer;
    color: var(--text);
}

.admin-btn.danger {
    color: #FF4757;
    border-color: #FF4757;
}

.record-list {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.record-item {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.record-item:last-child {
    border-bottom: none;
}

.record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.record-company {
    font-weight: 600;
    font-size: 15px;
}

.record-time {
    font-size: 12px;
    color: var(--text-light);
}

.record-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.record-row {
    display: flex;
    font-size: 13px;
    color: var(--text);
}

.record-row span:first-child {
    color: var(--text-light);
    width: 70px;
    flex-shrink: 0;
}

.record-content {
    margin-top: 8px;
    padding: 10px;
    background: var(--bg);
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}

.empty-state {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-light);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* ===== 登录页 ===== */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary), #3B8FE5);
}

.login-header {
    padding: 60px 16px 40px;
    text-align: center;
    color: white;
}

.login-logo {
    font-size: 60px;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 14px;
    opacity: 0.8;
}

.login-form {
    flex: 1;
    background: var(--white);
    border-radius: 24px 24px 0 0;
    padding: 32px 24px;
}

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

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
}

.login-error {
    color: #FF4757;
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
    display: none;
}

/* ===== 动画 ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* ===== 资质图片展示区 ===== */
.gallery-section {
    padding: 20px 16px;
    background: var(--white);
    margin-top: 10px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.gallery-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--border);
}
.gallery-card:active {
    transform: scale(0.98);
}
.gallery-card-img {
    aspect-ratio: 3/4;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gallery-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery-no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}
.gallery-no-img span {
    font-size: 12px;
    color: #888;
    text-align: center;
    line-height: 1.4;
    word-break: break-all;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}
.gallery-card-title {
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
}
.empty-gallery {
    text-align: center;
    color: var(--text-light);
    padding: 40px 0;
    font-size: 14px;
}

/* ===== 政策信息板块 ===== */
.policy-section {
    padding: 20px 16px;
    background: var(--white);
    margin-top: 10px;
}
.policy-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.policy-card {
    background: var(--primary-light);
    border-radius: var(--radius);
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 3px solid var(--primary);
}
.policy-card:active {
    background: var(--primary);
    color: white;
}
.policy-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}
.policy-summary {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 6px;
}
.policy-date {
    font-size: 11px;
    color: var(--text-light);
}
.empty-policy {
    text-align: center;
    color: var(--text-light);
    padding: 40px 0;
    font-size: 14px;
}

/* ===== 一键登录弹窗 ===== */
.login-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.login-modal.show { display: flex; }
.login-modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 90%;
    max-width: 340px;
    overflow: hidden;
}
.login-modal-header {
    background: var(--primary);
    color: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.login-modal-header h3 { font-size: 16px; margin: 0; }
.login-modal-body { padding: 20px; }
.login-tip { font-size: 13px; color: var(--text-light); margin-bottom: 16px; text-align: center; }
.modal-close { font-size: 20px; color: white; cursor: pointer; }

/* ===== 一键登录框 ===== */
.oneclick-info {
    text-align: center;
    padding: 20px 10px 24px;
    background: linear-gradient(135deg, #e8f1ff 0%, #f5f9ff 100%);
    border-radius: 12px;
    margin-bottom: 18px;
}
.oneclick-icon { font-size: 40px; margin-bottom: 8px; }
.oneclick-label { font-size: 12px; color: var(--text-light); margin: 0 0 4px; }
.oneclick-phone { font-size: 22px; font-weight: 700; color: var(--primary); margin: 0 0 6px; letter-spacing: 1px; }
.oneclick-desc { font-size: 12px; color: var(--text-light); margin: 0; }
.login-link {
    text-align: center;
    color: var(--primary);
    font-size: 13px;
    margin-top: 14px;
    padding: 8px;
    cursor: pointer;
}
.login-link:hover { text-decoration: underline; }

/* ===== 资质图片详情弹窗 ===== */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.gallery-modal.show { display: flex; }
.gallery-modal-content {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    overflow: hidden;
}
.gallery-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.gallery-modal-header h3 { font-size: 16px; margin: 0; }
.gallery-modal-body { padding: 16px; overflow-y: auto; max-height: calc(85vh - 60px); }
.gallery-detail-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.gallery-detail-desc {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}

/* ===== 我的页面 ===== */
.my-header {
    background: linear-gradient(135deg, var(--primary), #3B8FE5);
    color: white;
    padding: 32px 16px;
    text-align: center;
}
.my-header h2 { font-size: 20px; margin-bottom: 8px; }
.my-user-empty { padding: 24px 0; }
.my-user-empty p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; }
.my-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.my-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.my-info { flex: 1; }
.my-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.my-phone { font-size: 13px; color: var(--primary); margin-bottom: 2px; }
.my-login-time { font-size: 11px; color: var(--text-light); }
.my-section { padding: 16px; background: var(--white); margin-top: 10px; }
.my-section-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.my-consult-item {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 8px;
}
.my-consult-service { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.my-consult-time { font-size: 12px; color: var(--text-light); margin-bottom: 4px; }
.my-consult-status { font-size: 12px; color: var(--success); }

/* ===== 详情图片 ===== */
.detail-image { margin-bottom: 12px; }
.detail-image img { width: 100%; border-radius: var(--radius); }

/* ===== 政策详情页 ===== */
.policy-header {
    background: var(--primary);
    color: white;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
}
.policy-header h2 { font-size: 18px; margin: 0; }
.policy-header-date { font-size: 12px; opacity: 0.8; margin-top: 4px; }
.policy-detail-content { padding: 20px 16px 90px; }
.policy-summary-box {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}
.policy-full-content {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text);
}

/* ===== 响应式 ===== */
@media (max-width: 375px) {
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-list {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 我的资质样式 ===== */
.qual-item {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid var(--primary);
}
.qual-item.expiring {
    border-left-color: #FF4444;
}
.qual-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.qual-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.qual-del-btn {
    background: #FF4757;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}
.qual-item-row {
    font-size: 13px;
    padding: 4px 0;
}
.qual-add-form {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 12px;
}

/* ===== 资讯详情页样式 ===== */
.article-detail-container {
    padding: 16px 16px 90px;
}
.article-detail-body {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 16px;
}
.article-detail-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}
.article-detail-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}
.article-detail-summary {
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.article-detail-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}
.article-list-page {
    padding: 8px 0;
}

/* ===== 子项目列表样式 ===== */
.sub-item-card {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.sub-item-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s;
}
.sub-item-header:active {
    background: var(--primary-light);
}
.sub-item-header-icon {
    font-size: 22px;
    margin-right: 12px;
    flex-shrink: 0;
}
.sub-item-header-info {
    flex: 1;
    min-width: 0;
}
.sub-item-header-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sub-item-header-price {
    font-size: 13px;
    color: var(--accent);
    margin-top: 2px;
}
.sub-item-arrow {
    font-size: 18px;
    color: var(--text-light);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.sub-item-card.expanded .sub-item-arrow {
    transform: rotate(90deg);
}
.sub-item-body {
    display: none;
    padding: 0 16px 16px;
}
.sub-item-card.expanded .sub-item-body {
    display: block;
}
.sub-item-short {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}
.sub-item-detail-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    text-decoration: none;
}
.sub-item-detail-btn:active {
    opacity: 0.8;
}

/* ===== 子项目详情页样式 ===== */
.sub-detail-images {
    background: var(--text);
    min-height: 200px;
    max-height: 400px;
    overflow: hidden;
    position: relative;
}
.sub-detail-images img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}
.sub-detail-images .no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: rgba(255,255,255,0.3);
    min-height: 200px;
}
.sub-detail-body {
    padding: 16px;
    background: var(--bg);
}
.sub-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.sub-detail-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}
.sub-detail-price {
    background: var(--accent);
    color: white;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 16px;
}
.sub-detail-content-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 16px;
}
.sub-detail-content-box p {
    margin-bottom: 10px;
}
.sub-detail-content-box strong {
    color: var(--primary);
}

/* ===== 服务直接详情页兼容样式 ===== */
.detail-service-price-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== 资质记录公司名称样式 ===== */
.qual-item-company {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

/* ===== 头像编辑样式 ===== */
.edit-icon {
    font-size: 14px;
    opacity: 0.6;
}
.avatar-option:hover {
    transform: scale(1.2);
}

/* 滚动消息提醒 */
.notice-ticker {
    display: flex;
    align-items: center;
    margin: 12px 24px;
    padding: 6px 12px;
    background: linear-gradient(90deg, #fef3c7 0%, #fff 100%);
    border: 1px solid #fcd34d;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(252, 211, 77, 0.15);
}
.notice-icon {
    font-size: 16px;
    margin-right: 8px;
    flex-shrink: 0;
    animation: shake 2s infinite;
}
.notice-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 20px;
}
.notice-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-notice 25s linear infinite;
}
.notice-item {
    display: inline-flex;
    align-items: center;
    padding: 0 24px;
    color: #92400e;
    text-decoration: none;
    font-size: 13px;
}
.notice-item:hover { color: #b45309; text-decoration: underline; }
.notice-tag { margin-right: 6px; font-size: 14px; }
.notice-text { white-space: nowrap; }
@keyframes scroll-notice {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    20%, 60% { transform: rotate(-15deg); }
    40%, 80% { transform: rotate(15deg); }
}

/* 浮动电话球 */
.float-phone-ball {z-index: 9999;
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    align-items: center;
}
.phone-ball-pulse {
    position: absolute;
    right: 0;
    top: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.4);
    animation: phone-pulse 1.8s infinite;
    pointer-events: none;
}
.phone-ball-main {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    text-decoration: none;
    transition: transform 0.2s;
    z-index: 2;
}
.phone-ball-main:active {
    transform: scale(0.92);
}
.phone-ball-main:hover {
    transform: scale(1.08) rotate(8deg);
}
.phone-ball-icon { line-height: 1; }
.phone-ball-tip {
    position: absolute;
    right: 64px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 6px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}
.phone-ball-tip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #fff;
    filter: drop-shadow(1px 0 0 #fecaca);
}
.phone-ball-tip .tip-text {
    font-size: 11px;
    color: #999;
}
.phone-ball-tip .tip-num {
    font-size: 14px;
    color: #ef4444;
    font-weight: 700;
    margin-top: 2px;
}
/* 触屏/鼠标悬停显示提示 */
.float-phone-ball:hover .phone-ball-tip,
.float-phone-ball:active .phone-ball-tip {
    opacity: 1;
    transform: translateY(-50%) translateX(-4px);
    pointer-events: auto;
}
@keyframes phone-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

.service-card-desc-only { font-size: 12px; color: var(--text-light); line-height: 1.4; }





/* v41 2026-09-21 article-cover aspect-ratio 750/400 */