* {
    box-sizing: border-box;
}

::before, ::after {
    box-sizing: border-box;
}

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-50: #fff7ed;
    --orange-100: #ffedd5;
    --orange-600: #ea580c;
    --bg-color: #FFFAF0;
}

body {
    background-color: var(--bg-color);
    color: #5d4037;
    margin: 0;
    min-height: 100vh;
    padding: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
    body {
        padding: 3rem;
    }
}

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-7xl {
    max-width: 80rem;
}

.max-w-5xl {
    max-width: 64rem;
}

.btn-back {
    display: inline-block;
    background-color: var(--orange-600);
    color: white;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-back:hover {
    transform: translateX(0.25rem);
}

.header {
    margin-bottom: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .header {
        text-align: left;
    }
}

.header h1 {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--amber-900);
    margin-bottom: 1rem;
    margin-top: 0;
}

@media (min-width: 768px) {
    .header h1 {
        font-size: 3rem;
    }
}

.header p {
    font-size: 1.125rem;
    color: var(--amber-800);
    opacity: 0.8;
    margin: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 2rem;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .card-grid.cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 三卡片水平排列优化 */
@media (min-width: 768px) and (max-width: 1023px) {
    .card-grid.cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.card {
    background-color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--amber-100);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bg-amber-100 {
    background-color: var(--amber-100);
    color: var(--amber-600);
}

.bg-orange-100 {
    background-color: var(--orange-100);
    color: var(--orange-600);
}

.bg-red-100 {
    background-color: #fee2e2;
    color: #dc2626;
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-900);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.card p {
    color: #4b5563;
    margin-bottom: 2rem;
    line-height: 1.625;
}

.card .btn-start {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem;
    background-color: var(--orange-600);
    color: white;
    font-weight: 700;
    border-radius: 0.75rem;
    border: 2px solid var(--amber-200);
    text-decoration: none;
    transition: all 0.3s;
}

.card .btn-start:hover {
    background-color: var(--amber-100);
    color: var(--orange-600);
}

.footer {
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: #a1887f;
    font-size: 0.875rem;
}

/* Navigation */
.nav-bar {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-primary);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo i {
    margin-right: 0.5rem;
}

.nav-links {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease-in-out;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--amber-primary);
}

.nav-links a.active {
    font-weight: 700;
}

