/* ========== 基础重置 ========== */
:root {
    /* 紫色3D渐变主题 */
    --bg-primary: linear-gradient(135deg, #2d1b69 0%, #1a0f3d 100%);
    --bg-secondary: linear-gradient(145deg, #3d2b8c, #2a1c61);
    
    /* 紫色系主色调 */
    --purple-primary: #9c4dff;
    --purple-light: #c77dff;
    --purple-lighter: #e0b3ff;
    --purple-dark: #6a3d9c;
    --purple-bg: #2a1c61;
    
    /* 3D效果阴影 */
    --shadow-3d: 
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 6px 6px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    
    --shadow-3d-hover: 
        0 15px 30px rgba(156, 77, 255, 0.25),
        0 10px 10px rgba(156, 77, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    /* 霓虹紫色 */
    --neon-purple: #b833ff;
    --neon-blue: #4d79ff;
    
    /* 渐变色 */
    --gradient-purple: linear-gradient(135deg, var(--purple-primary) 0%, var(--neon-blue) 100%);
    --gradient-dark: linear-gradient(135deg, #3d2b8c 0%, #2a1c61 100%);
    
    /* 状态色 */
    --green-ready: #4dff88;
    --green-ready-glow: 0 0 10px rgba(77, 255, 136, 0.5);
    --gray-idle: #a0a0d0;
    
    /* 文字色 */
    --text-primary: #ffffff;
    --text-secondary: #e0d8ff;
    --text-light: #c9b8ff;
    --text-white: #FFFFFF;
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-circle: 50%;
    
    /* 边框 */
    --border-glow: 1px solid rgba(156, 77, 255, 0.5);
    --border-light: 1px solid rgba(199, 125, 255, 0.3);
}

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

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.07)),
        url('../assets/images/horntailtimer.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.5;
    padding: 12px;
    -webkit-tap-highlight-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
}

/* 添加背景遮罩 - 轻微透明 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(45, 27, 105, 0.4) 0%, 
        rgba(26, 15, 61, 0.4) 100%);
    z-index: -1;
}

/* ========== 房间设置界面 ========== */
.room-setup {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: auto;
    z-index: 10;
}

.setup-container {
    max-width: 400px;
    width: 100%;
    max-height: 95vh;
    overflow-y: auto;
    background: rgba(61, 43, 140, 0.8); /* 半透明 */
    border-radius: 20px;
    box-shadow: 
        var(--shadow-3d),
        0 0 30px rgba(156, 77, 255, 0.2);
    position: relative;
    z-index: 11;
    border: var(--border-glow);
    backdrop-filter: blur(10px);
}

.setup-header {
    height: 140px;
    background: 
        url('../assets/images/horntailtimerroom.png') center/contain no-repeat,
        linear-gradient(135deg, rgba(77, 43, 160, 0.8) 0%, rgba(53, 33, 122, 0.8) 100%);
    border-bottom: var(--border-light);
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.setup-content {
    padding: 24px;
}

.setup-card {
    text-align: center;
}

.setup-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.setup-card-title {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.setup-card-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.5;
}

.room-input-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.room-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--purple-lighter);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 4px 8px rgba(156, 77, 255, 0.2);
}

.room-input:focus {
    outline: none;
    border-color: var(--neon-purple);
    box-shadow: 
        0 0 0 3px rgba(156, 77, 255, 0.3),
        0 0 20px rgba(156, 77, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.room-btn {
    width: 100%;
    padding: 14px;
    background: var(--gradient-purple);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 15px rgba(156, 77, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.room-btn:active {
    transform: scale(0.98);
}

.room-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 25px rgba(156, 77, 255, 0.5),
        0 0 15px rgba(156, 77, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-text {
    display: block;
}

.room-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, rgba(156, 77, 255, 0.3), rgba(77, 121, 255, 0.3));
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: var(--border-light);
    backdrop-filter: blur(5px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.option-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 2px solid rgba(199, 125, 255, 0.5);
}

.option-btn:active {
    transform: scale(0.98);
}

.option-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(156, 77, 255, 0.4), rgba(77, 121, 255, 0.4));
    border-color: var(--purple-light);
    box-shadow: 0 4px 12px rgba(156, 77, 255, 0.2);
}

.setup-info {
    margin-top: 24px;
    padding: 20px;
    background: rgba(156, 77, 255, 0.15);
    border-radius: var(--radius-md);
    border: var(--border-light);
    backdrop-filter: blur(5px);
}

.info-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    padding-left: 20px;
}

.info-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--purple-primary);
    font-size: 1.5rem;
    top: -2px;
}

.setup-footer {
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
    border-top: var(--border-light);
    background: rgba(42, 28, 97, 0.6);
}

/* ========== 计时器主界面 ========== */
.timer-page {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    padding: 8px;
    overflow: hidden;
    z-index: 10;
}

/* 关键修改：计时器容器半透明 */
.timer-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(42, 28, 97, 0.5); /* 半透明 */
    border-radius: var(--radius-lg);
    box-shadow: 
        var(--shadow-3d),
        0 0 40px rgba(156, 77, 255, 0.3);
    backdrop-filter: blur(15px); /* 稍微模糊背景 */
    border: var(--border-glow);
    overflow: hidden;
}

.timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(61, 43, 140, 0.8); /* 半透明 */
    padding: 8px 12px;
    border-radius: var(--radius-lg);
    margin: 8px;
    box-shadow: var(--shadow-3d);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    border: var(--border-glow);
    min-height: 50px;
}

.room-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.room-label {
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.9rem;
}

.room-code {
    background: var(--gradient-purple);
    color: var(--text-white);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(156, 77, 255, 0.3);
}

.room-status {
    font-size: 0.9rem;
    color: var(--green-ready);
    font-weight: 600;
}

.control-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(199, 125, 255, 0.5);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn:hover {
    border-color: var(--purple-primary);
    color: var(--purple-primary);
}

/* ========== 计时器网格 ========== */
.timer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 4px;
    width: 100%;
    height: calc(100vh - 140px);
    padding: 4px;
    box-sizing: border-box;
    flex: 1;
    min-height: 0;
}

.grid-item {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
}

.timer-circle {
    position: absolute;
    top: 2%;
    left: 2%;
    width: 96%;
    height: 96%;
    cursor: pointer;
    user-select: none;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1); /* 更透明 */
    border: 2px solid rgba(199, 125, 255, 0.4);
    backdrop-filter: blur(5px);
    box-shadow: 
        var(--shadow-3d),
        0 0 15px rgba(156, 77, 255, 0.2);
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(156, 77, 255, 0.3);
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 1;
}

.timer-circle.active .ripple {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

.timer-circle:active {
    transform: scale(0.95);
}

.timer-circle.completed {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    position: absolute;
    top: 0;
    left: 0;
}

.circle-bg {
    fill: none;
    stroke: rgba(199, 125, 255, 0.2);
    stroke-width: 8;
}

.circle-progress {
    fill: none;
    stroke: var(--purple-primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 282.6;
    stroke-dashoffset: 282.6;
    transition: stroke-dashoffset 0.3s linear, stroke 0.3s ease;
}

.circle-progress.complete {
    stroke: var(--green-ready);
}

.circle-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}

.circle-time {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 2px;
    font-variant-numeric: tabular-nums;
}

.circle-time.complete {
    color: var(--green-ready);
    animation: textPulse 1s ease infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.circle-label {
    font-size: clamp(0.65rem, 1.2vw, 0.8rem);
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0 2px;
}

.timer-footer {
    text-align: center;
    padding: 8px 12px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    background: rgba(61, 43, 140, 0.8); /* 半透明 */
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-3d);
    margin: 8px;
    width: calc(100% - 16px);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    border: var(--border-glow);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    line-height: 1.3;
    font-size: 0.8rem;
}

.footer-label {
    font-weight: 600;
}

.footer-room-code {
    font-weight: 700;
    color: var(--purple-primary);
}

.footer-divider {
    opacity: 0.5;
}

.footer-instruction {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ========== 弹窗样式 ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 16px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(61, 43, 140, 0.9) 0%, rgba(42, 28, 97, 0.9) 100%);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 
        var(--shadow-3d),
        0 0 40px rgba(156, 77, 255, 0.4);
    border: var(--border-glow);
    position: relative;
    backdrop-filter: blur(10px);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: var(--border-light);
    background: rgba(42, 28, 97, 0.9);
    position: sticky;
    top: 0;
    z-index: 2;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    padding: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 12px;
    border-radius: var(--radius-circle);
    flex-shrink: 0;
    line-height: 1;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(156, 77, 255, 0.3);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    background: transparent;
}

.instruction-section {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instruction-section:last-child {
    margin-bottom: 0;
}

.instruction-title {
    font-size: 1.2rem;
    color: var(--purple-light);
    margin-bottom: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instruction-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    padding-left: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.instruction-list li:last-child {
    border-bottom: none;
}

.instruction-list li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--purple-light);
    font-size: 1.5rem;
    top: 6px;
}

.instruction-list li strong {
    color: var(--purple-lighter);
    font-weight: 700;
}

/* ========== 响应式设计 ========== */
/* iPhone和其他小屏设备 */
@media (max-width: 768px) {
    body {
        padding: 4px;
    }
    
    .timer-page {
        padding: 4px;
    }
    
    .timer-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 3px;
        padding: 3px;
        height: calc(100vh - 120px);
    }
    
    .timer-header {
        padding: 6px 10px;
        margin: 4px;
        min-height: 45px;
        font-size: 0.85rem;
    }
    
    .timer-footer {
        padding: 6px 10px;
        margin: 4px;
        min-height: 35px;
    }
    
    .footer-text {
        font-size: 0.7rem;
    }
    
    .circle-time {
        font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    }
    
    .circle-label {
        font-size: clamp(0.6rem, 1vw, 0.75rem);
    }
    
    /* 弹窗响应式 */
    .modal-content {
        max-width: 90%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .instruction-section {
        padding: 12px;
        margin-bottom: 20px;
    }
    
    .instruction-title {
        font-size: 1.1rem;
    }
    
    .instruction-list li {
        font-size: 0.9rem;
        padding: 8px 0 8px 20px;
    }
}

/* 超小手机（iPhone SE等） */
@media (max-width: 375px) and (max-height: 667px) {
    .timer-grid {
        gap: 2px;
        padding: 2px;
        height: calc(100vh - 100px);
    }
    
    .timer-header {
        padding: 4px 8px;
        min-height: 40px;
        font-size: 0.8rem;
    }
    
    .timer-footer {
        padding: 4px 8px;
        min-height: 30px;
        font-size: 0.7rem;
    }
    
    .circle-time {
        font-size: clamp(1rem, 1.6vw, 1.2rem);
    }
    
    .circle-label {
        font-size: clamp(0.55rem, 0.9vw, 0.7rem);
    }
    
    .timer-circle {
        top: 1%;
        left: 1%;
        width: 98%;
        height: 98%;
    }
}

/* 平板 */
@media (min-width: 769px) and (max-width: 1024px) {
    .timer-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 5px;
        padding: 5px;
        height: calc(100vh - 130px);
    }
}

/* 桌面大屏 */
@media (min-width: 1025px) {
    .timer-grid {
        gap: 8px;
        padding: 8px;
        height: calc(100vh - 150px);
    }
    
    .timer-circle {
        top: 3%;
        left: 3%;
        width: 94%;
        height: 94%;
    }
}

/* ========== 通知样式 ========== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    color: white;
    z-index: 1000;
    box-shadow: var(--shadow-3d);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 200px;
    max-width: 300px;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification-success {
    background: linear-gradient(135deg, rgba(77, 255, 136, 0.9) 0%, rgba(56, 142, 60, 0.9) 100%);
}

.notification-error {
    background: linear-gradient(135deg, rgba(156, 77, 255, 0.9) 0%, rgba(106, 61, 156, 0.9) 100%);
}

.notification-info {
    background: linear-gradient(135deg, rgba(77, 121, 255, 0.9) 0%, rgba(66, 66, 156, 0.9) 100%);
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    padding: 0 5px;
    opacity: 0.8;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
        top: 10px;
    }
/* ========== 使用order属性控制计时器顺序 ========== */

/* 关键设置：网格按order属性排序 */
.timer-grid {
    grid-auto-flow: dense; /* 确保按order值排序 */
}

/* ========== 桌面版顺序（4x3网格）========== */
/* 默认HTML顺序（位置）：
   1: LASED1   2: LASED2   3: LASED3   4: LA MASS
   5: RASED1   6: RASED2   7: RASED3   8: RA MASS  
   9: LA DP#1  10: LA DP#2 11: MH DP#1 12: MH DP#2 */

/* 设置桌面版显示顺序 */
.grid-item:nth-child(1) { order: 1; }   /* LASED1 → 第1位 */
.grid-item:nth-child(2) { order: 2; }   /* LASED2 → 第2位 */
.grid-item:nth-child(3) { order: 3; }   /* LASED3 → 第3位 */
.grid-item:nth-child(4) { order: 4; }   /* LA MASS → 第4位 */
.grid-item:nth-child(5) { order: 5; }   /* RASED1 → 第5位 */
.grid-item:nth-child(6) { order: 6; }   /* RASED2 → 第6位 */
.grid-item:nth-child(7) { order: 7; }   /* RASED3 → 第7位 */
.grid-item:nth-child(8) { order: 8; }   /* RA MASS → 第8位 */
.grid-item:nth-child(9) { order: 9; }   /* LA DP#1 → 第9位 */
.grid-item:nth-child(10) { order: 10; } /* LA DP#2 → 第10位 */
.grid-item:nth-child(11) { order: 11; } /* MH DP#1 → 第11位 */
.grid-item:nth-child(12) { order: 12; } /* MH DP#2 → 第12位 */

/* ========== 手机版重新排序（3x4网格）========== */
@media (max-width: 768px) {
    /* 示例：手机版把常用计时器放前面 */
    /* 只需要改这里的order数字即可改变手机版顺序 */
    .grid-item:nth-child(1) { order: 1; }   /* LASED1 → 第1位（保持不变）*/
    .grid-item:nth-child(2) { order: 2; }   /* LASED2 → 第2位（保持不变）*/
    .grid-item:nth-child(3) { order: 3; }   /* LASED3 → 第3位（原来第3个）*/
    .grid-item:nth-child(5) { order: 4; }   /* RASED1 → 第4位（原来第5个）*/
    .grid-item:nth-child(6) { order: 5; }   /* RASED2 → 第5位（原来第6个）*/
    .grid-item:nth-child(7) { order: 6; }   /* RASED3 → 第6位（原来第7个）*/
    .grid-item:nth-child(4) { order: 7; }   /* LA MASS → 第7位（原来第4个）*/
    .grid-item:nth-child(9) { order: 8; }   /* LA DP#1 → 第8位（保持不变）*/
    .grid-item:nth-child(10) { order: 9; } /* LA DP#2 → 第9位（保持不变）*/
    .grid-item:nth-child(8) { order: 10; }   /* RA MASS → 第10位（原来第8个）*/
    .grid-item:nth-child(11) { order: 11; } /* MH DP#1 → 第11位（保持不变）*/
    .grid-item:nth-child(12) { order: 12; } /* MH DP#2 → 第12位（保持不变）*/
}

/* ========== 平板版顺序（如果需要）========== */
/* @media (min-width: 769px) and (max-width: 1024px) {
    .grid-item:nth-child(1) { order: 1; }
    .grid-item:nth-child(2) { order: 2; }
    ... 调整平板版的顺序 ...
} */