/* 全局变量 */
:root {
    /* 主色调 */
    --primary-color: #0064c8;
    --primary-hover: #0052a3;
    --secondary-color: #00a4ff;
    --success-color: #52c41a;
    --warning-color: #faad14;
    --error-color: #ff4d4f;
    
    /* 中性色 */
    --text-primary: #1f2329;
    --text-secondary: #646a73;
    --text-tertiary: #86909c;
    --border-color: #e5e6eb;
    --background-light: #f7f8fa;
    --background-white: #ffffff;
    
    /* 阴影 */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    
    /* 圆角 */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
}

/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--background-light);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 布局容器 */
.auto {
    width: 100%;
    min-height: 100vh;
}

.con {
    width: 100%;
    background: var(--background-white);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* 搜索区域 */
.search-container {
    background: var(--background-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    text-align: center;
}

.search-container input[type="text"] {
    width: 100%;
    max-width: 400px;
    height: 40px;
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.search-container input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 100, 200, 0.1);
    outline: none;
}

/* 提示信息 */
.idc-tabs {
    background: #f0f7ff;
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 24px 0;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.idc-tabs span {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 16px;
}

/* 省份选择区域 */
.title_pro {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-left: 12px;
    border-left: 3px solid var(--primary-color);
}

.province {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
}

.province ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.province li {
    margin: 0;
}

.province a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--text-secondary);
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.province a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 100, 200, 0.05);
}

.province a.active {
    color: var(--background-white);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 价格表格区域 */
.section {
    background: var(--background-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 24px;
    margin-bottom: 24px;
    animation: fadeIn 0.3s ease-out;
}

.cloudtable-info {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
}

.cloudtable-info th {
    background: var(--background-light);
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.cloudtable-info td {
    padding: 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    transition: background-color 0.3s ease;
}

.cloudtable-info tr:hover td {
    background-color: rgba(0, 100, 200, 0.02);
}

/* 价格标签 */
.price-tag {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
    display: block;
    margin-top: 4px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    background: var(--background-light);
    color: var(--text-secondary);
    margin-right: 8px;
}

.tag-new {
    background: #e6f7ff;
    color: var(--primary-color);
}

.tag-hot {
    background: #fff2e8;
    color: #fa541c;
}

/* 按钮样式 */
.product-info-btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-info-btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--background-white);
    background: var(--primary-color);
    border: none;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-info-btn a:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .container {
        padding: 16px;
    }
    
    .province ul {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .cloudtable-info {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .province ul {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .search-container input[type="text"] {
        max-width: 100%;
    }
    
    .idc-tabs span {
        font-size: 14px;
    }
    
    .cloudtable-info th,
    .cloudtable-info td {
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .product-info-btn a {
        padding: 0 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 12px;
    }
    
    .province ul {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .province a {
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .title_pro {
        font-size: 14px;
    }
    
    .price-tag {
        font-size: 14px;
    }
}

/* 清除浮动 */
.clearfix::after {
    content: '';
    display: table;
    clear: both;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }

.cloudtable-info thead tr {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}


/* 固定表格最后一列 */
.cloudtable-info tbody tr td:last-child,
.cloudtable-info thead tr th:last-child {
    position: sticky;
    right: 0;
    background: var(--background-white); /* 确保背景颜色统一 */
    z-index: 10; /* 保证最后一列显示在其他内容之上 */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); /* 添加阴影区分 */
}

/* 表头固定 */
.cloudtable-info thead tr {
    position: sticky;
    top: 0;
    background: var(--background-light); /* 表头背景颜色 */
    z-index: 20; /* 保证表头显示在最后一列之上 */
}
