/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --secondary: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
}

/* 文本居中 */
.text-center {
    text-align: center;
    color: #000;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 */
.header {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Banner */
.banner {
    padding: 80px 0;
    min-height: 320px;
    display: flex;
    align-items: center;
}

.banner-content {
    text-align: center;
    width: 100%;
}

.banner h1 {
    font-size: 48px;
    color: #333;
    margin-bottom: 16px;
}

.banner p {
    font-size: 18px;
    color: #666;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--text-dark);
    font-size: 16px;
}

.nav a:hover {
    color: var(--primary);
    text-decoration: none;
}

.header-phone {
    color: var(--text-secondary);
}

.header-search {
    display: flex;
    gap: 0;
    margin: 0 20px;
}

.header-search input {
    padding: 8px 14px;
    border: 2px solid var(--primary);
    border-right: none;
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    outline: none;
    width: 220px;
}

.header-search button {
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    border-left: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    font-size: 14px;
}

.header-search button:hover {
    background: #1d4ed8;
}

/* 面包屑 */
.breadcrumb {
    background: #fff;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
}

.breadcrumb a {
    color: var(--text-light);
}

/* 主内容 */
.main {
    min-height: calc(100vh - 200px);
    padding: 30px 0;
}

/* 区块 */
.section {
    padding: 40px 0;
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-title {
    font-size: 24px;
    color: var(--text-dark);
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

.more {
    color: var(--text-light);
    font-size: 14px;
}

/* 分类网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.category-item {
    background: #fff;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.category-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.category-name {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.category-count {
    font-size: 12px;
    color: var(--text-light);
}

/* 商户网格 */
.merchant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.merchant-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.merchant-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-decoration: none;
}

.merchant-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.merchant-name {
    font-size: 18px;
    color: var(--text-dark);
}

.verified-badge {
    background: var(--success);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.merchant-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.merchant-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.5;
}

.merchant-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.service-tag {
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.service-tag-blue { background: #3b82f6; }
.service-tag-green { background: #10b981; }
.service-tag-orange { background: #f59e0b; }
.service-tag-red { background: #ef4444; }
.service-tag-purple { background: #8b5cf6; }
.service-tag-pink { background: #ec4899; }

/* 商户列表样式 */
.ml-card {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    height: 180px;
}

.ml-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-decoration: none;
}

.ml-logo-wrap {
    flex-shrink: 0;
}

.ml-logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.ml-logo-default {
    width: 80px;
    height: 80px;
    background: #e0e7ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    border-radius: 8px;
}

.ml-info {
    flex: 1;
    min-width: 0;
}

.ml-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ml-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.ml-verified {
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.ml-service-count {
    font-size: 14px;
    color: #6b7280;
    margin-left: auto;
}

.ml-service-count .ml-service-count-num {
    color: #3b82f6;
}

.ml-district {
    font-size: 13px;
    color: #6b7280;
}

.ml-contact {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.ml-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag {
    background: #f1f5f9;
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* 资讯网格 */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.news-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: block;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.merchant-news .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.15);
}

.news-excerpt {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-date {
    font-size: 13px;
    color: #9ca3af;
}

.news-thumb {
    width: 100%;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    text-align: left;
}

.news-date {
    font-size: 12px;
    color: var(--text-light);
    text-align: left;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.news-link {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    text-align: right;
    display: inline-block;
}

.news-link:hover {
    color: var(--primary-dark, #5a67d8);
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
}

/* FAQ列表 */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.faq-question {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 15px;
}

.faq-answer {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 服务案例列表 */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.case-item {
    display: flex;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
}

.case-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.case-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 20px 15px;
    background: linear-gradient(135deg, var(--primary), #1d4ed8);
    color: #fff;
}

.case-date .d {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
}

.case-date .m {
    font-size: 12px;
    margin-top: 4px;
}

.case-info {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 8px;
}

.case-info .desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.case-info .case-location {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

/* 服务案例列表页 */
.merchant-cases {
    padding: 20px 0;
}

.merchant-cases .container {
    max-width: 1280px;
}

/* 公司动态列表页 */
.merchant-news {
    padding: 20px 0;
}

.merchant-news .container {
    max-width: 1280px;
}

/* 商户详情页公司动态 - 一排两条 */
.merchant-detail .news-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* 商家动态列表页 - 一排一条 */
.merchant-news .news-grid {
    grid-template-columns: 1fr;
}

.case-link {
    display: inline-block;
    padding: 0 20px;
    line-height: 32px;
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.case-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 商户详情页 */
.merchant-detail {
    padding: 30px 0;
}

.merchant-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.merchant-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.merchant-title h1 {
    font-size: 28px;
}

.score {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
}

.merchant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
}

.merchant-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 16px;
}

.merchant-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.info-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.info-card p {
    line-height: 1.8;
    color: var(--text-secondary);
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.area-tag {
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

/* 服务项目 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.service-item {
    background: #fff;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
}

.service-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(102,126,234,0.15);
}

.service-img {
    flex-shrink: 0;
}

.service-img img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.service-content {
    flex: 1;
    min-width: 0;
}

.service-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.service-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.service-price {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

/* 侧边栏 */
.sidebar-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* 联系表单 */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-form textarea {
    height: 80px;
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #1d4ed8;
}

.phone-btn {
    display: block;
    text-align: center;
    padding: 15px;
    background: var(--success);
    color: #fff;
    border-radius: 8px;
    font-size: 18px;
    margin-top: 10px;
}

/* 底部 */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: #fff;
    margin-bottom: 15px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #94a3b8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #334155;
    font-size: 14px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 分类筛选栏 - 横向 */
.category-filter-bar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-label {
    color: var(--primary);
    font-size: 14px;
    flex-shrink: 0;
}

.filter-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-cat {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f6fa;
    color: var(--primary);
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.filter-cat:hover {
    background: #e5e7eb;
    color: #333;
    text-decoration: none;
}

.filter-cat.active {
    background: var(--primary);
    color: #fff;
}

.category-content {
    flex: 1;
    min-width: 0;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.content-header h2 {
    font-size: 20px;
    color: #333;
}

.result-count {
    color: #999;
    font-size: 14px;
}

/* 商家列表项 - 新布局 */
.merchant-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 15px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
    gap: 20px;
}

.merchant-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-decoration: none;
}

.merchant-logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f6fa;
}

.merchant-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merchant-info {
    display: block;
    flex: 1;
    min-width: 0;
}

.merchant-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #333;
}

.merchant-info h3 .verified {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
    font-weight: normal;
    vertical-align: middle;
}

.merchant-address {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 10px;
}

.merchant-desc {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 响应式 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 15px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .category-layout {
        flex-direction: column;
    }

    .category-sidebar {
        width: 100%;
    }

    .merchant-logo {
        width: 80px;
        height: 80px;
    }
}

/* ===================== 注册页面 ===================== */
.register-page {
    padding: 40px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f0fe 100%);
    min-height: calc(100vh - 200px);
}

.register-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.register-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.register-title {
    flex-shrink: 0;
}

.register-form-container .page-title {
    font-size: 24px;
    color: #1e293b;
    margin-bottom: 6px;
    font-weight: 600;
}

.register-form-container .page-desc {
    color: #64748b;
    font-size: 14px;
}

/* 步骤指示器 */
.steps-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.steps-indicator::before {
    display: none;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
    background: #fff;
    padding: 0 30px;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #e2e8f0;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.step-label {
    font-size: 13px;
    color: #94a3b8;
    transition: all 0.3s;
    white-space: nowrap;
}

.step.active .step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-num {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

/* 步骤表单 */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 0;
}

.form-group:last-child {
    margin-bottom: 0;
}

.register-form label {
    display: block;
    font-size: 14px;
    color: #334155;
    margin-bottom: 10px;
    font-weight: 500;
}

.register-form label .required {
    color: #ef4444;
    margin-left: 3px;
}

.register-form input,
.register-form select,
.register-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s;
    background: #fff;
    line-height: 1.5;
}

.register-form input.input-error,
.register-form select.input-error,
.register-form textarea.input-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.error-msg {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.register-form input::placeholder,
.register-form textarea::placeholder {
    color: #999;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.register-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

.register-form textarea {
    resize: vertical;
    min-height: 120px;
}

.location-selects {
    display: flex;
    gap: 10px;
}

.location-selects select {
    flex: 1;
    width: 100%;
}

.category-select-area {
    margin-bottom: 20px;
}

.category-tip {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f5f6fa;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
    user-select: none;
}

.category-item:hover {
    background: #e8edf5;
}

.category-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary);
}

.category-item:has(input:checked) {
    background: #dbeafe;
    color: var(--primary);
}

/* 密码强度 */
.password-strength {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.strength-label {
    font-size: 13px;
    color: #64748b;
    flex-shrink: 0;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.strength-level {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: all 0.4s ease;
}

.strength-text {
    font-size: 13px;
    color: #94a3b8;
    width: 45px;
    flex-shrink: 0;
    text-align: right;
}

.password-match {
    font-size: 13px;
    margin-top: 10px;
    font-weight: 500;
}

/* 表单操作按钮 */
.form-actions {
    margin-top: 35px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-next,
.btn-prev {
    padding: 14px 45px;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-next {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-next:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.btn-prev {
    background: #f1f5f9;
    color: #64748b;
}

.btn-prev:hover {
    background: #e2e8f0;
    color: #334155;
}

/* 成功页面 */
.success-message {
    text-align: center;
    padding: 50px 20px;
}

.success-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #22c55e;
    font-size: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.success-message h2 {
    font-size: 26px;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message p {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.btn-home {
    display: inline-block;
    padding: 14px 45px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-home:hover {
    background: #1d4ed8;
    text-decoration: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

@media (max-width: 600px) {
    .register-page {
        padding: 20px 0;
    }

    .register-form-container {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .steps-indicator {
        margin-bottom: 30px;
    }

    .steps-indicator::before {
        width: 200px;
    }

    .step {
        padding: 0 12px;
    }

    .step-num {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .step-label {
        font-size: 11px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .form-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-next, .btn-prev, .btn-home {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        text-align: center;
    }
}

/* ===================== 搜索结果页 ===================== */
.search-page {
    padding: 30px 0;
}

.search-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.search-result-header h1 {
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.search-keyword {
    color: var(--primary);
}

.result-count {
    color: #999;
    font-size: 14px;
}

.search-page .merchant-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-page .merchant-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

.search-page .merchant-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-decoration: none;
    transform: translateY(-2px);
}

.search-page .merchant-logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f6fa;
}

.search-page .merchant-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-page .merchant-info {
    flex: 1;
    min-width: 0;
}

.search-page .merchant-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-page .verified {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: normal;
}

.search-page .merchant-address {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 8px;
}

.search-page .merchant-desc {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-page .no-data {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
}

.search-page .no-data-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.search-page .no-data h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.search-page .no-data p {
    color: #999;
    margin-bottom: 20px;
}

.search-page .btn-link {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}

.search-page .btn-link:hover {
    background: #1d4ed8;
    text-decoration: none;
    color: #fff;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.header-links span {
    color: #ccc;
}

.header-links a {
    color: var(--primary);
}

.header-links a:hover {
    color: var(--primary);
    text-decoration: none;
}

/* 分类标签页 */
.cat-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.cat-tab {
    padding: 8px 20px;
    background: #f0f2f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: all 0.2s;
}

.cat-tab:hover {
    background: #e8f4fd;
    color: #1a73e8;
}

.cat-tab.active {
    background: #1a73e8;
    color: #fff;
}

.cat-group {
    display: none;
}

.cat-group.active {
    display: block;
}

.cat-item {
    margin-bottom: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cat-item:last-child {
    border-bottom: none;
}

.cat-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.cat-item-row {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cat-grandchildren {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.cat-grandchildren a {
    display: inline-block;
    padding: 4px 10px;
    background: #e8f4fd;
    border-radius: 4px;
    font-size: 13px;
    color: #1a73e8;
    text-decoration: none;
}

.cat-grandchildren a:hover {
    background: #1a73e8;
    color: #fff;
}
