* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 100%);
    color: #333;
    padding-bottom: 70px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(211, 47, 47, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(211, 47, 47, 0.08) 0%, transparent 50%);
    z-index: -1;
}

/* 春节主题装饰 */
.spring-festival-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(211, 47, 47, 0.3);
}

.spring-festival-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffd700;
    font-size: 20px;
    font-weight: bold;
    gap: 15px;
}

.horse-icon {
    font-size: 28px;
    animation: bounce 2s ease-in-out infinite;
}

.lantern {
    width: 30px;
    height: 40px;
    background: linear-gradient(180deg, #ff6b6b 0%, #d32f2f 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 4px 8px rgba(211, 47, 47, 0.5);
    animation: swing 3s ease-in-out infinite;
}

.lantern::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 12px;
    background: linear-gradient(180deg, #ffd700 0%, #ffb300 100%);
    border-radius: 0 0 10px 10px;
}

@keyframes swing {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

/* 红色装饰元素 */
.red-accent {
    color: #d32f2f;
}

.gold-accent {
    color: #ffd700;
}

/* 节日装饰 */
.festival-decoration {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    pointer-events: none;
}

.firecracker {
    position: fixed;
    font-size: 30px;
    animation: float 3s ease-in-out infinite;
}

.firecracker-left {
    left: 10px;
    animation-delay: 0s;
}

.firecracker-right {
    right: 10px;
    animation-delay: 1.5s;
}

.fu-character {
    position: fixed;
    top: 80px;
    right: 50px;
    font-size: 36px;
    font-weight: bold;
    color: #d32f2f;
    text-shadow: 2px 2px 4px rgba(211, 47, 47, 0.5);
    animation: rotate 6s linear infinite;
    z-index: 999;
    pointer-events: none;
}

.spring-couplet-left {
    position: fixed;
    top: 150px;
    left: 10px;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: 16px;
    font-weight: bold;
    color: #d32f2f;
    text-shadow: 1px 1px 2px rgba(211, 47, 47, 0.5);
    z-index: 999;
    pointer-events: none;
}

.couplet-line {
    margin: 10px 0;
    animation: glow 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(10deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(10deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 新年祝福标签 */
.new-year-wish {
    font-size: 12px;
    color: #d32f2f;
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    }
}

/* 轮播图样式 */
.carousel-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-item.active {
    opacity: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 20px;
    color: white;
}

.carousel-caption h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.carousel-caption p {
    font-size: 14px;
    opacity: 0.9;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.5);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* 音乐播放器样式 */
.music-player {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    padding: 15px;
    margin-bottom: 15px;
    border-bottom: 3px solid #ffd700;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,215,0,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffd700;
    font-size: 20px;
    animation: pulse 2s infinite;
    border: 2px solid #ffd700;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.music-details {
    flex: 1;
    color: white;
}

.music-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 3px;
    color: #ffd700;
}

.music-artist {
    font-size: 12px;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
}

.music-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,215,0,0.3);
    border: 2px solid #ffd700;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.control-btn:hover {
    background: rgba(255,215,0,0.5);
    transform: scale(1.05);
}

/* 主导航 */
.main-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    background: white;
    margin-bottom: 15px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.15);
    border-top: 3px solid #ffd700;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #ffd700;
}

.nav-item:nth-child(1) {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
}

.nav-item:nth-child(2) {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.nav-item:nth-child(3) {
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
}

.nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.nav-item i {
    font-size: 24px;
}

.nav-item span {
    font-size: 12px;
    text-align: center;
}

/* 内容区域通用样式 */
.content-section {
    padding: 15px;
    display: none;
}

.content-section.active {
    display: block;
}

/* 干部公示栏直接显示样式 */
.cadre-section {
    display: block;
    margin: 15px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.1);
    border-top: 4px solid #ffd700;
}

.section-header {
    background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 100%);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.1);
    border-left: 4px solid #d32f2f;
}

.section-header h2 {
    font-size: 18px;
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header i {
    color: #ffd700;
    font-size: 20px;
}

/* 干部公示栏样式 */
.cadre-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cadre-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 100%);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.1);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #d32f2f 0%, #ffd700 50%, #d32f2f 100%) 1;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cadre-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.cadre-avatar-container {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    position: relative;
}

.cadre-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.cadre-avatar-fallback {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
}

.cadre-info {
    flex: 1;
}

.cadre-info h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.cadre-position {
    font-size: 14px;
    color: #667eea;
    margin-bottom: 5px;
    font-weight: 500;
}

.cadre-phone {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cadre-phone i {
    margin-right: 5px;
}

.call-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
    transition: all 0.3s;
}

.call-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.call-btn i {
    font-size: 11px;
}

/* 安全生产知识样式 */
.safety-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.safety-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: linear-gradient(135deg, #fff5f5 0%, #fffaf0 100%);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #d32f2f 0%, #ffd700 50%, #d32f2f 100%) 1;
}

.safety-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
    border-color: #d32f2f;
}

.safety-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.safety-content {
    flex: 1;
}

.safety-content h3 {
    font-size: 15px;
    margin-bottom: 5px;
    color: #333;
}

.safety-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 国通语样式 */
.language-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.language-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.word-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    font-size: 15px;
    font-weight: 500;
}

.word-content {
    padding: 10px;
}

.word-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.word-item:last-child {
    border-bottom: none;
}

.word-item .chinese {
    flex: 1;
    font-size: 15px;
    color: #333;
    font-weight: 500;
}

.word-item .pinyin {
    font-size: 13px;
    color: #667eea;
    font-style: italic;
}

.sound-btn {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.sound-btn:hover {
    transform: scale(1.1);
}

/* 通知公告样式 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notice-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.1);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, #d32f2f 0%, #ffd700 50%, #d32f2f 100%) 1;
    cursor: pointer;
    transition: all 0.3s;
}

.notice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.notice-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.notice-card h3 {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
}

.notice-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(211, 47, 47, 0.3);
    border-top: 3px solid #ffd700;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.3s;
    padding: 5px 15px;
}

.bottom-nav-item.active {
    color: #ffd700;
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item span {
    font-size: 11px;
}

@media (min-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-caption h3 {
        font-size: 24px;
    }
    
    .carousel-caption p {
        font-size: 16px;
    }
    
    .main-nav {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}