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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    animation: gradientShift 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 60px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.watch {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

/* 表带连接件（金属 lug）*/
.watchband::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #d4af37 0%, #f4e5b2 25%, #d4af37 50%, #b8962e 75%, #8b7225 100%);
    border-radius: 3px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.4);
    z-index: 2;
}

.watchband.top::after {
    bottom: -5px;
}

.watchband.bottom::after {
    top: -5px;
}

/* 金属螺丝装饰 */
.watchband::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, #c0c0c0 0%, #808080 100%);
    border-radius: 50%;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.5),
        0 1px 1px rgba(255, 255, 255, 0.3);
    z-index: 3;
}

.watchband.top::before {
    bottom: -1px;
}

.watchband.bottom::before {
    top: -1px;
}

.watchband {
    width: 40px;
    height: 140px;
    background: linear-gradient(90deg,
        #2a1810 0%,
        #4a2c18 15%,
        #5a3520 30%,
        #3d2517 50%,
        #5a3520 70%,
        #4a2c18 85%,
        #2a1810 100%
    );
    margin: 0 auto;
    border-radius: 12px;
    position: relative;
    overflow: visible;
    box-shadow:
        inset 0 5px 15px rgba(0, 0, 0, 0.6),
        inset 0 -3px 10px rgba(0, 0, 0, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 皮革纹理效果 */
.watchband {
    background-image:
        /* 皮革纹理 */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 3px
        ),
        /* 主渐变 */
        linear-gradient(90deg,
            #2a1810 0%,
            #4a2c18 15%,
            #5a3520 30%,
            #3d2517 50%,
            #5a3520 70%,
            #4a2c18 85%,
            #2a1810 100%
        );
    background-size: 100% 100%, 100% 100%;
}

/* 缝线效果 */
.watchband .stitching {
    position: absolute;
    width: 32px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.watchband .stitching-left,
.watchband .stitching-right {
    position: absolute;
    width: 3px;
    height: calc(100% - 15px);
    background-image: repeating-linear-gradient(
        180deg,
        #d4c4a8 0px,
        #d4c4a8 4px,
        transparent 4px,
        transparent 8px
    );
}

.watchband .stitching-left {
    left: 0;
}

.watchband .stitching-right {
    right: 0;
}

.watchband.top {
    border-bottom: none;
}

.watchband.top .stitching-left,
.watchband.top .stitching-right {
    top: 10px;
}

.watchband.bottom {
    border-top: none;
}

.watchband.bottom .stitching-left,
.watchband.bottom .stitching-right {
    bottom: 10px;
}

/* 高光反射效果 */
.watchband .highlight {
    position: absolute;
    width: 8px;
    height: 80%;
    left: 8px;
    top: 10%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 20%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.08) 80%,
        transparent 100%
    );
    border-radius: 4px;
    pointer-events: none;
}

/* 表带孔 */
.watchband .holes {
    position: absolute;
    width: 6px;
    height: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    pointer-events: none;
}

.watchband.top .holes {
    bottom: 20px;
}

.watchband.bottom .holes {
    top: 20px;
}

.watchband .hole {
    width: 6px;
    height: 3px;
    background: #1a0f0a;
    border-radius: 2px;
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.8),
        0 0 1px rgba(255, 255, 255, 0.1);
}

.watchface {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(240, 240, 240, 0.8) 100%);
    border-radius: 50%;
    border: 5px solid #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.1);
    position: relative;
    margin: 0 auto;
    z-index: 1;
    /* 防止触摸时的默认滚动行为 */
    touch-action: none;
}

.dial {
    width: 100%;
    height: 100%;
    position: relative;
}

.hour-markers {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* 使用伪元素创建12个小时刻度 */
.hour-markers::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: repeating-conic-gradient(
        from 0deg,
        #333 0deg 2deg,
        transparent 2deg 30deg
    );
    border-radius: 50%;
    -webkit-mask: radial-gradient(circle, transparent 0 72%, #000 72% 100%);
    mask: radial-gradient(circle, transparent 0 72%, #000 72% 100%);
    pointer-events: none;
}

.center {
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.hand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 50% 100%;
    transform: translate(-50%, -100%);
    cursor: grab;
    transition: transform 0.1s ease;
    /* 增加触摸区域 */
    touch-action: none;
}

.hand:active {
    cursor: grabbing;
}

/* 移动端优化：增加触摸区域 */
.hand::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 20px;
    background: transparent;
}

.hand:active {
    cursor: grabbing;
}

.hand.hour {
    width: 6px;
    height: 60px;
    background: #333;
    border-radius: 3px;
    z-index: 7;
}

.hand.minute {
    width: 4px;
    height: 80px;
    background: #555;
    border-radius: 2px;
    z-index: 8;
}

.hand.second {
    width: 2px;
    height: 90px;
    background: #ff4757;
    border-radius: 1px;
    z-index: 9;
}



.digital-clock {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-top: 30px;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
}

.date {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .container {
        padding: 40px;
    }
    
    .watchface {
        width: 200px;
        height: 200px;
    }
    
    .hand.hour {
        height: 50px;
    }
    
    .hand.minute {
        height: 70px;
    }
    
    .hand.second {
        height: 80px;
    }
    
    .date {
        font-size: 18px;
    }
}

