/* ========================================
   AI简历助手 - 首页样式
   设计理念: 专业 · 轻盈 · 无干扰
   灵感来源: Notion留白 + SuperCV专业感 + Canva交互
   ======================================== */

/* CSS Reset & Base */
*,
*::before,
*::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    background: #F9FAFB;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #2563EB;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1D4ED8;
}

/* ========================================
   导航栏
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid #E5E7EB;
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
    color: #111827;
}

.nav-logo:hover {
    color: #111827;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ========================================
   按钮
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #2563EB;
    color: #FFFFFF;
}

.btn-primary:hover {
    background: #1D4ED8;
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    color: #2563EB;
    border: 1.5px solid #DBEAFE;
}

.btn-outline:hover {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #2563EB;
}

.btn-primary:focus {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

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

/* ========================================
   Hero 区域
   ======================================== */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 60px;
    background: #FFFFFF;
}

.hero-container {
    max-width: 640px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #111827;
    margin: 0 0 20px 0;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #6B7280;
    margin: 0 0 32px 0;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* ========================================
   编辑器演示区域
   ======================================== */
.editor-demo {
    padding: 60px 24px 100px;
    background: #F9FAFB;
}

.editor-demo-container {
    max-width: 1100px;
    margin: 0 auto;
}

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

.demo-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.demo-header p {
    font-size: 1rem;
    color: #6B7280;
    margin: 0;
}

.demo-editor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.demo-form,
.demo-preview {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
}

.demo-form-header,
.demo-preview-header {
    height: 40px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    border-bottom: 1px solid #E5E7EB;
}

.demo-form-title,
.demo-preview-title {
    font-size: 13px;
    color: #6B7280;
}

.demo-form-content {
    padding: 24px;
}

.demo-preview-content {
    padding: 24px;
}

.demo-field {
    margin-bottom: 20px;
}

.demo-field label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.demo-input {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
}

.demo-input-multiline {
    min-height: 60px;
    line-height: 1.5;
}

.demo-actions {
    margin-top: 24px;
}

.demo-actions .btn {
    width: 100%;
}

/* ========================================
   视频区域
   ======================================== */
.video-section {
    padding: 80px 24px;
    background: #FFFFFF;
}

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

.video-header {
    text-align: center;
    margin-bottom: 40px;
}

.video-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.video-header p {
    font-size: 1rem;
    color: #6B7280;
    margin: 0;
}

.video-wrapper {
    aspect-ratio: 16 / 9;
    background: #F3F4F6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #E5E7EB;
}

.video-placeholder {
    text-align: center;
    color: #6B7280;
}

.video-placeholder p {
    margin: 16px 0 0;
    font-size: 14px;
}

/* ========================================
   预览区域
   ======================================== */
.preview {
    padding: 60px 24px 100px;
    background: #F9FAFB;
}

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

.preview-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
}

.preview-header {
    height: 36px;
    background: #F3F4F6;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #E5E7EB;
}

.preview-dots {
    display: flex;
    gap: 8px;
}

.preview-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D1D5DB;
}

.preview-dots span:first-child { background: #F87171; }
.preview-dots span:nth-child(2) { background: #FBBF24; }
.preview-dots span:last-child { background: #34D399; }

.preview-content {
    padding: 40px;
}

/* 简历预览样式 */
.resume-preview {
    display: flex;
    gap: 32px;
    font-size: 12px;
    line-height: 1.6;
}

.resume-sidebar {
    width: 180px;
    flex-shrink: 0;
    padding-right: 24px;
    border-right: 1px solid #E5E7EB;
}

.resume-main {
    flex: 1;
    min-width: 0;
}

.resume-name-block {
    margin-bottom: 20px;
}

.resume-name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.02em;
}

.resume-title {
    font-size: 13px;
    color: #2563EB;
    font-weight: 500;
    margin-top: 4px;
}

.resume-section {
    margin-bottom: 16px;
}

.resume-section-title {
    font-size: 10px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #E5E7EB;
}

.resume-item {
    color: #6B7280;
    margin-bottom: 4px;
    font-size: 11px;
}

.resume-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.resume-skills span {
    background: #F3F4F6;
    color: #4B5563;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
}

.resume-exp-item {
    margin-bottom: 12px;
}

.resume-exp-title {
    font-weight: 600;
    color: #111827;
    font-size: 12px;
}

.resume-exp-company {
    color: #6B7280;
    font-size: 11px;
    margin: 2px 0;
}

.resume-exp-desc {
    color: #4B5563;
    font-size: 11px;
    margin-top: 4px;
}

/* ========================================
   功能特点区域
   ======================================== */
.features {
    padding: 80px 24px;
    background: #FFFFFF;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #DBEAFE;
    border-radius: 12px;
    color: #2563EB;
}

.feature-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 8px 0;
}

.feature-item p {
    font-size: 14px;
    color: #6B7280;
    margin: 0;
    line-height: 1.6;
}

/* ========================================
   CTA 区域
   ======================================== */
.cta-section {
    padding: 80px 24px;
    background: #DBEAFE;
    text-align: center;
}

.cta-container {
    max-width: 540px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.cta-section p {
    font-size: 16px;
    color: #374151;
    margin: 0 0 24px 0;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    padding: 40px 24px;
    background: #FFFFFF;
    border-top: 1px solid #E5E7EB;
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #111827;
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 14px;
    color: #9CA3AF;
    margin: 0 0 6px 0;
}

.footer-beian {
    font-size: 13px;
    color: #9CA3AF;
    margin: 0;
}

.footer-beian a {
    color: #9CA3AF;
}

.footer-beian a:hover {
    color: #6B7280;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 16px;
    }

    .nav-logo span {
        display: none;
    }

    .hero {
        padding: 100px 16px 40px;
        min-height: auto;
    }

    .editor-demo {
        padding: 40px 16px 60px;
    }

    .demo-editor {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .demo-form-content {
        padding: 16px;
    }

    .video-section {
        padding: 60px 16px;
    }

    .features {
        padding: 60px 16px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .cta-section {
        padding: 60px 16px;
    }

    .footer {
        padding: 40px 16px;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta .btn-large {
        width: 100%;
    }
}
