/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    font-size: 14px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    margin-bottom: 15px;
}

h1 {
    font-size: 24px;
    color: #1a73e8;
}

h2 {
    font-size: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    font-size: 18px;
    margin-top: 20px;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 表单样式 */
.auth-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: background-color 0.3s;
    text-decoration: none;
}

.btn:hover {
    background-color: #0d62c9;
    text-decoration: none;
}

.btn.secondary {
    background-color: #757575;
}

.btn.secondary:hover {
    background-color: #616161;
}

.btn.primary {
    background-color: #1a73e8;
}

.btn.danger {
    background-color: #d93025;
}

.btn.danger:hover {
    background-color: #b71c1c;
}

.btn.small {
    padding: 5px 10px;
    font-size: 12px;
}

.btn.disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    color: #666666;
    pointer-events: none;
}

/* 错误和成功消息 */
.error, .success {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.error {
    background-color: #ffebee;
    color: #b71c1c;
    border: 1px solid #ef9a9a;
}

.success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border: 1px solid #a5d6a7;
}

.success-message {
    text-align: center;
    padding: 50px 0;
}

/* 头部样式 */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.user-info {
    text-align: right;
}

/* 表格样式 */
.projects-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.projects-table th,
.projects-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.projects-table th {
    background-color: #f5f5f5;
}

.projects-table tr:hover {
    background-color: #f9f9f9;
}

/* 工具栏 */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    width: 500px;
    max-width: 90%;
}

/* 申报表单 */
.declaration-form .section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.info-table input,
.info-table select {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    width: 50%;
}

.checkbox-group {
    display: flex;
    gap: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 5px;
    width: auto;
}

.viewers-group {
    margin-bottom: 20px;
}

.viewers-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 5px;
}

.viewer-option {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.viewer-option input[type="checkbox"] {
    margin-right: 5px;
    width: auto;
}

.viewer-option label {
    font-weight: normal;
    margin-bottom: 0;
}

.margin-top {
    margin-top: 15px;
}

.image-preview {
    margin-top: 10px;
    max-width: 300px;
    max-height: 200px;
    border: 1px solid #ddd;
    padding: 5px;
    display: none;
}

.image-preview img {
    max-width: 100%;
    max-height: 190px;
}

.actions {
    white-space: nowrap;
}

.empty-message {
    text-align: center;
    padding: 50px 0;
    color: #757575;
    font-style: italic;
}

/* 项目详情页面 */
.project-details {
    margin-top: 20px;
}

.project-section {
    margin-bottom: 30px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.project-section h4 {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-label {
    font-weight: bold;
    margin-bottom: 5px;
}

.project-image {
    max-width: 100%;
    margin: 10px 0;
    border: 1px solid #ddd;
    padding: 5px;
}

/* 项目详情页面 - 优化版 */
.project-details {
    margin-top: 20px;
}

.project-section {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border-top: 3px solid #1a73e8;
}

/* 添加分区线 */
.project-section::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
}

.project-section:last-child::after {
    display: none;
}

.project-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-header {
    background-color: #f0f7ff;
    border-top: none;
    border-left: 5px solid #1a73e8;
}

.section-title {
    font-size: 18px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    color: #1a73e8;
    font-weight: bold;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #1a73e8;
}

.section-content {
    padding: 0 10px;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-grid {
    display: grid;
    gap: 20px;
}

/* 默认为单列布局 */
.detail-grid {
    grid-template-columns: 1fr;
}

/* 两列布局专用类 */
.detail-grid.two-columns,
.project-basic-info {
    grid-template-columns: repeat(2, 1fr);
}

/* 适应短文本的3列布局 */
.detail-grid.compact {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.detail-label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
    border-left: 3px solid #1a73e8;
    padding-left: 8px;
}

.detail-value {
    color: #333;
    padding: 5px 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.detail-value.highlight {
    font-size: 18px;
    color: #1a73e8;
    font-weight: bold;
    background-color: #f0f7ff;
    padding: 8px 15px;
    border-radius: 4px;
    border-left: 3px solid #1a73e8;
}

.content-box {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #fafafa;
    line-height: 1.8;
    margin-top: 5px;
}

.full-width {
    grid-column: 1 / -1;
}

.info-card {
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    background-color: #fafafa;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-title {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    color: #333;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #1a73e8;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.gallery-item {
    flex: 0 0 calc(33.33% - 10px);
    max-width: calc(33.33% - 10px);
}

.project-image {
    max-width: 100%;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: transform 0.3s ease;
}

.project-image:hover {
    transform: scale(1.02);
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.projects-table th {
    background-color: #f5f5f5;
    padding: 12px;
    font-weight: bold;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.projects-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.projects-table tr:last-child td {
    border-bottom: none;
}

.projects-table tr:hover {
    background-color: #f9f9f9;
}

.economic-benefits .detail-label {
    color: #2e7d32;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.stamp-placeholder {
    display: inline-block;
    margin: 20px auto;
    padding: 15px 30px;
    border: 2px dashed #999;
    color: #999;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

.project-basic-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* 分区标识器 */
.section-divider {
    height: 1px;
    margin: 20px 0;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    position: relative;
}

.section-divider::before {
    content: '•';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    padding: 0 10px;
    color: #999;
}

/* ...existing code... */

.existing-image {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.project-image-small {
    max-width: 200px;
    max-height: 150px;
    display: block;
    margin-bottom: 5px;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* ...existing code... */
