/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', 'SimSun', 'STSong', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #e0e7ff;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-btn.active {
    background: rgba(99, 102, 241, 0.6);
    border-color: rgba(99, 102, 241, 0.8);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-language-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 0.5rem;
}

.mobile-nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.mobile-nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 英雄区域 */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=city%20skyline%20at%20sunset%20with%20golden%20light%20reflection%20on%20water%20urban%20buildings%20modern%20metropolis&image_size=landscape_16_9') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.8) 0%, rgba(49, 46, 129, 0.6) 50%, rgba(76, 29, 149, 0.7) 100%);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    animation: fadeInUp 1s ease;
}

/* 计时器样式 - 紧凑版 */
.timer-display {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 1rem;
    z-index: 10;
}

.lunar-time, .gregorian-time {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    backdrop-filter: blur(5px);
    text-align: center;
    min-width: 100px;
}

.gregorian-time {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.lunar-year, .gregorian-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 0.15rem;
}

.gregorian-date {
    color: rgba(255, 255, 255, 0.7);
}

.lunar-date, .gregorian-time-value {
    font-size: 0.8rem;
    color: rgba(255, 215, 0, 0.8);
    font-family: 'Courier New', monospace;
}

.gregorian-time-value {
    color: rgba(255, 255, 255, 0.9);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4c1d95;
}

.btn-outline {
    background: transparent;
    color: #4c1d95;
    border: 2px solid #4c1d95;
}

.btn-outline:hover {
    background: #4c1d95;
    color: white;
}

/* 装饰圆圈 */
.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    top: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: #a855f7;
    bottom: -50px;
    left: -50px;
    animation: float 8s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: #d946ef;
    top: 50%;
    right: 20%;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 作品预览区域 */
.preview-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1e1b4b;
    margin-bottom: 2rem;
    font-weight: 700;
}

.works-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.work-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.work-image {
    position: relative;
}

.work-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

.work-card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: #1e1b4b;
    font-size: 1.3rem;
}

.work-card p {
    padding: 0 1.5rem 1rem;
    color: #64748b;
}

.read-more {
    display: inline-block;
    margin: 0 1.5rem 1.5rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #4c1d95;
}

.download-link {
    display: inline-block;
    margin: 0.5rem 1.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.download-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}



.category-section {
    margin-bottom: 3rem;
}

.category-title {
    color: #1e1b4b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.category-desc {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.category-works {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 页脚 */
.footer {
    background: #1e1b4b;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.footer-logo p {
    color: #94a3b8;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-social p {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.icon:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

a.icon {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
}

a.icon:hover {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

/* 管理员登录入口 */
.admin-login {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.key-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 文件上传控件样式 */
input[type="file"] {
    display: block;
    width: 100%;
    padding: 10px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #6366f1;
    background: #f1f5f9;
}

input[type="file"]::-webkit-file-upload-button {
    padding: 6px 12px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 10px;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: #4f46e5;
}

.upload-hint {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 8px;
    display: block;
}

.key-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.5);
}

/* 页面内容样式 */
.page-content {
    padding: 100px 0 50px;
    min-height: calc(100vh - 200px);
}

.page-title {
    font-size: 2.5rem;
    color: #1e1b4b;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 3rem;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.header-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.header-content .page-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-content .page-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.header-decoration {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    border-radius: 2px;
    margin: 0 auto;
    position: relative;
}

.header-decoration::before,
.header-decoration::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.header-decoration::before {
    left: -30px;
}

.header-decoration::after {
    right: -30px;
}

/* 页面内容 */
.page-content {
    padding: 60px 0;
    background: #f8fafc;
}

/* 栏目分组 */
.category-section {
    margin-bottom: 4rem;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.category-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    color: white;
    font-size: 1.5rem;
    margin: 0;
    font-weight: 600;
}

.category-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
    font-style: normal;
}

.category-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.uncategorized-section .category-count {
    background: rgba(148, 163, 184, 0.2);
    color: #64748b;
}

.category-works {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* 未分类作品 */
.uncategorized-section {
    border: 2px dashed #e2e8f0;
    background: transparent;
}

.uncategorized-section .category-header {
    background: #f1f5f9;
}

.uncategorized-section .category-title {
    color: #64748b;
}

.uncategorized-section .category-desc {
    color: #94a3b8;
}

/* 作品卡片 */
.works-list {
    display: block;
}

.work-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
}

.work-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.work-item-no-image {
    display: block;
}

.work-item-image-wrapper {
    flex-shrink: 0;
    width: 200px;
    height: 180px;
    position: relative;
}

.work-item-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-item-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-item-title {
    font-size: 1.5rem;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
}

.work-item-category {
    display: inline-block;
    background: #e0e7ff;
    color: #6366f1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.work-item-desc {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
}

.expand-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.expand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.work-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* 世界观部分 */
.worldview-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.worldview-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.worldview-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}



.detail-item {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 10px;
}

.detail-label {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.detail-value {
    color: #1e1b4b;
    font-weight: 600;
}

/* 关于我们页面 */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.team-section {
    margin-top: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.member-name {
    font-size: 1.2rem;
    color: #1e1b4b;
    margin-bottom: 0.3rem;
}

.member-role {
    color: #64748b;
    font-size: 0.9rem;
}

/* 有意思的东西页面 */
.fun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.fun-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.fun-card:hover {
    transform: translateY(-3px);
}

.fun-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.fun-card-content {
    padding: 1.5rem;
}

.fun-card-title {
    font-size: 1.2rem;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
}

.fun-card-desc {
    color: #64748b;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .language-selector {
        display: flex;
        gap: 0.3rem;
    }
    
    .lang-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo h1 {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* 公告栏样式 - 左上角 */
.announcement-bar {
    position: fixed;
    left: 20px;
    top: 138px;
    z-index: 9999;
}

.announcement-toggle {
    position: relative;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 0 12px 12px 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.announcement-toggle:hover {
    transform: translateX(5px);
    box-shadow: 4px 4px 15px rgba(99, 102, 241, 0.4);
}

.announcement-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.announcement-panel {
    position: absolute;
    left: 60px;
    top: 0;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.announcement-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.announcement-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.announcement-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.announcement-content {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.announcement-item {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.announcement-item:last-child {
    border-bottom: none;
}

.announcement-item:hover {
    background: #f8fafc;
}

.announcement-item.pinned {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.announcement-title {
    font-size: 1rem;
    color: #1e1b4b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.announcement-text {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.announcement-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.5rem;
}

.announcement-empty {
    text-align: center;
    padding: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* 响应式设计 - 公告栏 */
@media (max-width: 768px) {
    .announcement-bar {
        left: 10px;
        top: 160px;
    }

    .announcement-toggle {
        width: 44px;
        height: 44px;
    }

    .announcement-panel {
        left: 54px;
        width: 300px;
        max-height: 400px;
    }

    .timer-display {
        top: 100px;
        flex-direction: column;
        gap: 0.5rem;
    }

    .lunar-time, .gregorian-time {
        min-width: 140px;
        padding: 0.3rem 0.6rem;
    }

    .hero {
        padding-top: 180px;
        min-height: calc(100vh + 120px);
    }

    .hero-content {
        padding-top: 20px;
    }

    .mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 999;
        max-height: 60vh;
        overflow-y: auto;
    }
}
