/* mcres/static/css/pages/resource/detail/children/preset_detail.css */
/* ===== 原有基础样式 ===== */
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", sans-serif; }
        body {
            background: #0b0f14;
            color: #e6edf3;
            padding-top: 92px;
            min-height: 100vh;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px 24px 60px;
        }
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
            margin-bottom: 20px;
        }
        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: #8b949e;
            text-decoration: none;
            transition: color 0.2s;
        }
        .back-link:hover { color: #f5a623; }
        .top-bar .actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        .btn-edit {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 20px;
            border-radius: 999px;
            background: rgba(245,166,35,0.15);
            color: #f5a623;
            border: 1px solid rgba(245,166,35,0.2);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.2s;
        }
        .btn-edit:hover {
            background: rgba(245,166,35,0.25);
            transform: scale(1.02);
        }
        .btn-history {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 20px;
            border-radius: 999px;
            background: rgba(74, 144, 217, 0.15);
            color: #4A90D9;
            border: 1px solid rgba(74, 144, 217, 0.2);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.2s;
        }
        .btn-history:hover {
            background: rgba(74, 144, 217, 0.25);
            transform: scale(1.02);
        }
        /* ---- 新增分享按钮 ---- */
        .btn-share {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 20px;
            border-radius: 999px;
            background: rgba(255,255,255,0.06);
            color: #b0b8c2;
            border: 1px solid rgba(255,255,255,0.1);
            text-decoration: none;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            font-family: inherit;
        }
        .btn-share:hover {
            background: rgba(255,255,255,0.12);
            color: #fff;
            transform: scale(1.02);
        }
        .btn-share:active {
            transform: scale(0.96);
        }

        .preset-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
        }
        .preset-header .title h1 {
            font-size: 28px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        .preset-header .title h1 .version {
            font-size: 16px;
            font-weight: 600;
            background: rgba(245,166,35,0.15);
            color: #f5a623;
            padding: 0 14px;
            border-radius: 999px;
            line-height: 28px;
        }
        .preset-header .title .meta {
            font-size: 14px;
            color: #8b949e;
            margin-top: 4px;
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }
        .preset-header .title .meta i { width: 16px; opacity: 0.6; }
        .preset-header .sub-info {
            text-align: right;
            font-size: 14px;
            color: #6b7480;
        }
        .preset-header .sub-info .time { font-size: 13px; color: #4d5663; }

        .screenshots {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 16px;
            margin-bottom: 32px;
        }
        .screenshots img {
            width: 100%;
            aspect-ratio: 16/10;
            object-fit: cover;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.06);
            cursor: pointer;
            transition: transform 0.2s;
        }
        .screenshots img:hover { transform: scale(1.02); }

        .section {
            margin-bottom: 32px;
        }
        .section h2 {
            font-size: 20px;
            font-weight: 600;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            color: #f5a623;
        }
        .section .desc-content {
            background: rgba(255,255,255,0.03);
            border-radius: 12px;
            padding: 20px 24px;
            line-height: 1.8;
            font-size: 15px;
            color: #d0d6dc;
        }
        .section .desc-content img { max-width: 100%; border-radius: 8px; }
        .section .desc-content blockquote {
            border-left: 3px solid #f5a623;
            padding-left: 16px;
            color: #b0b8c2;
        }
        .section .desc-content code {
            background: #0b0f14;
            padding: 2px 8px;
            border-radius: 4px;
            color: #f5a623;
        }
        .desc-content a {
            color: var(--primary-color, #55d88b);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease, background 0.2s ease, text-decoration 0.2s ease;
            border-bottom: 1px solid transparent;
            padding: 0 2px;
            border-radius: 2px;
        }
        .desc-content a:hover {
            color: var(--primary-bright, #6ae09c);
            text-decoration: underline;
            text-underline-offset: 3px;
            background: rgba(85, 216, 139, 0.08);
            border-bottom-color: rgba(85, 216, 139, 0.25);
        }
        .desc-content blockquote a {
            color: #f5a623;
            font-weight: 500;
            border-bottom-color: transparent;
        }
        .desc-content blockquote a:hover {
            color: #f7b840;
            text-decoration: underline;
            text-underline-offset: 3px;
            background: rgba(245, 166, 35, 0.08);
            border-bottom-color: rgba(245, 166, 35, 0.25);
        }
        .desc-content a[target="_blank"]::after {
            content: " ↗";
            font-size: 0.8em;
            opacity: 0.6;
            transition: opacity 0.2s;
        }
        .desc-content a[target="_blank"]:hover::after {
            opacity: 1;
        }

        .code-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255,255,255,0.04);
            padding: 8px 16px;
            border-radius: 12px 12px 0 0;
            border: 1px solid #2b313b;
            border-bottom: none;
            flex-wrap: wrap;
            gap: 8px;
        }
        .code-toolbar .label {
            font-size: 13px;
            color: #8b949e;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .code-toolbar .label i { opacity: 0.6; }
        .code-toolbar .btn-group {
            display: flex;
            gap: 6px;
        }
        .code-toolbar .btn-code {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 4px 16px;
            border-radius: 6px;
            border: none;
            background: rgba(255,255,255,0.06);
            color: #b0b8c2;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }
        .code-toolbar .btn-code:hover {
            background: rgba(255,255,255,0.12);
            color: #fff;
        }
        .code-toolbar .btn-code.copied {
            background: rgba(85,216,139,0.2);
            color: #55d88b;
        }

        .config-code {
            background: #0b0f14;
            border-radius: 0 0 12px 12px;
            padding: 20px 24px;
            overflow-x: auto;
            font-family: 'Fira Code', 'Consolas', monospace;
            font-size: 14px;
            line-height: 1.7;
            border: 1px solid #2b313b;
            border-top: none;
            white-space: pre-wrap;
            word-break: break-word;
            max-height: 500px;
            overflow-y: auto;
            margin: 0;
        }
        .config-note {
            background: rgba(255,255,255,0.03);
            border-radius: 8px;
            padding: 16px 20px;
            color: #b0b8c2;
            border-left: 3px solid #f5a623;
        }

        /* 图片灯箱 */
        .lightbox {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.9);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 40px;
        }
        .lightbox.active { display: flex; }
        .lightbox img {
            max-width: 90vw;
            max-height: 85vh;
            border-radius: 8px;
            object-fit: contain;
            box-shadow: 0 20px 60px rgba(0,0,0,0.8);
        }
        .lightbox .close {
            position: fixed;
            top: 20px;
            right: 30px;
            color: rgba(255,255,255,0.5);
            font-size: 36px;
            cursor: pointer;
            transition: color 0.2s;
            background: none;
            border: none;
        }
        .lightbox .close:hover { color: #fff; }

        @media (max-width: 768px) {
            .preset-header { flex-direction: column; align-items: stretch; }
            .preset-header .sub-info { text-align: left; }
            .preset-header .title h1 { font-size: 22px; }
            .top-bar { flex-direction: column; align-items: stretch; }
            .top-bar .actions { justify-content: flex-start; }
            .screenshots { grid-template-columns: 1fr 1fr; }
        }
        @media (max-width: 480px) {
            .screenshots { grid-template-columns: 1fr; }
            .preset-header .title h1 { font-size: 18px; }
            .preset-header .title h1 .version { font-size: 13px; line-height: 24px; padding: 0 10px; }
        }
        /* ===== 作者栏 ===== */
        .preset-header .title .authors {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            font-size: 13.5px;
            margin-top: 8px;
        }
        .preset-header .title .authors .label { color: #6e7681; }
        .preset-header .title .authors .author {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            color: #7ab7f0;
        }
        .preset-header .title .authors .author .dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: grid;
            place-items: center;
            font-size: 11px;
            color: #fff;
            font-weight: 700;
            background: #3b5bdb;
        }
        .preset-header .title .authors .chip {
            font-size: 12.5px;
            color: #8b949e;
            padding: 4px 10px;
            border-radius: 999px;
            background: rgba(255, 255, 255, .04);
            border: 1px solid #30363d;
        }
