/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #f8fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* 主内容 */
.main-content {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: calc(100vh - 120px);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* 卡片样式 */
.info-card,
.steps-card,
.content-card,
.notice-card,
.appeal-section,
.location-section,
.qr-section,
.info-notice {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.info-card h2,
.steps-card h2,
.content-card h2,
.location-section h2,
.qr-section h2,
.info-notice h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

/* 学区信息 */
.info-date {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.school-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.school-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.school-item .label {
    font-weight: 600;
    color: var(--text-light);
    min-width: 60px;
}

.school-item .value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1.1rem;
}

/* 位置图片和二维码 */
.map-container {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.qr-container {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 320px;
    margin: 0 auto;
    padding: 1rem;
}

.location-map {
    width: 100%;
    height: auto;
    display: block;
}

.qr-code {
    width: 100%;
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.map-caption {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.qr-label {
    text-align: center;
    margin-top: 1rem;
    color: #ef4444;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 位置图片占位（备用） */
.image-placeholder,
.qr-placeholder {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--text-light);
}

.image-placeholder p:first-child,
.qr-placeholder p:first-child {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.image-placeholder .hint,
.qr-placeholder .hint {
    font-size: 0.875rem;
}

/* 诉求部分 */
.appeal-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.appeal-points,
.concern-points {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--radius);
}

.appeal-points h3,
.concern-points h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.appeal-points ul,
.concern-points ul {
    list-style: none;
    padding: 0;
}

.appeal-points li,
.concern-points li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.appeal-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.concern-points li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: #ef4444;
}

.appeal-points strong,
.concern-points strong {
    color: var(--primary-color);
}

/* 行动按钮 */
.action-section {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: var(--radius);
    text-align: center;
}

.action-section h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn .icon {
    font-size: 1.25rem;
}

/* 链接跳转区域 */
.link-jump-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border-color);
    text-align: center;
}

.link-jump-text {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.link-jump-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 步骤卡片 */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.step-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.step-tip {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    color: #92400e;
    font-size: 0.85rem;
}

/* 内容分区 */
.content-section {
    margin-bottom: 1.5rem;
}

.content-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.copy-btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.text-content.small {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    max-height: none;
}

/* 内容卡片 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

.copy-btn.copied {
    background: #22c55e;
}

.copy-status {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-status.show {
    opacity: 1;
}

.copy-status.success {
    background: #dcfce7;
    color: #166534;
}

.copy-status.error {
    background: #fee2e2;
    color: #991b1b;
}

.text-content {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: var(--radius);
    white-space: pre-wrap;
    line-height: 1.8;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    max-height: 500px;
    overflow-y: auto;
}

/* 二维码部分 */
.qr-section {
    text-align: center;
}

.qr-tip {
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 提示卡片 */
.notice-card {
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

.notice-card h3 {
    color: #92400e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.notice-card ul {
    list-style: none;
    padding: 0;
}

.notice-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #78350f;
}

.notice-card li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    color: #f59e0b;
}

/* 信息公开说明 */
.info-notice {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.info-notice p {
    margin-bottom: 1.5rem;
}

.key-points,
.legal-basis {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius);
}

.key-points h4,
.legal-basis h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.key-points ul {
    list-style: none;
    padding: 0;
}

.key-points li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.key-points li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.legal-basis p {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

/* 页脚 */
.footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 1rem 0;
    }

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

    .hamburger {
        display: flex;
    }

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

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

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

    .page-title {
        font-size: 1.5rem;
    }

    .info-card,
    .steps-card,
    .content-card,
    .notice-card,
    .appeal-section,
    .location-section,
    .qr-section,
    .info-notice {
        padding: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-btn {
        width: 100%;
        justify-content: center;
    }

    .school-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .text-content {
        font-size: 0.95rem;
        padding: 1rem;
    }

    /* 二维码手机适配 */
    .qr-container {
        max-width: 280px;
        padding: 0.75rem;
    }

    .qr-code {
        max-width: 240px;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 1rem;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .main-content {
        padding-top: 90px;
    }

    /* 小屏幕二维码适配 */
    .qr-container {
        max-width: 240px;
        padding: 0.5rem;
    }

    .qr-code {
        max-width: 200px;
    }

    .qr-label {
        font-size: 0.8rem;
    }
}

/* 微信浏览器特定优化 */
@media screen and (max-width: 414px) {
    /* iPhone Plus/Max 系列 */
    .qr-container {
        max-width: 260px;
    }
    .qr-code {
        max-width: 220px;
    }
}

@media screen and (max-width: 375px) {
    /* iPhone 标准版 */
    .qr-container {
        max-width: 240px;
    }
    .qr-code {
        max-width: 200px;
    }
}

@media screen and (max-width: 320px) {
    /* iPhone SE 等小屏设备 */
    .qr-container {
        max-width: 200px;
        padding: 0.5rem;
    }
    .qr-code {
        max-width: 170px;
    }
}

/* 防止图片溢出 */
img {
    max-width: 100%;
    height: auto;
}
}
