/* 产品详情专用样式 */
.product-detail {
    padding: 30px 0;
}

.detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.detail-gallery {
    flex: 1;
    min-width: 300px;
}

.detail-gallery img {
    width: 100%;
    border-radius: 8px;
}

.detail-info {
    flex: 1;
    min-width: 300px;
}

.detail-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #2c3e50;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.detail-price {
    font-size: 20px;
    color: #e74c3c;
    margin-bottom: 5px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 4px;
    display: inline-block;
}

.detail-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
    font-size: 22px;
    font-weight: bold;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #e74c3c;
    border-radius: 4px;
}

.detail-specs {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-specs h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: bold;
}

.detail-specs ul {
    list-style: none;
    padding: 0;
}

.detail-specs li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

.detail-specs li:last-child {
    border-bottom: none;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: #3498db;
    color: white;
}

.btn-secondary:hover {
    background-color: #2980b9;
}

/* 返回首页按钮样式 */
.btn-home {
    background-color: #616569;
    color: white;
}

.btn-home:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.detail-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.detail-content h2 {
    font-size: 28px;
    margin: 30px 0 20px 0;
    color: #2c3e50;
    font-weight: bold;
    padding-bottom: 10px;
}

.detail-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

/* 新增的产品优势和应用场景样式 */
.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 4px solid #e74c3c;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 23px;
    font-weight: bold;
}

.feature-card ul {
    padding-left: 20px;
}

.feature-card li {
    margin-bottom: 10px;
    color: #555;
    font-weight: 500;
}

.application-scenarios {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
}

.scenario-card {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-3px);
}

.scenario-card h3 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: bold;
}

.scenario-card p {
    color: #555;
    font-weight: 500;
}

/* 模块化展示样式 */
.modules-section {
    margin: 30px 0;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.modules-section > p {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.6;
}

.modules-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.module-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.module-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.module-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: bold;
}

.module-tag {
    background-color: #e74c3c;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.module-content {
    padding: 20px;
    height: calc(100% - 60px);
    position: relative;
}

.module-text, .module-image {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    overflow: hidden;
}

.module-text {
    overflow-y: auto;
}

.module-image {
    display: none;
}

.module-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.module-content > p {
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.module-specs h4 {
    color: #3498db;
    margin: 15px 0 10px 0;
    font-size: 18px;
    font-weight: bold;
}

.module-specs ul {
    padding-left: 20px;
    margin: 0;
}

.module-specs li {
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

/* 咨询弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #333;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}

.close:hover {
    color: #333;
}

.modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group label.required::after {
    content: " *";
    color: red;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.btn-submit {
    background-color: #e74c3c;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #c0392b;
}

.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.success-message {
    color: green;
    text-align: center;
    padding: 20px;
    display: none;
}

/* 云课堂产品特有样式 */
.course-detail-container {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
}

/* 标签页样式 */
.course-tabs {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    overflow: hidden;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: #f8f9fa;
}

.tab-button {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #555;
    transition: all 0.3s ease;
    text-align: center;
}

.tab-button:hover {
    background-color: #e9ecef;
    color: #333;
}

.tab-button.active {
    background-color: #3498db;
    color: white;
}

.tab-content {
    display: none;
    padding: 25px;
}

.tab-content.active {
    display: block;
}

/* 课程目录样式 */
.course-outline {
    margin-top: 10px;
}

.outline-chapter {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.chapter-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.chapter-header:hover {
    background-color: #e9ecef;
}

.chapter-title {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
}

.hour-count {
    font-size: 14px;
    color: #e74c3c;
    background-color: #ffeaea;
    padding: 3px 10px;
    border-radius: 15px;
}

.arrow-icon {
    font-size: 16px;
    color: #3498db;
    transition: transform 0.3s ease;
}

.chapter-content {
    display: none;
    padding: 20px;
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

.lesson-list {
    padding-left: 20px;
    margin: 0;
}

.lesson-list li {
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #3498db;
    list-style-type: disc;
    color: #333;
}

/* 课程简介样式 */
.course-intro p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.intro-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-top: 3px solid #e74c3c;
}

.feature-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
}

.feature-item ul {
    padding-left: 20px;
}

.feature-item li {
    margin-bottom: 10px;
    color: #555;
}

/* 老师介绍样式 */
.teacher-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.teacher-card {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-top: 3px solid #3498db;
}

.teacher-avatar {
    flex-shrink: 0;
}

.teacher-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.teacher-info {
    flex: 1;
}

.teacher-name {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.teacher-title {
    font-size: 16px;
    color: #e74c3c;
    font-weight: normal;
}

.teacher-desc p {
    margin-top: 10px;
    color: #555;
    line-height: 1.6;
}

/* 报名条件样式 - 从上到下布局 */
.enroll-conditions {
    margin-top: 15px;
}

.condition-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.condition-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.condition-title {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
}

.condition-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background-color: #3498db;
    border-radius: 50%;
}

.condition-content p {
    color: #555;
    line-height: 1.8;
    font-size: 16px;
    margin: 0;
    padding-left: 20px;
}
