/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    background: #f8fafc;
    color: #1e293b;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content {
    flex: 1;
}

/* 头部 */
.site-header {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.logo h1 a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.site-nav a {
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    transition: color 0.2s;
}
.site-nav a:hover {
    color: var(--primary);
}

/* Hero 区域 */
.hero {
    padding: 80px 0;
    text-align: center;
    color: white;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-light {
    background: white;
    color: var(--primary);
    border: none;
}
.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

/* 仪表盘卡片 */
.dashboard {
    padding: 60px 0;
    background: white;
    margin-bottom: 40px;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.stat-card {
    background: #f1f5f9;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-4px);
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 1rem;
    color: #475569;
}
.dashboard-actions {
    text-align: center;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮通用样式 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}
.btn-secondary {
    background: var(--secondary);
    color: white;
}
.btn-secondary:hover {
    filter: brightness(1.05);
    transform: translateY(-2px);
}
.btn-light {
    background: white;
    color: var(--primary);
}
.btn-light:hover {
    background: rgba(255,255,255,0.9);
}
.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}
.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

/* 平台特色区域 */
.features {
    padding: 80px 0;
    background: white;
}
.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: #0f172a;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}
.feature-item {
    text-align: center;
    padding: 24px;
}
.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #0f172a;
}
.feature-item p {
    color: #475569;
    font-size: 0.95rem;
}

/* 公告区域 */
.announcement {
    background: #fef9e3;
    padding: 60px 0;
    border-radius: 24px;
    margin: 40px 24px;
}
.announcement .container {
    background: transparent;
}
.announcement-content {
    background: white;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    font-size: 1rem;
    color: #334155;
}

/* 如何开始步骤 */
.how-to-start {
    padding: 80px 0;
    background: #f8fafc;
}
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}
.step {
    text-align: center;
}
.step-num {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 48px;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 16px;
}
.step h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.step p {
    color: #475569;
    font-size: 0.9rem;
}
.start-action {
    text-align: center;
    margin-top: 32px;
}

/* 文章页样式（原有，保持兼容） */
.post {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.post-title {
    font-size: 2rem;
    margin-bottom: 16px;
}
.post-meta {
    color: #64748b;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.post-content {
    font-size: 1.05rem;
    line-height: 1.8;
}
.post-content img {
    max-width: 100%;
    border-radius: 12px;
}
.sensitive-highlight {
    background-color: #fee2e2;
    color: #dc2626;
    font-weight: 600;
    padding: 0 2px;
    border-radius: 4px;
}

/* 表单样式 */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}
.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-container input, .form-container textarea, .form-container select {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 20px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    font-size: 1rem;
}
.submit-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
}

/* 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.table th, .table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}
.table th {
    background: #f1f5f9;
    font-weight: 600;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero {
        padding: 48px 0;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .stats-grid {
        gap: 16px;
    }
    .feature-item h3 {
        font-size: 1.25rem;
    }
    .steps {
        gap: 24px;
    }
    .post {
        padding: 20px;
    }
}

/* ========== 投稿页面专用样式 ========== */
.submit-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 40px 20px;
    background: #f8fafc;
}
.submit-card {
    max-width: 900px;
    width: 100%;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    transition: transform 0.2s;
}
.submit-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}
.submit-desc {
    color: #64748b;
    margin-bottom: 32px;
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}
.required {
    color: #e74c3c;
}
.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    transition: all 0.2s;
    background: #ffffff;
    box-sizing: border-box;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}
textarea.form-control {
    resize: vertical;
    font-family: inherit;
}
.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.form-group.half {
    flex: 1;
    min-width: 200px;
}
.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    flex-wrap: wrap;
}
.btn-large {
    padding: 12px 28px;
    font-size: 1rem;
}
.sensitive-hint {
    font-size: 0.85rem;
    margin-top: 8px;
}
/* 响应式 */
@media (max-width: 640px) {
    .submit-card {
        padding: 24px;
    }
    .form-actions {
        justify-content: stretch;
    }
    .btn-large {
        flex: 1;
        text-align: center;
    }
}

/* ========== 我的稿件页面样式 ========== */
.submissions-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
    background: #f8fafc;
}
.submissions-card {
    max-width: 1200px;
    width: 100%;
    background: #ffffff;
    border-radius: 32px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    padding: 40px;
}
.submissions-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}
.submissions-desc {
    color: #64748b;
    margin-bottom: 32px;
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}
.submissions-table-wrapper {
    overflow-x: auto;
}
.submissions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.submissions-table th,
.submissions-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}
.submissions-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #1e293b;
}
.submissions-table tr:hover {
    background: #f8fafc;
}
.post-title a {
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
    transition: color 0.2s;
}
.post-title a:hover {
    color: var(--primary);
    text-decoration: underline;
}
.post-status {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 40px;
    display: inline-block;
    font-size: 0.85rem;
}
/* 状态颜色 */
.status-waiting {
    background: #fef9e3;
    color: #b45309;
}
.status-first_reviewing,
.status-second_reviewing,
.status-third_reviewing {
    background: #e0f2fe;
    color: #0369a1;
}
.status-publish {
    background: #dcfce7;
    color: #15803d;
}
.status-private {
    background: #fee2e2;
    color: #b91c1c;
}
.post-time {
    color: #64748b;
    font-size: 0.85rem;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 30px;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: white;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}
/* 响应式 */
@media (max-width: 640px) {
    .submissions-card {
        padding: 24px;
    }
    .submissions-table th,
    .submissions-table td {
        padding: 12px 8px;
    }
    .post-status {
        font-size: 0.75rem;
        padding: 2px 8px;
    }
    .btn-sm {
        padding: 4px 10px;
    }
}