/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #6ee7b7;
    --accent: #34d399;
    --secondary: #9ca3af;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --light: #ecfdf5;
    --background: #f0fdfa;
    --dark: #1f2937;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --sidebar-width: 280px;
    --header-height: 70px;
    --border-radius: 12px;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Noto Serif SC', 'Microsoft YaHei', sans-serif;
    background-color: var(--background);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: scale(1.05);
}

/* 侧边栏 */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
}

.logo h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
}

.close-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.sidebar-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.menu-list {
    list-style: none;
}

.menu-item {
    margin: 0.25rem 1rem;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s ease;
    font-weight: 500;
}

.menu-link:hover {
    background: var(--light);
    color: var(--primary);
}

.menu-link.active,
.menu-item.active .menu-link {
    background: var(--primary);
    color: var(--white);
}

.menu-link i {
    font-size: 1.125rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.footer-info {
    text-align: center;
    color: var(--gray-500);
}

.footer-info p {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.footer-info small {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* 主内容区域 */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

.content-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.content-section.active {
    display: block;
}

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

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 首页样式 */
.hero-section {
    background: var(--white);
    color: var(--gray-900);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: var(--gray-600);
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary);
}

.stat-info {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* 功能区域 */
.features-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 3rem;
}

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

.feature-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.feature-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* 遮罩层 */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .close-btn {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 1rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 页面标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-title i {
    color: var(--primary);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* 搜索框样式 */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.125rem;
}

#search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3.5rem;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* 标签页样式 */
.tabs-container {
    margin-bottom: 3rem;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    color: var(--gray-700);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.tab-btn i {
    font-size: 1.125rem;
}

/* 快捷键内容样式 */
.shortcuts-content {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.shortcut-section {
    display: none;
}

.shortcut-section.active {
    display: block;
}

.section-title-inner {
    background: var(--gray-50);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title-inner i {
    color: var(--primary);
}

.shortcut-table {
    width: 100%;
    border-collapse: collapse;
}

.shortcut-table th {
    background: var(--gray-50);
    padding: 1rem 2rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-200);
}

.shortcut-table td {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: top;
}

.shortcut-table tr:last-child td {
    border-bottom: none;
}

.shortcut-table tr:hover {
    background: var(--gray-50);
}

.key {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(to bottom, var(--white), var(--gray-100));
    border: 1px solid var(--gray-300);
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0 0.125rem;
    min-width: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

.highlight {
    background: #fef3c7;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* 字体下载页面样式 */
.font-download-section {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

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

.font-card {
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.font-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.font-preview {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-weight: 600;
}

.font-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.font-description {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.download-all-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
}

.download-all-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.download-all-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-btn {
    background: var(--white);
    color: var(--primary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.download-btn i {
    font-size: 1.25rem;
}

.install-instructions {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: left;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.install-instructions h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.install-instructions ol {
    padding-left: 1.5rem;
}

.install-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* 加载消息样式 */
.loading-message {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
    font-size: 1.125rem;
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* 模板展示样式 */
.templates-section {
    display: block;
}

/* 模板列表样式 */
.templates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.template-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--gray-200);
}

.template-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.template-preview {
    width: 100%;
    height: 200px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 3rem;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-info {
    padding: 1.5rem;
}

.template-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.template-meta {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.template-actions {
    display: flex;
    gap: 0.75rem;
}

.template-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.template-btn.primary {
    background: var(--primary);
    color: var(--white);
}

.template-btn.primary:hover {
    background: var(--primary-dark);
}

.template-btn.secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.template-btn.secondary:hover {
    background: var(--gray-200);
}

/* 赞赏部分样式 */
.donation-section {
    text-align: center;
}

.donation-codes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.donation-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    transition: all 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.donation-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.donation-qr-code {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.donation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donation-image-container:hover .donation-overlay {
    opacity: 1;
}

.donation-image-container:hover .donation-qr-code {
    transform: scale(1.05);
}

.donation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.donation-action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.donation-action-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.donation-card h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.donation-message {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
}

.donation-message h3 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.donation-message p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--gray-500);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

/* 消息提示样式 */
.message {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
}

.message.show {
    transform: translateX(0);
}

.message-success {
    background: var(--success);
    color: var(--white);
}

.message-error {
    background: var(--danger);
    color: var(--white);
}

.message-info {
    background: var(--primary);
    color: var(--white);
}

/* 预览模态框样式 */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    font-size: 1.25rem;
    color: var(--gray-900);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

/* 公文格式规范内容样式 */
#documentFormatContent {
    min-height: 400px;
}

#documentFormatContent .loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .message {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }

    .message.show {
        transform: translateY(0);
    }

    .preview-modal {
        padding: 1rem;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .donation-codes {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        justify-content: center;
    }
}

/* 公告弹窗样式 */
.announcement-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.announcement-modal.show {
    opacity: 1;
}

.announcement-content {
    background-color: var(--white);
    margin: 10% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.announcement-modal.show .announcement-content {
    transform: translateY(0);
}

.announcement-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
}

.announcement-modal.announcement-info .announcement-header {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.announcement-modal.announcement-success .announcement-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.announcement-modal.announcement-warning .announcement-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.announcement-modal.announcement-error .announcement-header {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

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

.announcement-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.announcement-close:hover {
    color: white;
}

.announcement-body {
    padding: 1.5rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.announcement-body p {
    margin: 0 0 1rem 0;
}

.announcement-body p:last-child {
    margin-bottom: 0;
}

.announcement-footer {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray-200);
}

.announcement-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.announcement-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.announcement-checkbox {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-600);
    cursor: pointer;
}

.announcement-checkbox input {
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .announcement-content {
        margin: 5% auto;
        width: 95%;
    }

    .announcement-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .announcement-btn {
        width: 100%;
        text-align: center;
    }
}

/* 二维码放大模态框样式 */
.qr-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.qr-modal.show {
    opacity: 1;
}

.qr-modal-content {
    background-color: var(--white);
    margin: 5% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.qr-modal.show .qr-modal-content {
    transform: translateY(0);
}

.qr-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.qr-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.qr-modal-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.qr-modal-close:hover {
    color: white;
}

.qr-modal-body {
    padding: 2rem;
    text-align: center;
}

.qr-modal-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.qr-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.qr-download-btn,
.qr-save-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.qr-download-btn:hover,
.qr-save-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.qr-save-btn {
    background: var(--accent);
}

.qr-save-btn:hover {
    background: var(--primary);
}

.qr-tips {
    background: var(--light);
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
}

.qr-tips p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qr-tips p:first-child {
    margin-top: 0;
}

.qr-tips p:last-child {
    margin-bottom: 0;
}

.qr-tips i {
    color: var(--primary);
    width: 16px;
}

@media (max-width: 768px) {
    .qr-modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .qr-modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .qr-download-btn,
    .qr-save-btn {
        width: 100%;
        justify-content: center;
    }

    .donation-codes {
        grid-template-columns: 1fr;
    }

    .donation-image-container {
        width: 250px;
        height: 250px;
    }
}
