/* ===== 新芽试管 - 品牌样式表 ===== */
:root {
    /* 品牌色板 */
    --primary: #2e7d32;
    --primary-dark: #1b5e20;
    --primary-light: #66bb6a;
    --primary-bg: #e8f5e9;
    --secondary: #81c784;
    --secondary-light: #c8e6c9;
    --accent: #ff8f00;
    --accent-light: #fff8e1;

    /* 中性色 */
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --text-muted: #999;
    --border: #e0e0e0;
    --bg-white: #ffffff;
    --bg-light: #f5faf5;
    --bg-gray: #f0f0f0;

    /* 字体 */
    --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xl: 2.5rem;
    --font-size-lg: 1.5rem;
    --font-size-md: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-xs: 0.75rem;

    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);

    /* 过渡 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    width: 100%;
    outline: none;
    transition: var(--transition);
    background: var(--bg-white);
    color: var(--text-primary);
}

input:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.15);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.hidden {
    display: none !important;
}

/* ===== App Container ===== */
.app-container {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.nav-link.active {
    background: var(--primary);
    color: #fff;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    border-radius: var(--radius-sm);
    background: transparent;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-light) 50%, var(--accent-light) 100%);
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(46,125,50,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    z-index: 1;
}

.hero-logo {
    width: 200px;
    margin: 0 auto 24px;
}

.hero-slogan {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.hero-sub {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: var(--transition);
    gap: 8px;
    white-space: nowrap;
    min-height: 48px;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-bg);
    transform: translateY(-2px);
}

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

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

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 16px 40px;
    font-size: var(--font-size-md);
}

/* ===== Section ===== */
.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-desc {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

.bg-light {
    background: var(--bg-light);
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

/* ===== Feature Grid ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    padding: 12px;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Stats ===== */
.stats {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    max-width: 100%;
    padding: 60px 20px;
}

.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    display: inline;
}

.stat-unit {
    font-size: 1.2rem;
    font-weight: 600;
    margin-left: 2px;
    opacity: 0.8;
}

.stat-label {
    display: block;
    font-size: var(--font-size-sm);
    margin-top: 8px;
    opacity: 0.85;
    font-weight: 400;
}

/* ===== News Grid ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.news-card-image {
    height: 180px;
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.news-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
}

.news-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.news-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    font-size: var(--font-size-xs);
    color: var(--text-muted);
}

.news-card .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: var(--font-size-xs);
}

.news-card .read-more:hover {
    color: var(--primary-dark);
}

/* ===== Team Grid ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
}

.team-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.team-card .team-title {
    font-size: var(--font-size-xs);
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.team-card .team-desc {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ===== CTA ===== */
.cta {
    max-width: 100%;
    padding: 60px 20px;
}

.cta-card {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-xl);
}

.cta-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-card p {
    font-size: var(--font-size-md);
    opacity: 0.9;
    margin-bottom: 28px;
}

.cta-card .btn-primary {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.cta-card .btn-primary:hover {
    background: var(--accent-light);
    color: var(--primary-dark);
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: rgba(255,255,255,0.8);
    padding: 60px 20px 20px;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 40px;
}

.footer-logo {
    width: 160px;
    margin-bottom: 16px;
    filter: brightness(10);
}

.footer-desc {
    font-size: var(--font-size-sm);
    line-height: 1.7;
    opacity: 0.7;
}

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

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

.footer-col a {
    display: block;
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xs);
    color: #fff !important;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: var(--font-size-xs);
    opacity: 0.5;
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
}

.footer-bottom a:hover {
    color: var(--primary-light);
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== Page Hero ===== */
.page-hero {
    padding: 100px 20px 60px;
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-light));
    text-align: center;
}

.page-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.page-hero-content p {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
}

/* ===== About ===== */
.about-story {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.about-text p {
    font-size: var(--font-size-md);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-image {
    text-align: center;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.mv-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.mv-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary);
}

.mv-card p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Timeline ===== */
.timeline {
    max-width: 700px;
    margin: 40px auto 0;
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary);
}

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

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

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

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

/* ===== Contact ===== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 16px;
}

.info-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.info-card h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.info-card p, .info-card a {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

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

.contact-form-wrap {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.contact-form-wrap h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-success {
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 16px;
    color: var(--primary-dark);
    font-weight: 500;
}

/* ===== Cases Grid ===== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.case-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.case-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-light), var(--primary-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.case-card-body {
    padding: 20px;
}

.case-card-body h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.case-card-body .case-meta {
    font-size: var(--font-size-xs);
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.case-card-body p {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== Map ===== */
.map-placeholder {
    text-align: center;
}

.map-placeholder p {
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.map-box {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

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

.admin-login {
    max-width: 400px;
    margin: 80px auto;
    padding: 40px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.admin-login h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--primary-dark);
}

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

.admin-header h1 {
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

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

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

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

.admin-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.admin-table td {
    color: var(--text-secondary);
}

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

.btn-sm {
    padding: 6px 14px;
    font-size: var(--font-size-xs);
    border-radius: var(--radius-sm);
}

.btn-edit {
    background: #e3f2fd;
    color: #1565c0;
}

.btn-edit:hover {
    background: #bbdefb;
}

.btn-delete {
    background: #fce4ec;
    color: #c62828;
}

.btn-delete:hover {
    background: #f8bbd0;
}

.btn-toggle {
    background: var(--primary-bg);
    color: var(--primary);
}

.btn-toggle:hover {
    background: var(--secondary-light);
}

.admin-form {
    display: grid;
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.admin-form label {
    font-weight: 600;
    font-size: var(--font-size-sm);
    color: var(--text-primary);
}

.admin-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.admin-config {
    max-width: 500px;
    margin: 0 auto;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    background: var(--text-primary);
    color: #fff;
    font-size: var(--font-size-sm);
    z-index: 9999;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
}

.toast.success {
    background: var(--primary);
}

.toast.error {
    background: #c62828;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .hamburger {
        display: flex;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .mission-vision {
        grid-template-columns: 1fr;
    }

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

    .hero {
        min-height: 70vh;
        padding: 80px 20px 60px;
    }

    .section {
        padding: 60px 20px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

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

    .hero-logo {
        width: 150px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .feature-grid, .news-grid, .cases-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .cta-card {
        padding: 32px 20px;
    }

    .cta-card h2 {
        font-size: 1.4rem;
    }

    .contact-form-wrap {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}