/* tycx · 档案重生系统 - 简洁信任感风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2c5aa0;
    --primary-dark: #1e3a6f;
    --secondary: #f8f9fa;
    --text: #333;
    --text-light: #666;
    --border: #e0e0e0;
    --white: #fff;
    --success: #28a745;
    --warning: #ffc107;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
}

/* 导航栏 */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* LOGO图标样式 */
.logo-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-doc {
    position: absolute;
    width: 24px;
    height: 32px;
    background: var(--primary);
    border-radius: 2px 6px 2px 2px;
    left: 2px;
    top: 4px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.logo-doc::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.logo-doc::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 6px 0 rgba(255,255,255,0.8), 0 12px 0 rgba(255,255,255,0.8);
}

.logo-arrow {
    position: absolute;
    right: 0;
    bottom: 2px;
    font-size: 1.2rem;
    color: var(--success);
    font-weight: bold;
    animation: logoRotate 3s ease-in-out infinite;
}

@keyframes logoRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(90deg); }
    50% { transform: rotate(180deg); }
    75% { transform: rotate(270deg); }
}

/* LOGO文字样式 */
.logo-text {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.logo-tycx {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.logo-divider {
    color: var(--text-light);
    font-weight: 300;
    margin: 0 0.25rem;
}

.logo-full {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.5px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-doc {
        width: 20px;
        height: 26px;
    }
    
    .logo-arrow {
        font-size: 1rem;
    }
    
    .logo-tycx {
        font-size: 1.3rem;
    }
    
    .logo-full {
        font-size: 0.9rem;
    }
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.navbar-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-nav a:hover,
.navbar-nav a.active {
    color: var(--primary);
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 按钮 */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

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

.btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Hero区域 */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* 章节 */
.section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

/* 卡片 */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

/* 网格 */
.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

/* 价格表 */
.pricing-card {
    text-align: center;
    position: relative;
}

.pricing-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(44,90,160,0.2);
}

.pricing-card.recommended::before {
    content: "推荐";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1rem 0;
}

.price-unit {
    font-size: 1rem;
    color: var(--text-light);
}

/* 案例对比 */
.case-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.case-comparison img {
    width: 100%;
    border-radius: 8px;
}

/* 表单 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(44,90,160,0.1);
}

/* 微信二维码 */
.wechat-qr {
    text-align: center;
    padding: 2rem;
    background: var(--secondary);
    border-radius: 8px;
    margin: 2rem 0;
}

.wechat-qr img {
    max-width: 200px;
    margin: 1rem 0;
}

/* 页脚 */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer a {
    color: var(--white);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 响应式 */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .case-comparison {
        grid-template-columns: 1fr;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

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

/* 痛点列表 */
.pain-points {
    list-style: none;
    padding: 0;
}

.pain-points li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
}

.pain-points li::before {
    content: "✗";
    color: #dc3545;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* 服务流程 */
.process-steps {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    position: relative;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .process-steps {
        flex-direction: column;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .step {
        margin-bottom: 2rem;
    }
}

/* 案例展示样式 - AI生成效果 */
.case-image {
    min-height: 300px;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.case-before {
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d0 100%);
    border: 2px solid #d4c4a8;
}

.case-after {
    background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f0 100%);
    border: 2px solid #a0d0e0;
}

.case-label {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

/* 家谱案例样式 */
.paper-stack {
    position: relative;
    width: 100%;
    max-width: 250px;
    height: 200px;
}

.paper {
    position: absolute;
    width: 200px;
    height: 140px;
    background: #f8f4e8;
    border: 1px solid #d0c8b8;
    border-radius: 4px;
    padding: 1rem;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.paper-1 {
    top: 0;
    left: 0;
    transform: rotate(-3deg);
    z-index: 2;
}

.paper-2 {
    top: 30px;
    left: 30px;
    transform: rotate(2deg);
    z-index: 1;
}

.handwriting {
    font-family: "KaiTi", "STKaiti", serif;
    color: #8b4513;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.handwriting.small {
    font-size: 0.85rem;
    color: #a07040;
}

.stain {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(139,69,19,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

/* 电子文档样式 */
.digital-doc {
    width: 100%;
    max-width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem;
}

.doc-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.doc-toc {
    margin-bottom: 1rem;
}

.toc-item {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    color: var(--text);
    font-size: 0.9rem;
}

.toc-num {
    color: var(--primary);
    font-weight: 600;
}

.doc-formats {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.format-tag {
    background: var(--secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

/* 老照片案例样式 */
.photo-scatter {
    position: relative;
    width: 100%;
    max-width: 300px;
    height: 220px;
}

.old-photo {
    position: absolute;
    width: 80px;
    height: 70px;
    background: linear-gradient(135deg, #e8e0d0 0%, #d0c8b8 100%);
    border: 3px solid #f0e8d8;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.old-photo small {
    font-size: 0.7rem;
    color: #888;
}

.photo-1 { top: 10px; left: 20px; transform: rotate(-8deg); }
.photo-2 { top: 5px; left: 110px; transform: rotate(5deg); }
.photo-3 { top: 15px; left: 200px; transform: rotate(-3deg); }
.photo-4 { top: 100px; left: 10px; transform: rotate(6deg); }
.photo-5 { top: 110px; left: 100px; transform: rotate(-5deg); }
.photo-6 { top: 95px; left: 190px; transform: rotate(4deg); }

/* 照片档案样式 */
.photo-archive {
    width: 100%;
    max-width: 300px;
}

.folder-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    justify-content: center;
}

.folder {
    width: 85px;
    height: 70px;
    background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
    border-radius: 8px 8px 4px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.folder-name {
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

.search-bar {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 手写笔记案例样式 */
.notebook-stack {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: 200px;
}

.notebook {
    position: absolute;
    width: 160px;
    height: 110px;
    background: #f8f4e8;
    border: 2px solid #d0c8b8;
    border-radius: 4px;
    padding: 0.75rem;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
}

.nb-1 { top: 0; left: 0; transform: rotate(-5deg); z-index: 3; }
.nb-2 { top: 40px; left: 60px; transform: rotate(3deg); z-index: 2; }
.nb-3 { top: 80px; left: 20px; transform: rotate(-2deg); z-index: 1; }

.nb-title {
    font-size: 0.75rem;
    color: #8b7355;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.scribble {
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        #a08060 0px,
        #a08060 8px,
        transparent 8px,
        transparent 12px
    );
    margin-bottom: 6px;
    border-radius: 2px;
}

.scribble.short {
    width: 60%;
}

/* 数字化笔记样式 */
.digital-notes {
    width: 100%;
    max-width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem;
}

.note-header {
    background: var(--primary);
    color: white;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.note-categories {
    margin-bottom: 1rem;
}

.note-cat {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.cat-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.cat-name {
    flex: 1;
    color: var(--text);
    font-size: 0.9rem;
}

.cat-count {
    background: var(--secondary);
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.search-highlight {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    color: #155724;
    font-size: 0.85rem;
    font-weight: 500;
}
