/* ===== 企业年报认证系统 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* App容器 */
.app {
    max-width: 750px;
    margin: 0 auto;
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 60px;
}

/* ===== 轮播图 ===== */
.banner-slider {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #fff;
}
.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}
.swiper-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.swiper-slide.active {
    opacity: 1;
}
.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}
.swiper-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
    cursor: pointer;
}
.swiper-dots .dot.active {
    width: 20px;
    border-radius: 4px;
    background: #fff;
}

/* ===== 服务提示 ===== */
.service-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 13px;
    gap: 6px;
}
.service-tips .icon { font-size: 16px; }

/* ===== 搜索区域 ===== */
.search-box {
    padding: 16px;
    background: #fff;
}
.search-input-wrap {
    display: flex;
    gap: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #f8f8f8;
}
.search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 15px;
    outline: none;
}
.search-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
}
.search-tips {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    color: #999;
    align-items: center;
    flex-wrap: wrap;
}
.search-tips .tag {
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    color: #666;
    cursor: pointer;
}

/* ===== 统计信息 ===== */
.stat-info {
    display: flex;
    padding: 20px 16px;
    background: #fff;
    margin-top: 10px;
}
.stat-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid #f0f0f0;
}
.stat-item:last-child { border-right: none; }
.stat-item .num {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}
.stat-item .label {
    font-size: 12px;
    color: #999;
}

/* ===== 区块标题 ===== */
.section-title {
    font-size: 16px;
    font-weight: 600;
    padding: 16px 16px 12px;
    position: relative;
    padding-left: 24px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 18px;
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* ===== 服务流程 ===== */
.flow-section {
    background: #fff;
    margin-top: 10px;
}
.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px 20px;
    gap: 0;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}
.step-text {
    font-size: 12px;
    color: #666;
}
.step-arrow {
    color: #ccc;
    font-size: 20px;
    padding: 0 20px;
    margin-bottom: 24px;
}

/* ===== 公告 ===== */
.notice-section {
    background: #fff;
    margin-top: 10px;
}
.notice-list {
    padding: 0 16px 16px;
}
.notice-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.notice-item:last-child { border-bottom: none; }
.notice-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}
.notice-content {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.notice-time {
    font-size: 12px;
    color: #bbb;
    margin-top: 6px;
}

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    display: flex;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    z-index: 100;
}
.bottom-nav .nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 0 8px;
    font-size: 11px;
    color: #999;
}
.bottom-nav .nav-item.active {
    color: #667eea;
}
.bottom-nav .nav-icon-img {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}
.bottom-nav .nav-text {
    font-size: 11px;
}

/* ===== 投诉举报 ===== */
.complaint-section {
    padding: 16px;
    background: #fff;
    margin-top: 10px;
}
.complaint-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border-radius: 10px;
}
.complaint-text {
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}
.complaint-btn {
    padding: 8px 20px;
    background: #fff;
    color: #ee5a24;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

/* ===== 头部栏 ===== */
.header-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    z-index: 100;
}
.header-bar .back-btn {
    font-size: 14px;
    color: #667eea;
    cursor: pointer;
    min-width: 50px;
}
.header-bar h3 {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

/* ===== 搜索结果 ===== */
.search-results {
    padding: 0 16px;
}
.result-count {
    padding: 12px 0;
    font-size: 13px;
    color: #999;
}
.company-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.company-item {
    display: block;
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.company-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}
.company-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 13px;
}
.company-info .info-row .label {
    color: #999;
}
.company-info .info-row .value {
    color: #333;
    text-align: right;
    max-width: 60%;
}
.company-info .info-row .credit-code {
    font-size: 12px;
    word-break: break-all;
}
.company-action {
    margin-top: 10px;
    text-align: right;
}
.btn-auth {
    display: inline-block;
    padding: 6px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 16px;
    font-size: 13px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    gap: 12px;
}
.page-btn {
    padding: 6px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #666;
}
.page-info {
    font-size: 13px;
    color: #999;
}

/* ===== 企业详情页 ===== */
.page-content {
    padding: 60px 16px 20px;
}
.company-card {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.company-detail .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px dashed #f5f5f5;
}
.company-detail .detail-row:last-child { border-bottom: none; }
.company-detail .detail-row .label {
    color: #999;
    min-width: 80px;
}
.company-detail .detail-row .value {
    color: #333;
    text-align: right;
    flex: 1;
}
.company-detail .detail-row .status-ok {
    color: #52c41a;
}

/* ===== 服务列表 ===== */
.service-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.service-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
}
.service-item.selected {
    border-color: #667eea;
    background: #f8f7ff;
}
.service-item input[type="radio"] {
    display: none;
}
.service-content {
    flex: 1;
}
.service-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.service-info {
    flex: 1;
}
.service-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.recommend-tag {
    display: inline-block;
    padding: 1px 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 11px;
    border-radius: 8px;
    margin-left: 6px;
    vertical-align: middle;
}
.service-price {
    text-align: right;
    margin-left: 10px;
}
.service-price .price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #e4393c;
}
.service-price .original-price {
    display: block;
    font-size: 12px;
    color: #bbb;
    text-decoration: line-through;
}
.service-desc {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}
.service-check {
    margin-left: 10px;
}
.check-circle {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    transition: all 0.2s;
}
.service-item.selected .check-circle {
    background: #667eea;
    border-color: #667eea;
    position: relative;
}
.service-item.selected .check-circle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 8px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* ===== 服务长图 ===== */
.service-image-section {
    margin-top: 16px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    display: none;
}
.service-image-section img {
    width: 100%;
}

/* ===== 表单 ===== */
.form-section {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}
.form-group {
    margin-bottom: 12px;
}
.form-group:last-child { margin-bottom: 0; }
.form-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}
.form-input, .form-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa;
}
.form-input:focus, .form-textarea:focus {
    border-color: #667eea;
    background: #fff;
}
.form-textarea {
    resize: vertical;
    min-height: 60px;
}

/* ===== 提交栏 ===== */
.submit-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #f0f0f0;
    z-index: 100;
}
.total-price {
    font-size: 14px;
}
.total-price .price-amount {
    font-size: 20px;
    color: #e4393c;
}
.submit-btn {
    padding: 12px 32px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 15px;
    cursor: pointer;
}
.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== 订单页 ===== */
.order-tabs {
    position: fixed;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    display: flex;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    z-index: 99;
}
.order-tabs .tab-item {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 14px;
    color: #999;
    position: relative;
}
.order-tabs .tab-item.active {
    color: #667eea;
    font-weight: 600;
}
.order-tabs .tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #667eea;
    border-radius: 2px;
}
.order-list {
    padding: 100px 16px 20px;
}
.order-item {
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.order-no {
    font-size: 12px;
    color: #999;
}
.order-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 8px;
}
.status-pending { background: #fff7e6; color: #fa8c16; }
.status-processing { background: #e6f7ff; color: #1890ff; }
.status-done { background: #f6ffed; color: #52c41a; }
.status-refunded { background: #fff1f0; color: #ff4d4f; }
.status-refunding { background: #fff7e6; color: #fa8c16; }
.order-body {
    padding: 10px 0;
}
.order-company {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.order-service, .order-time {
    font-size: 12px;
    color: #999;
    margin-bottom: 2px;
}
.order-amount {
    font-size: 13px;
    margin-top: 4px;
}
.order-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.btn-pay {
    padding: 6px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
}
.btn-cancel {
    padding: 6px 20px;
    background: #fff;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.empty-state p {
    font-size: 14px;
    margin-bottom: 12px;
}
.btn-link {
    display: inline-block;
    padding: 8px 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
}
