/* base.css - 基础样式和排版 */

body {
    font-family: var(--study-font-sans);
    background: var(--study-background);
    color: var(--study-foreground);
    line-height: 1.5;
    letter-spacing: 0.01em;
    transition: background 0.2s, color 0.2s;
    height: 100vh;
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--study-font-serif);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--study-foreground);
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 通用卡片基础 - 具体样式由 components/cards.css 管理 */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.card-left {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.card-header {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.card-body {
    padding: 0 16px 8px;
    margin: 0;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.status-green { background: var(--success); }
.status-red { background: var(--danger); }

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: var(--card-bg);
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 14px;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}