/* ========== 重置与基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #F5F7FA;
    color: #333;
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; font-size: inherit; border: none; outline: none; }
button { cursor: pointer; background: none; }

/* ========== 变量 ========== */
:root {
    --primary: #0D47A1;
    --primary-light: #1976D2;
    --primary-lighter: #42A5F5;
    --bg: #F5F7FA;
    --white: #FFFFFF;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --border: #E8EAEC;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(13, 71, 161, 0.08);
    --gradient: linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #42A5F5 100%);
}

/* ========== 顶部导航栏 ========== */
.nav-bar {
    background: var(--gradient);
    color: #fff;
    padding: 50px 16px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(13, 71, 161, 0.25);
}
.nav-bar .nav-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}
.nav-bar .nav-back {
    position: absolute;
    left: 16px;
    top: 50px;
    color: #fff;
    font-size: 22px;
    line-height: 22px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========== 轮播图 ========== */
.banner {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 20px 20px;
    background: var(--gradient);
}
.banner-slides {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-slide {
    min-width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.banner-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0.9;
}
.banner-slide-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 20px;
}
.banner-slide-content h2 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.banner-slide-content p {
    font-size: 14px;
    opacity: 0.9;
}
.banner-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
}
.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
}
.banner-dot.active {
    width: 18px;
    background: #fff;
}

/* ========== 快捷入口 ========== */
.quick-entry {
    display: flex;
    justify-content: space-around;
    padding: 20px 12px;
    background: #fff;
    margin: 12px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}
.quick-item:active { transform: scale(0.95); }
.quick-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
.quick-item span {
    font-size: 12px;
    color: var(--text);
    font-weight: 600;
}

/* ========== 标题区域 ========== */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin: 20px 0 12px;
}
.section-title h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--gradient);
    border-radius: 2px;
}
.section-title .more {
    font-size: 13px;
    color: var(--text-lighter);
}

/* ========== 业务分类卡片 ========== */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 12px;
}
.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.category-card:active { transform: scale(0.97); }
.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0.6;
}
.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}
.category-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.category-card p {
    font-size: 12px;
    color: var(--text-lighter);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 公司简介 ========== */
.company-intro {
    margin: 16px 12px;
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.company-intro h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary);
}
.company-intro p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 8px;
}
.service-area {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.area-tag {
    padding: 4px 12px;
    background: #E3F2FD;
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ========== 服务优势 ========== */
.advantage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 12px;
    margin-bottom: 20px;
}
.advantage-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--gradient);
    opacity: 0.05;
}
.advantage-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}
.advantage-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.advantage-card p {
    font-size: 12px;
    color: var(--text-lighter);
}

/* ========== 底部导航 ========== */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    z-index: 99;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
}
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.tab-icon {
    font-size: 22px;
    line-height: 1;
}
.tab-label {
    font-size: 11px;
    color: var(--text-lighter);
    font-weight: 600;
}
.tab-item.active .tab-icon,
.tab-item.active .tab-label {
    color: var(--primary-light);
}

/* ========== 页面内容区 ========== */
.page-content {
    padding-bottom: 70px;
    min-height: calc(100vh - 80px);
}

/* ========== 表单 ========== */
.form-card {
    background: #fff;
    margin: 12px;
    border-radius: var(--radius);
    padding: 20px 16px;
    box-shadow: var(--shadow);
}
.form-group {
    margin-bottom: 18px;
}
.form-group:last-child { margin-bottom: 0; }
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.form-label .required {
    color: #f56c6c;
    margin-left: 2px;
}
.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 14px;
    background: #F5F7FA;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    border: 1.5px solid transparent;
    transition: border-color 0.2s;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary-lighter);
    background: #fff;
}
.form-textarea {
    min-height: 100px;
    resize: vertical;
}
.form-row {
    display: flex;
    gap: 10px;
}
.form-row .form-group { flex: 1; }
.form-hint {
    font-size: 12px;
    color: var(--text-lighter);
    margin-top: 6px;
}

/* 多选标签 */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.checkbox-tag {
    padding: 8px 16px;
    background: #F5F7FA;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
    border: 1.5px solid transparent;
    user-select: none;
}
.checkbox-tag.active {
    background: #E3F2FD;
    color: var(--primary);
    border-color: var(--primary-lighter);
    font-weight: 600;
}

/* 图片上传 */
.upload-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.upload-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #F5F7FA;
}
.upload-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
}
.upload-add {
    aspect-ratio: 1;
    border: 2px dashed #C5CAD1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #C5CAD1;
    cursor: pointer;
    background: #FAFBFC;
    transition: all 0.2s;
}
.upload-add:active {
    border-color: var(--primary-lighter);
    color: var(--primary-lighter);
}

/* 提交按钮 */
.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--gradient);
    color: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    box-shadow: 0 4px 16px rgba(13, 71, 161, 0.3);
    transition: all 0.2s;
}
.btn-primary:active { transform: scale(0.98); opacity: 0.9; }
.btn-secondary {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: var(--primary);
    border: 1.5px solid var(--primary-lighter);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-secondary:active { background: #E3F2FD; }

/* ========== 品类详情 ========== */
.detail-card {
    background: #fff;
    margin: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.detail-header {
    background: var(--gradient);
    padding: 24px 20px;
    color: #fff;
}
.detail-header h2 {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 6px;
}
.detail-header p {
    font-size: 13px;
    opacity: 0.9;
}
.detail-body {
    padding: 20px;
}
.detail-section {
    margin-bottom: 20px;
}
.detail-section:last-child { margin-bottom: 0; }
.detail-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-section h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--gradient);
    border-radius: 2px;
}
.example-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.example-tag {
    padding: 6px 14px;
    background: #F5F7FA;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-light);
}

/* ========== 案例展示 ========== */
.case-card {
    background: #fff;
    margin: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.case-card:active { transform: scale(0.98); }
.case-image {
    width: 100%;
    height: 180px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    position: relative;
}
.case-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.case-info {
    padding: 14px 16px;
}
.case-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.case-info .case-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-lighter);
    margin-bottom: 6px;
}
.case-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 资讯列表 ========== */
.news-card {
    background: #fff;
    margin: 12px;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
    transition: transform 0.2s;
}
.news-card:active { transform: scale(0.98); }
.news-thumb {
    width: 100px;
    height: 75px;
    border-radius: 10px;
    background: var(--gradient);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.news-content { flex: 1; min-width: 0; }
.news-content h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-content p {
    font-size: 12px;
    color: var(--text-lighter);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-lighter);
    margin-top: 6px;
}
.news-tag {
    padding: 2px 8px;
    background: #E3F2FD;
    color: var(--primary);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* ========== 资讯详情 ========== */
.article {
    background: #fff;
    margin: 12px;
    border-radius: var(--radius);
    padding: 24px 20px;
    box-shadow: var(--shadow);
}
.article h1 {
    font-size: 22px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 12px;
}
.article-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-lighter);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.article-content {
    font-size: 15px;
    color: var(--text-light);
    line-height: 2;
    white-space: pre-wrap;
}

/* ========== 我的页面 ========== */
.profile-header {
    background: var(--gradient);
    padding: 50px 20px 30px;
    text-align: center;
    color: #fff;
    border-radius: 0 0 20px 20px;
}
.profile-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.3);
}
.profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.profile-sub {
    font-size: 13px;
    opacity: 0.9;
}
.profile-menu {
    margin: 16px 12px;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #F5F7FA; }
.menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #E3F2FD;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary);
    margin-right: 14px;
}
.menu-text {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.menu-arrow {
    color: var(--text-lighter);
    font-size: 18px;
}
.menu-badge {
    background: #f56c6c;
    color: #fff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    margin-right: 8px;
}

/* ========== 预约记录 ========== */
.order-card {
    background: #fff;
    margin: 12px;
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.order-no {
    font-size: 13px;
    color: var(--text-lighter);
    font-weight: 600;
}
.order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.order-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}
.order-info-item {
    display: flex;
    gap: 6px;
}
.order-info-item .label {
    color: var(--text-lighter);
    flex-shrink: 0;
}
.order-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.order-time {
    font-size: 12px;
    color: var(--text-lighter);
}

/* ========== 商城 ========== */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 12px;
}
.product-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.product-card:active { transform: scale(0.97); }
.product-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}
.product-info {
    padding: 12px;
}
.product-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.product-tag {
    padding: 2px 6px;
    background: #F5F7FA;
    border-radius: 4px;
    font-size: 10px;
    color: var(--text-lighter);
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.product-price .now {
    font-size: 18px;
    font-weight: 900;
    color: #f56c6c;
}
.product-price .old {
    font-size: 12px;
    color: var(--text-lighter);
    text-decoration: line-through;
}

/* ========== 弹窗 ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
    background: #fff;
    border-radius: 16px;
    width: 85%;
    max-width: 400px;
    padding: 28px 24px;
    text-align: center;
}
.modal h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}
.modal p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.modal-btn {
    width: 100%;
    padding: 12px;
    background: var(--gradient);
    color: #fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 2000;
    display: none;
    white-space: nowrap;
}
.toast.show { display: block; }

/* ========== 客服悬浮按钮 ========== */
.float-contact {
    position: fixed;
    right: 16px;
    bottom: 90px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(13, 71, 161, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
    border: none;
}
.float-btn:active { transform: scale(0.9); }

/* ========== 空状态 ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-lighter);
}
.empty-state .empty-icon {
    font-size: 60px;
    margin-bottom: 16px;
}
.empty-state p {
    font-size: 14px;
}

/* ========== 响应式 ========== */
@media (min-width: 750px) {
    body { border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}
