/* 页面通用样式 */
.page-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.page-banner p {
    font-size: 18px;
    opacity: 0.9;
}

/* 医院介绍页面 */
.hospital-overview {
    background: white;
    padding: 60px 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-image {
    height: 400px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

/* 左侧轮播样式 */
.overview-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dots .dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-btn.carousel-prev {
    left: 16px;
}

.carousel-btn.carousel-next {
    right: 16px;
}

.overview-content h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.overview-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary-color);
}

.features-list h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.features-list ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.features-list li i {
    color: var(--secondary-color);
}

/* 统计数据 */
.stats-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.stats-grid-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.stat-icon i {
    font-size: 28px;
    color: white;
}

/* 重点学科 */
.excellent-section {
    background: white;
    padding: 60px 0;
}

.excellent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.excellent-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.excellent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.excellent-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.excellent-card p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.excellent-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.excellent-features span {
    padding: 4px 12px;
    background: white;
    border-radius: 12px;
    font-size: 12px;
    color: var(--primary-color);
}

/* 设备展示 */
.equipment-section {
    background: var(--bg-light);
    padding: 60px 0;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.equipment-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.equipment-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.equipment-icon i {
    font-size: 36px;
    color: white;
}

.equipment-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.equipment-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* 服务特色 */
.service-features {
    background: white;
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.feature-icon i {
    font-size: 32px;
    color: white;
}

.feature-item h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* 科室页面 */
.dept-filter {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    background: var(--bg-light);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--primary-color);
    color: white;
}

.dept-list-section {
    background: var(--bg-light);
    padding: 40px 0;
}

.dept-detail-section {
    background: var(--bg-light);
    padding: 40px 0;
    min-height: 500px;
}

.dept-detail-header {
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    min-height: 280px;
    margin-bottom: 24px;
    overflow: hidden;
}

.dept-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    color: white;
}

.dept-detail-header h2 {
    font-size: 36px;
    margin-bottom: 12px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dept-header-overlay .dept-meta {
    margin-bottom: 16px;
}

.dept-header-overlay .dept-meta span {
    color: rgba(255, 255, 255, 0.9);
}

.dept-header-overlay .dept-meta i {
    color: var(--secondary-color);
}

.dept-header-overlay p {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    max-width: 800px;
}

.dept-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.dept-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-light);
}

.dept-meta i {
    color: var(--primary-color);
}

.dept-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.dept-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.doctors-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.doctor-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.doctor-item:hover {
    box-shadow: var(--shadow);
}

.doctor-avatar-sm {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-avatar-sm i {
    font-size: 28px;
    color: white;
}

.doctor-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.doctor-info .title {
    font-size: 13px;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.doctor-info .specialty {
    font-size: 12px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.doctor-action {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.doctor-item:hover .btn-view {
    background: var(--primary-dark);
}

/* AI页面 */
.ai-page-section {
    background: var(--bg-light);
    padding: 40px 0;
    min-height: 600px;
}

.ai-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.ai-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
}

.ai-sidebar h3 {
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.ai-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ai-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.ai-menu-item:hover,
.ai-menu-item.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.ai-menu-item i {
    width: 24px;
    text-align: center;
}

.ai-content {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.ai-chat-area {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.ai-chat-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.ai-chat-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-light);
}

.ai-chat-input-area {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.ai-chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    outline: none;
}

.ai-chat-input-area button {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
}

/* 商城页面 */
.shop-header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.shop-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-box {
    display: flex;
    width: 400px;
}

.search-box input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    outline: none;
}

.search-box button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding: 24px 0;
}

.shop-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    padding: 10px 12px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-item:hover,
.category-item.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 产品详情 */
.product-detail {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
}

.product-detail-image {
    height: 400px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image i {
    font-size: 120px;
    color: var(--primary-light);
}

.product-detail-info h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.product-detail-info .subtitle {
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.product-detail-price .current {
    font-size: 32px;
    font-weight: 600;
    color: var(--danger-color);
}

.product-detail-price .original {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.quantity-selector label {
    font-weight: 500;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.quantity-control button {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
}

.quantity-control input {
    width: 50px;
    height: 36px;
    border: none;
    text-align: center;
}

.product-actions {
    display: flex;
    gap: 16px;
}

/* 购物车 */
.cart-section {
    background: var(--bg-light);
    padding: 40px 0;
    min-height: 500px;
}

.cart-container {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 100px;
    gap: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-weight: 500;
    margin-bottom: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 100px;
    gap: 20px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-product {
    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-product-image i {
    font-size: 36px;
    color: var(--primary-light);
}

.cart-product-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.cart-product-info p {
    font-size: 13px;
    color: var(--text-muted);
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 2px solid var(--border-color);
}

.cart-total {
    text-align: right;
}

.cart-total .label {
    font-size: 14px;
    color: var(--text-light);
}

.cart-total .amount {
    font-size: 28px;
    font-weight: 600;
    color: var(--danger-color);
}

/* 个人中心 */
.profile-section {
    background: var(--bg-light);
    padding: 40px 0;
    min-height: 600px;
}

.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

.profile-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
}

.profile-user {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.profile-avatar i {
    font-size: 50px;
    color: white;
}

.profile-user h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.profile-user p {
    font-size: 14px;
    color: var(--text-muted);
}

.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
}

.profile-menu-item:hover,
.profile-menu-item.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.profile-menu-item i {
    width: 24px;
    text-align: center;
}

.profile-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
}

.profile-section-title {
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

/* 预约卡片 */
.appointment-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.appointment-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.appointment-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.appointment-status {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

/* 响应式 */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stats-grid-large,
    .excellent-grid,
    .equipment-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .doctors-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ai-container,
    .shop-container,
    .profile-container {
        grid-template-columns: 1fr;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid-large,
    .excellent-grid,
    .equipment-grid,
    .features-grid,
    .doctors-list {
        grid-template-columns: 1fr;
    }
    
    .features-list ul {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        width: 100%;
    }
    
    .cart-header,
    .cart-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .schedule-header {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .schedule-row {
        grid-template-columns: 60px repeat(4, 1fr);
    }
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 12px;
    color: var(--text-muted);
}

/* 医生详情页面 */
.doctor-detail-section {
    background: var(--bg-light);
    padding: 20px 0 60px;
    min-height: 600px;
}

.doctor-detail-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.doctor-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.doctor-avatar-lg {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.doctor-avatar-lg i {
    font-size: 80px;
    color: white;
}

.doctor-info-main {
    flex: 1;
}

.doctor-name-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.doctor-name-row h2 {
    font-size: 28px;
    margin: 0;
}

.expert-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.doctor-title {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.doctor-dept {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.doctor-dept i {
    margin-right: 6px;
}

.doctor-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.doctor-tags .tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-dark);
}

.doctor-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.doctor-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doctor-section h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.doctor-section h4 i {
    color: var(--primary-color);
}

.doctor-section p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

/* 排班表 */
.schedule-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.schedule-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-section h3 i {
    color: var(--primary-color);
}

.schedule-table {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.schedule-header {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.schedule-date {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.schedule-date:last-child {
    border-right: none;
}

.schedule-date.disabled {
    background: #f9fafb;
    color: var(--text-muted);
}

.schedule-date .weekday {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.schedule-date .date {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.schedule-body {
    display: flex;
    flex-direction: column;
}

.schedule-row {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    border-bottom: 1px solid var(--border-color);
}

.schedule-row:last-child {
    border-bottom: none;
}

.time-label {
    padding: 16px 8px;
    text-align: center;
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-light);
}

.schedule-cell {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.schedule-cell:last-child {
    border-right: none;
}

.schedule-cell.available {
    background: #ecfdf5;
    color: var(--success-color);
}

.schedule-cell.available:hover {
    background: var(--success-color);
    color: white;
}

.schedule-cell.available .price {
    font-size: 12px;
    font-weight: 500;
}

.schedule-cell.full {
    background: #fef2f2;
    color: var(--danger-color);
    cursor: not-allowed;
}

.schedule-cell.disabled {
    background: #f9fafb;
    color: var(--text-muted);
    cursor: not-allowed;
}

/* 预约表单 */
.appointment-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.appointment-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.appointment-section h3 i {
    color: var(--primary-color);
}

.appointment-form-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 24px;
}

.selected-info {
    background: white;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.selected-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.selected-info p:last-child {
    margin-bottom: 0;
}

.fee-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: var(--radius);
    margin: 20px 0;
}

.fee-info .fee {
    font-size: 24px;
    font-weight: 600;
    color: var(--danger-color);
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* 优化后的预约表单样式 */
.selected-info {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 95, 122, 0.2);
}

.selected-info .info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.9;
}

.selected-info .info-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.selected-info .info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.selected-info .info-item .label {
    font-size: 12px;
    opacity: 0.8;
}

.selected-info .info-item .value {
    font-size: 16px;
    font-weight: 600;
}

.appointment-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.form-left-col,
.form-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.appointment-form-card .form-group {
    margin-bottom: 0;
}

.appointment-form-card .form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.appointment-form-card .form-group label i {
    color: var(--primary-color);
    font-size: 14px;
}

.appointment-form-card .form-group .label-optional {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
    margin-left: auto;
}

/* 单选卡片组 */
.radio-group {
    display: flex;
    gap: 12px;
}

.radio-card {
    flex: 1;
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.3s;
    text-align: center;
}

.radio-content i {
    font-size: 24px;
    color: var(--text-muted);
    transition: all 0.3s;
}

.radio-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.radio-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.radio-card input:checked + .radio-content {
    border-color: var(--primary-color);
    background: rgba(26, 95, 122, 0.05);
}

.radio-card input:checked + .radio-content i {
    color: var(--primary-color);
}

/* 下拉选择框 */
.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.form-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

/* 文本域样式 */
.appointment-form-card textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s;
    font-family: inherit;
}

.appointment-form-card textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.1);
}

.appointment-form-card textarea::placeholder {
    color: var(--text-muted);
}

/* 底部费用和提交 */
.appointment-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.fee-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fee-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.fee-label i {
    color: var(--primary-color);
}

.fee-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--danger-color);
}

.btn-submit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(26, 95, 122, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 95, 122, 0.4);
}

.btn-submit i {
    font-size: 18px;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .appointment-form-grid {
        grid-template-columns: 1fr;
    }
    
    .selected-info .info-content {
        grid-template-columns: 1fr;
    }
    
    .appointment-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .radio-group {
        flex-direction: column;
    }
}

/* 商品列表页面 */
.shop-page {
    background: var(--bg-light);
    min-height: 600px;
    padding: 30px 0;
}

.shop-header-bar {
    background: white;
    padding: 20px 0;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.shop-search-box {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.shop-search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 16px;
    outline: none;
}

.shop-search-box input:focus {
    border-color: var(--primary-color);
}

.shop-search-box button {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
    font-size: 16px;
}

/* 商品分类 */
.category-nav {
    background: white;
    padding: 16px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.category-list-horizontal {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-item-h {
    padding: 10px 24px;
    background: var(--bg-light);
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.category-item-h:hover,
.category-item-h.active {
    background: var(--primary-color);
    color: white;
}

/* 商品网格 */
.products-grid-large {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card-v2 {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image-v2 {
    height: 220px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-image-v2 img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-badge-v2 {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--danger-color);
    color: white;
    border-radius: 12px;
    font-size: 12px;
}

.product-info-v2 {
    padding: 20px;
}

.product-category-v2 {
    font-size: 12px;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.product-name-v2 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-desc-v2 {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}

.product-price-current {
    font-size: 20px;
    font-weight: 600;
    color: var(--danger-color);
}

.product-price-original {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-actions-v2 {
    display: flex;
    gap: 10px;
}

.product-actions-v2 .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

/* 商品详情页 */
.product-detail-page {
    background: var(--bg-light);
    padding: 30px 0 60px;
}

.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-main-image {
    height: 400px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-main-image i {
    font-size: 120px;
    color: var(--primary-light);
}

.product-thumbnails {
    display: flex;
    gap: 12px;
}

.product-thumb {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--primary-color);
}

.product-detail-info h1 {
    font-size: 24px;
    margin-bottom: 12px;
}

.product-detail-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.product-detail-price {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.product-detail-price .current {
    font-size: 32px;
    font-weight: 600;
    color: var(--danger-color);
}

.product-detail-price .original {
    font-size: 16px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 12px;
}

.product-detail-section {
    margin-bottom: 24px;
}

.product-detail-section h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.quantity-selector-v2 {
    display: flex;
    align-items: center;
    gap: 0;
}

.quantity-selector-v2 button {
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid var(--border-color);
    font-size: 18px;
    cursor: pointer;
}

.quantity-selector-v2 button:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
}

.quantity-selector-v2 button:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.quantity-selector-v2 input {
    width: 60px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 16px;
}

.product-detail-actions {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

.product-detail-actions .btn {
    flex: 1;
    padding: 16px;
    font-size: 16px;
}

.product-detail-tabs {
    margin-top: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.product-tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.product-tab-btn {
    padding: 16px 32px;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-tab-btn:hover,
.product-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.product-tab-content {
    padding: 30px;
}

/* 响应式补充 */
@media (max-width: 1024px) {
    .products-grid-large {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-detail-wrapper {
        grid-template-columns: 1fr;
    }
    
    .doctor-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .schedule-header {
        grid-template-columns: 80px repeat(4, 1fr);
    }
    
    .schedule-row {
        grid-template-columns: 80px repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-list-horizontal {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .schedule-header {
        grid-template-columns: 60px repeat(3, 1fr);
    }
    
    .schedule-row {
        grid-template-columns: 60px repeat(3, 1fr);
    }
    
    .doctor-avatar-lg {
        width: 100px;
        height: 100px;
    }
    
    .doctor-avatar-lg i {
        font-size: 50px;
    }
    
    .cart-header {
        display: none;
    }
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    background: var(--bg-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.page-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-ellipsis {
    padding: 0 8px;
    color: var(--text-muted);
}

/* ==================== 新闻详情页样式 ==================== */

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    padding: 40px 0;
    color: white;
}

.page-header h1 {
    font-size: 32px;
    margin-bottom: 16px;
}

.page-header h1 i {
    margin-right: 12px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .current {
    opacity: 0.7;
}

/* 新闻详情主体 */
.news-detail-section {
    padding: 40px 0 80px;
    background: var(--bg-light);
}

.news-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.news-detail-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
}

.news-detail-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.news-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: white;
    font-size: 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.news-detail-title {
    font-size: 28px;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.news-meta {
    display: flex;
    gap: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.news-meta i {
    margin-right: 6px;
}

.news-cover-image {
    margin-bottom: 30px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.news-cover-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.news-detail-body p {
    margin-bottom: 16px;
}

.news-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.news-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 侧边栏 */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-widget {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.sidebar-widget h3 i {
    margin-right: 8px;
    color: var(--primary-color);
}

.hot-news-list {
    list-style: none;
}

.hot-news-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.hot-news-item:last-child {
    border-bottom: none;
}

.hot-news-rank {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.hot-news-rank.top {
    background: var(--primary-color);
    color: white;
}

.hot-news-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    flex: 1;
}

.hot-news-link:hover {
    color: var(--primary-color);
}

.news-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    padding: 6px 14px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.category-tag:hover {
    background: var(--primary-light);
    color: white;
}

/* ========================================
   视频点播模块样式
   ======================================== */

/* 返回导航 */
.video-back-nav {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.back-link {
    color: var(--primary-color);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--primary-dark);
    gap: 12px;
}

/* 搜索筛选区 */
.video-filter-section {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    gap: 0;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--primary-color);
}

.search-box button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.sort-options select {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    background: white;
}

/* 视频页面布局 */
.video-page-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* 视频侧边栏 */
.video-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.video-sidebar h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.category-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.category-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.category-item i {
    width: 20px;
    text-align: center;
}

.category-count {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.7;
}

/* 视频主内容区 */
.video-main {
    min-height: 500px;
}

/* 视频轮播 */
.video-carousel {
    position: relative;
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 400px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.carousel-slide-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.carousel-slide-info p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 600px;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-play:hover {
    background: var(--primary-light);
    transform: scale(1.05);
}

.video-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: all 0.3s;
    z-index: 10;
}

.video-carousel .carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.video-carousel .carousel-prev {
    left: 16px;
}

.video-carousel .carousel-next {
    right: 16px;
}

.video-carousel .carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.video-carousel .carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.video-carousel .carousel-dots .dot.active {
    background: white;
    width: 24px;
    border-radius: 5px;
}

/* 视频网格 */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.video-cover {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
}

.video-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-cover img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-overlay i {
    font-size: 48px;
    color: white;
}

.video-info {
    padding: 16px;
}

.video-title {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-category {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.video-views {
    font-size: 13px;
    color: var(--text-muted);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.pagination button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 视频播放器区域 */
.video-player-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.video-player-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

.video-player-main {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-player-container {
    background: #000;
}

.video-player-container video {
    display: block;
    width: 100%;
    max-height: 600px;
}

.embed-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.embed-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-detail-info {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.video-header h1 {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.video-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.video-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-item i {
    font-size: 14px;
}

.video-actions {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-light);
    border: none;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.action-btn.active {
    background: var(--primary-color);
    color: white;
}

.video-description {
    padding: 24px;
}

.video-description h3 {
    font-size: 16px;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.video-tags i {
    color: var(--text-muted);
    margin-right: 8px;
}

.tag {
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 侧边推荐列表 */
.video-sidebar-recommend {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.video-sidebar-recommend h3 {
    font-size: 16px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.recommend-list,
.related-list {
    background: white;
    border-radius: var(--radius-lg);
    padding: 16px;
}

.video-list-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

.video-list-item:last-child {
    border-bottom: none;
}

.video-list-item:hover {
    gap: 16px;
}

.item-cover {
    position: relative;
    width: 160px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
}

.item-cover img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.item-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 11px;
}

.item-info {
    flex: 1;
    min-width: 0;
}

.item-info h4 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.empty-list {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 1200px) {
    .video-page-layout {
        grid-template-columns: 200px 1fr;
    }
    
    .video-player-layout {
        grid-template-columns: 1fr;
    }
    
    .video-sidebar-recommend {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .recommend-list,
    .related-list {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .video-page-layout {
        grid-template-columns: 1fr;
    }
    
    .video-sidebar {
        position: relative;
        top: 0;
    }
    
    .category-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

@media (max-width: 768px) {
    .video-carousel {
        height: 240px;
    }
    
    .carousel-slide-info {
        padding: 20px;
    }
    
    .carousel-slide-info h3 {
        font-size: 16px;
    }
    
    .carousel-slide-info p {
        font-size: 12px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .filter-bar {
        flex-direction: column;
    }
    
    .search-box {
        max-width: 100%;
    }
}

/* ========================================
   粒子课堂模块样式
   ======================================== */

/* 搜索筛选区 */
.video-filter-section {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    gap: 0;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 20px 0 0 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: var(--primary-color);
}

.search-box button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box button:hover {
    background: var(--primary-dark);
}

.sort-options select {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    background: white;
}

/* 分类筛选按钮 */
.category-filter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    background: white;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover {
    background: var(--bg-light);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
}

.filter-btn i {
    font-size: 16px;
}

/* 视频列表网格 */
.video-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* 视频卡片 */
.video-list-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.video-list-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.video-list-cover {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--bg-light);
}

.video-list-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.video-list-card:hover .video-list-cover img {
    transform: scale(1.1);
}

.video-list-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.3s;
}

.video-list-card:hover .video-list-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-list-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
}

.video-list-info {
    padding: 20px;
}

.video-list-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.video-list-title {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.video-list-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-list-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.video-list-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.video-list-meta i {
    font-size: 14px;
}

/* 分页按钮 */
.pagination button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-color: var(--primary-color);
}

/* 响应式 */
@media (max-width: 992px) {
    .video-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .category-filter {
        margin-top: 15px;
    }
    
    .video-list-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* 专家医生标识样式 */
.expert-corner-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    gap: 4px;
}

.expert-corner-badge i {
    font-size: 14px;
}

.expert-badge {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 12px;
}

.expert-badge i {
    font-size: 12px;
}

.tag-fee strong {
    font-size: 16px;
    color: var(--primary-color);
}

.tag-specialty {
    background: #f0f9ff;
    color: #0369a1;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
}

.expert-notice {
    margin-top: 12px;
    color: #d97706;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}
