/* 网络安全备案系统 - 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

a { color: #1890ff; text-decoration: none; }
a:hover { color: #40a9ff; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 按钮 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
}
.btn-primary { background: #1890ff; color: #fff; }
.btn-primary:hover { background: #40a9ff; color: #fff; }
.btn-outline { background: transparent; border: 1px solid #d9d9d9; color: #666; }
.btn-outline:hover { border-color: #1890ff; color: #1890ff; }
.btn-block { display: block; width: 100%; }
.btn-hero {
    padding: 14px 40px;
    font-size: 18px;
    font-weight: bold;
    background: #fff;
    color: #1890ff;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn-hero:hover { background: #f0f0f0; color: #1890ff; }
.btn-disabled { opacity: 0.6; cursor: not-allowed; }

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.status-verified { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.status-pending { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.status-rejected { background: #fff1f0; color: #f5222d; border: 1px solid #ffa39e; }
.status-draft { background: #f0f0f0; color: #999; border: 1px solid #d9d9d9; }

/* 提示框 */
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-error { background: #fff1f0; border: 1px solid #ffa39e; color: #f5222d; }
.alert-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #52c41a; }
.alert-warning { background: #fff7e6; border: 1px solid #ffd591; color: #fa8c16; }

/* ===== 登录/注册页 ===== */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-container { width: 100%; max-width: 480px; }

.auth-header {
    text-align: center;
    color: #fff;
    margin-bottom: 30px;
}
.auth-header h1 { font-size: 28px; margin-bottom: 8px; }
.auth-header p { opacity: 0.8; font-size: 14px; }

.auth-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.auth-card h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
}

.register-card { max-width: 560px; margin: 0 auto; }

/* 用户类型切换 */
.user-type-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}
.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 15px;
    color: #999;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}
.tab-btn.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
    font-weight: 500;
}

/* 表单 */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.1);
}
.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}
.required { color: #f5222d; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-agreement {
    margin-bottom: 20px;
    font-size: 13px;
    color: #666;
}
.form-agreement label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
}
.auth-footer p { margin-bottom: 5px; }

/* ===== Dashboard 头部 ===== */
.dashboard-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}
.dashboard-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    font-size: 18px;
    color: #1890ff;
    font-weight: bold;
}
.header-nav {
    display: flex;
    gap: 5px;
}
.header-nav a {
    padding: 8px 16px;
    color: #666;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.3s;
}
.header-nav a:hover,
.header-nav a.active {
    color: #1890ff;
    background: #e6f7ff;
}

/* 认证提示 */
.verify-notice {
    background: #fff7e6;
    border-bottom: 1px solid #ffd591;
    padding: 12px 0;
}
.notice-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notice-icon { font-size: 20px; }
.notice-text { font-size: 14px; color: #666; }
.notice-text strong { color: #fa8c16; }

/* ===== 轮播图 ===== */
.hero-carousel {
    position: relative;
    overflow: hidden;
}
.carousel-container {
    position: relative;
    height: 400px;
}
.carousel-slides {
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.slide.active { opacity: 1; }
.slide-content {
    text-align: center;
    color: #fff;
}
.slide-content h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.slide-content p {
    font-size: 18px;
    opacity: 0.9;
}

/* 中间按钮 */
.carousel-center-btn {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}
.btn-hint {
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}
.indicator.active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

/* ===== 系统介绍 ===== */
.system-intro {
    padding: 60px 0;
    background: #fff;
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}
.section-header p {
    color: #666;
    font-size: 15px;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}
.intro-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 8px;
    background: #f7f9fc;
    transition: transform 0.3s, box-shadow 0.3s;
}
.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.intro-icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.intro-card h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}
.intro-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 备案流程 */
.intro-steps {
    text-align: center;
}
.intro-steps h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 30px;
}
.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.step {
    text-align: center;
    padding: 20px;
}
.step-num {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1890ff, #096dd9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 12px;
}
.step h4 {
    font-size: 15px;
    color: #333;
    margin-bottom: 6px;
}
.step p {
    font-size: 13px;
    color: #666;
}
.step-arrow {
    font-size: 24px;
    color: #1890ff;
}

/* ===== 用户概览 ===== */
.user-overview {
    padding: 40px 0;
}
.overview-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.overview-info h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}
.overview-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

/* ===== 备案页 ===== */
.filing-main,
.profile-main {
    padding: 40px 0 60px;
}
.page-header {
    margin-bottom: 30px;
}
.page-header h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
}
.page-header p {
    color: #666;
    font-size: 14px;
}

.filing-form-card {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}
.filing-form-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* 历史记录表格 */
.filing-history {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.filing-history h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.data-table th {
    background: #fafafa;
    font-weight: 500;
    color: #666;
}
.data-table tr:hover {
    background: #f7f9fc;
}

/* ===== 个人中心 ===== */
.profile-status-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.status-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.status-header h3 {
    font-size: 18px;
    color: #333;
}
.status-desc p {
    font-size: 14px;
    color: #666;
}

.profile-info-card {
    background: #fff;
    border-radius: 8px;
    padding: 25px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.profile-info-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.info-item label {
    font-size: 13px;
    color: #999;
}
.info-item span {
    font-size: 15px;
    color: #333;
}

/* ===== 底部 ===== */
.dashboard-footer {
    background: #262626;
    color: #fff;
    padding: 25px 0;
    text-align: center;
}
.dashboard-footer p {
    font-size: 13px;
    margin-bottom: 5px;
}
.dashboard-footer a {
    color: #aaa;
}
.dashboard-footer a:hover {
    color: #fff;
}

/* ===== 后台管理 ===== */
.admin-page { background: #f0f2f5; }
.admin-header {
    background: #001529;
    color: #fff;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-header h1 { font-size: 18px; }
.admin-nav {
    display: flex;
    gap: 5px;
}
.admin-nav a {
    color: rgba(255,255,255,0.65);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
}
.admin-nav a:hover,
.admin-nav a.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.admin-main {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.stat-card .stat-label {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}
.stat-card .stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #333;
}
.stat-card .stat-icon {
    float: right;
    font-size: 32px;
    opacity: 0.3;
}

.admin-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.admin-card-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-card-header h3 {
    font-size: 16px;
    color: #333;
}
.admin-card-body {
    padding: 24px;
}

/* 审核操作 */
.action-btns {
    display: flex;
    gap: 8px;
}
.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
}
.btn-success { background: #52c41a; color: #fff; }
.btn-success:hover { background: #73d13d; color: #fff; }
.btn-danger { background: #f5222d; color: #fff; }
.btn-danger:hover { background: #ff4d4f; color: #fff; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .dashboard-header .container {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
    }
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .carousel-container { height: 300px; }
    .slide-content h2 { font-size: 24px; }
    .slide-content p { font-size: 14px; }
    .intro-features { grid-template-columns: repeat(2, 1fr); }
    .steps-container { flex-direction: column; }
    .step-arrow { transform: rotate(90deg); }
    .form-row { grid-template-columns: 1fr; }
    .overview-card { flex-direction: column; text-align: center; gap: 15px; }
    .info-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .auth-card { padding: 25px; }
}
