/* 详情页专用样式 */

/* 详情页横幅 */
.detail-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/top-bg.jpg') center/cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.detail-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.detail-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb span {
    opacity: 0.6;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 详情页内容布局 */
.detail-content {
    padding: 60px 0;
    background: #f8f9fa;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.detail-main {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.detail-section {
    margin-bottom: 40px;
}

.detail-section img {
    max-width:100%;
}

.detail-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #d4af37;
    position: relative;
}

.detail-text p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.sidebar-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
}

.contact-info1 {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.contact-label {
    color: #666;
}

.contact-value {
    color: #2c3e50;
    font-weight: 500;
}

.cta-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #d4af37, #f1c40f);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.related-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
    transition: background 0.3s ease;
}

.related-item:hover {
    background: #e9ecef;
}

.related-icon {
    font-size: 1.2rem;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.share-btn {
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* 详情页文本样式 */
.detail-main h2 {
    color: #2c5530;
    border-bottom: 3px solid #d4af37;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

.detail-main h3 {
    color: #2c5530;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.detail-main p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
    font-size: 1.1rem;
}

.detail-main ul {
    margin: 20px 0;
    padding-left: 25px;
}

.detail-main li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #666;
}

/* 症状网格 */
.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.symptom-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.symptom-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.symptom-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.symptom-item h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* 特色列表 */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #d4af37;
}

.feature-icon {
    font-size: 1.5rem;
    margin-top: 5px;
}

.feature-content h3 {
    color: #2c3e50;
    margin-bottom: 8px;
}

/* 流程步骤 */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.step-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #d4af37;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.process-step:hover {
    border-color: #d4af37;
    transform: translateX(10px);
}

.step-number {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 8px 0;
    color: #2c5530;
    font-size: 1.2rem;
}

.step-content p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* 知识点样式 */
.knowledge-points {
    background: linear-gradient(135deg, #f0f8f0 0%, #e8f5e8 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #d4edda;
}

.knowledge-points h3 {
    color: #2c5530;
    margin-top: 0;
    text-align: center;
    font-size: 1.5rem;
}

.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.knowledge-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    border-top: 4px solid #4a7c59;
}

.knowledge-item h4 {
    color: #2c5530;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.knowledge-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 问题解决方案 */
.solutions-grid {
    display: grid;
    gap: 20px;
    margin: 25px 0;
}

.solution-item {
    background: #fff8e1;
    padding: 25px;
    border-radius: 12px;
    border-left: 5px solid #ffc107;
    transition: all 0.3s ease;
}

.solution-item:hover {
    background: #fff3c4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.solution-item h4 {
    color: #8b4513;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.solution-item p {
    margin: 0;
    color: #5d4037;
    line-height: 1.6;
}

/* 方法网格 */
.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.method-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-top: 4px solid #d4af37;
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.method-card h4 {
    color: #2c5530;
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    text-align: center;
}

.method-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.method-card li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.method-card li:last-child {
    border-bottom: none;
}

.method-card li::before {
    content: "•";
    color: #d4af37;
    font-weight: bold;
    margin-right: 10px;
}

/* 侧边栏样式 */
.sidebar-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

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

.sidebar-section h3 {
    color: #2c5530;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4af37;
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.share-btn.wechat {
    background: #07c160;
    color: white;
}

.share-btn.weibo {
    background: #e6162d;
    color: white;
}

.share-btn.copy {
    background: #6c757d;
    color: white;
}

.share-btn:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.related-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-links li {
    margin-bottom: 10px;
}

.related-links a {
    color: #4a7c59;
    text-decoration: none;
    padding: 8px 12px;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.related-links a:hover {
    background: #f0f8f0;
    border-left-color: #d4af37;
    text-decoration: none;
    color: #2c5530;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4a7c59;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #d4af37;
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #b8941f;
    transform: translateY(-3px);
}

/* 移动端响应式 */
/* 移动端响应式样式 */
@media (max-width: 768px) {
    .detail-hero {
        min-height: 250px;
        padding: 20px;
    }
    
    .detail-title {
        font-size: 2rem;
    }
    
    .detail-subtitle {
        font-size: 1rem;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .detail-main {
        padding: 25px 20px;
    }
    
    .symptoms-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        font-size: 0.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .sidebar-card {
        padding: 20px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}