/* 理论页面样式 */

.table-of-contents {
    background: rgba(248, 249, 250, 0.2); 
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid #007bff;
    backdrop-filter: blur(5px); 
}

.table-of-contents h3 {
    margin-top: 0;
    color: #007bff;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin: 8px 0;
}

.table-of-contents a {
    color: #495057;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.table-of-contents a:hover {
    background-color: rgba(233, 236, 239, 0.3); 
    color: #007bff;
}

.theory-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(222, 226, 230, 0.5);
}

.theory-section:last-child {
    border-bottom: none;
}

.theory-section h2 {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.content-box {
    background: transparent; 
    padding: 0;
}

.highlight-box {
    background: rgba(227, 242, 253, 0.3); 
    border: 1px solid rgba(187, 222, 251, 0.5);
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.highlight-box h4 {
    margin-top: 0;
    color: #1976d2;
}

.formula-box {
    background: rgba(243, 229, 245, 0.3);
    border: 1px solid rgba(206, 147, 216, 0.5);
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    backdrop-filter: blur(10px);
}

.formula-box h4 {
    margin-top: 0;
    color: #7b1fa2;
}

.formula {
    font-size: 18px;
    font-weight: bold;
    font-family: 'Times New Roman', serif;
    color: #4a148c;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    border: 2px solid rgba(206, 147, 216, 0.5);
    backdrop-filter: blur(10px);
}

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

.info-item {
    background: rgba(248, 249, 250, 0.2); 
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    backdrop-filter: blur(10px);
}

.info-item h4 {
    margin-top: 0;
    color: #28a745;
}

.example-box {
    background: rgba(255, 243, 205, 0.3); 
    border: 1px solid rgba(255, 234, 167, 0.5);
    border-radius: 6px;
    padding: 15px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
}

.example-box h4 {
    margin-top: 0;
    color: #856404;
}

.process-flow {
    margin: 30px 0;
}

.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.step {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2); 
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid rgba(0, 123, 255, 0.6);
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.step-number {
    background: rgba(0, 123, 255, 0.8); 
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.step-content h5 {
    margin: 0 0 5px 0;
    color: #007bff;
}

.step-content p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.arrow {
    font-size: 24px;
    color: #007bff;
    font-weight: bold;
}

.comparison-table {
    margin: 25px 0;
}

.comparison-table h4 {
    color: #495057;
    margin-bottom: 15px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.comparison-table th,
.comparison-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(222, 226, 230, 0.5);
}

.comparison-table th {
    background: rgba(0, 123, 255, 0.8); 
    color: white;
    font-weight: bold;
}

.comparison-table tr:hover {
    background: rgba(248, 249, 250, 0.3);
}

.formula-explanation {
    background: rgba(232, 245, 232, 0.3); 
    border: 1px solid rgba(195, 230, 195, 0.5);
    border-radius: 6px;
    padding: 20px;
    margin: 25px 0;
    backdrop-filter: blur(10px);
}

.formula-explanation h4 {
    margin-top: 0;
    color: #155724;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 25px 0;
}

.pros, .cons {
    padding: 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.pros {
    background: rgba(212, 237, 218, 0.3); 
    border: 1px solid rgba(195, 230, 203, 0.5);
}

.cons {
    background: rgba(248, 215, 218, 0.3);
    border: 1px solid rgba(245, 198, 203, 0.5);
}

.pros h3 {
    color: #155724;
    margin-top: 0;
}

.cons h3 {
    color: #721c24;
    margin-top: 0;
}

.pros ul, .cons ul {
    padding-left: 20px;
}

.pros li, .cons li {
    margin: 10px 0;
    line-height: 1.5;
}

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

.app-item {
    background: rgba(255, 255, 255, 0.2); 
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(222, 226, 230, 0.5);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.app-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    background: rgba(255, 255, 255, 0.3); 
}

.app-item h4 {
    color: #007bff;
    margin-top: 0;
}

.parameter-guide {
    margin: 30px 0;
}

.parameter-guide table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

.parameter-guide th,
.parameter-guide td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(222, 226, 230, 0.5);
}

.parameter-guide th {
    background: rgba(40, 167, 69, 0.8); 
    color: white;
    font-weight: bold;
}

.parameter-guide tr:nth-child(even) {
    background: rgba(248, 249, 250, 0.3);
}

.try-it-box {
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.8) 0%, 
        rgba(40, 167, 69, 0.8) 100%); 
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 40px 0;
    backdrop-filter: blur(10px);
}

.try-it-box h3 {
    margin-top: 0;
    color: white;
}

.try-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.9); 
    color: #007bff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.try-button:hover {
    background: rgba(248, 249, 250, 0.95); 
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .flow-steps {
        flex-direction: column;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .pros-cons {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .application-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        min-width: auto;
        width: 100%;
    }
}