/* diqu.css - 中国茶叶产地分布页面样式 */

/* intro-section 区域样式 */
.intro-section {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: white;
    padding: 20px 20px;
    border-radius: 15px;
    margin: 1px 0 20px;
    box-shadow: 0 4px 15px rgba(45, 90, 45, 0.2);
}

.intro-section h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.intro-section > p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 30px;
    text-align: center;
}

/* 统计栏样式 */
.stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.stat-link {
    text-decoration: none;
    color: inherit;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 100px;
}

.stat-link:hover .stat-item {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

/* 省份区块容器 - 使用网格布局 */
.regions-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0;
}

/* 地区区块样式 */
.region-section {
    margin-bottom: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.region-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 默认折叠状态 */
.region-section:not(.expanded) .region-grid {
    display: none;
}

.region-section.expanded .region-grid {
    display: grid;
}

/* 整个区块都可以点击展开 */
.region-section {
    cursor: pointer;
}

/* 标题区域单独设置指针样式 */
.region-title {
    cursor: pointer;
}

/* 省份介绍文字样式 */
.region-intro {
    padding: 15px 25px;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-dark);
    display: none;
    cursor: default;
}

.region-section.expanded .region-intro {
    display: block;
}

/* 地区标题样式 */
.region-title {
    background: linear-gradient(135deg, var(--pale-green), var(--cream));
    padding: 18px 25px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    user-select: none;
}

.region-title:hover {
    background: linear-gradient(135deg, var(--accent-green), var(--pale-green));
    color: white;
}

.region-icon {
    font-size: 24px;
    margin-right: 12px;
}

.region-meta {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.5);
    padding: 5px 12px;
    border-radius: 15px;
    margin-left: auto;
    transition: all 0.3s ease;
}

.region-title:hover .region-meta {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* 展开/折叠指示器 */
.region-title::after {
    content: '+';
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-green);
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.region-section.expanded .region-title::after {
    content: '−';
    transform: rotate(180deg);
}

.region-title:hover::after {
    color: white;
}

/* 茶叶网格布局 - PC 端 2 列 */
.region-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 25px;
    background: white;
}

.tea-item {
    background: linear-gradient(135deg, #fafafa, #f5f7f5);
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.tea-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-green));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tea-item:hover::before {
    transform: scaleX(1);
}

.tea-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(45, 90, 45, 0.15);
    border-color: var(--pale-green);
}

.tea-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
    width: 100%;
    height: 100%;
}

.tea-item:hover a {
    color: var(--primary-green);
}

/* 响应式设计 - 移动端恢复为单列 */
@media (max-width: 768px) {
    .regions-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .region-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }

    .tea-item {
        padding: 10px 6px;
    }

    .tea-item a {
        font-size: 13px;
    }

    .stats-bar {
        gap: 10px;
    }

    .stat-item {
        padding: 12px 18px;
        min-width: 80px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 12px;
    }

    .region-title {
        padding: 15px 18px;
    }

    .region-title .region-icon {
        font-size: 20px;
    }

    .intro-section {
        padding: 15px 15px;
        margin: 5px 0 15px;
    }

    .intro-section h1 {
        font-size: 22px;
    }

    .intro-section > p {
        font-size: 15px;
    }
}

/* 平板端自适应 */
@media (min-width: 769px) and (max-width: 1024px) {
    .regions-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 大屏幕端也保持 2 列 */
@media (min-width: 1025px) {
    .regions-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .region-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
        margin: 0;
    }
}

/* 移动端标题区域调整 */
@media (max-width: 768px) {
    .region-title {
        padding: 15px 18px;
    }

    .region-title .region-icon {
        font-size: 20px;
    }

    .intro-section {
        padding: 15px 15px;
        margin: 5px 0 15px;
    }

    .intro-section h1 {
        font-size: 22px;
    }

    .intro-section > p {
        font-size: 15px;
    }
}

/* Comparison Table Styles */
.comparison-table {
    margin: 30px 0;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border: 1px solid #e8e8e8;
}

.comparison-table h2 {
    margin-bottom: 20px;
    color: #2c5f2d;
    font-size: 22px;
    font-weight: 600;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.comparison-table th {
    background: linear-gradient(135deg, #2c5f2d 0%, #4a7c59 100%);
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid #3a6f4a;
}

.comparison-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #e8e8e8;
    color: #333;
    line-height: 1.5;
    border: 1px solid #f0f0f0;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9fbfd;
}

.comparison-table tr:hover {
    background-color: #f0f7ff;
}

@media (max-width: 768px) {
    .comparison-table {
        padding: 15px;
        overflow-x: auto;
    }
    
    .comparison-table table {
        font-size: 13px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px 8px;
    }
}
