* {
    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, #fdfcfb 0%, #e2d1c3 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.header h1 {
    font-size: 32px;
    color: #5d4e37;
    margin-bottom: 10px;
    font-weight: 600;
}

.header p {
    color: #8b7355;
    font-size: 14px;
}

/* 标签页样式 */
.tabs {
    display: none;
}

.tab-btn {
    display: none;
}

/* 内容区域 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: none;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 45px 15px 20px;
    border: 2px solid #e8e0d5;
    border-radius: 12px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #5d4e37;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

.search-clear {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: #d4a574;
    color: #fff;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-clear:hover {
    background: #b8956a;
    transform: translateY(-50%) scale(1.1);
}

/* 帖子列表样式 */
.post-list {
    display: grid;
    gap: 15px;
}

.post-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #d4a574;
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.post-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border-left-color: #b8956a;
}

.post-title-link {
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}

.post-title {
    font-size: 18px;
    color: #5d4e37;
    font-weight: 500;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.post-title-link:hover .post-title {
    color: #d4a574;
}

.post-summary {
    font-size: 14px;
    color: #8b7355;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}



/* 帖子详情页 */
.back-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #d4a574;
    border-radius: 8px;
    color: #5d4e37;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
}

.back-btn:hover {
    background: #d4a574;
    color: #fff;
}

.post-detail {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.post-detail h1 {
    font-size: 28px;
    color: #5d4e37;
    margin-bottom: 25px;
    line-height: 1.4;
}

.post-detail h3 {
    font-size: 20px;
    color: #5d4e37;
    margin: 25px 0 15px;
}

.post-detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
}

.post-detail-content {
    font-size: 16px;
    color: #5d4e37;
    line-height: 1.8;
    margin-bottom: 25px;
}

.post-detail-content p {
    margin-bottom: 15px;
}

.post-detail-link {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #d4a574 0%, #b8956a 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.post-detail-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

/* 工具箱网格 */
.toolbox-grid {
    display: none;
}

.tool-card {
    display: none;
}

.tool-icon {
    display: none;
}

.tool-name {
    display: none;
}

.tool-desc {
    display: none;
}

.tool-detail {
    display: none;
}

/* 公告弹窗样式 */
.announcement-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.announcement-overlay.show {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.announcement-modal {
    background: #fff;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.announcement-header {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #e8e0d5;
}

.announcement-title {
    font-size: 20px;
    color: #5d4e37;
    font-weight: 600;
    margin: 0;
}

.announcement-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.announcement-content {
    padding: 20px 25px;
    color: #5d4e37;
    line-height: 1.8;
    font-size: 15px;
}

.announcement-link {
    display: block;
    margin: 0 25px 20px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #d4a574 0%, #b8956a 100%);
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.announcement-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.announcement-footer {
    padding: 15px 25px 25px;
    display: flex;
    gap: 10px;
}

.announcement-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-close {
    background: #f5f5f5;
    color: #8b7355;
}

.btn-close:hover {
    background: #e8e0d5;
}

.btn-hide-today {
    background: #5d4e37;
    color: #fff;
}

.btn-hide-today:hover {
    background: #4a3d2a;
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #8b7355;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

/* 动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式 */
@media (max-width: 600px) {
    .logo {
        width: 60px;
        height: 60px;
    }

    .header h1 {
        font-size: 24px;
    }

    .toolbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-icon {
        font-size: 36px;
    }

    .tool-name {
        font-size: 14px;
    }

    .tool-desc {
        font-size: 11px;
    }
}
