/* ===== 品牌色板 ===== */
:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --secondary: #2d2b55;
    --secondary-light: #3d3b6e;
    --accent: #fd79a8;
    --gradient-main: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #2d2b55 50%, #1a1a2e 100%);
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --border-color: #e5e5e5;
    --bg-light: #f8f7ff;
    --bg-card: #ffffff;
    --shadow: 0 4px 20px rgba(108, 92, 231, 0.15);
    --shadow-hover: 0 8px 30px rgba(108, 92, 231, 0.25);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s ease;
    --font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-light);
    line-height: 1.6;
    padding-bottom: 70px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 字体层级 ===== */
h1 {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
}

h2 {
    font-weight: 700;
    font-size: 28px;
    line-height: 1.3;
}

h3 {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.4;
}

p {
    font-weight: 400;
    font-size: 15px;
    color: var(--text-secondary);
}

small, .small-text {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    padding: 8px 14px;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(108, 92, 231, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.admin-btn-desktop {
    display: none;
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.2);
}

.admin-btn-desktop:hover {
    color: #fff;
    border-color: var(--primary);
}

.admin-btn-mobile {
    display: inline-flex;
    margin-top: 10px;
    color: rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.2);
}

.hamburger {
    display: block;
    cursor: pointer;
    padding: 5px;
}

.bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0 60px;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-logo {
    width: 200px;
    margin-bottom: 20px;
}

.hero-slogan {
    font-size: 38px;
    color: #fff;
    margin-bottom: 15px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.hero-buttons .btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary);
}

.hero-visual {
    flex: 1;
    max-width: 400px;
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(108,92,231,0.4), rgba(162,155,254,0.1));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hero-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.5;
}

.hero-particles span:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.hero-particles span:nth-child(2) { top: 30%; left: 80%; animation-delay: 1s; }
.hero-particles span:nth-child(3) { top: 50%; left: 10%; animation-delay: 2s; }
.hero-particles span:nth-child(4) { top: 70%; left: 70%; animation-delay: 3s; }
.hero-particles span:nth-child(5) { top: 90%; left: 40%; animation-delay: 4s; }
.hero-particles span:nth-child(6) { top: 20%; left: 50%; animation-delay: 0.5s; }
.hero-particles span:nth-child(7) { top: 60%; left: 30%; animation-delay: 1.5s; }
.hero-particles span:nth-child(8) { top: 80%; left: 90%; animation-delay: 2.5s; }
.hero-particles span:nth-child(9) { top: 40%; left: 60%; animation-delay: 3.5s; }
.hero-particles span:nth-child(10) { top: 5%; left: 85%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.5); }
}

/* ===== Section Common ===== */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    color: var(--secondary);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
    margin: 10px auto 0;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin-top: 10px;
}

/* ===== Features ===== */
.features {
    padding: 80px 0;
    background: #fff;
}

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

.feature-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.feature-card h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Categories ===== */
.categories {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.category-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.category-icon {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-light);
}

.category-card .btn {
    margin-top: 15px;
}

/* ===== CTA ===== */
.cta {
    padding: 80px 0;
    background: var(--gradient-hero);
    text-align: center;
}

.cta-title {
    font-size: 32px;
    color: #fff;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 18px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.footer-logo {
    width: 160px;
    margin-bottom: 15px;
}

.footer-desc {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    font-size: 16px;
}

.social-link:hover {
    background: var(--primary);
    color: #fff;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-light);
    padding-left: 3px;
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 20px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}

/* ===== Bottom Navigation (Mobile) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 999;
    padding: 6px 0;
    justify-content: space-around;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 10px;
    color: rgba(255,255,255,0.5);
    font-size: 10px;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

.bottom-nav-item i {
    font-size: 20px;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item:hover {
    color: var(--primary-light);
}

/* ===== Page Hero ===== */
.page-hero {
    padding: 100px 0 60px;
    background: var(--gradient-hero);
    text-align: center;
}

.page-title {
    color: #fff;
    font-size: 36px;
    margin-bottom: 10px;
}

.page-subtitle {
    color: rgba(255,255,255,0.6);
    font-size: 18px;
}

/* ===== About Page ===== */
.story, .mission, .team, .timeline {
    padding: 80px 0;
}

.story {
    background: #fff;
}

.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.story-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 15px;
}

.story-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--gradient-main);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 48px;
    gap: 15px;
    opacity: 0.9;
}

.story-placeholder span {
    font-size: 16px;
    font-weight: 500;
}

.mission {
    background: var(--bg-light);
}

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

.mission-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.mission-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.mission-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
}

.mission-card h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

.team {
    background: #fff;
}

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

.team-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    font-weight: 700;
}

.team-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.team-role {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.team-desc {
    font-size: 13px;
    color: var(--text-light);
}

.timeline {
    background: var(--bg-light);
}

.timeline-list {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-list::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-left: 55px;
    margin-bottom: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 5px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--bg-light);
}

.timeline-year {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.timeline-text {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Contact Page ===== */
.contact-info, .contact-form-section, .faq {
    padding: 80px 0;
}

.contact-info {
    background: #fff;
}

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

.contact-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-card i {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--secondary);
}

.contact-card p, .contact-card a {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-card a:hover {
    color: var(--primary);
}

.contact-form-section {
    background: var(--bg-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    transition: var(--transition);
    background: #fff;
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}

.form-submit {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: 10px;
}

.form-success {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 20px auto;
}

.form-success i {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 15px;
}

.form-success h3 {
    margin-bottom: 10px;
    color: var(--secondary);
}

/* ===== FAQ ===== */
.faq {
    background: #fff;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    color: var(--text-primary);
    padding: 5px 0;
}

.faq-question i {
    transition: var(--transition);
    color: var(--text-light);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 10px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Service Detail Pages ===== */
.service-detail {
    padding: 80px 0;
    background: #fff;
}

.fortune-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.fortune-form .form-group {
    width: 100%;
}

.result-card {
    max-width: 600px;
    margin: 30px auto 0;
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border-color);
}

.result-card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    text-align: center;
}

.result-card p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

/* ===== Tarot ===== */
.tarot-area {
    max-width: 400px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tarot-card {
    width: 200px;
    height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.tarot-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.tarot-card.flipped .tarot-card-inner {
    transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 600;
    font-size: 16px;
}

.tarot-card-front {
    background: var(--gradient-main);
    color: #fff;
    box-shadow: var(--shadow);
}

.tarot-card-front i {
    font-size: 48px;
}

.tarot-card-back {
    background: var(--secondary);
    color: #fff;
    transform: rotateY(180deg);
    box-shadow: var(--shadow);
}

.tarot-card-back i {
    font-size: 48px;
    color: var(--primary-light);
}

/* ===== Admin Page ===== */
.admin-container {
    max-width: 1000px;
    margin: 100px auto 40px;
    padding: 0 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header h1 {
    color: var(--secondary);
    font-size: 28px;
}

.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 10px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
}

.admin-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.admin-tab:hover:not(.active) {
    border-color: var(--primary);
}

.admin-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    min-height: 400px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.admin-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--secondary);
}

.admin-table tr:hover td {
    background: var(--bg-light);
}

.admin-table .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-table .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.admin-form {
    display: grid;
    gap: 20px;
    max-width: 600px;
}

.admin-form .form-group {
    width: 100%;
}

.admin-form .form-group label {
    font-weight: 500;
    font-size: 14px;
}

.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-family);
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.admin-form .form-group input:focus,
.admin-form .form-group select:focus,
.admin-form .form-group textarea:focus {
    border-color: var(--primary);
}

.admin-form .form-actions {
    display: flex;
    gap: 15px;
}

.login-form {
    max-width: 400px;
    margin: 100px auto;
    background: #fff;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary);
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
}

.login-form .form-group input:focus {
    border-color: var(--primary);
}

.login-form .btn {
    width: 100%;
}

.alert {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fce4ec;
    color: #b71c1c;
    border: 1px solid #f8bbd0;
}

/* ===== Responsive ===== */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
    .admin-btn-desktop {
        display: inline-flex;
    }
    .admin-btn-mobile {
        display: none;
    }
    .bottom-nav {
        display: none;
    }
    body {
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease;
        overflow-y: auto;
        align-items: stretch;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 5px;
    }

    .nav-link {
        padding: 12px 16px;
        font-size: 16px;
        display: block;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-slogan {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-logo {
        margin: 0 auto 20px;
    }

    .story-content {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .cta-title {
        font-size: 24px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-slogan {
        font-size: 24px;
    }

    .hero-logo {
        width: 150px;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .categories-grid,
    .mission-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .nav-list {
        gap: 2px;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

@keyframes slideUp {
    from { transform: translateX(-50%) translateY(20px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.modal-content .form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

/* ===== Status Badge ===== */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.inactive {
    background: #fce4ec;
    color: #b71c1c;
}

.status-badge.featured {
    background: #fef3c7;
    color: #92400e;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
}

/* ===== Search ===== */
.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary);
}

/* ===== Config Form ===== */
.config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.config-grid .form-group {
    width: 100%;
}

.config-grid .form-group.full {
    grid-column: 1 / -1;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}