/* -------------------------------------全局样式------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

:root {
    /* 主色调 */
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    
    /* 文字色 */
    --text-color: #333;
    --text-light: #666;
    --text-white: #ffffff;
    
    /* 背景色 */
    --bg-color: #f5f7fa;
    --card-color: #ffffff;
    --festival-color: #e67e22;
    --event-color: #27ae60;
    --weather-color: #3498db;
    
    /* 边框与阴影 */
    --border-color: #333333;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 0.5rem 1.5625rem rgba(0, 0, 0, 0.15);
    
    /* 动画 */
    --transition: all 0.3s ease;
    
    /* 字体大小 - 响应式 */
    font-size: clamp(0.75rem, 2vw, 1rem);
}

a{
    text-decoration: none;
    color : var(--text-color);
}

.display_none{
    display : none !important;
}

.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: clamp(0.5rem, 2vw, 0.9375rem);
    display: flex;
    position: sticky;
    top: 0;
    z-index: 10;
}

.back-btn {
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.75rem);
    background: none;
    border: 0.2rem solid #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 0.75vw, 0.3125rem);
    padding: clamp( 0.3rem, 0.75vw, 0.3125rem);
    border-radius: 10%;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    white-space: nowrap;
    max-width: calc(100% - 100px);/* 防止与按钮重叠 */
    overflow: hidden;
    text-overflow: ellipsis;
}

.container {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 0 0.3rem;
}

/* ------------------------------------- 顶部导航样式 ------------------------------------- */
.circle-nav-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.circle-nav-section .active {
    background-color: var(--primary-color);
}

.circle-nav-container {
    display: flex;
    flex-wrap: wrap;                /* 允许换行 */
    justify-content: space-between; /* 平均分布（两端对齐） */
    align-items: center;
    gap: 0;                         /* 不用gap，靠space-between和宽度控制间距 */
    background: var(--card-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: clamp(0.08rem, 0.25vw, 0.125rem) solid var(--border-color);
    scroll-behavior: smooth;
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0;
}

/* 导航按钮 - 宽度设为一行的20% */
.circle-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.3rem 0;
    border-radius: var(--border-radius);
    position: relative;
    width: calc(20% - 4px);        /* 20%宽度，减去微调，避免溢出换行 */
    max-width: 20%;
    box-sizing: border-box;
    text-align: center;
}

.circle-nav-btn:hover {
    background: rgba(52, 152, 219, 0.05);
    transform: translateY(clamp(-0.16rem, -0.5vw, -0.25rem));
}

.circle-icon {
    border-radius: 50%;
    border: clamp(0.08rem, 0.25vw, 0.125rem) solid var(--border-color);
    width: clamp(4rem, 11.2vw, 4.8rem);
    height: clamp(4rem, 11.2vw, 4.8rem);
    margin: 0 auto;
}

.circle-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--light-color), #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(2.4rem, 4vw, 3rem);
    transition: var(--transition);
    border: clamp(0.16rem, 0.3vw, 0.2rem) solid transparent;
    box-shadow: 0 clamp(0.16rem, 0.4vw, 0.25rem) clamp(0.64rem, 1.2vw, 0.75rem) rgba(0, 0, 0, 0.08);
}

.circle-nav-btn:hover .circle-icon {
    transform: scale(1.05);
    box-shadow: 0 clamp(0.32rem, 0.8vw, 0.5rem) clamp(0.96rem, 1.8vw, 1.125rem) rgba(0, 0, 0, 0.12);
}

.circle-label {
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: bold;
    color: var(--text-color);
    transition: var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.circle-nav-btn:hover .circle-label {
    color: var(--primary-color);
}


/* -------------------------------------按钮部分------------------------------------- */
/* ===== 分页按钮 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 0.625rem); 
    margin-top: clamp(1.5rem, 6vw, 2.5rem); 
    padding: clamp(1rem, 4vw, 1.25rem) 0; 
}
.action-btn {
    flex: 1;
    background-color: var(--success-color);
    padding: 0.4rem clamp(0.5rem, 4vw, 0.7rem); 
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-size: clamp(1.3rem, 3vw, 1.8rem); 
}

.apply-btn {
    background-color: var(--success-color);
    color: white;
}

.apply-btn:hover {
    background-color: #219653;
}


/* ===== 顶部广告横幅 ===== */
.ad-banner {
    width: 100%;
    height: 6rem;
    background: linear-gradient(135deg, #ff9a00, #ff6a00);
    margin: 1rem 0;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: bold;
    overflow: hidden;
    position: relative;
    box-shadow: var(--box-shadow);
    /* 防止广告溢出 */
    max-width: 100%;
}

.ad-banner::before {
    content: "广告";
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0,0,0,0.5);
    padding: 0.1rem 0.4rem;
    font-size: 0.6rem;
    border-bottom-left-radius: var(--border-radius);
}

.ad-banner:hover {
    transform: translateY(-0.01rem);
    box-shadow: var(--box-shadow-lg);
}

/* 弹窗广告位 */
.modal-ad {
    width: 100%;
    height: clamp(5rem, 10vw, 8rem);
    background: linear-gradient(135deg, #ff9a00, #ff6a00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
    font-weight: bold;
    position: relative;
    flex-shrink: 0;
    margin-bottom : 0.5rem;
}

.modal-ad::before {
    content: "广告位";
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(0,0,0,0.3);
    padding: clamp(0.125rem, 0.5vw, 0.2rem) clamp(0.5rem, 1.5vw, 0.8rem);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    border-bottom-left-radius: var(--border-radius);
}

/* ===== 底部悬停按钮 ===== */
.footer_bottom_nav {
    border-top: 0.0625rem solid var(--border-color);
    line-height : 1;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -0.125rem clamp(0.5rem, 1.5vw, 0.625rem) rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: clamp(0.4rem, 1.5vw, 0.5rem) 0;
}

.footer_nav_buttons {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 0 auto;
}

.footer_nav_button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: var(--transition);
    border-radius: var(--border-radius);
    flex: 1;
    text-align: center;
    justify-content: center;
    min-width: 0;
    font-weight: bold;
    border-left: 0.0625rem solid var(--border-color);
    border-right: 0.0625rem solid var(--border-color);
}

.footer_nav_button:hover, .footer_nav_button.active {
    color: var(--primary-color);
    font-weight: bold;
}

.footer_nav_text {
    font-size: clamp(1.5rem, 2.5vw, 1.8rem);
}