/* ========== 仅保留潮汕俗语页面特有样式（通用样式由外部公用文件提供） ========== */
header {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.75rem, 2vw, 1rem) 0;
    min-height: 3.5rem;
}
.logo {
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-white);
}
.container select {
    width: 49%;
    height: auto;
    margin-bottom: 0.8rem;
    padding: clamp(0.4rem, 2.5vw, 0.7rem) clamp(0.5rem, 3vw, 1rem);
    border-radius: clamp(0.5rem, 3vw, 1rem);
    border: 0.0625rem solid var(--secondary-color);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

/* 分类筛选栏 (双下拉框) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.5rem, 2vw, 1rem);
  align-items: center;
  justify-content: center;
}

.select-wrapper {
  position: relative;
  flex: 1;
  min-width: 130px;
}


/* 俗语列表 */
.saying-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1rem);
}

.saying-card {
    background: rgba(255, 252, 250, 0.9);
    backdrop-filter: blur(10px);
    padding: clamp(0.3rem, 2.5vw, 0.5rem) clamp(1.5rem, 2.5vw, 2rem);
    border-radius: clamp(1rem, 3vw, 1.4rem);
    box-shadow: 0 0.375rem 1.125rem rgba(160, 40, 20, 0.06);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.5rem, 2vw, 0.8rem);
    border: 0.1rem solid var(--accent-color);
}

.saying-main {
    display: flex;
    flex-direction: column;
    gap: clamp(0.1rem, 1vw, 0.2rem);
    flex: 2;
    min-width: 180px;
}

.teochew-text {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    font-weight: 700;
    color: #a13328;
    letter-spacing: 0.8px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: clamp(0.2rem, 1.5vw, 0.4rem);
}
.meaning {
    color: #4a2620;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    opacity: 0.85;
}

/* 弹窗模态框 - 使用 HTML 结构，JS 只负责填充数据 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(40, 10, 5, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: clamp(0.8rem, 3vw, 1.2rem);
    visibility: hidden;
    opacity: 0;
    transition: 0.25s ease;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: rgba(255, 250, 246, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 540px;
    width: 100%;
    border-radius: clamp(1.5rem, 4vw, 2.4rem);
    padding: clamp(1.2rem, 3.5vw, 2rem) clamp(1rem, 3.5vw, 2rem) clamp(1.5rem, 4vw, 2.2rem);
    box-shadow: 0 2.5rem 3.75rem rgba(140, 25, 10, 0.3);
    border: 0.0625rem solid rgba(220, 150, 130, 0.5);
    position: relative;
    max-height: 88vh;
    overflow-y: auto;
    transform: scale(0.96);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: clamp(0.5rem, 2vw, 0.9rem);
    right: clamp(0.8rem, 2vw, 1.3rem);
    background: rgba(240, 220, 210, 0.7);
    border: none;
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    cursor: pointer;
    color: #b84a40;
    line-height: 1;
    width: clamp(1.75rem, 6vw, 2.25rem);
    height: clamp(1.75rem, 6vw, 2.25rem);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.close-modal:hover {
    background: #e0c0b0;
    color: #8b2015;
}

/* 弹窗内部固定 HTML 结构对应的样式 */
.detail-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    color: #a13328;
    margin-bottom: clamp(0.1rem, 1vw, 0.2rem);
}

.detail-meaning {
    background: linear-gradient(135deg, #fef3ee, #feeee7);
    padding: clamp(0.5rem, 2.5vw, 0.8rem) clamp(0.9rem, 2.5vw, 1.3rem);
    border-radius: clamp(1rem, 3vw, 1.2rem);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #3e1c1c;
    border: 0.0625rem solid var(--accent-color);
}

.detail-example {
    background: linear-gradient(135deg, #fef3ee, #feeee7);
    padding: clamp(0.5rem, 2.5vw, 0.8rem) clamp(0.9rem, 2.5vw, 1.3rem);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #3e1c1c;
    border-bottom: 0.0625rem solid var(--accent-color);
}

.accent-grid {
    display: grid;
    grid-template-columns: repeat(1fr);
    gap: clamp(0.5rem, 1.8vw, 0.8rem);
    margin-top: clamp(1rem, 3vw, 1.5rem);
}

.dialect-btn {
    background: #fdf3e7;
    border: 0.0625rem solid #d49b9b;
    border-radius: 2.5rem;
    padding: 0.7rem 0.8rem;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    cursor: pointer;
    color: #5e2e2e;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.dialect-btn:hover { background: #fce9d2; border-color: #b22222; }
.dialect-btn .region-name {  min-width: 3rem;font-weight: 700; }
.dialect-btn .speaker { font-size: 1rem; color: #8b4a4a; }


@media (max-width: 550px) {
    .teochew-text {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
    }
}