:root {
    --primary: #149fca;
    --secondary: #2f7f6b;
    --accent: #f49a3d;
    --bg: #f5fbfe;
    --text: #1f2d33;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Segoe UI", "Microsoft JhengHei", sans-serif;
    color: var(--text);
    background: #fff;
}

.container { width: min(1100px, 92%); margin: 0 auto; }

.site-header {
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    color: #fff;
    position: sticky;
    top: 0;
}
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}
.brand-main { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin-right: 8px; }
.brand-sub { font-weight: 600; }
nav a {
    color: #fff;
    margin-left: 16px;
    text-decoration: none;
    font-weight: 600;
}

.hero {
    background: var(--bg);
    border-left: 6px solid var(--accent);
    padding: 28px;
    margin: 24px 0;
    border-radius: 10px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.card {
    border: 1px solid #d7ebf4;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
}
.card h3 { margin-top: 0; color: var(--secondary); }
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #e8f6fc;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.site-footer {
    margin-top: 40px;
    padding: 18px 0;
    background: #0f5f77;
    color: #e9f8ff;
}

.admin-box {
    max-width: 850px;
    margin: 24px auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
th, td {
    border: 1px solid #d7ebf4;
    padding: 8px;
    text-align: left;
}
input, textarea, button, select {
    width: 100%;
    margin: 6px 0;
    padding: 8px;
}
button, .btn {
    background: var(--primary);
    color: #fff;
    border: none;
    text-decoration: none;
    display: inline-block;
    width: auto;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}
.btn-danger { background: #d9534f; }
.actions a { margin-right: 6px; }

