body{
    background-color: #f8faf9;
}
.postcode-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.postcode-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    background-color: #f8faf9;
    color: #2d3436;
    line-height: 1.6;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.02);
}

/* 面包屑导航 */
.postcode-breadcrumb {
    font-size: 14px;
    color: #636e72;
    margin-bottom: 18px;
}
.postcode-breadcrumb a {
    color: #1a9f6b;
    text-decoration: none;
    transition: color 0.2s;
}
.postcode-breadcrumb a:hover {
    color: #157d56;
    text-decoration: underline;
}
.postcode-breadcrumb span {
    color: #636e72;
    margin: 0 6px;
}

/* 页面标题 */
.postcode-page-title {
    font-size: 34px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 12px;
}
.postcode-page-desc {
    font-size: 16px;
    color: #636e72;
    margin-bottom: 36px;
}

/* 搜索框区域 */
.postcode-search-box {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}
.postcode-search-box form {
    display: flex;
    justify-content: center;
    width: 688px;
    height: 50px;
    gap: 8px;
}
.postcode-search-input {
    width: 100%;
    max-width: 560px;
    padding: 14px 20px;
    border: 1px solid #dfe6e3;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fff;
}
.postcode-search-input:focus {
    border-color: #1a9f6b;
    box-shadow: 0 0 0 3px rgba(26, 159, 107, 0.1);
}
.postcode-search-btn {
    padding: 14px 32px;
    background-color: #1a9f6b;
    color: #fff;
    border: none;
        width: 120px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
.postcode-search-btn:hover {
    background-color: #157d56;
}
.postcode-search-btn:active {
    transform: scale(0.98);
}

/* 区域标题 */
.postcode-section-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3436;
    margin-bottom: 16px;
}
.postcode-section-sub {
    font-size: 14px;
    color: #636e72;
    margin-bottom: 24px;
}

/* 网格布局 - 省份/区县卡片 */
.postcode-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 48px;
}
.postcode-card {
    padding: 18px;
    border: 1px solid #e8f0ec;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.postcode-card:hover {
    box-shadow: 0 6px 16px rgba(26, 159, 107, 0.12);
    transform: translateY(-3px);
    border-color: #1a9f6b;
}
.postcode-card-name {
    font-size: 15px;
    font-weight: 500;
    color: #2d3436;
}
.postcode-card-code {
    font-size: 13px;
    color: #869093;
}

/* 区县卡片特殊样式 */
.postcode-district-card {
    flex-direction: column;
    align-items: center;
    padding: 22px;
    gap: 8px;
}
.postcode-district-card .postcode-card-name {
    margin-bottom: 4px;
}
.postcode-district-card .postcode-card-code {
    color: #1a9f6b;
    font-weight: 600;
    font-size: 14px;
}

/* 搜索结果区域 */
.postcode-search-result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a9f6b;
}
.postcode-search-result-title {
    font-size: 22px;
    font-weight: 600;
    color: #2d3436;
}
.postcode-search-result-count {
    font-size: 14px;
    color: #636e72;
    margin-right: 12px;
}
.postcode-clear-search {
    font-size: 14px;
    color: #1a9f6b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.postcode-clear-search:hover {
    color: #157d56;
    text-decoration: underline;
}

/* 热门查询 */
.postcode-hot-search {
    margin-top: 48px;
}
.postcode-hot-search .postcode-section-title {
    font-size: 20px;
}
/* 卡片辅助信息：区号 */
.postcode-card-code-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.postcode-card-area-code {
    font-size: 12px;
    color: #869093;
}
/* 区县卡片的区号样式 */
.postcode-district-card .postcode-card-code-group {
    align-items: center;
}
.postcode-district-card .postcode-card-area-code {
    color: #1a9f6b;
    font-weight: 500;
}
/* 新增：数字含义标注样式 */
.postcode-card-label-group {
    display: flex;
    align-items: flex-end;
    gap: 32px;
}
/* 普通卡片的数字标注（小字体+浅灰色） */
.postcode-card-code-label {
    font-size: 10px;
    color: #b0b8bb;
    text-transform: uppercase;
}
/* 区县卡片的标注（居中+绿色） */
.postcode-district-card .postcode-card-label-group {
    align-items: center;
}
.postcode-district-card .postcode-card-code-label {
    color: #1a9f6b80; /* 主色调半透明 */
}
.postcode-card-code-group .postcode-card-value-group{
    display: flex;
    align-items: flex-end;
    gap: 20px;
}
/* 新增：鼠标悬浮提示（Tooltip） */
.postcode-tooltip {
    position: relative;
}
.postcode-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    background-color: #2d3436;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    /* 箭头 */
    content: attr(data-tooltip);
}
.postcode-tooltip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 12px;
    border-width: 4px;
    border-style: solid;
    border-color: #2d3436 transparent transparent transparent;
    z-index: 100;
}
/* 区县卡片的tooltip调整位置 */
.postcode-district-card .postcode-tooltip:hover::after {
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
}
.postcode-district-card .postcode-tooltip:hover::before {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

/* 页面顶部的数字说明提示 */
.postcode-info-tip {
    background-color: #e8f0ec;
    border-left: 3px solid #1a9f6b;
    padding: 10px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
    font-size: 14px;
    color: #2d3436;
}
.postcode-info-tip strong {
    color: #1a9f6b;
}


/* 卡片容器 - 调整布局以容纳复制图标 */
.postcode-card {
    padding: 18px;
    border: 1px solid #e8f0ec;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    pointer-events: auto;
}

/* 复制图标样式 */
.postcode-copy-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    cursor: pointer;
    color: #b0b8bb;
    transition: color 0.2s;
    z-index: 999;
    pointer-events: auto;
}
.postcode-copy-icon:hover {
    color: #1a9f6b;
}

.postcode-copy-toast {
    position: fixed;
    /* 核心：屏幕水平+垂直居中 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 样式优化 */
    background-color: rgba(26, 159, 107, 0.9); /* 半透明主色调，更柔和 */
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999; /* 确保在最顶层 */
    box-shadow: 0 4px 12px rgba(26, 159, 107, 0.2); /* 增加阴影，更醒目 */
}
.postcode-copy-toast.show {
    opacity: 1;
    visibility: visible;
}

/* 调整卡片内容位置（避开复制图标） */
.postcode-card-code-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 24px; /* 给复制图标留空间 */
}
/* 区县卡片特殊调整 */
.postcode-district-card .postcode-card-code-group {
    margin-right: 0;
    margin-bottom: 10px;
}
.postcode-empty-result {
            text-align: center;
            padding: 60px 20px;
            color: #869093;
            margin: 20px 0;
        }
        .postcode-empty-icon {
            font-size: 48px;
            color: #e8f0ec;
            margin-bottom: 16px;
        }
        .postcode-empty-text {
            font-size: 16px;
            margin-bottom: 24px;
        }
        .postcode-empty-retry {
            display: inline-block;
            padding: 8px 20px;
            background-color: #1a9f6b;
            color: #fff;
            border-radius: 6px;
            text-decoration: none;
            font-size: 14px;
            margin-top: 10px;
            transition: background-color 0.2s;
        }
        .postcode-empty-retry:hover {
            opacity: 0.8;
            color: #fff;
        }
