/* ===== BASE STYLES ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, .section-title, .nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== PAGE SYSTEM ===== */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SECTION TITLES ===== */
.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 48px;
    font-weight: 400;
}
.section { padding: 80px 40px; max-width: 1200px; margin: 0 auto; }
.section.fade-in { animation: fadeInUp 0.8s ease-out forwards; }

/* ===== SVG ICONS ===== */
.ic { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.ic svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(74,157,110,0.4);
    transition: transform 0.3s ease;
    z-index: 1000;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== MODAL BASE ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal { background: var(--bg-card); border-radius: var(--radius); width: 560px; max-height: 85vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px 0; }
.modal-header h3 { font-size: 20px; }
.modal-close { background: none; border: none; font-size: 22px; color: var(--text-light); cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--bg); }
.modal-body { padding: 24px 28px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 0 28px 24px; }

/* ===== SKELETON LOADING ===== */
.skeleton { position: relative; overflow: hidden; background: var(--border); border-radius: var(--radius-sm); }
.skeleton::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.sk-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.sk-card .sk-img { height: 220px; border-radius: 0; }
.sk-card .sk-body { padding: 16px 18px; }
.sk-card .sk-line { height: 14px; border-radius: 7px; margin-bottom: 10px; }
.sk-card .sk-line.short { width: 60%; }
.sk-card .sk-price { height: 20px; width: 80px; border-radius: 10px; margin-bottom: 14px; }
.sk-card .sk-btn { height: 40px; border-radius: var(--radius-sm); margin: 0 18px 16px; }
