/* 伦理认证模块样式 */
.ethics-main {
    background: #f5f7fa;
    min-height: 100vh;
}

.ethics-hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    color: white;
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ethics-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.ethics-hero-content {
    position: relative;
}

.ethics-hero-icon {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 3rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
}

.ethics-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.ethics-hero p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ethics-hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background: white;
    color: #1e40af;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #111827;
    margin-bottom: 0.5rem;
}

.section-desc {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* 四大核心模块 */
.ethics-modules {
    padding: 4rem 0;
    background: white;
}

.ethics-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.ethics-module-card {
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.ethics-module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.ethics-module-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
}

.ethics-module-card h3 {
    color: #111827;
    margin-bottom: 0.5rem;
}

.ethics-module-card p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ethics-module-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.ethics-module-list li {
    padding: 0.4rem 0;
    color: #4b5563;
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.2rem;
}

.ethics-module-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* 课程 */
.ethics-courses {
    padding: 4rem 0;
}

.ethics-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.ethics-course-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s;
    position: relative;
    border: 1px solid #f0f3f7;
}

.ethics-course-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.course-progress-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #d1fae5;
    color: #065f46;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.course-progress-badge.in-progress {
    background: #fef3c7;
    color: #92400e;
}

.course-icon {
    width: 60px;
    height: 60px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.course-info {
    flex: 1;
}

.course-category {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.course-info h3 {
    color: #111827;
    font-size: 1.05rem;
    margin-bottom: 0.3rem;
}

.course-info > p {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.course-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.8rem;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.course-progress-bar {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.course-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
    border-radius: 3px;
    transition: width 0.3s;
}

.ethics-course-card .btn {
    align-self: flex-end;
}

/* 模板 */
.ethics-templates {
    padding: 4rem 0;
    background: white;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.template-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #3b82f6;
}

.template-icon {
    width: 50px;
    height: 50px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.template-card h3 {
    color: #111827;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.template-card > p {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.template-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.template-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* 测评 */
.ethics-quiz {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #f5f7fa 100%);
}

.ethics-quiz-container {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-top: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    text-align: center;
}

.ethics-quiz-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.quiz-info-card {
    padding: 1.5rem 1rem;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.3s;
}

.quiz-info-card:hover {
    transform: translateY(-2px);
    background: #f3f4f6;
}

.quiz-info-card i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.quiz-info-card h3 {
    color: #111827;
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.quiz-info-card p {
    color: #6b7280;
    font-size: 0.85rem;
}

.btn-start-quiz {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    border-radius: 30px;
}

/* 证书列表 */
.ethics-certificates {
    padding: 4rem 0;
}

.certificates-list {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.certificate-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #f0f3f7;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cert-item-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cert-item-info {
    flex: 1;
}

.cert-item-info h4 {
    color: #111827;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.cert-item-info p {
    color: #6b7280;
    font-size: 0.85rem;
}

.cert-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    grid-column: 1 / -1;
}

.cert-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .ethics-hero h1 {
        font-size: 2rem;
    }

    .ethics-course-card {
        flex-direction: column;
    }
}
