        :root {
            --primary: #165DFF;
            --primary-light: #4080FF;
            --primary-dark: #0E42D2;
            --primary-glass: rgba(22, 93, 255, 0.08);
            --primary-glass-dark: rgba(22, 93, 255, 0.15);
            --secondary: #6B7280;
            --secondary-rect: #3ac47d;
            --success: #00B42A;
            --warning: #FF7D00;
            --danger: #F53F3F;
            --dark: #1D2129;
            --light: #F9FAFB;
            --border: #E5E7EB;
            --card-bg: #FFFFFF;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
            --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
            --radius: 8px;
            --radius-lg: 12px;
            --border-radius: 12px;
            --transition: all 0.25s ease;
            --gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
            --gradient-light: linear-gradient(135deg, var(--primary-light), var(--primary));
        }

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

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
            background-color: var(--light);
            color: var(--dark);
            line-height: 1.5;
            overflow-x: hidden;
            padding-top: 64px;
        }

        h1, h2, h3, h4, h5, h6 {
            color: var(--dark);
            font-weight: 600;
            line-height: 1.3;
        }

        a {
            color: var(--primary);
            text-decoration: none;
            transition: var(--transition);
        }

        a:hover {
            color: var(--primary-dark);
        }

        button {
            font-family: inherit;
            border: none;
            background: none;
            cursor: pointer;
            transition: var(--transition);
        }

        .container {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 1rem;
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
            margin-bottom: 30px;
        }

        /* 导航栏样式 */
        .navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 50;
            background-color: var(--card-bg);
            border-bottom: 1px solid var(--border);
            transition: var(--transition);
        }

        .navbar-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 64px;
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .navbar-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--dark);
        }

        .navbar-logo i {
            color: var(--primary);
            font-size: 1.5rem;
        }

        .navbar-menu {
            display: flex;
            align-items: center;
            gap: 1.5rem;
        }

        .navbar-item {
            list-style: none;
        }

        .navbar-link {
            color: var(--secondary);
            font-weight: 500;
            padding: 0.5rem 0;
            position: relative;
        }

        .navbar-link:hover, .navbar-link.active {
            color: var(--primary);
        }

        .navbar-link.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary);
            border-radius: 2px;
        }

        .navbar-cta {
            background: var(--gradient);
            color: white;
            padding: 0.6rem 1.25rem;
            border-radius: var(--radius);
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
        }

        .navbar-cta:hover {
            background: var(--gradient-light);
            box-shadow: 0 6px 16px rgba(22, 93, 255, 0.25);
        }

        .navbar-hamburger {
            display: none;
            font-size: 1.25rem;
            color: var(--dark);
        }

        /* 移动端菜单 */
        .mobile-menu {
            position: fixed;
            top: 64px;
            left: 0;
            right: 0;
            background-color: var(--card-bg);
            box-shadow: var(--shadow-sm);
            z-index: 40;
            padding: 1rem;
            transform: translateY(-100%);
            opacity: 0;
            pointer-events: none;
            transition: var(--transition);
        }

        .mobile-menu.active {
            transform: translateY(0);
            opacity: 1;
            pointer-events: all;
        }

        .mobile-menu-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .mobile-menu-item a {
            color: var(--secondary);
            font-weight: 500;
            display: block;
            padding: 0.5rem 0;
        }

        .mobile-menu-item a:hover {
            color: var(--primary);
        }

        .mobile-cta {
            margin-top: 0.5rem;
            background: var(--gradient);
            color: white;
            padding: 0.7rem 1.25rem;
            border-radius: var(--radius);
            font-weight: 500;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
        }

        /* 头部区域 */
        .header {
            padding: 40px 0 30px;
            background-color: var(--primary-glass);
            position: relative;
            overflow: hidden;
        }

        .header::before {
            content: '';
            position: absolute;
            top: -30%;
            right: -15%;
            width: 500px;
            height: 500px;
            background: var(--primary-glass-dark);
            border-radius: 50%;
            filter: blur(100px);
            z-index: 0;
        }

        .header-content {
            position: relative;
            z-index: 1;
            max-width: 800px;
           /* margin: 0 auto;
            padding: 0 1rem;*/
        }

        .header-tag {
            display: inline-block;
            background-color: var(--primary);
            color: white;
            font-size: 0.75rem;
            font-weight: 500;
            padding: 0.3rem 0.75rem;
            border-radius: 999px;
            margin-bottom: 1rem;
        }

        .header-title {
            font-size: 2rem;
            margin-bottom: 1rem;
        }

        .header-desc {
            font-size: 1rem;
            color: var(--secondary);
            margin-bottom: 1.5rem;
        }

        .header-stats {
            display: flex;
            gap: 1.5rem;
            flex-wrap: wrap;
            margin-top: 2rem;
        }

        .header-stat-item {
            display: flex;
            flex-direction: column;
        }

        .header-stat-value {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--primary);
        }

        .header-stat-label {
            font-size: 0.875rem;
            color: var(--secondary);
        }

        /* 主内容区 */
        .main {
            padding: 2rem 0;
        }

        .config-panel, .preview-panel {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .panel-title {
            font-size: 1.25rem;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid var(--light);
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 700;
        }
        
        .panel-title svg {
            width: 24px;
            height: 24px;
        }

        .config-section {
            margin-bottom: 25px;
            padding: 15px;
            background: #f8f9ff;
            border-radius: 10px;
            transition: var(--transition);
        }
        
        .config-section:hover {
            background: #eef1ff;
            transform: translateY(-3px);
        }
        .instructions:hover {
            background: #eef1ff;
            transform: translateY(-3px);
        }
        .config-section h4 {
            margin-bottom: 15px;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1rem;
        }

        .checkbox-group {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 0.75rem;
        }

        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .checkbox-item input {
            width: 18px;
            height: 18px;
        }

        .color-group {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .color-picker {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .color-picker input[type="color"] {
            width: 40px;
            height: 40px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
        }

        .size-config {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1rem;
        }

        .size-item {
            display: flex;
            flex-direction: column;
        }

        .size-item label {
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
        }

        .size-item input {
            padding: 0.5rem;
            border: 1px solid var(--border);
            border-radius: 4px;
        }

        .card-demo {
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 20px 0;
            padding: 15px;
            background: white;
            border-radius: 10px;
            flex-wrap: wrap;
        }
        
        .rect-left, .rect-right {
            position: relative;
            width: 180px;
            height: 100px;
            background: var(--primary);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        
        .rect-right {
            background: var(--secondary-rect);
        }
        
        .gap-text {
            margin: 0 15px;
            color: var(--secondary);
            font-weight: 500;
        }
        
        .rect-left span, .rect-right span {
            position: absolute;
            font-size: 12px;
            background: rgba(255, 255, 255, 0.2);
            padding: 3px 6px;
            border-radius: 4px;
        }
        
        .lt { top: 8px; left: 8px; }
        .lb { bottom: 8px; left: 8px; }
        .rt { top: 8px; right: 8px; }
        .rb { bottom: 8px; right: 8px; }
        
        .rect-config {
            background: white;
            padding: 15px;
            border-radius: 10px;
            transition: var(--transition);
        }
        
        .rect-config:hover {
            background: #e6eaff;
            transform: translateY(-3px);
        }
        
        .rect-config h4 {
            text-align: center;
            margin-bottom: 15px;
            color: var(--primary);
            font-weight: 600;
        }
        
        .row {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
        }
        
        .rect-config label {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 14px;
            color: var(--secondary);
            font-weight: 500;
            width: 45%;
        }
        
        .rect-config input {
            width: 100%;
            padding: 8px;
            text-align: center;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1rem;
            margin-top: 5px;
            transition: var(--transition);
        }
        
        .rect-config input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2);
        }

        .corner-config {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .action-buttons {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 15px;
            margin-top: 25px;
        }

        .btn {
            padding: 0.75rem 1.25rem;
            border-radius: var(--radius);
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .btn-primary {
            background: var(--primary);
            color: white;
        }

        .btn-primary:hover {
            background: var(--primary-dark);
        }

        .btn-secondary {
            background: var(--border);
            color: var(--dark);
        }

        .btn-secondary:hover {
            background: #d1d5db;
        }

        .instructions {
            background: linear-gradient(to right, #f8f9ff, #f0f4ff);
            border-left: 5px solid var(--primary);
            padding: 15px;
            border-radius: 10px;
            margin-top: 25px;
            font-size: 14px;
            line-height: 1.6;
        }
        
        .instructions h4 {
            margin-bottom: 15px;
            color: var(--primary);
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .instructions ul {
            padding-left: 20px;
        }
        
        .instructions li {
            margin-bottom: 8px;
            position: relative;
        }
        
        .instructions li:before {
            content: "•";
            color: var(--primary);
            font-weight: bold;
            display: inline-block;
            width: 1em;
            margin-left: -1em;
        }

        .preview-container {
            background: var(--light);
            border-radius: var(--radius);
            padding: 1.25rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            min-height: 180px;
            margin-bottom: 1.25rem;
            overflow: auto;
        }

        .xen-svg-container {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
        }

        .xen-svg-container svg {
            max-width: 100%;
            height: auto;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .code-tabs {
            display: flex;
            border-bottom: 1px solid var(--border);
            margin-bottom: 10px;
        }

        .code-tab {
            padding: 10px 15px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            font-weight: 500;
            color: var(--secondary);
        }

        .code-tab.active {
            color: var(--primary);
            border-bottom-color: var(--primary);
        }

        .embed-code {
            margin-top: 1.25rem;
            width: 100%;
        }

        .embed-code label {
                        color: var(--primary);
            display: block;
            margin-bottom: 0.5rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .embed-code textarea {
            width: 100%;
            height: 120px;
            padding: 1rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            font-family: monospace;
            font-size: 0.85rem;
            resize: vertical;
            background-color: #f9fafb;
        }

        .code-block {
            background: #2d2d2d;
            color: #f8f8f2;
            border-radius: var(--radius);
            padding: 1rem;
            overflow-x: auto;
            margin-top: 1rem;
        }

        .code-block pre {
            margin: 0;
            font-family: 'Fira Code', monospace;
            font-size: 0.85rem;
            line-height: 1.5;
        }
        /* 页脚区 */
        .footer {
            background-color: var(--dark);
            color: rgba(255, 255, 255, 0.7);
            padding: 2rem 0 1.5rem;
        }

        .footer-container {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .footer-top {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .footer-brand {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1.25rem;
            font-weight: 600;
            color: white;
        }

        .footer-logo i {
            color: var(--primary);
            font-size: 1.5rem;
        }

        .footer-desc {
            color: rgba(255, 255, 255, 0.6);
            line-height: 1.6;
            max-width: 300px;
        }

        .footer-links-title {
            font-size: 1rem;
            color: white;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .footer-links-list {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .footer-link {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .footer-link:hover {
            color: var(--primary);
            padding-left: 4px;
        }

        .footer-bottom {
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .footer-bottom-links {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            justify-content: center;
        }

        .footer-bottom-link {
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.85rem;
        }

        .footer-bottom-link:hover {
            color: var(--primary);
        }

        .footer-copyright {
            text-align: center;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.4);
        }

        /* 响应式设计 */
        @media (min-width: 768px) {
            .container {
                grid-template-columns: 1fr 1fr;
                padding: 0 1.5rem;
            }
            
            .header {
                padding: 50px 0 40px;
            }
            
            .header-title {
                font-size: 2.25rem;
            }
            
            .header-desc {
                font-size: 1.1rem;
            }
            
            .header-stat-value {
                font-size: 1.5rem;
            }
            
            .panel-title {
                font-size: 1.5rem;
            }
            
            .config-panel, .preview-panel {
                padding: 25px;
            }
            
            .corner-config {
                grid-template-columns: 1fr 1fr;
            }
            
            .navbar-container {
                padding: 0 1.5rem;
            }
            
            .header-content {
                padding: 0;
            }
        }

        @media (min-width: 1024px) {
            .container {
                padding: 0 2rem;
            }
            
            .navbar-container {
                padding: 0 2rem;
            }
            
            .header-content {
                padding: 0;
            }
            
            .navbar-menu {
                gap: 2.5rem;
            }
        }

        @media (max-width: 767px) {
            .navbar-menu {
                display: none;
            }
            
            .navbar-cta {
                display: none;
            }
            
            .navbar-hamburger {
                display: block;
            }
            
            .checkbox-group {
                grid-template-columns: 1fr;
            }
            
            .color-group {
                grid-template-columns: 1fr;
            }
            
            .size-config {
                grid-template-columns: 1fr;
            }
            
            .card-demo {
                flex-direction: column;
                gap: 15px;
            }
            
            .gap-text {
                margin: 10px 0;
            }
            
            .rect-left, .rect-right {
                width: 220px;
                height: 120px;
            }
            
            .header-stats {
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .action-buttons {
                grid-template-columns: 1fr;
            }
            
            .header-title {
                font-size: 1.75rem;
            }
            
            .header-stats {
                gap: 1rem;
            }
            
            .header-stat-item {
                align-items: center;
            }
        }

        /* 动画效果 */
        .fade-in {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* 提示框 */
        .toast {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(100px);
            background-color: var(--dark);
            color: white;
            padding: 0.75rem 1.25rem;
            border-radius: var(--radius);
            box-shadow: var(--shadow-md);
            z-index: 100;
            opacity: 0;
            transition: all 0.3s ease;
        }

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