:root {
            --primary-color: #667eea;
            --secondary-color: #764ba2;
            --success-color: #28a745;
            --error-color: #dc3545;
            --warning-color: #ffc107;
            --dark-color: #2c3e50;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            line-height: 1.6;
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            min-height: 100vh;
            padding: 20px;
            padding-top: 60px;
        }

        .back-button {
            position: fixed;
            top: 10px;
            left: 20px;
            background: rgba(255, 255, 255, 0.95);
            color: #333;
            padding: 10px 20px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            border: none;
            cursor: pointer;
            z-index: 1000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.2s;
        }

        .back-button:hover {
            background: white;
            transform: translateX(-3px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        }

        .breadcrumb-nav {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px 10px;
        }

        .breadcrumb {
            list-style: none;
            display: flex;
            gap: 8px;
            font-size: 0.9rem;
            flex-wrap: wrap;
        }

        .breadcrumb li {
            display: flex;
            align-items: center;
            color: rgba(255, 255, 255, 0.9);
        }

        .breadcrumb li:not(:last-child)::after {
            content: '›';
            margin-left: 8px;
            color: rgba(255, 255, 255, 0.6);
            font-size: 1.2rem;
        }

        .breadcrumb a {
            color: white;
            text-decoration: none;
            transition: opacity 0.2s;
        }

        .breadcrumb a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

        .breadcrumb [aria-current="page"] {
            color: white;
            font-weight: 600;
        }

        .tool-switcher {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 14px;
            padding: 10px 16px;
            margin: 0 auto 16px;
            max-width: 1200px;
        }

        .tool-switcher-label {
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-right: 4px;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .tool-switch-btn {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            padding: 6px 14px;
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.1);
            transition: all 0.2s;
            white-space: nowrap;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }

        .tool-switch-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            color: white;
        }

        .tool-switch-btn.active {
            background: white;
            color: #667eea;
            font-weight: 700;
            border-color: white;
            pointer-events: none;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto 40px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            overflow: hidden;
        }

        .header {
            background: var(--dark-color);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .header h1 {
            font-size: 2rem;
            margin-bottom: 8px;
        }

        .main-content {
            padding: 30px;
        }

        .two-column {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .upload-section {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 25px;
        }

        .upload-section h3 {
            margin-bottom: 20px;
            color: #333;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .upload-area {
            border: 3px dashed #ddd;
            border-radius: 15px;
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #f9f9f9;
            margin-bottom: 20px;
        }

        .upload-area:hover,
        .upload-area.drag-over {
            border-color: var(--primary-color);
            background: rgba(102, 126, 234, 0.05);
            transform: scale(1.02);
        }

        .browse-button {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            font-size: 1rem;
            cursor: pointer;
            margin-top: 15px;
            font-weight: 600;
        }

        .file-info {
            margin-top: 15px;
            padding: 15px;
            background: white;
            border-radius: 10px;
            display: none;
        }

        .file-info.show {
            display: block;
        }

        .settings-section {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            border-radius: 15px;
            padding: 25px;
        }

        .settings-section h3 {
            margin-bottom: 20px;
            color: #333;
            font-size: 1.3rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .input-group {
            margin-bottom: 20px;
        }

        .input-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #555;
            font-size: 0.95rem;
        }

        .input-group input,
        .input-group select {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .input-group input:focus,
        .input-group select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .position-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }

        .position-btn {
            padding: 10px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            font-weight: 600;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .position-btn:hover {
            border-color: var(--primary-color);
            background: rgba(102, 126, 234, 0.05);
        }

        .position-btn.active {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            border-color: var(--primary-color);
        }

        .color-group {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .color-group input {
            width: 60px;
            height: 40px;
            padding: 2px;
        }

        input[type="range"] {
            width: calc(100% - 50px);
            display: inline-block;
            margin-right: 10px;
        }

        .preview-section {
            margin-top: 30px;
            background: #f8f9fa;
            border-radius: 15px;
            padding: 25px;
            display: none;
        }

        .preview-section.show {
            display: block;
        }

        .pdf-preview {
            background: #e9ecef;
            border-radius: 10px;
            padding: 20px;
            min-height: 400px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
        }

        .pdf-preview canvas {
            max-width: 100%;
            height: auto;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            background: white;
        }

        .page-navigation {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin-top: 15px;
        }

        .nav-btn {
            padding: 8px 15px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .action-buttons {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            flex-wrap: wrap;
        }

        .action-button {
            flex: 1;
            padding: 15px;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .action-button.primary {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
        }

        .action-button.primary:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .action-button.secondary {
            background: #f8f9fa;
            color: #333;
            border: 2px solid #ddd;
        }

        .action-button.secondary:hover:not(:disabled) {
            background: #e9ecef;
            transform: translateY(-2px);
        }

        .action-button:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .progress-section {
            display: none;
            margin: 20px 0;
            padding: 20px;
            background: #f0f4f8;
            border-radius: 10px;
        }

        .progress-section.show {
            display: block;
        }

        .progress-bar {
            width: 100%;
            height: 10px;
            background: #ddd;
            border-radius: 5px;
            overflow: hidden;
            margin: 15px 0;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
            width: 0%;
            transition: width 0.3s ease;
        }

        .progress-status {
            text-align: center;
            font-weight: 600;
            margin-bottom: 10px;
        }

        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-top: 30px;
            padding: 30px;
            background: #f8f9fa;
            border-radius: 10px;
        }

        .feature {
            text-align: center;
            padding: 20px;
        }

        .feature-icon {
            margin-bottom: 12px;
            color: var(--primary-color);
        }

        .feature h4 {
            margin-bottom: 8px;
            color: #333;
        }

        .feature p {
            font-size: 0.85rem;
            color: #666;
        }

        .seo-content {
            padding: 30px;
            border-top: 1px solid #eee;
        }

        .seo-content h2 {
            font-size: 1.3rem;
            color: var(--dark-color);
            margin: 20px 0 10px;
        }

        .seo-content h2:first-child {
            margin-top: 0;
        }

        .seo-content h3 {
            margin: 20px 0 10px;
            color: #444;
        }

        .seo-content p {
            font-size: 0.95rem;
            color: #555;
            line-height: 1.7;
            margin-bottom: 15px;
        }

        .faq-section {
            padding: 30px;
            background: #f8f9fa;
            border-top: 1px solid #eee;
        }

        .faq-section h2 {
            text-align: center;
            margin-bottom: 24px;
            color: #333;
            font-size: 1.5rem;
        }

        .faq-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 16px;
        }

        .faq-item {
            background: white;
            padding: 15px 20px;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        }

        .faq-item summary {
            font-weight: 600;
            color: #333;
            cursor: pointer;
            padding: 5px 0;
        }

        .faq-item summary:hover {
            color: var(--primary-color);
        }

        .faq-item p {
            margin-top: 10px;
            color: #555;
            line-height: 1.6;
            font-size: 0.95rem;
        }

        .related-tools {
            padding: 30px;
            text-align: center;
            border-top: 1px solid #eee;
        }

        .related-tools h2 {
            margin-bottom: 20px;
            color: #333;
            font-size: 1.4rem;
        }

        .related-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 12px;
        }

        .related-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: #e9ecef;
            color: #333;
            text-decoration: none;
            border-radius: 25px;
            font-weight: 500;
            font-size: 0.9rem;
            transition: all 0.2s;
        }

        .related-link:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-2px);
        }

        footer {
            background: rgba(0, 0, 0, 0.3);
            color: rgba(255, 255, 255, 0.85);
            padding: 20px;
            text-align: center;
            font-size: 0.9rem;
        }

        footer a {
            color: white;
            text-decoration: none;
        }

        footer a:hover {
            text-decoration: underline;
        }

        .toast {
            position: fixed;
            bottom: 30px;
            right: 30px;
            padding: 15px 25px;
            background: #333;
            color: white;
            border-radius: 8px;
            transform: translateY(100px);
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 1000;
        }

        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        @media (max-width: 768px) {
            body {
                padding-top: 55px;
            }

            .back-button {
                top: 8px;
                left: 10px;
                padding: 8px 16px;
                font-size: 0.85rem;
            }

            .two-column {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .main-content {
                padding: 20px;
            }

            .action-buttons {
                flex-direction: column;
            }

            .position-grid {
                grid-template-columns: repeat(3, 1fr);
            }

            .position-btn {
                font-size: 0.7rem;
                padding: 8px 4px;
            }

            .tool-switcher {
                gap: 6px;
                padding: 8px 12px;
            }

            .tool-switch-btn {
                font-size: 0.75rem;
                padding: 5px 10px;
            }
        }