/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary: #000000;
    --accent: #0071e3;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --border: #d2d2d7;
    --secondary: #86868b;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0; background: #fbfbfd; color: var(--primary);
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
}

.app-container {
    width: 100%; max-width: 1200px; padding: 40px; display: flex; flex-direction: column; align-items: center;
}

/* 标题区 */
.header-section { text-align: center; margin-bottom: 50px; }
.header-section h1 { font-size: 64px; font-weight: 700; letter-spacing: -3px; margin: 0; }
.header-section p { font-size: 20px; color: var(--secondary); margin: 10px 0; }

/* 搜索框增强 */
.search-container {
    width: 100%; max-width: 650px; position: relative; margin-bottom: 40px;
}
.search-container i { position: absolute; left: 20px; top: 18px; color: var(--secondary); }
.search-container input {
    width: 100%; padding: 16px 20px 16px 50px; border-radius: 18px; border: 1px solid var(--border);
    background: var(--bg); font-size: 16px; outline: none; transition: 0.3s;
}
.search-container input:focus { border-color: var(--primary); box-shadow: var(--shadow); }

/* 卡片流 */
.room-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px; width: 100%; margin-top: 40px;
}
.room-card {
    background: var(--card-bg); border-radius: 28px; padding: 32px;
    border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: 0.4s cubic-bezier(0.2, 0, 0, 1); position: relative;
}
.room-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--border); }

/* 按钮系统 */
.btn {
    padding: 14px 28px; border-radius: 14px; border: none; font-size: 15px; font-weight: 600;
    cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-black { background: var(--primary); color: #fff; }
.btn-black:hover { opacity: 0.8; }
.btn-ghost { background: #f5f5f7; color: var(--primary); }
.btn-ghost:hover { background: #e8e8ed; }

/* 提示框和模态框 */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.1); backdrop-filter: blur(20px);
    display: none; align-items: center; justify-content: center; z-index: 1000; opacity: 0; transition: 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-box {
    background: #fff; width: 90%; max-width: 400px; padding: 40px; border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12); text-align: center;
}

/* 消息通知 (Toast) */
#toast-container { position: fixed; top: 30px; left: 50%; transform: translateX(-50%); z-index: 9999; }
.toast {
    background: #1d1d1f; color: #fff; padding: 14px 28px; border-radius: 50px;
    font-size: 14px; box-shadow: var(--shadow); margin-bottom: 10px;
    animation: toastIn 0.4s forwards;
}
@keyframes toastIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* 棋盘高亮 */
.highlight-hint { background: radial-gradient(rgba(0,0,0,0.1) 18%, transparent 20%); }
.highlight-selected { background-color: rgba(0,0,0,0.04) !important; }
.highlight-last { box-shadow: inset 0 0 0 4px var(--primary); }