/* 工作原理页面的特定样式 */
.principle-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.principle-header {
    text-align: center;
    margin-bottom: 40px;
}

.principle-header h1 {
    color: var(--info-blue);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.principle-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.principle-section {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--info-blue);
}

.section-icon {
    color: var(--highlight);
    font-size: 1.8rem;
    margin-right: 15px;
}

.section-title {
    color: var(--info-blue);
    font-size: 1.6rem;
    margin: 0;
}

.principle-content {
    color: #ccc;
    line-height: 1.7;
    user-select: text; /* 允许文本选择 */
}

.principle-content p {
    margin-bottom: 15px;
}

/* 确保所有文本内容都可选择 */
.principle-content,
.principle-content p,
.principle-content li,
.principle-content td,
.principle-content th,
.tech-feature,
.detection-method,
.comparison-table,
.comparison-table td,
.comparison-table th,
.diagram-title,
.diagram-step,
.step-desc,
.mouse-type-card,
.mouse-type-card p,
.mouse-type-card h3,
.principle-header h1,
.principle-header p,
.section-title,
.tool-principle,
.tool-principle h2,
.tool-principle p,
.method-header,
.image-caption,
.modal-caption {
    user-select: text;
    cursor: text;
}

/* 代码块特殊样式，保持可选择 */
.principle-content code {
    user-select: text;
    cursor: text;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* 确保列表项可以选择 */
.principle-content ul,
.principle-content li {
    user-select: text;
    cursor: text;
}

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

.mouse-type-card {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.mouse-type-card:hover {
    transform: translateY(-5px);
}

.mouse-type-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.type-icon {
    width: 40px;
    height: 40px;
    background: var(--info-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #000;
    font-size: 1.2rem;
}

.type-title {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
}

.tech-feature {
    margin: 15px 0;
    padding: 10px;
    background: rgba(79, 195, 247, 0.1);
    border-radius: 5px;
}

.tech-feature strong {
    color: var(--info-blue);
}

.principle-diagram {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #252525;
    border-radius: 8px;
}

.diagram-title {
    color: var(--highlight);
    margin-bottom: 15px;
}

.diagram-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.diagram-step {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--highlight);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 10px;
}

.step-desc {
    color: #bbb;
    font-size: 0.9rem;
}

.tool-principle {
    background: rgba(0, 255, 136, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    border-left: 4px solid var(--highlight);
}

.tool-principle h2 {
    color: var(--highlight);
    margin-bottom: 20px;
}

.detection-method {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.method-header {
    color: #4fc3f7;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.method-header i {
    margin-right: 10px;
}

.back-to-test {
    text-align: center;
    margin-top: 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    background: var(--highlight);
    color: #000;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #33ff99;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

.back-btn i {
    margin-right: 10px;
}

.comparison-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.comparison-table th {
    background: var(--info-blue);
    color: #000;
    padding: 12px;
    text-align: left;
}

.comparison-table td {
    padding: 10px;
    border-bottom: 1px solid #444;
}

.comparison-table tr:hover {
    background: rgba(79, 195, 247, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .diagram-step {
        min-width: 150px;
    }
}

/* 文本选择高亮样式 */
::selection {
    background-color: rgba(79, 195, 247, 0.5);
    color: #fff;
}

::-moz-selection {
    background-color: rgba(79, 195, 247, 0.5);
    color: #fff;
}
