@font-face {
            font-family: 'stick';
            src: url('../font/stick.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        @font-face {
            font-family: 'stick2';
            src: url('../font/stick2.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        @font-face {
            font-family: 'OPPO Sans 4.0';
            src: url('../font/OPPO Sans 4.0.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        @font-face {
            font-family: 'ChildFunSans';
            src: url('../font/ChildFunSans.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        @font-face {
            font-family: 'Dymon-ShouXieTi';
            src: url('../font/Dymon-ShouXieTi.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'stick', 'stick2','OPPO Sans 4.0', 'ChildFunSans','Dymon-ShouXieTi','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-image: url('../背景.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            color: #333;
            min-height: 100vh;
            padding: 20px;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 15px;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
            color: #333;
        }

        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            color: #555;
        }

        .app-container {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            justify-content: center;
        }

        .left-panel {
            flex: 1;
            min-width: 300px;
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .right-panel {
            flex: 1;
            min-width: 300px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 15px;
            padding: 25px;
            backdrop-filter: blur(5px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        }

        .preview-panel {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }

        .preview-container {
            width: 100%;
            max-width: 500px;
            aspect-ratio: 1;
            background: rgba(255, 255, 255, 0.7);;
            border-radius: 15px;
            overflow: hidden;
            position: relative;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
        }

        .control-group {
            margin-bottom: 20px;
        }

        .control-group h3 {
            margin-bottom: 15px;
            font-size: 1.3rem;
            border-bottom: 2px solid rgba(74, 0, 224, 0.3);
            padding-bottom: 5px;
            color: #333;
            font-weight: bold;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
        }

        input,
        select,
        textarea {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid rgba(74, 0, 224, 0.2);
            background: rgba(255, 255, 255, 0.7);
            font-size: 1rem;
            margin-bottom: 15px;
            color: #333;
        }

        textarea {
            min-height: 80px;
            resize: vertical;
        }

        .color-controls {
            display: flex;
            gap: 15px;
        }

        .color-control {
            flex: 1;
        }

        .color-control input {
            height: 50px;
            cursor: pointer;
        }

        .button-group {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }

        button {
            flex: 1;
            padding: 15px;
            border: none;
            border-radius: 8px;
            background: #4a00e0;
            color: white;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
        }

        button:hover {
            background: #8e2de2;
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
        }

        button:active {
            transform: translateY(1px);
        }

        #downloadBtn {
            background: #00b09b;
        }

        #downloadBtn:hover {
            background: #00d2a2;
        }

        .template-gallery {
            display: grid;
            grid-template-columns: repeat(10, 1fr);
            gap: 5px;
            margin-top: 5px;
        }

        .template-item {
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            max-width: 100px;
            max-height: 100px;
            justify-self: center;
        }

        .template-item:hover {
            transform: scale(1.05);
            border-color: #4a00e0;
            box-shadow: 0 0 10px rgba(74, 0, 224, 0.5);
        }

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

        .template-item.active {
            border-color: #4a00e0;
            box-shadow: 0 0 15px rgba(74, 0, 224, 0.7);
        }

        #stickerCanvas {
            width: 100%;
            height: 100%;
            display: block;
        }

        .instructions {
            margin-top: 30px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.6);
            border-radius: 15px;
            backdrop-filter: blur(5px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .instructions h2 {
            margin-bottom: 15px;
            text-align: center;
            color: #333;
            font-size: 1.5rem;
        }

        .instructions ol {
            padding-left: 20px;
            line-height: 1.6;
            color: #333;
        }

        .instructions li {
            margin-bottom: 10px;
            font-weight: 500;
        }

        @media (max-width: 768px) {
            .app-container {
                flex-direction: column;
            }

            .left-panel {
                order: 1;
            }

            .right-panel {
                order: 2;
            }

            .template-gallery {
                grid-template-columns: repeat(2, 1fr);
            }
        }