/* 趋势页面文档风格布局 */
.trend-docs-wrapper {
    display: flex;
    min-height: 80vh;
    max-width: 1200px;
    margin: 32px auto 0 auto;
    background: transparent;
    /* border-radius: 18px; */
    /* box-shadow: 0 4px 24px rgba(0,0,0,0.07); */
    overflow: visible;
}
.trend-sidebar {
    width: 220px;
    background: #f7f8fa !important;
    padding: 32px 18px 32px 24px;
    font-size: 16px;
    color: #1d1d1f;
    min-width: 140px;
    outline: none;
    position: sticky;
    top: 32px;
    align-self: flex-start;
    height: fit-content;
    z-index: 2;
    border-radius: 18px 0 0 18px;
}
.trend-sidebar h2 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 18px;
    color: #007aff;
}
.trend-sidebar ul {
    list-style: disc inside;
    padding: 0;
    margin: 0;
}
.trend-sidebar li {
    margin-bottom: 12px;
    cursor: pointer;
    user-select: text;
    font-size: 18px;
    line-height: 1.8;
    transition-property: background, color, padding, font-weight;
    transition-duration: 0.25s;
    transition-timing-function: cubic-bezier(0.4,0,0.2,1);
}
.trend-sidebar li.active {
    background: #eaf3ff;
    color: #007aff;
    border-radius: 8px;
    font-weight: 600;
    will-change: background, color;
    transition-property: background, color, padding, font-weight;
    transition-duration: 0.25s;
    transition-timing-function: cubic-bezier(0.4,0,0.2,1);
    padding-left: 18px;
}
.trend-sidebar li .catalog-dot {
    margin-left: -8px;
    margin-right: 8px;
    vertical-align: middle;
}
.trend-sidebar li.active .catalog-dot {
    margin-left: 0;
    margin-right: 8px;
}
.trend-content {
    flex: 1;
    padding: 40px 40px 40px 36px;
    font-size: 17px;
    color: #222;
    line-height: 1.7;
    outline: none;
    min-width: 0;
    background: #fff;
    border-radius: 0 18px 0 0;
}
.trend-content h1 {
    font-size: 2.1em;
    margin-top: 0;
    color: #007aff;
}
.trend-content h2 {
    font-size: 1.3em;
    margin-top: 32px;
    color: #0a2c52;
}
.trend-content ul {
    margin: 12px 0 24px 24px;
}
.trend-content p {
    margin: 12px 0;
}
.pro-only-modal {
    display: none;
    position: fixed;
    left: 50%;
    top: 60px;
    transform: translateX(-50%);
    background: rgba(34,34,34,0.97);
    color: #fff;
    font-size: 17px;
    padding: 16px 32px;
    border-radius: 14px;
    z-index: 3000;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
}
.pro-only-modal.show {
    display: block;
    opacity: 1;
}
.trend-edit-btns {
    position: absolute;
    top: 24px;
    right: 48px;
    z-index: 10;
    display: flex;
    gap: 16px;
}
#editBtn, #saveBtn {
    background: #007aff;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: background 0.2s;
}
#editBtn:hover, #saveBtn:hover {
    background: #005ecb;
}
#editBtn.disabled, #editBtn:disabled, #saveBtn.disabled, #saveBtn:disabled {
    background: #e0e0e0 !important;
    color: #aaa !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    border: none !important;
}
.catalog-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border-radius: 50%;
    background: #28a745;
    vertical-align: middle;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(40,167,69,0.13);
    border: 2px solid #fff;
    transition: box-shadow 0.2s;
}
.catalog-dot.active {
    box-shadow: 0 0 0 3px #b6f2c2;
}
@media (max-width: 900px) {
    .trend-docs-wrapper {
        flex-direction: column;
        margin: 12px 0 0 0;
        border-radius: 0;
        box-shadow: none;
    }
    .trend-sidebar {
        width: 100%;
        padding: 18px 12px 12px 16px;
        min-width: 0;
    }
    .trend-content {
        padding: 24px 10px 24px 10px;
    }
}
.trend-save-status {
    display: flex;
    align-items: center;
    position: absolute;
    left: -110px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #28a745;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 6px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    z-index: 20;
}
.trend-save-status.show {
    opacity: 1;
    pointer-events: auto;
}
.trend-save-status.fail {
    color: #e53935;
}
.trend-save-spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid #e0e0e0;
    border-top: 2.5px solid #007aff;
    border-radius: 50%;
    margin-right: 10px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.trend-welcome-title {
    text-align: center;
    font-size: 1.35em;
    color: #007aff;
    font-weight: 600;
    margin: 18px 0 0 0;
    letter-spacing: 1px;
    background: none;
} 