
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #425066;
    line-height: 1.6;
    background-color: #f9fafc;
    /*padding: 15px;*/
}

.container-main {
    max-width: 100% !important;
    padding: 0;
}

.detail {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 10px;
    padding: 20px;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    word-break: break-word;
}

.detial-ops {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e6eb;
    font-size: 0.85rem;
    color: #777;
}

.detial-ops span {
    display: flex;
    align-items: center;
}

.color-tags {
    color: #3498db;
}

.tag-link {
    margin-right: 8px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.tag-link:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.detial-content {
    font-size: 0.95rem;
    line-height: 1.8;
}

.detial-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.detial-content h2,
.detial-content h3 {
    margin: 20px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e1e6eb;
    font-size: 1.2rem;
}

.detial-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.detial-content pre {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    overflow-x: auto;
    font-size: 0.85rem;
}

.detial-content code {
    font-family: 'Source Code Pro', monospace;
}

/* 移动端优化 */
@media (max-width: 480px) {
    .detail {
        padding: 15px;
        margin-top: 8px;
    }

    .detail-title {
        font-size: 1.3rem;
    }

    .detial-ops {
        flex-direction: column;
        gap: 8px;
        font-size: 0.8rem;
    }

    .detial-content {
        font-size: 0.9rem;
    }

    .detial-content h2 {
        font-size: 1.1rem;
    }

    .detial-content h3 {
        font-size: 1rem;
    }

    .detial-content pre {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* 防止长单词和URL溢出 */
.detial-content p,
.detial-content li,
.detial-content td {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* 列表项优化 */
.detial-content ul,
.detial-content ol {
    padding-left: 20px;
    margin-bottom: 15px;
}

.detial-content li {
    margin-bottom: 8px;
}

/* 引用块优化 */
.detial-content blockquote {
    border-left: 4px solid #3498db;
    padding: 10px 15px;
    margin: 15px 0;
    background-color: #f8f9fa;
    border-radius: 0 4px 4px 0;
    font-style: italic;
}
