body {
    margin: 0;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
    background-color: #f6f7fb;
    color: #1f2933;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

.site-header {
    background: linear-gradient(90deg, #ff9f43, #ff6f61);
    color: #fff;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.nav-links a {
    margin-left: 18px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    color: #fff;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9f43, #ff6f61);
    color: #fff;
    box-shadow: 0 6px 16px rgba(255, 111, 97, 0.25);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.main-content {
    flex: 1;
    width: min(1100px, 92%);
    margin: 32px auto;
}

.flash-container {
    margin-bottom: 16px;
}

.flash-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 10px;
}

.flash-success {
    background-color: #e7f9ed;
    color: #256b3f;
}

.flash-danger {
    background-color: #fde2e1;
    color: #aa1e1e;
}

.flash-warning {
    background-color: #fff6da;
    color: #a37300;
}

.site-footer {
    background-color: #1f2933;
    color: rgba(255, 255, 255, 0.75);
    padding: 18px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

@media (max-width: 768px) {
    .nav-bar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        display: flex;
        gap: 12px;
        margin-top: 8px;
    }

    .main-content {
        margin: 24px auto;
    }
}
