
        :root {
            --primary-color: #e74c3c;
            --secondary-color: #3498db;
            --dark-color: #333;
            --light-color: #f5f5f5;
            --bg-color: #f9f9f9;
        }
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            background-color: var(--bg-color);
            color: #444;
            line-height: 1.6;
        }
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }
        
        /* 导航栏 */
        header {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        .logo {
            font-size: 24px;
            font-weight: bold;
            color: var(--primary-color);
                display: flex;
             align-items: center;
        }
        .nav-links {
            display: flex;
            gap: 30px;
        }
        .nav-links a {
            text-decoration: none;
            color: var(--dark-color);
            font-weight: 500;
        }
        .nav-links a:hover {
            color: var(--primary-color);
        }
        .logo img {
    height: 40px;
    margin-right: 10px;
        }
        /* 主要内容 */
        main {
            padding: 30px 0;
        }
        h1 {
            text-align: center;
            color: var(--dark-color);
            margin-bottom: 30px;
            font-size: 28px;
        }
        
        /* 生成器布局 */
        .generator-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }
        .preview-section {
            flex: 1;
            min-width: 300px;
        }
        .controls-section {
            flex: 1;
            min-width: 300px;
            background: white;
            padding: 20px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            max-height: 800px;
            overflow-y: auto;
        }
        
        /* 印章预览 */
        .stamp-container {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 20px;
        }
        .stamp-preview {
            width: 250px;
            height: 250px;
            position: relative;
            margin-bottom: 20px;
        }
        #stampCanvas {
            width: 100%;
            height: 100%;
        }
        .stamp-notice {
            font-size: 14px;
            color: #666;
            text-align: center;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }
        .action-buttons {
            display: flex;
            gap: 15px;
            width: 100%;
        }
        
        .btn-primary-x {
            background-color: #00acda;
            color: white;
            margin: 2px;
        }
        .btn-primary-x:hover {
            background-color: #008bff;
        }

.btn-x {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    flex: 1;
    text-align: center;
    transition: all 0.3s;
}
      .btn-primary-x a {
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: block;
    position: relative;
    padding-right: 0.2rem;
}
        .btn {
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            flex: 1;
            text-align: center;
            transition: all 0.3s;
        }
        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }
        .btn-primary:hover {
            background-color: #c0392b;
        }
        .btn-secondary {
            background-color: var(--secondary-color);
            color: white;
        }
        .btn-secondary:hover {
            background-color: #2980b9;
        }
        
        /* 控制面板 */
        .control-group {
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        .control-group h3 {
            font-size: 16px;
            margin-bottom: 15px;
            color: var(--primary-color);
            display: flex;
            align-items: center;
        }
        .control-group h3:before {
            content: "";
            display: inline-block;
            width: 4px;
            height: 16px;
            background: var(--primary-color);
            margin-right: 8px;
        }
        .form-row {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }
        .form-row label {
            width: 100px;
            font-size: 14px;
        }
        .form-controls {
            flex: 1;
            display: flex;
            align-items: center;
        }
        input[type="text"], input[type="number"], select {
            padding: 8px 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
        }
        input[type="text"], input[type="number"] {
            flex: 1;
        }
        select {
            min-width: 100px;
        }
        .number-control {
            display: flex;
            align-items: center;
        }
        .number-control input {
            width: 50px;
            text-align: center;
            margin: 0 5px;
        }
        .btn-number {
            width: 26px;
            height: 26px;
            background: #f0f0f0;
            border: 1px solid #ddd;
            border-radius: 4px;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            user-select: none;
        }
        .btn-number:hover {
            background: #e0e0e0;
        }
        .checkbox-group {
            display: flex;
            align-items: center;
        }
        .checkbox-group input {
            margin-right: 5px;
        }
        .radio-group {
            display: flex;
            gap: 15px;
        }
        .radio-option {
            display: flex;
            align-items: center;
            font-size: 14px;
        }
        .radio-option input {
            margin-right: 5px;
        }
        .color-option {
            display: flex;
            align-items: center;
            margin-right: 15px;
        }
        .color-dot {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            margin-right: 5px;
            border: 1px solid #ddd;
        }
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 24px;
        }
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .toggle-slider {
            background-color: var(--primary-color);
        }
        input:checked + .toggle-slider:before {
            transform: translateX(26px);
        }
        
        /* 页脚 */
        footer {
            background-color: white;
            padding: 40px 0 20px;
            margin-top: 50px;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        }
        .footer-content {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            margin-bottom: 30px;
        }
        .footer-section {
            flex: 1;
            min-width: 200px;
        }
        .footer-section h3 {
            font-size: 18px;
            margin-bottom: 15px;
            color: var(--dark-color);
        }
        .footer-section p, .footer-section a {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
            display: block;
        }
        .footer-section a {
            text-decoration: none;
        }
        .footer-section a:hover {
            color: var(--primary-color);
        }
        .qr-code {
            width: 120px;
            height: 120px;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        .friend-links {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
        }
        .qr-code img {
    width: 120px;
    height: 120px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    }
        .friend-links a {
            color: #666;
            text-decoration: none;
            font-size: 14px;
            white-space: nowrap;
        }
        .friend-links a:hover {
            color: var(--primary-color);
        }
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #eee;
            font-size: 14px;
            color: #999;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .generator-container {
                flex-direction: column;
            }
            .controls-section {
                max-height: none;
            }
            .nav-links {
                gap: 15px;
            }
            .stamp-container {
                padding: 20px;
            }
            .stamp-preview {
                width: 200px;
                height: 200px;
            }
        }
        @media (max-width: 480px) {
            nav {
                flex-direction: column;
                gap: 15px;
            }
            .nav-links {
                flex-wrap: wrap;
                justify-content: center;
            }
            .form-row {
                flex-direction: column;
                align-items: flex-start;
            }
            .form-row label {
                margin-bottom: 5px;
                width: auto;
            }
            .action-buttons {
                flex-direction: column;
            }
        }
