/* 理疗项目卡片网格 */
.ts-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

.ts-project-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.ts-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ts-project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.ts-project-card h3 {
    font-size: 1.2rem;
    margin: 0 0 8px;
    color: #1e293b;
}

.ts-project-card p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0 0 12px;
    flex-grow: 1;
}

.ts-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0f172a;
    margin: 8px 0;
}

.ts-options {
    margin: 12px 0;
    border-top: 1px solid #e2e8f0;
    padding-top: 12px;
}

.ts-option-group {
    margin-bottom: 10px;
}

.ts-option-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 4px;
}

.ts-option-group select,
.ts-option-group input[type="checkbox"] {
    margin-right: 6px;
}

.ts-qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.ts-qty-control button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.15s;
}

.ts-qty-control button:hover {
    background: #e2e8f0;
}

.ts-qty-control input {
    width: 60px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px;
}

.ts-add-to-cart {
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.ts-add-to-cart:hover {
    background: #1e293b;
}

#ts-floating-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 16px;
}

#ts-floating-cart a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    background: #3b82f6;
    padding: 6px 16px;
    border-radius: 20px;
}

#ts-floating-cart a:hover {
    background: #2563eb;
}

/* 购物车页面 */
#ts-cart-items {
    margin: 20px 0;
}

.ts-cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.ts-cart-item button.ts-remove-item {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    cursor: pointer;
}

.ts-cart-item button.ts-remove-item:hover {
    background: #dc2626;
}

#ts-checkout-btn {
    background: #0f172a;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
}

#ts-checkout-btn:hover {
    background: #1e293b;
}

/* 移动优先 */
#ts-shop-root { max-width: 1200px; margin: 0 auto; padding: 15px; font-family: system-ui; }
.ts-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.ts-project-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); padding: 15px; transition: 0.2s; }
.ts-project-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 12px; }
.ts-project-card h3 { margin: 10px 0 5px; color: #836b47; }
.ts-project-card .ts-price { font-weight: bold; color: #e67e22; font-size: 1.2rem; margin: 8px 0; }
.ts-qty-control { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.ts-qty-control button { width: 30px; height: 30px; border: 1px solid #ddd; background: #f5f5f5; border-radius: 6px; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.ts-qty-control input { width: 50px; text-align: center; border: 1px solid #ddd; border-radius: 6px; padding: 4px; }
#ts-floating-cart { position: fixed; bottom: 20px; right: 20px; background: #836b47; color: #fff; padding: 12px 24px; border-radius: 40px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 999; }
#ts-floating-cart a { color: #fff; margin-left: 15px; text-decoration: none; background: #e67e22; padding: 4px 16px; border-radius: 30px; }
.ts-btn-primary { background: #836b47; color: #fff; border: none; padding: 12px 24px; border-radius: 30px; cursor: pointer; font-size: 1rem; }
/* 响应式 */

/* 预约表单 */
#ts-appointment-form .form-group { margin-bottom: 15px; }
#ts-appointment-form label { display: block; font-weight: bold; margin-bottom: 5px; }
#ts-appointment-form select,
#ts-appointment-form input[type="datetime-local"],
#ts-appointment-form textarea { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; }
#ts-appointment-form button { padding: 10px 20px; background: #836b47; color: #fff; border: none; border-radius: 30px; cursor: pointer; }
#ts-appointment-form button:hover { background: #6a5537; }

/* 预约卡片 */
.appointment-card { background: #fff; border-radius: 12px; padding: 15px; margin-bottom: 15px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.appointment-card .actions button { margin-right: 8px; padding: 6px 16px; border-radius: 20px; border: none; background: #e0e0e0; cursor: pointer; }
.appointment-card .actions button[data-status="confirmed"] { background: #4caf50; color: #fff; }
.appointment-card .actions button[data-status="processing"] { background: #ff9800; color: #fff; }
.appointment-card .actions button[data-status="completed"] { background: #2196f3; color: #fff; }
.appointment-card .actions button[data-status="cancelled"] { background: #f44336; color: #fff; }

/* 日历视图 */
#technician-calendar { max-width: 1000px; margin: 20px auto; }
#calendar-detail { background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }


@media (max-width: 600px) {
    .ts-project-grid { grid-template-columns: 1fr; }
}



/* 进阶选项复选框组 */
.ts-adv-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 4px;
}
.ts-adv-checkboxes label {
    font-size: 0.9rem;
    cursor: pointer;
}
.ts-adv-checkboxes input[type="checkbox"] {
    margin-right: 4px;
}
