/* public/css/home-page.css */
/* WIP — 从 designtoolbox-home-en.html 抽出的 CSS reset + 主页样式
 * 计划:docs/2026-05-28-header-wip-sandbox-plan.md
 * Cascade 位置:在 layui.css/style.css 之后,跟原 inline 位置一致
 */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        ::-webkit-scrollbar-button {
            display: none;
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.1);
            border-radius: 4px;
            transition: background 0.2s ease;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: rgba(0, 0, 0, 0.3);
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            background: #ffffff;
            background-attachment: fixed;
            position: relative;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: radial-gradient(circle, rgba(37, 99, 235, 0.25) 1.5px, transparent 1.5px);
            background-size: 16px 16px;
            background-attachment: fixed;
            pointer-events: none;
            z-index: -1;
            display: none;
            mask-image: linear-gradient(to bottom, 
                rgba(0, 0, 0, 0.1) 0%, 
                rgba(0, 0, 0, 0.5) 30%,
                rgba(0, 0, 0, 1) 100%);
            -webkit-mask-image: linear-gradient(to bottom, 
                rgba(0, 0, 0, 0.1) 0%, 
                rgba(0, 0, 0, 0.5) 30%,
                rgba(0, 0, 0, 1) 100%);
        }

        body::after {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: radial-gradient(circle, rgba(255, 255, 255, 0.4) 1.5px, transparent 1.5px);
            background-size: 16px 16px;
            background-attachment: fixed;
            pointer-events: none;
            z-index: -1;
            mask-image: linear-gradient(to bottom, 
                rgba(0, 0, 0, 1) 0%, 
                rgba(0, 0, 0, 0.3) 70%,
                rgba(0, 0, 0, 0) 100%);
            -webkit-mask-image: linear-gradient(to bottom, 
                rgba(0, 0, 0, 1) 0%, 
                rgba(0, 0, 0, 0.3) 70%,
                rgba(0, 0, 0, 0) 100%);
        }

        .container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        .text-primary {
            color: #2563eb;
        }

        main {
            max-width: 1400px;
            margin: 0 auto;
            /* WIP v3: header->title gap trimmed to ~2/3 (was 10rem=160px; header is 70px,
               so the visible gap goes 90px -> 60px). Mobile keeps its own 6rem (later @media). */
            padding: 130px 0 3rem 0;
        }

        @media (min-width: 1920px) {
            main {
                max-width: 1600px;
            }
        }

        .title-section {
            text-align: center;
            margin-bottom: 2rem;
            padding: 0 2rem;
        }

        h1 {
            font-family: "Helvetica Neue", Helvetica, "PingFang SC", Tahoma, Arial, sans-serif;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            color: rgba(0, 0, 0, 0.85);
            line-height: 1;
            display: inline-flex;
            align-items: baseline;
            justify-content: center;
            gap: 0.35rem;
            word-break: break-word;
        }

        .hero-logo-icon {
            width: 2.8rem;
            height: 2.8rem;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            top: 0.2em;
        }

        .hero-logo-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        @media (max-width: 768px) {
            .hero-logo-icon {
                width: 2.75rem;
                height: 2.75rem;
            }
        }

        .hero-subtitle-text {
            font-size: 0.85em;
            font-weight: 400;
        }

        .hero-subtitle {
            font-size: 1.125rem;
            color: #6b7280;
            margin-bottom: 1.5rem;
            max-width: 1024px;
            margin-left: auto;
            margin-right: auto;
        }

        .hero-title-small {
            font-size: 0.9em;
        }

        .hero-title-ai {
            font-size: 1.15em;
            font-weight: 700;
            letter-spacing: 0.02em;
            margin: 0 0.1em;
        }

        .hero-title-brand {
            color: #111827;
            font-weight: 400;
        }

        .hero-title-dot {
            color: #111827;
            font-weight: 400;
        }

        .hero-title-blue {
            color: #2563eb;
            font-weight: 500;
            line-height: 1;
            vertical-align: bottom;
        }

        .category-tabs {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        @media (min-width: 768px) {
            .category-tabs {
                transform: translateX(-0.5rem);
            }
        }

        @media (min-width: 1024px) {
            .category-tabs {
                transform: translateX(-0.75rem);
            }
        }

        .tab-btn {
            padding: 0.5rem 1rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid #e5e7eb;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            gap: 0.375rem;
            background-color: white;
            color: #374151;
        }

        .tab-btn.active {
            background-color: #111827;
            color: #ffffff;
            border-color: #111827;
        }

        .tab-btn:not(.active):hover {
            background-color: #f9fafb;
            border-color: #d1d5db;
        }

        .tab-btn .tab-icon {
            width: 1rem;
            height: 1rem;
        }

        .tab-btn.active:hover {
            background-color: #1f2937;
        }

        /* v0-style Input Zone - Rotating gradient border */
        @property --gradient-angle {
            syntax: '<angle>';
            initial-value: 0deg;
            inherits: false;
        }

        .upload-zone {
            margin: 1.5rem auto 1.5rem auto;
            width: 100%;
            max-width: min(850px, calc(100% - 4rem));
            border-radius: 1.125rem;
            position: relative;
            padding: 2px;
            background: linear-gradient(var(--gradient-angle, 135deg), #2563eb, #fffcf7, #2563eb);
            animation: rotateGradient 4s linear infinite;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        @keyframes rotateGradient {
            0% {
                --gradient-angle: 0deg;
            }
            100% {
                --gradient-angle: 360deg;
            }
        }

        .upload-zone-inner {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 1rem;
            padding: 1.25rem 1.5rem 1rem 1.5rem;
            min-height: auto;
            background: #ffffff;
            border: none;
            position: relative;
            transition: background 0.3s ease;
            border-radius: calc(1.125rem - 2px) calc(1.125rem - 2px) 0 0;
        }

        .upload-zone.dragover .upload-zone-inner {
            background: #f8fafc;
        }

        .upload-zone:hover {
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        /* Left side: Add button + Image thumbnails */
        .input-left {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-shrink: 0;
        }

        .add-image-btn {
            width: 52px;
            height: 52px;
            border: 1.2px dashed #d1d5db;
            border-radius: 0.5rem;
            background: #f9fafb;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            flex-shrink: 0;
        }

        .add-image-btn:hover {
            border-color: #2563eb;
            background: #eff6ff;
        }

        .add-image-btn svg {
            color: #9ca3af;
            transition: color 0.2s ease;
        }

        .add-image-btn:hover svg {
            color: #2563eb;
        }

        .input-thumbnails {
            display: flex;
            gap: 0.375rem;
        }

        .input-thumbnail {
            width: 52px;
            height: 52px;
            border-radius: 0.5rem;
            overflow: hidden;
            flex-shrink: 0;
            position: relative;
        }

        #userThumbnail {
            cursor: zoom-in;
        }

        .input-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .thumbnail-remove {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.6);
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .thumbnail-remove svg {
            color: white;
        }

        .input-thumbnail:hover .thumbnail-remove {
            opacity: 1;
        }

        .thumbnail-remove:hover {
            background: rgba(0, 0, 0, 0.8);
        }

        .upload-preview-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.96);
            z-index: 2500;
            padding: 2rem;
        }

        .upload-preview-modal.show {
            display: flex;
        }

        .upload-preview-modal img {
            max-width: min(92vw, 1400px);
            max-height: 90vh;
            object-fit: contain;
            border-radius: 0.75rem;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
            background: #111827;
        }

        .upload-preview-modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 2.25rem;
            height: 2.25rem;
            border: none;
            border-radius: 9999px;
            background: rgba(17, 24, 39, 0.08);
            color: #111827;
            font-size: 1.4rem;
            line-height: 1;
            cursor: pointer;
        }

        .upload-preview-modal-close:hover {
            background: rgba(17, 24, 39, 0.16);
        }

        /* Right side: Text input */
        .input-right {
            flex: 1;
            display: flex;
            align-items: center;
            min-width: 0;
        }

        .text-input-wrapper {
            flex: 1;
            position: relative;
        }

        .text-input {
            width: 100%;
            border: none;
            outline: none;
            font-size: 1rem;
            color: #374151;
            background: transparent;
            padding: 0.75rem 0;
        }

        .text-input::placeholder {
            color: #9ca3af;
        }

        /* Submit button - moved to toolbar */
        .submit-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: #e5e7eb;
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: not-allowed;
            transition: all 0.2s ease;
            flex-shrink: 0;
            margin-left: auto;
        }

        .submit-btn.active {
            background: #2563eb;
            cursor: pointer;
        }

        .submit-btn.active:hover {
            background: #1d4ed8;
            transform: scale(1.05);
        }

        .submit-btn svg {
            color: white;
        }

        /* Bottom toolbar - unified white background */
        .input-toolbar {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1.5rem 1rem 1.5rem;
            border-top: 1px solid #f3f4f6;
            background: #ffffff;
            border-radius: 0 0 calc(1.125rem - 2px) calc(1.125rem - 2px);
        }

        .toolbar-btn {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            padding: 0.25rem 0.5rem;
            border: none;
            background: transparent;
            color: #6b7280;
            font-size: 0.75rem;
            cursor: pointer;
            border-radius: 0.25rem;
            transition: all 0.2s ease;
        }

        .toolbar-btn:hover {
            background: #f3f4f6;
            color: #374151;
        }

        .toolbar-btn svg {
            width: 14px;
            height: 14px;
        }

        .toolbar-divider {
            width: 1px;
            height: 16px;
            background: #e5e7eb;
        }

        /* Model selector dropdown */
        .model-selector {
            position: relative;
            display: inline-block;
        }

        .model-selector-btn {
            display: flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.375rem 0.625rem;
            border: 1px solid #e5e7eb;
            background: #ffffff;
            color: #374151;
            font-size: 0.8125rem;
            font-weight: 500;
            cursor: pointer;
            border-radius: 0.375rem;
            transition: all 0.2s ease;
        }

        .model-selector-btn:hover {
            background: #f9fafb;
            border-color: #d1d5db;
        }

        .model-selector-btn .model-icon {
            width: 14px;
            height: 14px;
        }

        .model-selector-btn .dropdown-arrow {
            width: 12px;
            height: 12px;
            color: #9ca3af;
            transition: transform 0.2s ease;
        }

        .model-selector.open .dropdown-arrow {
            transform: rotate(180deg);
        }

        .model-dropdown {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            min-width: 200px;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 0.5rem;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 100;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-4px);
            transition: all 0.2s ease;
        }

        .model-selector.open .model-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .model-option {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.625rem 0.75rem;
            cursor: pointer;
            transition: background 0.15s ease;
        }

        .model-option:first-child {
            border-radius: 0.5rem 0.5rem 0 0;
        }

        .model-option:last-child {
            border-radius: 0 0 0.5rem 0.5rem;
        }

        .model-option:hover {
            background: #f3f4f6;
        }

        .model-option.selected {
            background: #eff6ff;
        }

        .model-option .model-icon {
            width: 20px;
            height: 20px;
            border-radius: 4px;
        }

        .model-option-info {
            flex: 1;
        }

        .model-option-name {
            font-size: 0.8125rem;
            font-weight: 500;
            color: #111827;
        }

        .model-option-desc {
            font-size: 0.6875rem;
            color: #6b7280;
        }

        .model-option .check-icon {
            width: 16px;
            height: 16px;
            color: #2563eb;
            opacity: 0;
        }

        .model-option.selected .check-icon {
            opacity: 1;
        }

        /* Responsive for medium screens */
        @media (max-width: 768px) {
            .upload-zone {
                max-width: calc(100% - 4rem);
            }
        }

        /* Responsive for mobile */
        @media (max-width: 640px) {
            .upload-zone {
                max-width: calc(100% - 2rem);
                margin-left: auto;
                margin-right: auto;
                border-radius: 0.75rem;
            }

            .input-thumbnails {
                display: none;
            }

            .upload-zone-inner {
                flex-wrap: wrap;
                padding: 1rem;
                border-radius: calc(0.75rem - 2px) calc(0.75rem - 2px) 0 0;
            }

            .input-left {
                width: 100%;
                justify-content: flex-start;
            }

            .input-right {
                width: 100%;
            }

            .input-toolbar {
                padding: 0.75rem 1rem;
                border-radius: 0 0 calc(0.75rem - 2px) calc(0.75rem - 2px);
            }
        }

        /* Hide old styles */
        .upload-area {
            display: none;
        }

        .upload-subtitle {
            display: none;
        }

        .image-previews {
            display: none;
        }

        .image-preview {
            aspect-ratio: 3/2;
            border-radius: 0.5rem;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            display: block;
        }

        .image-preview:hover {
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .image-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: opacity 0.3s ease;
        }

        .section-mini-buttons {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            max-width: 1280px;
            margin: 0.5rem auto 0.75rem auto;
            padding: 0 2rem;
        }
        .mini-btn {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 9999px;
            padding: 0.4rem 0.75rem;
            text-align: center;
            color: #374151;
            font-size: 0.78rem;
            font-weight: 500;
            box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04);
            user-select: none;
        }
        .mini-btn:hover { background: #f9fafb; }

        .upload-icon-wrapper {
            width: 2rem;
            height: 2rem;
            background-color: rgba(37, 99, 235, 0.15);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(37, 99, 235, 0.2);
        }
        .upload-icon {
            width: 1rem;
            height: 1rem;
        }
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(1, 1fr);
            gap: 1.5rem;
            margin-bottom: 1.5rem;
            max-width: 1400px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 2rem;
        }

        @media (min-width: 1400px) {
            .tools-grid {
                padding: 0 2rem;
            }
        }

        @media (min-width: 1600px) {
            .tools-grid {
                padding: 0 3rem;
            }
        }

        @media (min-width: 1920px) {
            .tools-grid {
                max-width: 1600px;
                padding: 0 1rem;
            }
        }

        @media (min-width: 768px) {
            .tools-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            .tools-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (min-width: 1280px) {
            .tools-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }

        .card {
            background: white;
            border-radius: 0.711rem;
            overflow: hidden;
            border: 2px solid transparent;
            transition: all 0.2s ease, opacity 0.1s ease;
            cursor: pointer;
            aspect-ratio: 4 / 3;
            display: flex;
            flex-direction: column;
            box-shadow: none;
        }
        
        .card:active {
            transform: scale(0.98);
            opacity: 0.7;
        }

        .card:hover {
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08), 
                        0 4px 10px rgba(0, 0, 0, 0.04);
            transform: scale(1.03);
        }
        .card.card-selected {
            /* 取消选中态的蓝色描边和阴影，仅保持边框透明即可 */
            border: 2px solid transparent;
            box-shadow: none;
        }

        .card-image-container {
            position: relative;
            width: 100%;
            flex: 0 0 auto;
            background-color: white;
            padding: 0 0 0.5rem 0;
            display: flex;
            align-items: flex-start;
        }

        .card-image {
            width: 100%;
            height: auto;
            aspect-ratio: 2 / 1;
            object-fit: cover;
            border-radius: 0.5rem;
            background: #f3f4f6;
            display: block;
        }
        
        .card-image[alt]::before {
            content: attr(alt);
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 0.875rem;
            text-align: center;
            width: 80%;
        }

        .badge {
            position: absolute;
            right: 1rem;
            top: 1rem;
            display: inline-flex;
            align-items: center;
            padding: 0.28125rem 0.5625rem;
            border-radius: 0.28125rem;
            font-size: 0.5625rem;
            font-weight: 500;
            color: white;
            transition: background-color 0.2s;
            z-index: 10;
        }

        .badge-gray {
            background-color: #1f2937;
        }

        .badge-gray:hover {
            background-color: #111827;
        }

        .badge-red {
            background-color: #000000;
        }

        .badge-red:hover {
            background-color: #1f2937;
        }

        .badge-blue {
            background-color: #2563eb;
        }

        .badge-blue:hover {
            background-color: #1d4ed8;
        }

        .card-content {
            padding: 0.25rem 1rem 1rem 1rem;
            flex-shrink: 0;
            text-align: left;
            min-height: 7rem;
        }

        .card-title {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #0a0a0a;
            line-height: 1.4;
        }

        .card-description {
            font-size: 0.656rem;
            color: #9ca3af;
            line-height: 1.5;
            overflow: hidden;
            text-overflow: ellipsis;
            line-clamp: 2;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2.025rem;
            }
            
            main {
                padding: 6rem 1rem 3rem 1rem;
            }

            .card-title {
                font-size: 0.95rem;
            }

            /* Elements outside main — match reduced main horizontal padding */
            .stats-section,
            .cta-section,
            .footer-v0 {
                padding-left: 1rem;
                padding-right: 1rem;
            }

            /* SEO container — kept slightly larger for text readability */
            .seo-container {
                padding: 0 1.5rem;
            }

            /* Sections inside main — drop their own horizontal padding so content can breathe */
            .quick-access-section,
            .category-tabs-section {
                padding-left: 0;
                padding-right: 0;
            }

            .quick-access-wrapper {
                overflow: hidden;
            }

            .quick-access-grid {
                margin-right: -8px;
                padding-right: 8px;
            }

            .quick-access-grid .quick-access-card {
                min-width: 0;
            }
        }

        .footer {
            padding: 2rem 1rem;
            background-color: transparent;
            text-align: center;
        }

        .footer-copyright {
            font-size: 0.875rem;
            color: #6b7280;
        }
        
        .text-center {
            text-align: center;
        }
        
        .btn {
            padding: 0.5rem 1rem;
            border-radius: 1.5rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            border: none;
            font-size: 0.875rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }
        .btn-primary {
            background: #2563eb;
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
        }
        .btn-primary:hover {
            background: #1d4ed8;
            box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
            transform: translateY(-2px);
            color: #ffffff !important;
        }
        .btn-lg {
            padding: 0.75rem 2rem;
            font-size: 1rem;
        }

        .btn-yellow {
            background: #f59e0b;
            color: #111827;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
        }
        .btn-yellow:hover {
            background: #d97706;
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
            transform: translateY(-2px);
            color: #111827 !important;
        }

        .cta-section {
            padding: 5rem 1rem;
            background: transparent;
        }
        .cta-title {
            font-size: 1.75rem;
            font-weight: bold;
            margin-bottom: 2rem;
            line-height: 1.2;
        }
        @media (min-width: 768px) {
            .cta-title {
                font-size: 2.25rem;
            }
        }
        .cta-buttons {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            justify-content: center;
            align-items: center;
        }
        @media (min-width: 640px) {
            .cta-buttons {
                flex-direction: row;
            }
        }

        .small-note {
            text-align: center;
            color: #6b7280;
            font-size: 0.78rem;
            margin: 0.25rem auto 1.5rem auto;
            max-width: 900px;
        }

        /* Quick Access Section */
        .quick-access-section {
            max-width: 1400px;
            margin: 3rem auto 2rem auto;
            padding: 0 2rem;
        }

        @media (min-width: 1400px) {
            .quick-access-section {
                padding: 0 2rem;
            }
        }

        @media (min-width: 1600px) {
            .quick-access-section {
                padding: 0 3rem;
            }
        }

        @media (min-width: 1920px) {
            .quick-access-section {
                max-width: 1600px;
                padding: 0 1rem;
            }
        }

        .quick-access-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1rem;
        }

        .quick-access-title-main {
            font-size: 1.5rem;
            font-weight: 400;
            color: #111827;
            margin: 0;
        }

        .quick-access-browse {
            display: flex;
            align-items: center;
            gap: 0.25rem;
            color: #374151;
            font-size: 0.875rem;
            font-weight: 500;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .quick-access-browse:hover {
            color: #111827;
        }

        .quick-access-browse svg {
            transition: transform 0.2s ease;
        }

        .quick-access-browse:hover svg {
            transform: translateX(2px);
        }

        .quick-access-wrapper {
            display: flex;
            align-items: stretch;
            gap: 1rem;
            overflow: visible;
        }

        .quick-access-grid {
            display: flex;
            gap: 1rem;
            flex: 1;
            min-width: 0;
            overflow-x: auto;
            overflow-y: visible;
            scroll-behavior: smooth;
            -ms-overflow-style: none;
            scrollbar-width: none;
            padding: 8px;
            margin: -8px;
            margin-right: -2rem;
            padding-right: 2rem;
        }

        .quick-access-grid::-webkit-scrollbar {
            display: none;
        }

        .quick-access-grid .quick-access-card {
            flex: 0 0 calc(100% - 2rem);
            min-width: 280px;
        }

        @media (min-width: 768px) {
            .quick-access-grid .quick-access-card {
                flex: 0 0 calc(50% - 1rem);
            }
        }

        @media (min-width: 1024px) {
            .quick-access-grid .quick-access-card {
                flex: 0 0 calc(33.333% - 1rem);
            }
        }

        @media (min-width: 1280px) {
            .quick-access-grid .quick-access-card {
                flex: 0 0 calc(25% - 0.75rem);
            }
        }

        .quick-access-nav {
            display: none;
            align-items: center;
            justify-content: center;
            width: 48px;
            flex-shrink: 0;
        }

        @media (min-width: 1280px) {
            .quick-access-nav {
                display: flex;
            }

            .quick-access-wrapper {
                position: relative;
            }

            #quickAccessNavNext .quick-access-nav-btn {
                transform: translateX(-40px);
            }
        }

        .quick-access-nav-btn {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: 1px solid #e5e7eb;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
            color: #2563eb;
        }

        .quick-access-nav-btn svg {
            width: 24px;
            height: 24px;
        }

        .quick-access-nav-btn:hover {
            border-color: #d1d5db;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .quick-access-nav-btn:disabled {
            opacity: 0.4;
            cursor: default;
            box-shadow: none;
        }

        .quick-access-nav-btn:disabled:hover {
            border-color: #e5e7eb;
            box-shadow: none;
        }

        .quick-access-nav-left {
            display: none;
        }

        @media (min-width: 1280px) {
            .quick-access-nav-left {
                display: flex;
                position: absolute;
                left: -18px;
                top: 50%;
                transform: translateY(-50%);
                z-index: 2;
                visibility: hidden;
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.2s ease;
            }

            .quick-access-nav-left.is-visible {
                visibility: visible;
                opacity: 1;
                pointer-events: auto;
            }
        }

        .quick-access-card {
            position: relative;
            display: flex;
            flex-direction: column;
            padding: 1.25rem;
            background: white;
            border: 1px solid #e5e7eb;
            border-radius: 0.711rem;
            text-decoration: none;
            transition: box-shadow 0.25s ease, border-color 0.25s ease;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
        }

        .quick-access-card:hover {
            background-color: #f9fafb;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
            border-color: #d1d5db;
        }

        .quick-access-icon {
            width: 43px;
            height: 43px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
        }

        .quick-access-icon img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 0.5rem;
        }

        .quick-access-content {
            flex: 1;
            min-width: 0;
        }

        .quick-access-title {
            font-size: 1rem;
            font-weight: 600;
            color: #111827;
            margin: 0 0 0.5rem 0;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            line-height: 1;
        }

        .quick-access-title .qa-badge {
            font-size: 0.6rem;
            padding: 0.15rem 0.4rem;
            border-radius: 0.25rem;
            font-weight: 500;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

        .quick-access-subtitle {
            font-size: 0.8rem;
            color: #6b7280;
            margin: 0;
            line-height: 1.5;
        }


        /* Category Tabs Section - v0 style */
        .category-tabs-section {
            max-width: 1400px;
            margin: 2.5rem auto 1.5rem auto;
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
        }

        @media (min-width: 1400px) {
            .category-tabs-section {
                padding: 0 2rem;
            }
        }

        @media (min-width: 1600px) {
            .category-tabs-section {
                padding: 0 3rem;
            }
        }

        @media (min-width: 1920px) {
            .category-tabs-section {
                max-width: 1600px;
                padding: 0 1rem;
            }
        }

        .category-tabs-title {
            font-size: 1.5rem;
            font-weight: 400;
            color: #111827;
            margin: 0;
        }

        /* View All Button */
        .view-all-container {
            text-align: center;
            margin: 2rem 0 3rem 0;
        }

        .btn-outline {
            background-color: transparent;
            border: 1px solid #d1d5db;
            color: #374151;
            padding: 0.6rem 1.5rem;
            border-radius: 9999px;
            font-weight: 500;
            font-size: 0.875rem;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            transition: all 0.2s ease;
        }

        .btn-outline:hover {
            border-color: #2563eb;
            color: #2563eb;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
        }

        .btn-outline svg {
            transition: transform 0.2s ease;
        }

        .btn-outline:hover svg {
            transform: translateX(4px);
        }

        /* Statistics Section */
        .stats-section {
            padding: 3.5rem 1rem 2.5rem;
            background: #f9fafb;
            text-align: center;
        }

        .stats-header {
            margin-bottom: 1.75rem;
        }

        .stats-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 0;
            line-height: 1.3;
            letter-spacing: -0.01em;
        }

        .stats-grid {
            display: flex;
            justify-content: center;
            gap: 0;
            flex-wrap: nowrap;
            margin: 0 auto;
        }

        .stat-item {
            text-align: center;
            padding: 0 2rem;
            position: relative;
        }

        .stat-item:not(:last-child)::after {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 2.25rem;
            width: 1px;
            background: #e5e7eb;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: 800;
            color: #111827;
            line-height: 1;
            margin-bottom: 0.3rem;
        }

        .stat-label {
            font-size: 0.75rem;
            color: #9ca3af;
            letter-spacing: 0.02em;
        }

        @media (max-width: 768px) {
            .stats-grid {
                gap: 1.5rem 0;
                flex-wrap: wrap;
            }

            .stat-item {
                padding: 0 1.25rem;
                flex: 0 0 33.333%;
            }

            .stat-value {
                font-size: 1.5rem;
            }

            .stat-item:not(:last-child)::after {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .stat-item {
                flex: 0 0 50%;
                padding: 0.75rem 0;
            }
        }

        /* Company Marquee Ticker */
        .company-marquee {
            margin-top: 2.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid #e5e7eb;
            overflow: hidden;
            position: relative;
        }

        .company-marquee::before,
        .company-marquee::after {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 100px;
            z-index: 2;
            pointer-events: none;
        }

        .company-marquee::before {
            left: 0;
            background: linear-gradient(to right, #f9fafb 10%, transparent);
        }

        .company-marquee::after {
            right: 0;
            background: linear-gradient(to left, #f9fafb 10%, transparent);
        }

        .marquee-track {
            display: flex;
            align-items: center;
            gap: 3.5rem;
            width: max-content;
            animation: marquee-scroll 35s linear infinite;
        }

        .marquee-track:hover {
            animation-play-state: paused;
        }

        @keyframes marquee-scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        .marquee-item {
            font-size: 0.9rem;
            font-weight: 600;
            color: #c6c9ce;
            white-space: nowrap;
            letter-spacing: 0.03em;
            user-select: none;
        }

        /* Quick Tags below input */
        .quick-tags-wrapper {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin: 0.75rem auto 0 auto;
            max-width: 850px;
        }

        .quick-tags {
            display: flex;
            justify-content: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .quick-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.375rem;
            padding: 0.4rem 0.75rem;
            border: 1px solid #e5e7eb;
            border-radius: 9999px;
            background: white;
            color: #374151;
            font-size: 0.8rem;
            font-weight: 500;
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .quick-tag:hover {
            border-color: #d1d5db;
            background: #f9fafb;
        }

        .quick-tag svg {
            width: 14px;
            height: 14px;
            color: #6b7280;
        }

        .quick-tag:hover svg {
            color: #374151;
        }

        @media (max-width: 640px) {
            .quick-tags {
                gap: 0.375rem;
            }

            .quick-tag {
                padding: 0.35rem 0.6rem;
                font-size: 0.75rem;
            }

            .quick-tag svg {
                width: 12px;
                height: 12px;
            }
        }

        /* SEO Content Sections */
        .seo-section {
            padding: 4rem 0;
        }

        .seo-section-alt {
            background-color: #f9fafb;
        }

        .seo-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }

        @media (min-width: 1400px) {
            .seo-container {
                padding: 0 2rem;
            }
        }

        @media (min-width: 1600px) {
            .seo-container {
                padding: 0 3rem;
            }
        }

        @media (min-width: 1920px) {
            .seo-container {
                max-width: 1600px;
                padding: 0 1rem;
            }
        }

        .seo-container-reverse {
            direction: rtl;
        }

        .seo-container-reverse > * {
            direction: ltr;
        }

        .seo-content {
            text-align: left;
        }

        .seo-title {
            font-size: 1.75rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 1rem;
        }

        .seo-text {
            font-size: 1rem;
            color: #4b5563;
            line-height: 1.75;
            margin-bottom: 1.5rem;
        }

        .seo-features {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .seo-features li {
            position: relative;
            padding-left: 1.5rem;
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
            color: #374151;
        }

        .seo-features li::before {
            content: '\2713';
            position: absolute;
            left: 0;
            color: #2563eb;
            font-weight: 600;
        }

        .seo-image img {
            width: 100%;
            border-radius: 0.5rem;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        }

        .seo-cta-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            margin-top: 1.5rem;
            padding: 0.6rem 1.5rem;
            font-size: 0.875rem;
            font-weight: 500;
            color: #2563eb;
            background-color: transparent;
            border: 1px solid #2563eb;
            border-radius: 9999px;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .seo-cta-btn:hover {
            border-color: #1d4ed8;
            color: #1d4ed8;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
        }

        .seo-cta-btn svg {
            width: 14px;
            height: 14px;
            transition: transform 0.2s ease;
        }

        .seo-cta-btn:hover svg {
            transform: translateX(4px);
        }

        .seo-cta-buttons {
            display: flex;
            gap: 0.75rem;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }

        .seo-use-cases {
            display: grid;
            gap: 1rem;
        }

        .use-case h4 {
            font-size: 0.95rem;
            font-weight: 600;
            color: #111827;
            margin: 0 0 0.25rem 0;
        }

        .use-case p {
            font-size: 0.85rem;
            color: #6b7280;
            margin: 0;
        }

        @media (max-width: 768px) {
            .seo-container,
            .seo-container-reverse {
                grid-template-columns: 1fr;
                direction: ltr;
            }

            .seo-image {
                order: -1;
            }

            .seo-title {
                font-size: 1.5rem;
            }
        }

        /* Quick Tags - preset style */
        .quick-tag.active {
            background: #f3f4f6;
            border-color: #d1d5db;
        }

        /* Fix layui layer.msg text centering */
        .layui-layer-msg .layui-layer-content {
            text-align: center !important;
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #ffffff;
            border: 1px solid #e5e7eb;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .back-to-top:hover {
            background: #f9fafb;
            border-color: #d1d5db;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }

        .back-to-top svg {
            color: #374151;
        }

        @media (max-width: 768px) {
            .back-to-top {
                bottom: 1.5rem;
                right: 1.5rem;
                width: 40px;
                height: 40px;
            }
        }

        /* v0-style Footer */
        .footer-v0 {
            background: #fafafa;
            border-top: 1px solid #e5e7eb;
            padding: 3rem 1rem 2rem 1rem;
        }

        @media (min-width: 1400px) {
            .footer-v0 {
                padding: 3rem 2rem 2rem 2rem;
            }
        }

        @media (min-width: 1600px) {
            .footer-v0 {
                padding: 3rem 3rem 2rem 3rem;
            }
        }

        .footer-v0-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            gap: 2rem;
            padding: 0 2rem;
        }

        @media (min-width: 1920px) {
            .footer-v0-container {
                max-width: 1600px;
            }
        }

        .footer-column {
            text-align: left;
            flex-shrink: 0;
            min-width: 120px;
        }

        .footer-brand {
            flex: 1;
            max-width: 280px;
            padding-right: 2rem;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.75rem;
            text-decoration: none;
        }

        .footer-logo-icon {
            height: 28px;
            width: auto;
        }

        .footer-logo-text {
            font-size: 1.1rem;
            font-weight: 600;
            color: #111827;
        }

        .footer-brand-desc {
            font-size: 0.8rem;
            color: #6b7280;
            line-height: 1.5;
            margin: 0;
        }

        .footer-column h4 {
            font-size: 0.875rem;
            font-weight: 600;
            color: #111827;
            margin: 0 0 1rem 0;
        }

        .footer-column ul {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-column li {
            margin-bottom: 0.6rem;
        }

        .footer-column a {
            font-size: 0.8rem;
            color: #6b7280;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.25rem;
            transition: color 0.2s ease;
        }

        .footer-column a:hover {
            color: #111827;
        }

        .footer-column a svg {
            width: 10px;
            height: 10px;
            opacity: 0.6;
        }

        .footer-bottom {
            max-width: 1400px;
            margin: 2rem auto 0 auto;
            padding: 1.5rem 1rem 0 1rem;
            border-top: 1px solid #e5e7eb;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        @media (min-width: 1920px) {
            .footer-bottom {
                max-width: 1600px;
            }
        }

        .footer-copyright-v0 {
            font-size: 0.75rem;
            color: #9ca3af;
            margin: 0;
        }

        .footer-social {
            display: flex;
            gap: 1rem;
        }

        .footer-social a {
            color: #6b7280;
            transition: color 0.2s ease;
        }

        .footer-social a:hover {
            color: #111827;
        }

        .footer-social svg {
            width: 18px;
            height: 18px;
        }

        @media (max-width: 1024px) {
            .footer-v0-container {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
            }

            .footer-brand {
                grid-column: 1 / -1;
                padding-right: 0;
                margin-bottom: 1rem;
            }

            .footer-column {
                min-width: 0;
            }
        }

        @media (max-width: 640px) {
            .footer-v0-container {
                grid-template-columns: repeat(2, 1fr);
            }

            .footer-bottom {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
        }

        /* === Mobile-only Desktop CTA (replaces input zone + quick tags on small screens) === */
        .mobile-desktop-cta {
            display: none;
        }

        /* (pointer: coarse) restricts to touch-only devices — narrow desktop windows keep the original UI */
        @media (max-width: 768px) and (pointer: coarse) {
            .upload-zone,
            .quick-tags-wrapper {
                display: none !important;
            }

            .mobile-desktop-cta {
                display: block;
                margin: 0 auto 2rem auto;
                max-width: calc(100% - 2rem);
                padding: 2rem 1.5rem;
                background: #ffffff;
                border: 1px solid #e5e7eb;
                border-radius: 1rem;
                box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
                text-align: center;
            }

            .mobile-desktop-icon {
                width: 48px;
                height: 48px;
                color: #6b7280;
                margin: 0 auto 1rem;
                display: block;
            }

            .mobile-desktop-title {
                font-size: 1.25rem;
                font-weight: 700;
                color: #111827;
                margin: 0 0 0.75rem 0;
            }

            .mobile-desktop-desc {
                font-size: 0.95rem;
                color: #6b7280;
                line-height: 1.5;
                margin: 0 0 1.5rem 0;
            }

            .mobile-desktop-cta-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 0.5rem;
                width: 100%;
                padding: 0.875rem 1rem;
                background: #2563eb;
                color: #ffffff;
                border: none;
                border-radius: 0.5rem;
                font-size: 1rem;
                font-weight: 600;
                cursor: pointer;
                transition: background-color 0.2s ease;
                font-family: inherit;
            }

            .mobile-desktop-cta-btn:active,
            .mobile-desktop-cta-btn:hover {
                background: #1d4ed8;
            }

            .mobile-desktop-cta-btn svg {
                width: 18px;
                height: 18px;
                stroke-width: 2;
            }

            .mobile-desktop-cta-btn.copied {
                background: #10b981;
            }
        }

        /* === Mobile-only block modal: shown when intercepting off-target clicks (touch ≤768px) === */
        .mobile-block-modal {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 99999;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .mobile-block-modal.show {
            display: flex;
        }

        .mobile-block-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
        }

        .mobile-block-modal-card {
            position: relative;
            z-index: 1;
            background: #ffffff;
            border-radius: 1rem;
            padding: 2.5rem 1.75rem 2rem 1.75rem;
            max-width: calc(100% - 2rem);
            width: 360px;
            text-align: center;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            animation: mobile-block-modal-pop 0.2s ease-out;
        }

        @keyframes mobile-block-modal-pop {
            from { opacity: 0; transform: scale(0.95); }
            to { opacity: 1; transform: scale(1); }
        }

        .mobile-block-modal-close {
            position: absolute;
            top: 0.5rem;
            right: 0.75rem;
            width: 2rem;
            height: 2rem;
            background: transparent;
            border: none;
            font-size: 1.5rem;
            color: #6b7280;
            cursor: pointer;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 0.5rem;
            font-family: inherit;
        }

        .mobile-block-modal-close:hover,
        .mobile-block-modal-close:active {
            background: #f3f4f6;
            color: #111827;
        }

        /* === WIP redesign v2: unified, wider homepage column =========================
           Widens the content column (was 1400 / 1600@1920) to 1680px and, together with
           the matching header rule in header-wip-2.css, aligns the header's left/right
           edges to the content. Unconditional + last in source order, so it overrides the
           earlier per-breakpoint max-width/padding rules for these selectors. */
        main {
            /* WIP v7: full-width wrapper so the % column below centers against the viewport */
            max-width: none;
        }
        .quick-access-section,
        .category-tabs-section,
        .seo-container,
        .tools-grid {
            max-width: 1680px;
            padding-left: 2rem;
            padding-right: 2rem;
            margin-left: auto;
            margin-right: auto;
        }

        /* WIP v7: never fill edge-to-edge — keep a proportional left/right margin at every
           width. The centered % width leaves ~4% per side until the 1680 max-width caps it
           on wide screens (where centering already supplies the margin). Desktop only;
           mobile keeps its own padding. */
        @media (min-width: 769px) {
            .quick-access-section,
            .category-tabs-section,
            .seo-container,
            .tools-grid {
                width: 92%;
            }
        }

        /* === WIP redesign v6: symmetric card margins (left == right) ===================
           Earlier we reserved ~96px on the RIGHT of both card blocks to mirror the Featured
           carousel's "›" arrow space. That looked balanced only on wide screens (centering
           hid it); on narrow screens the column fills the viewport and the left margin (2rem)
           looked cramped vs the ~96px on the right. Fix: drop the right-only reservation so
           both blocks fill the column symmetrically (left margin == right margin; left edge
           stays at 32/148, aligned with the header), and overlay the Featured next arrow on
           the right edge — the prev "‹" arrow is already an overlay — so the Featured cards
           also fill the full width instead of leaving flex space for the arrow. */
        .tools-grid {
            gap: 1rem;   /* match Featured's 16px card gap; horizontal padding = shared 2rem */
        }
        @media (min-width: 1280px) {
            #quickAccessNavNext {
                position: absolute;
                right: -18px;
                top: 50%;
                transform: translateY(-50%);
                z-index: 2;
            }
            #quickAccessNavNext .quick-access-nav-btn {
                transform: none;
            }
        }
    
