* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: #1d1d1f;
    background: #ffffff;
    line-height: 1.8;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

:root {
    --primary: #1D5A3E;
    --primary-dark: #14442d;
    --primary-light: rgba(29,90,62,0.08);
    --text-secondary: #86868b;
    --bg-section: #f5f5f7;
    --border-light: rgba(0,0,0,0.06);
}

/* 导航 */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center;
    padding: 0 2rem; height: 60px;
}
.logo { font-weight: 700; font-size: 1.2rem; color: var(--primary); letter-spacing: -0.02em; }
.nav-links { list-style: none; display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: #1d1d1f; font-size: 0.9rem; font-weight: 500; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 0.7; color: var(--primary); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links .btn-review {
    background: var(--primary); color: white; padding: 0.4rem 1.2rem;
    border-radius: 50px; font-weight: 600;
}
.nav-links .btn-review:hover { background: var(--primary-dark); }
.menu-toggle {
    display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer;
}
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; background: white;
        position: absolute; top: 60px; left: 0; width: 100%; padding: 1.5rem 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
    .nav-links.show { display: flex; }
    .menu-toggle { display: block; }
}

/* Hero区域 */
.hero {
    min-height: 60vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
    padding: 8rem 2rem 3rem;
    background: linear-gradient(180deg, #f8faf9 0%, #ffffff 100%);
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hero p { color: var(--text-secondary); max-width: 600px; margin: 0.5rem auto; }

/* Section */
.section { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; }
.section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.section h3 { font-size: 1.3rem; font-weight: 600; margin: 1.5rem 0 0.8rem; }
.bg-light { background: var(--bg-section); padding: 3rem calc((100% - 1200px)/2 + 2rem); }
.text-center { text-align: center; }

/* 作品网格 */
.work-grid { display: grid; gap: 1.5rem; }
.work-grid.images { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.work-grid.texts { grid-template-columns: 1fr; } /* 文本类卡片横向扩展 */

/* 作品卡片 */
.work-card {
    background: white; border-radius: 18px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s; cursor: pointer;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.card-img { height: 220px; background-size: cover; background-position: center; background-color: #f0f0f0; }
.card-body { padding: 1.2rem 1.5rem; }
.card-type {
    display: inline-block; background: var(--primary-light); color: var(--primary);
    padding: 0.15rem 0.8rem; border-radius: 50px; font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.card-body h3 { font-size: 1.15rem; font-weight: 700; margin: 0.3rem 0; }
.card-body p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.card-body .stars { color: #f5a623; font-size: 1.3rem; letter-spacing: 2px; margin-top: 0.3rem; }
.card-text-content { max-height: 200px; overflow: hidden; position: relative; }
.card-text-content.expanded { max-height: none; }
.read-more { color: var(--primary); cursor: pointer; font-size: 0.85rem; }

/* 文本类卡片特殊样式 */
.text-card .card-img { height: auto; max-height: 100px; display: flex; align-items: center; justify-content: center; background: #f0f0f0; font-size: 2rem; }
.text-card .card-body { border-left: 3px solid var(--primary); }

/* 分区标题 */
.section-divider { margin: 2rem 0 1rem; display: flex; align-items: center; gap: 1rem; }
.section-divider h3 { margin: 0; white-space: nowrap; }
.section-divider hr { flex: 1; border: none; border-top: 1px solid var(--border-light); }

/* 搜索与筛选 */
.search-bar { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; align-items: center; }
.search-bar input {
    flex: 1; min-width: 200px; padding: 0.7rem 1.2rem; border: 1px solid var(--border-light);
    border-radius: 50px; font-size: 1rem; outline: none; transition: border 0.2s;
}
.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,90,62,0.1); }
.filter-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-btn {
    padding: 0.4rem 1.2rem; border-radius: 50px; background: white;
    border: 1px solid var(--border-light); font-size: 0.85rem; cursor: pointer;
    transition: all 0.2s; color: var(--text-secondary);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* 模态框（作品详情） */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(8px);
    align-items: center; justify-content: center; z-index: 2000;
}
.modal-content {
    background: white; border-radius: 24px; max-width: 700px; width: 90%;
    max-height: 90vh; overflow-y: auto; padding: 2rem; position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}
.modal-close {
    position: absolute; top: 1rem; right: 1rem; background: none;
    border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-secondary);
}
.modal-img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 16px; margin-bottom: 1rem; }
.modal-file a { color: var(--primary); text-decoration: underline; }

/* 页脚 */
.footer { text-align: center; padding: 3rem 2rem; border-top: 1px solid var(--border-light); color: var(--text-secondary); font-size: 0.85rem; }

/* 按钮通用 */
.btn {
    display: inline-block; padding: 0.7rem 2rem; border-radius: 50px;
    font-weight: 600; font-size: 1rem; transition: all 0.25s ease; cursor: pointer; border: none;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(29,90,62,0.3); }
.btn-secondary { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }

/* 表单 */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.7rem; border: 1px solid #ddd; border-radius: 10px; font-size: 1rem;
}
.form-group textarea { min-height: 100px; }

/* 评审页样式 */
.review-list { max-width: 800px; margin: 0 auto; }
.review-item {
    display: flex; align-items: flex-start; gap: 1rem;
    background: white; border-radius: 16px; padding: 1.2rem; margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.review-item input[type=checkbox] { transform: scale(1.3); margin-top: 0.3rem; }
.review-item .review-info { flex: 1; }
.review-item .review-info h4 { margin-bottom: 0.2rem; }
.review-item .review-info p { font-size: 0.85rem; color: var(--text-secondary); }
.review-item .review-img { width: 100px; height: 70px; border-radius: 8px; background-size: cover; background-position: center; flex-shrink: 0; }

/* 后台表单 */
.admin-card { background: white; border-radius: 18px; padding: 1.5rem; margin-bottom: 2rem; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }

/* 提示信息 */
.flash { padding: 0.8rem 1.2rem; border-radius: 10px; margin-bottom: 1rem; font-size: 0.9rem; }
.flash-success { background: #d4edda; color: #155724; }
.flash-error { background: #f8d7da; color: #721c24; }

/* 响应式 */
@media (max-width: 768px) {
    .hero { padding: 6rem 1.5rem 2rem; min-height: 50vh; }
    .section { padding: 2rem 1.5rem; }
    .work-grid.images { grid-template-columns: 1fr; }
    .review-item { flex-direction: column; }
    .review-item .review-img { width: 100%; height: 150px; }
}
