
        /* 手绘风格容器 */
        .sketch-container {
            position: relative;
            padding: 20px;
            margin: 20px;
            border-radius: 15px;
        }
/* 
        .sketch-container::before {
            content: '';
            position: absolute;
            top: -10px;
            left: 20px;
            right: 20px;
            height: 2px;
            background: var(--text-color);
            transform: rotate(-1deg);
        }

        .sketch-container::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 10px;
            right: 10px;
            height: 2px;
            background: var(--text-color);
            transform: rotate(1deg);
        } */

        /* 骰子游戏容器 */
        .dice-game {
            text-align: center;
            padding: 20px;
            max-width: 800px;
            margin: 0 auto;
        }

        /* 骰子选项 */
        .dice-options {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 20px 0;
            background: rgba(var(--surface-rgb), 0.9);
            backdrop-filter: blur(10px);
        }

        .btn.btn-small {
            position: relative;
            overflow: hidden;
        }

        .btn.btn-small::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border: 2px solid currentColor;
            border-radius: 8px;
            opacity: 0.3;
            transform: rotate(-1deg);
        }

        /* 骰子容器 */
        .dice-container {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 40px auto;
            perspective: 1000px;
            min-height: 120px;
            background: rgba(var(--surface-rgb), 0.9);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 30px;
            max-width: 800px;
        }

        /* 骰子样式 */
        .dice {
            width: 100px;
            height: 100px;
            position: relative;
            transform-style: preserve-3d;
            transition: transform 1s ease-out;
        }

        /* 骰子面 */
        .dice-face {
            position: absolute;
            width: 100%;
            height: 100%;
            background-color: white;
            border: 2px solid var(--text-color);
            border-radius: 10px;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            grid-template-rows: repeat(3, 1fr);
            padding: 8px;
            box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.1);
        }

        .dice-face::after {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            border: 2px solid var(--text-color);
            border-radius: 10px;
            opacity: 0.3;
            transform: rotate(1deg);
            pointer-events: none;
        }

        /* 骰子点数 */
        .dot {
            width: 12px;
            height: 12px;
            background-color: var(--text-color);
            border-radius: 50%;
            margin: auto;
            position: relative;
        }

        .dot::after {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            border: 2px solid var(--text-color);
            border-radius: 50%;
            opacity: 0.3;
            transform: rotate(5deg);
        }

        /* 骰子面位置 */
        .front  { transform: translateZ(50px); }
        .back   { transform: translateZ(-50px) rotateY(180deg); }
        .right  { transform: translateX(50px) rotateY(90deg); }
        .left   { transform: translateX(-50px) rotateY(-90deg); }
        .top    { transform: translateY(-50px) rotateX(90deg); }
        .bottom { transform: translateY(50px) rotateX(-90deg); }

        /* 点数布局 */
        /* 1点 */
        .front .dot:nth-child(5) { grid-area: 2 / 2; }

        /* 2点 */
        .bottom .dot:nth-child(1) { grid-area: 1 / 1; }
        .bottom .dot:nth-child(2) { grid-area: 3 / 3; }

        /* 3点 */
        .right .dot:nth-child(1) { grid-area: 1 / 1; }
        .right .dot:nth-child(2) { grid-area: 2 / 2; }
        .right .dot:nth-child(3) { grid-area: 3 / 3; }

        /* 4点 */
        .left .dot:nth-child(1) { grid-area: 1 / 1; }
        .left .dot:nth-child(2) { grid-area: 1 / 3; }
        .left .dot:nth-child(3) { grid-area: 3 / 1; }
        .left .dot:nth-child(4) { grid-area: 3 / 3; }

        /* 5点 */
        .top .dot:nth-child(1) { grid-area: 1 / 1; }
        .top .dot:nth-child(2) { grid-area: 1 / 3; }
        .top .dot:nth-child(3) { grid-area: 2 / 2; }
        .top .dot:nth-child(4) { grid-area: 3 / 1; }
        .top .dot:nth-child(5) { grid-area: 3 / 3; }

        /* 6点 */
        .back .dot:nth-child(1) { grid-area: 1 / 1; }
        .back .dot:nth-child(2) { grid-area: 1 / 3; }
        .back .dot:nth-child(3) { grid-area: 2 / 1; }
        .back .dot:nth-child(4) { grid-area: 2 / 3; }
        .back .dot:nth-child(5) { grid-area: 3 / 1; }
        .back .dot:nth-child(6) { grid-area: 3 / 3; }

        /* 骰子动画 */
        @keyframes roll {
            0% { 
                transform: rotateX(0) rotateY(0) rotateZ(0); 
            }
            100% { 
                transform: rotateX(720deg) rotateY(360deg) rotateZ(360deg); 
            }
        }

        .dice.rolling {
            animation: roll 1s ease-out;
        }

        /* 结果显示 */
        .dice-result {
            font-family: 'Patrick Hand', cursive;
            font-size: 28px;
            min-height: 40px;
            color: var(--primary-color);
            margin: 20px 0;
            padding: 10px;
            position: relative;
        }

        .dice-result::after {
            content: '';
            position: absolute;
            left: 50%;
            bottom: 0;
            width: 100px;
            height: 2px;
            background: var(--text-color);
            transform: translateX(-50%) rotate(-1deg);
            opacity: 0.3;
        }

        /* 统计信息 */
        .dice-stats {
            margin-top: 30px;
            padding: 20px;
            background-color: var(--surface-color);
            border-radius: 12px;
            background: rgba(var(--surface-rgb), 0.9);
            backdrop-filter: blur(10px);
        }

        .stats-title {
            font-family: 'Patrick Hand', cursive;
            color: var(--text-color);
            font-size: 24px;
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
        }

        .stats-title::after {
            content: '';
            position: absolute;
            left: -10px;
            right: -10px;
            bottom: -5px;
            height: 2px;
            background: var(--primary-color);
            transform: rotate(-1deg);
            opacity: 0.5;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 15px;
            padding: 10px;
        }

        .stat-item {
            background-color: var(--background-color);
            border-radius: 8px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            position: relative;
            overflow: hidden;
        }

        .stat-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            border: 2px solid var(--border-color);
            border-radius: 8px;
            transform: rotate(-1deg);
            z-index: 0;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 14px;
            z-index: 1;
        }

        .stat-count {
            font-family: 'Patrick Hand', cursive;
            font-size: 24px;
            color: var(--primary-color);
            z-index: 1;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .game-title {
                font-size: 2em;
            }

            .dice {
                width: 80px;
                height: 80px;
            }

            .dice-container {
                gap: 20px;
            }

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

            .stat-item {
                padding: 10px;
            }
        }

        /* 无障碍支持 */
        @media (prefers-reduced-motion: reduce) {
            .dice {
                transition: none;
            }

            .dice.rolling {
                animation: none;
            }
        }

        /* 按钮样式 */
        .btn {
            position: relative;
            font-family: 'Patrick Hand', cursive;
            font-size: 1.2em;
            padding: 12px 30px;
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            transition: transform 0.2s;
            overflow: visible;
        }

        .btn::before {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            background: transparent;
            border: 2px solid var(--primary-color);
            border-radius: 14px;
            transform: rotate(-1deg);
            transition: transform 0.2s;
        }

        .btn::after {
            content: '🎲';
            position: absolute;
            font-size: 1.4em;
            right: -15px;
            top: -15px;
            transform: rotate(15deg);
            opacity: 0;
            transition: all 0.3s;
        }

        .btn:hover {
            transform: translateY(-2px) rotate(1deg);
        }

        .btn:hover::before {
            transform: rotate(2deg);
        }

        .btn:hover::after {
            opacity: 1;
            transform: rotate(-15deg);
        }

        .btn:active {
            transform: translateY(1px);
        }

        .btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }

        .btn:disabled::before {
            border-style: dashed;
        }

        .btn:disabled::after {
            display: none;
        }

        /* 按钮动画 */
        @keyframes wiggle {
            0%, 100% { transform: rotate(0); }
            25% { transform: rotate(-3deg); }
            75% { transform: rotate(3deg); }
        }

        #roll-btn {
            animation: wiggle 2s ease-in-out infinite;
            margin: 20px 0;
        }

        #roll-btn:hover {
            animation: none;
        }

        /* 小按钮样式 */
        .btn.btn-small {
            font-size: 1em;
            padding: 8px 20px;
            background: transparent;
            color: var(--text-color);
            border: 2px solid var(--border-color);
        }

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

        .btn.btn-small:hover {
            background: var(--surface-color);
            transform: translateY(-2px);
        }

        .btn.btn-small.active:hover {
            background: var(--primary-color);
        }

        .btn.btn-small::before {
            border-color: var(--border-color);
        }

        .btn.btn-small.active::before {
            border-color: var(--primary-color);
        }

        .btn.btn-small::after {
            display: none;
        }

        /* 顶部导航栏 */
        .top-nav {
            background: rgba(255, 255, 255, 0.25);
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
            padding: 10px 0;
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-brand {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: #333;
            font-size: 1.5em;
            font-weight: bold;
            transition: transform 0.3s ease;
        }

        .nav-brand:hover {
            transform: scale(1.05);
        }