* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9fafb;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

/* 导航栏 */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
}
.nav-brand .brand-icon {
    margin-right: 5px;
}
.nav-menu {
    display: flex;
    gap: 20px;
    align-items: center;
}
.nav-menu li a {
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.3s;
    font-size: 0.9rem;
}
.nav-menu li a:hover {
    background: rgba(255,255,255,0.2);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
}

/* 汉堡菜单响应式 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-toggle {
        display: flex;
    }
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    border: 2px solid transparent;
}
.btn-primary {
    background: #fff;
    color: #667eea;
}
.btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-secondary:hover {
    background: #fff;
    color: #667eea;
}
.btn-outline {
    background: transparent;
    color: #667eea;
    border-color: #667eea;
}
.btn-outline:hover {
    background: #667eea;
    color: #fff;
}
.btn-block {
    width: 100%;
    text-align: center;
}

/* 区块 */
.section-padding {
    padding: 80px 0;
}
.bg-light {
    background: #f0f4ff;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 10px;
}
.section-header p {
    color: #666;
    font-size: 1.1rem;
}

/* 功能卡片 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.feature-card h3 {
    margin-bottom: 10px;
    color: #333;
}
.feature-card p {
    color: #666;
    margin-bottom: 15px;
}
.card-link {
    color: #667eea;
    font-weight: 600;
}
.card-link:hover {
    text-decoration: underline;
}

/* 计算器预览 */
.calculator-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
}
.calc-result {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.result-percentage {
    font-size: 4rem;
    font-weight: 700;
    color: #667eea;
    margin: 20px 0;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.form-input:focus {
    outline: none;
    border-color: #667eea;
}
select.form-input {
    appearance: auto;
}

/* 医院卡片 */
.hospitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.hospital-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.hospital-card:hover {
    transform: translateY(-3px);
}
.hospital-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.hospital-header h3 {
    font-size: 1.2rem;
}
.rating {
    color: #f59e0b;
    font-weight: 600;
}
.hospital-location {
    color: #666;
    margin-bottom: 10px;
}
.hospital-desc {
    color: #777;
    margin-bottom: 15px;
}

/* 知识卡片 */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.knowledge-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.knowledge-card h3 {
    margin-bottom: 10px;
    color: #333;
}
.knowledge-card p {
    color: #666;
    margin-bottom: 15px;
}

/* 经验卡片 */
.experiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.experience-card {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.exp-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #888;
    font-size: 0.9rem;
}
.exp-user {
    font-weight: 600;
    color: #667eea;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: #fff;
    padding: 20px 25px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: box-shadow 0.3s;
}
.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.faq-question {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}
.faq-answer {
    color: #666;
    display: none;
}
.faq-item.active .faq-answer {
    display: block;
}

/* 页脚 */
.footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col ul li a {
    color: #aaa;
    transition: color 0.3s;
}
.footer-col ul li a:hover {
    color: #667eea;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
}

/* 工具类 */
.text-center {
    text-align: center;
}
.mt-1 {
    margin-top: 1rem;
}
.mt-2 {
    margin-top: 2rem;
}
.alert {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}
.alert-error {
    background: #fee2e2;
    color: #dc2626;
}
.alert-success {
    background: #d1fae5;
    color: #059669;
}

/* 管理后台 */
.admin-login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.admin-login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}
.admin-login-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.admin-login-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}
.admin-body {
    background: #f0f2f5;
}
.admin-container {
    display: flex;
    min-height: 100vh;
}
.admin-sidebar {
    width: 240px;
    background: #1a1a2e;
    color: #fff;
    padding: 30px 20px;
    flex-shrink: 0;
}
.admin-sidebar h3 {
    margin-bottom: 30px;
    font-size: 1.3rem;
}
.admin-sidebar ul li {
    margin-bottom: 10px;
}
.admin-sidebar ul li a {
    color: #aaa;
    padding: 8px 12px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s;
}
.admin-sidebar ul li a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.admin-main {
    flex: 1;
    padding: 40px;
}
.admin-main h1 {
    margin-bottom: 30px;
}
.admin-section {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.admin-section h2 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.admin-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.9rem;
    resize: vertical;
}
.admin-textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* 内页通用 */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}
.page-hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}
.page-hero p {
    opacity: 0.9;
}

/* 内页网格 */
.page-section {
    padding: 60px 0;
}
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* 搜索框 */
.search-box {
    margin-bottom: 30px;
}
.search-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.search-input:focus {
    outline: none;
    border-color: #667eea;
}

/* 筛选标签 */
.filter-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.filter-tab {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}
.filter-tab:hover, .filter-tab.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
}

/* 进度条 */
.progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
    margin: 10px 0;
}
.progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.5s;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .section-header h2 { font-size: 1.5rem; }
    .calculator-card { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .admin-sidebar { width: 200px; }
}

@media (max-width: 480px) {
    .hero { padding: 60px 0; }
    .section-padding { padding: 40px 0; }
    .admin-sidebar { width: 160px; }
}