@import url('tokens.css');
@import url('chrome.css');

*, *::before, *::after { margin: 0; padding: 0; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: var(--leading);
    font-size: var(--text-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ========== 首页 Hero ========== */
.hero {
    background: var(--brand-gradient-soft);
    border-bottom: 1px solid var(--border);
    padding: 32px 0 26px;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

.hero-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.hero-desc {
    margin-top: 8px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.search-form {
    display: flex;
    align-items: center;
    max-width: 520px;
    height: 40px;
    margin: 16px auto 0;
    padding: 0 4px 0 0;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--radius-pill);
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form:focus-within {
    border-color: rgba(20, 184, 166, 0.45);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.1), 0 4px 16px rgba(15, 23, 42, 0.06);
}

.search-form input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: none;
    background: transparent;
    padding: 0 12px 0 16px;
    font-size: var(--text-sm);
    outline: none;
    color: var(--text);
}

.search-form input::placeholder { color: var(--text-muted); }

.search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    height: 32px;
    margin-right: 4px;
    padding: 0 14px;
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    background: var(--brand);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.search-form button i {
    font-size: 13px;
}

.search-form button:hover {
    filter: none;
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    box-shadow: none;
}

.search-form button:active {
    transform: none;
}

/* ========== 分类筛选 ========== */
.filter-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.filter-bar .container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    padding-top: 6px;
    flex-shrink: 0;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    padding: 7px 16px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.2s;
}

.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-tag.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: none;
}

/* ========== 项目列表 ========== */
.list-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 16px 48px;
}

.list-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.list-meta > :last-child {
    margin-left: auto;
}

.list-meta-hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 0.75rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.list-section-more {
    text-align: center;
    margin-top: 32px;
}

.list-section-more a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 28px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s, gap 0.2s;
}

.list-section-more a:hover {
    background: var(--primary);
    color: #fff;
    gap: 10px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.project-card-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--bg);
    overflow: hidden;
}

.project-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border-radius: 4px;
}

.project-card-badge.blue { background: #3b82f6; }

.project-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.project-card-title {
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.5;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.625em;
    transition: color 0.2s;
}

.project-card:hover .project-card-title { color: var(--primary); }

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-card-tags span {
    padding: 2px 8px;
    font-size: 0.6875rem;
    color: var(--primary);
    background: var(--primary-bg);
    border-radius: 4px;
}

.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
}

.project-card-views {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.project-card-price {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--accent);
}

.project-card-price.free {
    font-size: 0.8125rem;
    color: var(--primary);
}

/* 现价 + 会员价同一行，会员价更小 */
.project-card-price-inline {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
    line-height: 1.2;
    text-align: right;
}

.project-card-price-inline .price-current {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
}

.project-card-price-inline .price-member {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-box-inline {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 18px;
    line-height: 1.2;
}

.price-box-inline .price-current {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--accent);
}

.price-box-inline .price-member {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
}

.price-box-inline .price-member-month {
    margin-left: 6px;
    color: #7c3aed;
}

.price-box-member-cta {
    display: block;
    text-align: center;
    margin: -8px 0 14px;
    font-size: 0.8125rem;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.price-box-member-cta:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.price-box-member-tip {
    font-size: 0.75rem;
    color: var(--brand);
    margin-bottom: 12px;
    text-align: center;
}

.empty-state {
    text-align: center;
    padding: 64px 16px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

/* ========== 分页 ========== */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    gap: 4px;
}

.pagination-wrap a,
.pagination-wrap span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.pagination-wrap a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination-wrap .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination-wrap .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ========== 详情页 ========== */
.detail-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.breadcrumb-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb-bar a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.breadcrumb-bar a:hover { color: var(--primary); }

.breadcrumb-bar .sep { color: var(--border); }

.breadcrumb-bar .current {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 400px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.detail-main {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.detail-hero {
    padding: 28px 28px 24px;
    border-bottom: 1px solid var(--border);
}

.detail-hero h1 {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--text);
}

.detail-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.detail-hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-hero-meta .tag-pill {
    padding: 2px 10px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 20px;
    font-weight: 500;
}

.detail-section {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border);
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
}

.section-title i { color: var(--primary); font-size: 1rem; }

.detail-summary {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* 富文本 / Markdown 渲染区 */
.detail-content {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: var(--text-secondary);
    word-break: break-word;
}

.detail-content > *:first-child { margin-top: 0; }
.detail-content > *:last-child { margin-bottom: 0; }

.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4 {
    color: var(--text);
    font-weight: 700;
    line-height: 1.4;
    margin: 1.5rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.detail-content h1 { font-size: 1.375rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary-bg); }
.detail-content h2 { font-size: 1.2rem; }
.detail-content h3 { font-size: 1.0625rem; }
.detail-content h4 { font-size: 1rem; color: var(--text-secondary); }

.detail-content p {
    margin: 0.75rem 0;
}

.detail-content strong,
.detail-content b {
    color: var(--text);
    font-weight: 600;
}

.detail-content em { font-style: italic; color: var(--text-secondary); }

.detail-content ul,
.detail-content ol {
    margin: 0.75rem 0;
    padding-left: 1.25rem;
}

.detail-content ul { list-style: none; }
.detail-content ul > li {
    position: relative;
    padding-left: 0.5rem;
    margin: 0.4rem 0;
}
.detail-content ul > li::before {
    content: '';
    position: absolute;
    left: -0.85rem;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
}

.detail-content ol { list-style: decimal; }
.detail-content ol > li { margin: 0.4rem 0; padding-left: 0.25rem; }

.detail-content li > ul,
.detail-content li > ol { margin: 0.35rem 0; }

.detail-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.detail-content a:hover { color: var(--primary-light); }

.detail-content code {
    background: var(--primary-bg);
    color: #0f766e;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.875em;
}

.detail-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 1rem 0;
    font-size: 0.8125rem;
    line-height: 1.6;
}
.detail-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.detail-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 12px 16px;
    margin: 1rem 0;
    background: var(--primary-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-secondary);
}
.detail-content blockquote p { margin: 0.25rem 0; }

.detail-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 1.25rem 0;
}

.detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.detail-content th,
.detail-content td {
    border: 1px solid var(--border);
    padding: 10px 14px;
    text-align: left;
}
.detail-content th {
    background: var(--bg);
    font-weight: 600;
    color: var(--text);
}
.detail-content tr:nth-child(even) td { background: rgba(248, 250, 252, 0.6); }

.detail-content img {
    max-width: 100%;
    border-radius: var(--radius-sm);
    margin: 0.75rem 0;
    border: 1px solid var(--border);
}

.detail-content .loading-hint {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    padding: 24px 0;
}

.video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    cursor: zoom-in;
    transition: border-color 0.2s;
}

.gallery-item:hover { border-color: var(--primary); }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 侧边栏 */
.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 72px;
}

.price-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}

.price-box-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.price-box-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand);
    margin: 8px 0 20px;
    line-height: 1;
}

.price-box-value.free { color: var(--primary); font-size: 1.5rem; }

.btn-primary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    background: var(--brand);
    color: #fff;
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-weight: 600;
    box-shadow: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}

.btn-primary-action:hover {
    filter: none;
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.price-box-note {
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.sidebar-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.info-rows { list-style: none; }

.info-rows li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.8125rem;
    border-bottom: 1px solid var(--border);
}

.info-rows li:last-child { border-bottom: none; }

.info-rows .label { color: var(--text-muted); }
.info-rows .value { color: var(--text); font-weight: 500; }

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-list span {
    padding: 3px 10px;
    font-size: 0.75rem;
    color: var(--primary);
    background: var(--primary-bg);
    border-radius: 20px;
}

.qrcode-wrap {
    text-align: center;
    margin-top: 12px;
}

.qrcode-wrap img {
    max-width: 140px;
    margin: 0 auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.qrcode-wrap p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.support-info {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* 模态框 */
.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
}

.image-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 28px;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}

.image-modal-close:hover { opacity: 1; }

#modalCaption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

.free-download-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius);
    max-width: 440px;
    width: 90%;
}

.free-download-content h3 {
    font-size: 1.125rem;
    text-align: center;
    margin-bottom: 20px;
}

.free-download-content .form-control {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 0.875rem;
    width: 100%;
}

.free-download-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.free-download-actions .btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.btn-copy { background: var(--primary); color: #fff; }
.btn-link { background: var(--bg); color: var(--text); border: 1px solid var(--border) !important; }

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .project-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .project-grid { grid-template-columns: repeat(3, 1fr); }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .project-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hero-title { font-size: 1.375rem; }
    .detail-hero { padding: 20px; }
    .detail-section { padding: 20px; }
    .detail-hero h1 { font-size: 1.125rem; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .breadcrumb-bar .current { max-width: 200px; }
}

/* ========== 在线设计工具条（页脚区域） ========== */
.design-tools-section {
    padding: 0;
}

.design-tools-section.list-section {
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.design-tools-in-footer {
    padding: 8px 0 4px;
}

.design-tools-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.design-tools-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.design-tools-title i {
    color: var(--primary);
    font-size: 1.1rem;
}

.design-tools-more {
    font-size: var(--text-sm);
    color: var(--primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.2s;
}

.design-tools-more:hover {
    gap: 8px;
    color: var(--brand-dark);
}

.design-tools-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* 毕设助手入口：桌面端一行 6 个 */
.design-tools-strip--6 {
    grid-template-columns: repeat(6, 1fr);
}

.design-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 14px 8px 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.design-tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    border-color: rgba(13, 148, 136, 0.25);
}

.design-tool-card-featured {
    border-color: rgba(13, 148, 136, 0.35);
    background: linear-gradient(180deg, #f0fdfa 0%, #fff 55%);
    box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

.design-tool-name-highlight {
    color: #0d9488;
    font-weight: 700;
}

.design-tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}

.design-tool-icon > i {
    font-size: 1.35rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.design-tool-icon.tool-color-green {
    background: linear-gradient(145deg, #10b981, #059669);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.design-tool-icon.tool-color-blue {
    background: linear-gradient(145deg, #3b82f6, #2563eb);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.design-tool-icon.tool-color-purple {
    background: linear-gradient(145deg, #8b5cf6, #7c3aed);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.design-tool-icon.tool-color-teal {
    background: linear-gradient(145deg, #14b8a6, #0d9488);
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.35);
}

.design-tool-icon.tool-color-indigo {
    background: linear-gradient(145deg, #6366f1, #4f46e5);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.design-tool-icon.tool-color-sky {
    background: linear-gradient(145deg, #0ea5e9, #0284c7);
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.design-tool-icon.tool-color-orange {
    background: linear-gradient(145deg, #f97316, #ea580c);
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.design-tool-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.design-tool-name .module-title-rec {
    color: #ea580c;
    font-weight: 700;
    font-size: 0.9em;
}

.design-tool-desc {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .design-tools-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .design-tools-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .design-tool-card {
        padding: 12px 6px 10px;
    }

    .design-tool-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .design-tool-name {
        font-size: 11px;
    }

    .design-tool-desc {
        font-size: 9px;
    }
}

/* ========== 开发工具页 ========== */
.dev-tools-hero {
    background: var(--brand-gradient-soft);
    border-bottom: 1px solid var(--border);
    padding: 40px 0 32px;
}

.dev-tools-hero--compact {
    padding: 28px 0 24px;
}

.dev-tools-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.dev-tools-back:hover {
    color: var(--brand-dark);
}

.dev-tools-index-hint {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    padding: 8px 0 24px;
}

.dev-tools-index-hint i {
    color: var(--brand);
    margin-right: 6px;
}

.dev-tools-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 22px;
    text-align: center;
}

.dev-tools-hero h1 {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text);
}

.dev-tools-hero h1 i {
    color: var(--brand);
    margin-right: 8px;
}

.dev-tools-hero p {
    margin-top: 8px;
    font-size: var(--text-md);
    color: var(--text-secondary);
}

.dev-tools-page {
    padding: 32px 0 48px;
}

.dev-tools-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 顶部四宫格快捷跳转 */
.dev-tool-nav-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.dev-tool-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 108px;
    padding: 16px 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.dev-tool-nav-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand);
}

.dev-tool-nav-item.is-current {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
    background: rgba(20, 184, 166, 0.04);
}

.dev-tool-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.35rem;
}

.dev-tool-nav-item--teal .dev-tool-nav-icon { background: #ccfbf1; color: #0f766e; }
.dev-tool-nav-item--blue .dev-tool-nav-icon { background: #dbeafe; color: #1d4ed8; }
.dev-tool-nav-item--green .dev-tool-nav-icon { background: #d1fae5; color: #047857; }
.dev-tool-nav-item--orange .dev-tool-nav-icon { background: #ffedd5; color: #c2410c; }
.dev-tool-nav-item--purple .dev-tool-nav-icon { background: #ede9fe; color: #6d28d9; }
.dev-tool-nav-item--yellow .dev-tool-nav-icon { background: #fef9c3; color: #a16207; }

.dev-tool-nav-label {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.35;
    color: #1d2129;
}

.dev-tool-intro {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 14px 16px;
    font-size: var(--text-sm);
    line-height: 1.65;
    color: var(--text-secondary);
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.dev-tool-intro i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1.1rem;
    color: var(--brand);
}

.dev-tool-intro strong {
    color: var(--text);
}

/* Springboot 三种项目类型 */
.dev-tool-type {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--border-light);
}

.dev-tool-type:first-of-type {
    margin-top: 8px;
    padding-top: 0;
    border-top: none;
}

.dev-tool-type-head {
    margin-bottom: 14px;
}

.dev-tool-type-badge {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    background: #059669;
    border-radius: var(--radius);
}

.dev-tool-type-head h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.dev-tool-type-body {
    margin-bottom: 16px;
}

.dev-tool-type-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dev-tool-type-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text-secondary);
}

.dev-tool-type-features li i {
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--brand);
}

.dev-tool-type-features code {
    padding: 1px 6px;
    font-size: 0.9em;
    background: #f1f5f9;
    border-radius: 4px;
    color: #0f766e;
}

.dev-tool-type-hint {
    margin-top: 12px;
    padding: 10px 12px;
    font-size: var(--text-xs);
    line-height: 1.55;
    color: var(--text-muted);
    background: rgba(20, 184, 166, 0.06);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.dev-tool-type-hint code {
    padding: 1px 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
    font-size: 0.95em;
}

.dev-tool-type-packs {
    margin-top: 8px;
    padding: 16px;
    background: #f8fafc;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.dev-tool-pack-label {
    margin: 0 0 12px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text);
}

.dev-tool-pack-label i {
    color: var(--brand);
    margin-right: 6px;
}

.dev-tool-subsection {
    margin-top: 18px;
    padding-top: 4px;
}

.dev-tool-subsection h4 {
    margin: 0 0 10px;
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dev-tool-subsection h4 i {
    color: var(--brand);
}

.dev-tool-tip--page {
    margin-bottom: 8px;
}

.dev-tool-block--article {
    margin-top: 0;
}

/* Springboot 三种类型 — 简洁网盘 + 完整说明 */
.dev-tools-springboot .dev-tool-card--plain {
    padding: 24px 28px;
}

.dev-tools-springboot .dev-tool-intro--plain {
    display: block;
    margin-bottom: 8px;
    color: #1d2129;
    background: #f8fafc;
}

.dev-tools-springboot .dev-tool-intro--plain strong {
    color: #0f172a;
}

.dev-tool-type--plain {
    margin-top: 36px;
    padding-top: 36px;
    border-top: 1px solid var(--border);
}

.dev-tool-type--plain:first-of-type {
    margin-top: 16px;
    padding-top: 0;
    border-top: none;
}

.dev-tools-springboot .dev-tool-type--plain .dev-tool-type-head {
    margin-bottom: 16px;
}

.dev-tools-springboot .dev-tool-type--plain .dev-tool-type-head h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.45;
    letter-spacing: -0.01em;
}

.dev-tools-springboot .dev-tool-type--plain .dev-tool-type-badge {
    background: #059669;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    margin-bottom: 10px;
}

.dev-tools-springboot .dev-type-list {
    margin: 0 0 14px;
    padding-left: 1.25em;
    font-size: var(--text-sm);
    color: #1d2129;
    line-height: 1.75;
}

.dev-tools-springboot .dev-type-list li + li {
    margin-top: 6px;
}

.dev-tools-springboot .dev-type-list code {
    padding: 2px 6px;
    font-size: 0.9em;
    background: #eef2f6;
    border-radius: 4px;
    color: #0f172a;
}

.dev-tools-springboot .dev-type-hint {
    margin: 0 0 18px;
    padding: 10px 14px;
    font-size: var(--text-sm);
    line-height: 1.65;
    color: #334155;
    background: rgba(20, 184, 166, 0.08);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.dev-tools-springboot .dev-type-hint--action {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    font-weight: 600;
    color: #0f172a;
}

.dev-tools-springboot .dev-type-hint code {
    padding: 1px 5px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 3px;
}

.dev-tools-springboot .dev-pan-section-label {
    margin: 18px 0 8px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: #1d2129;
}

.dev-tools-springboot .dev-pan-simple-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: #1d2129;
}

.dev-tools-springboot .dev-pan-simple-label em {
    color: #475569;
    font-weight: 600;
}

.dev-tools-springboot .dev-tool-link-row--simple .dev-tool-link-input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font-size: var(--text-sm);
    color: #334155;
    background: #fff;
}

.dev-tools-springboot .dev-tool-link-row--simple {
    gap: 8px;
}

.dev-tools-springboot .dev-tool-btn--sm {
    padding: 8px 12px;
    font-size: var(--text-xs);
}

.dev-tools-springboot .dev-type-block {
    margin-top: 22px;
    padding-top: 4px;
}

.dev-tools-springboot .dev-type-block h3 {
    margin: 0 0 10px;
    font-size: var(--text-md);
    font-weight: 700;
    color: #0f172a;
}

.dev-tools-springboot .dev-tool-block.dev-tool-video-section .dev-tool-video-head h3 {
    font-size: var(--text-md);
    font-weight: 700;
    color: #1d2129;
}

.dev-dl-compact {
    margin: 12px 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: #fafbfc;
    overflow: hidden;
}

.dev-dl-compact--solo {
    margin-bottom: 0;
}

.dev-dl-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
}

.dev-dl-row:last-child {
    border-bottom: none;
}

.dev-dl-name {
    min-width: 64px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}

.dev-dl-meta {
    flex: 1;
    min-width: 120px;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.dev-dl-meta strong {
    color: var(--text);
    font-weight: 700;
}

.dev-dl-btns {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.dev-dl-link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--brand-dark);
    text-decoration: none;
}

.dev-dl-link:hover {
    text-decoration: underline;
}

.dev-dl-copy {
    padding: 4px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

.dev-dl-copy:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

/* 简洁网盘：显示完整链接，无大色块提示 */
.dev-pan-simple {
    margin: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dev-pan-simple--solo {
    margin-bottom: 0;
}

.dev-pan-simple-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dev-pan-simple-label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}

.dev-pan-simple-label em {
    font-style: normal;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 6px;
}

.dev-tools-springboot .dev-tool-block.dev-tool-video-section {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.dev-tools-springboot .dev-tool-video-wrap {
    max-width: 100%;
}

.dev-video-compact-label {
    margin: 0 0 8px;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.dev-tool-video-wrap--compact {
    max-width: 100%;
    border-radius: var(--radius-sm);
}

.dev-tool-video-wrap--compact .dev-tool-video-expand--overlay {
    padding: 6px 10px;
    font-size: 12px;
}

.dev-tool-type .dev-tool-block {
    margin-top: 0;
}

.dev-tool-type .dev-tool-video-placeholder {
    min-height: 160px;
}

.dev-tool-pack {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: #f0fdfa;
    border: 1px solid rgba(20, 184, 166, 0.22);
    border-radius: var(--radius);
}

.dev-tool-pack-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.dev-tool-pack-list {
    margin: 0;
    padding-left: 1.25em;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 20px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.55;
}

.dev-tool-pack-list li {
    list-style: disc;
}

.dev-tool-baidu-name {
    margin: 0 0 10px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}

.dev-tool-baidu-code {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.dev-tool-baidu-code strong {
    color: #d97706;
    font-size: 1.05em;
    letter-spacing: 0.08em;
}

.dev-tool-code-copy {
    padding: 4px 10px;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--brand-dark);
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}

.dev-tool-code-copy:hover {
    background: rgba(20, 184, 166, 0.18);
}

.dev-tool-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    box-shadow: var(--shadow);
    scroll-margin-top: calc(var(--nav-h) + 16px);
    transition: box-shadow 0.2s, border-color 0.2s;
}

.dev-tool-card--highlight {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.dev-tool-card--single {
    scroll-margin-top: 0;
}

.dev-tool-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.dev-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dev-tool-icon--blue { background: #dbeafe; color: #1d4ed8; }
.dev-tool-icon--green { background: #d1fae5; color: #047857; }
.dev-tool-icon--orange { background: #ffedd5; color: #c2410c; }
.dev-tool-icon--purple { background: #ede9fe; color: #6d28d9; }

.dev-tool-card-head h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text);
}

.dev-tool-card-head p {
    margin-top: 4px;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.dev-tool-block + .dev-tool-block {
    margin-top: 20px;
}

.dev-tool-block h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.dev-tool-block h3 i {
    color: var(--brand);
}

.dev-tool-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.dev-tool-link-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    font-size: var(--text-sm);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    color: var(--text-secondary);
}

.dev-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    font-family: inherit;
}

.dev-tool-btn-copy:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: rgba(20, 184, 166, 0.06);
}

.dev-tool-btn-open {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff !important;
}

.dev-tool-btn-open:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.dev-tool-btn:disabled,
.dev-tool-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.dev-tool-tip {
    margin-top: 10px;
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.5;
}

.dev-tool-tip i {
    margin-right: 4px;
}

/* 123 云盘通用提示 — 醒目样式 */
.dev-tool-tip--123 {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 14px;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.55;
    color: #c2410c;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fdba74;
    border-radius: var(--radius-sm);
}

.dev-tool-tip--123 i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1rem;
    color: #ea580c;
}

.dev-tool-tip--baidu {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    font-size: var(--text-xs);
    font-weight: 500;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-sm);
}

.dev-tool-tip--baidu i {
    flex-shrink: 0;
    color: #2563eb;
}

.dev-tool-video-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.dev-tool-video-head h3 {
    margin-bottom: 0;
}

.dev-tool-video-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--brand);
    border: 1px solid var(--brand);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    box-shadow: none;
    transition: background-color 0.15s, border-color 0.15s;
}

.dev-tool-video-expand i {
    font-size: 1.1rem;
}

.dev-tool-video-expand:hover {
    transform: none;
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    box-shadow: none;
    filter: none;
}

.dev-tool-video-expand--overlay {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    padding: 8px 14px;
    font-size: 13px;
    background: rgba(13, 148, 136, 0.95);
    backdrop-filter: none;
    box-shadow: var(--shadow);
}

.dev-tool-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0f172a;
    border: 1px solid var(--border);
}

.dev-tool-video-wrap:hover .dev-tool-video-expand--overlay {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

.dev-tool-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* 全屏弹层 — 尽量占满屏幕 */
.dev-tool-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
}

.dev-tool-video-modal.hidden {
    display: none;
}

.dev-tool-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
}

.dev-tool-video-modal-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 12px 16px;
    box-sizing: border-box;
}

.dev-tool-video-modal-close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s, transform 0.15s;
}

.dev-tool-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.05);
}

.dev-tool-video-modal-player {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: calc(100vh - 24px);
    object-fit: contain;
    background: #000;
    border-radius: 4px;
}

.dev-tool-video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 200px;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: #f8fafc;
    color: var(--text-muted);
}

.dev-tool-video-placeholder i {
    font-size: 2rem;
    opacity: 0.5;
}

.dev-tools-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    padding: 10px 20px;
    background: rgba(29, 33, 41, 0.92);
    color: #fff;
    font-size: var(--text-sm);
    border-radius: var(--radius-pill);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 500;
}

.dev-tools-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 开发工具未上线模块提示框 */
.dev-pending-dialog {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dev-pending-dialog.hidden {
    display: none;
}

.dev-pending-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.dev-pending-dialog-panel {
    position: relative;
    width: min(360px, 100%);
    padding: 28px 24px 22px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.dev-pending-dialog-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: #fff7ed;
    color: #ea580c;
    font-size: 1.5rem;
}

.dev-pending-dialog-title {
    margin: 0 0 8px;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text);
}

.dev-pending-dialog-message {
    margin: 0 0 20px;
    font-size: var(--text-md);
    color: var(--text-secondary);
    line-height: 1.6;
}

.dev-pending-dialog-ok {
    min-width: 120px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--brand);
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.dev-pending-dialog-ok:hover {
    background: var(--brand-dark);
}

.dev-tool-nav-item--pending,
.dev-tool-link--pending {
    cursor: pointer;
}

@media (max-width: 1100px) {
    .dev-tool-nav-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .dev-tool-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .dev-tool-nav-item {
        min-height: 96px;
        padding: 12px 8px;
    }

    .dev-tool-pack-list {
        grid-template-columns: 1fr;
    }

    .dev-tool-card {
        padding: 18px 16px;
    }

    .dev-tool-link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .dev-tool-btn {
        justify-content: center;
    }

    .dev-tool-video-modal-inner {
        padding: 8px 6px 12px;
    }

    .dev-tool-video-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }

    .dev-tool-video-modal-player {
        max-height: calc(100vh - 16px);
    }

    .dev-tool-video-expand--primary {
        width: 100%;
        justify-content: center;
    }

    .dev-tool-video-expand--overlay {
        right: 10px;
        bottom: 10px;
        padding: 8px 14px;
        font-size: 13px;
    }
}
