* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.site-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
}

.site-header .brand-logo {
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #1e3a5f;
}

.site-header .nav-links {
    display: flex;
    gap: 28px;
}

.site-header .nav-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
}

.site-header .nav-links a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.top-nav {
    background: #fff;
    border-bottom: 1px solid #e8ecf0;
}

.top-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.top-nav li {
    padding: 2px 0;
}

.top-nav li a {
    color: #555;
    text-decoration: none;
    padding: 6px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    font-size: 13px;
}

.top-nav li.active a,
.top-nav li a:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
}

.hero {
    padding: 25px 0;
    background: #fff;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 22px;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

.search-bar {
    margin-bottom: 18px;
}

.search-row {
    display: flex;
    gap: 12px;
    max-width: 800px;
    align-items: center;
}

.search-row input[type="text"] {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e8ecf0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-row input[type="text"]:focus {
    outline: none;
    border-color: #2d5a87;
}

.search-row select {
    padding: 12px 18px;
    border: 2px solid #e8ecf0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    min-width: 150px;
    cursor: pointer;
}

.search-row .btn {
    padding: 12px 30px;
    font-weight: 600;
}

.hot-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.tags-label {
    color: #888;
    font-size: 13px;
}

.tag {
    padding: 6px 14px;
    background: #e8f0fe;
    color: #2d5a87;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    border: 1px solid #c7dfff;
}

.tag:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    border-color: transparent;
}

.map-region-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: stretch;
}

.map-container {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.china-map-frame {
    position: relative;
    width: 100%;
    height: 560px;
}

.china-map-wrap {
    width: 100%;
    height: 100%;
}

.china-map-wrap .province-label {
    font-size: 12px;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    fill: #333;
    font-weight: 500;
    pointer-events: none;
    text-anchor: middle;
    dominant-baseline: middle;
}

.china-map-wrap svg {
    width: 100%;
    height: 100%;
    display: block;
}

.china-map-wrap path {
    cursor: pointer;
    transition: all 0.2s ease;
    stroke: #fff;
    stroke-width: 0.5;
}

.china-map-wrap path:hover,
.china-map-wrap path.is-active {
    opacity: 0.75;
    transform: scale(1.01);
}

.region-list {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.region-item {
    margin-bottom: 16px;
}

.region-item:last-child {
    margin-bottom: 0;
}

.region-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    margin-bottom: 10px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e8f0fe 0%, #d7e3fc 100%);
    border-radius: 6px;
}

.region-provinces {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.province-link {
    padding: 5px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: all 0.2s;
}

.province-link:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    border-color: transparent;
}

.companies-section {
    padding: 10px 0 30px;
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    color: #2d3748;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(45, 90, 135, 0.3);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 135, 0.4);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.company-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.company-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #c7dfff;
}

.company-card h3 {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 12px;
    font-weight: 600;
}

.company-card h3 a {
    color: #2d3748;
    text-decoration: none;
}

.company-card h3 a:hover {
    color: #2d5a87;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #666;
}

.company-info div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.company-info .icon {
    color: #999;
}

.company-info a {
    color: #2d5a87;
    text-decoration: none;
}

.company-info a:hover {
    text-decoration: underline;
}

.company-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.company-tag {
    padding: 3px 10px;
    background: #e8f0fe;
    color: #2d5a87;
    border-radius: 4px;
    font-size: 12px;
}

.table-wrap {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 25px;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table-wrap th,
.table-wrap td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
}

.table-wrap th:last-child,
.table-wrap td:last-child {
    text-align: right;
}

.table-wrap th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
}

.table-wrap tbody tr {
    transition: background-color 0.2s;
}

.table-wrap tbody tr:hover {
    background: #f8fafc;
}

.table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.table-wrap a {
    color: #2d5a87;
    text-decoration: none;
}

.table-wrap a:hover {
    text-decoration: underline;
}

.table-wrap .empty {
    text-align: center;
    color: #999;
    padding: 40px;
}

.province-section {
    margin-bottom: 30px;
}

.province-section h2 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 16px;
    font-weight: 600;
    padding-left: 12px;
    border-left: 4px solid #2d5a87;
}

.site-footer {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    padding: 30px 0;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
}

.footer-html {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

.company-detail {
    padding: 0;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 30px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
    color: #fff;
    border-radius: 12px 12px 0 0;
}

.header-left h1 {
    font-size: 26px;
    margin-bottom: 12px;
}

.company-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    display: flex;
    gap: 3px;
}

.star {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.3);
}

.star.filled {
    color: #ffd700;
}

.rating-value {
    font-size: 20px;
    font-weight: 600;
}

.review-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
    padding: 25px;
    background: #fff;
    border-radius: 0 0 12px 12px;
    margin-top: -1px;
    border: 1px solid #e8ecf0;
}

.detail-main {
    background: #fff;
}

.info-section h2,
.services-section h2,
.description-section h2 {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid #2d5a87;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
}

.info-item.full {
    grid-column: 1 / -1;
}

.info-item .label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
    font-weight: 500;
}

.info-item .value {
    font-size: 14px;
    color: #333;
}

.info-item .value a {
    color: #2d5a87;
    text-decoration: none;
}

.services-section {
    margin: 25px 0;
}

.services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-tag {
    padding: 7px 16px;
    background: #e8f0fe;
    color: #2d5a87;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #c7dfff;
}

.description-section {
    margin-top: 25px;
}

.description-content {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card,
.related-section {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.contact-card h3,
.related-section h3 {
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f5;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.contact-item:last-child {
    margin-bottom: 18px;
}

.contact-item .icon {
    font-size: 20px;
}

.contact-item .text {
    font-size: 14px;
    color: #333;
}

.contact-item .text a {
    color: #2d5a87;
    text-decoration: none;
}

.btn.primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
}

.btn.secondary {
    background: #f0f2f5;
    color: #666;
    box-shadow: none;
}

.btn.secondary:hover {
    background: #e8ecf0;
}

.btn.block {
    width: 100%;
}

.related-list {
    list-style: none;
}

.related-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f2f5;
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.related-list .name {
    color: #333;
    font-size: 14px;
}

.related-list .province {
    color: #999;
    font-size: 12px;
}

.related-list li:hover .name {
    color: #2d5a87;
}

.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8ecf0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.form-card {
    padding: 25px;
}

.form-card h1 {
    font-size: 20px;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #4a5568;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e8ecf0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d5a87;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-actions {
    margin-top: 25px;
    display: flex;
    gap: 12px;
}

.group-section {
    margin-bottom: 35px;
}

.group-title {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 8px;
    font-weight: 600;
    padding-left: 12px;
    border-left: 4px solid #2d5a87;
}

.group-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    padding-left: 12px;
}

@media (max-width: 992px) {
    .map-region-grid {
        grid-template-columns: 1fr;
    }

    .top-nav ul {
        gap: 4px;
    }

    .top-nav li a {
        padding: 5px 12px;
        font-size: 12px;
    }

    .search-row {
        flex-direction: column;
    }

    .search-row input[type="text"],
    .search-row select {
        width: 100%;
    }

    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .detail-content {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .site-header .nav-links {
        gap: 16px;
    }

    .site-header .brand {
        font-size: 18px;
    }

    .companies-grid {
        grid-template-columns: 1fr;
    }

    .china-map-frame {
        height: 400px;
    }
}