/* ============================================
   逸安知守 · 合逸安文化官网
   主样式表
   ============================================ */

/* === 重置 === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* === 变量 === */
:root {
    --brand-red: #C8161E;
    --brand-red-dark: #9A1018;
    --brand-red-light: #E83642;
    --ink-black: #1A1A1A;
    --ink-gray: #4A4A4A;
    --ink-light: #888888;
    --paper-white: #FAF8F5;
    --paper-cream: #F5F0E8;
    --paper-warm: #EFEAE0;
    --line-color: #D8D2C8;
    --gold: #B8965A;
    --max-width: 1200px;
    --transition: 0.3s ease;
}

/* === 基础 === */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Noto Serif SC", "Source Han Serif SC", "宋体", serif;
    background: var(--paper-white);
    color: var(--ink-black);
    line-height: 1.8;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--brand-red-dark);
}

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

/* === 导航栏 === */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-color);
    z-index: 1000;
    transition: all var(--transition);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-mark {
    width: 36px;
    height: 36px;
    background: var(--brand-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 700;
    font-family: "Noto Serif SC", serif;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo-text .cn {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-black);
    letter-spacing: 2px;
}

.nav-logo-text .en {
    font-size: 9px;
    color: var(--ink-light);
    letter-spacing: 1px;
    font-family: "Helvetica Neue", sans-serif;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 8px 14px;
    color: var(--ink-gray);
    font-size: 15px;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--brand-red);
    background: rgba(200, 22, 30, 0.06);
}

.nav-menu a .nav-char {
    font-size: 18px;
    font-weight: 700;
    margin-right: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink-black);
    border-radius: 2px;
    transition: all var(--transition);
}

/* === 通用 === */
.section {
    padding: 80px 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

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

.section-title h2 {
    font-size: 28px;
    color: var(--ink-black);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.section-title .subtitle {
    font-size: 13px;
    color: var(--ink-light);
    letter-spacing: 2px;
    font-family: "Helvetica Neue", sans-serif;
    text-transform: uppercase;
}

.section-title .divider {
    width: 40px;
    height: 2px;
    background: var(--brand-red);
    margin: 16px auto 0;
}

/* === 按钮 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 2px;
    font-size: 15px;
    letter-spacing: 2px;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--brand-red-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(200, 22, 30, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--brand-red);
    border: 1px solid var(--brand-red);
}

.btn-outline:hover {
    background: var(--brand-red);
    color: white;
}

/* === 页面头部（内页banner） === */
.page-hero {
    background: linear-gradient(135deg, var(--paper-cream) 0%, var(--paper-warm) 100%);
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid var(--line-color);
}

.page-hero h1 {
    font-size: 36px;
    letter-spacing: 6px;
    color: var(--ink-black);
    margin-bottom: 8px;
}

.page-hero .page-subtitle {
    font-size: 14px;
    color: var(--ink-light);
    letter-spacing: 3px;
}

.page-hero .page-tagline {
    margin-top: 20px;
    font-size: 16px;
    color: var(--ink-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 2;
}

/* === 首页 Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1A1A1A 0%, #2A1A1A 50%, #1A1A1A 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(200, 22, 30, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(200, 22, 30, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 280px;
    font-weight: 900;
    color: rgba(200, 22, 30, 0.04);
    letter-spacing: 40px;
    white-space: nowrap;
    z-index: 0;
    user-select: none;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-logo {
    width: 72px;
    height: 72px;
    background: var(--brand-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    color: white;
    font-size: 36px;
    font-weight: 700;
}

.hero-brand {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 12px;
    margin-bottom: 16px;
}

.hero-slogan {
    font-size: 18px;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    line-height: 2;
}

.hero-slogan span {
    color: var(--brand-red-light);
}

.hero-desc {
    margin-top: 32px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    letter-spacing: 2px;
    z-index: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* === 四大板块卡片 === */
.modules {
    background: var(--paper-white);
}

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

.module-card {
    background: white;
    border: 1px solid var(--line-color);
    border-radius: 4px;
    padding: 48px 40px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.module-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-red);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--transition);
}

.module-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.module-card:hover::before {
    transform: scaleY(1);
}

.module-char {
    font-size: 56px;
    font-weight: 700;
    color: var(--brand-red);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.9;
}

.module-name {
    font-size: 20px;
    font-weight: 600;
    color: var(--ink-black);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.module-desc {
    font-size: 14px;
    color: var(--ink-gray);
    line-height: 2;
    margin-bottom: 20px;
}

.module-tag {
    display: inline-block;
    font-size: 12px;
    color: var(--ink-light);
    border: 1px solid var(--line-color);
    padding: 4px 12px;
    border-radius: 2px;
    letter-spacing: 1px;
}

.module-arrow {
    position: absolute;
    bottom: 40px;
    right: 40px;
    color: var(--brand-red);
    font-size: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.module-card:hover .module-arrow {
    opacity: 1;
}

/* === 创始人区域 === */
.founder {
    background: var(--paper-cream);
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: center;
}

.founder-image {
    border-radius: 4px;
    overflow: hidden;
}

.founder-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.founder-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--paper-warm), var(--paper-cream));
    color: var(--ink-light);
    font-size: 14px;
    letter-spacing: 2px;
}

.founder-text h3 {
    font-size: 24px;
    color: var(--ink-black);
    margin-bottom: 8px;
    letter-spacing: 3px;
}

.founder-text .founder-title {
    font-size: 14px;
    color: var(--brand-red);
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.founder-text p {
    font-size: 15px;
    color: var(--ink-gray);
    line-height: 2.2;
    margin-bottom: 16px;
    text-indent: 2em;
}

.founder-quote {
    border-left: 3px solid var(--brand-red);
    padding: 16px 24px;
    margin: 24px 0;
    background: white;
    border-radius: 0 4px 4px 0;
}

.founder-quote p {
    text-indent: 0;
    font-size: 16px;
    color: var(--ink-black);
    font-style: italic;
    margin: 0;
}

.founder-quote .quote-source {
    font-size: 13px;
    color: var(--ink-light);
    margin-top: 8px;
    text-align: right;
}

/* === 服务板块通用 === */
.service-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--line-color);
}

.service-section:last-child {
    border-bottom: none;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.service-header .service-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.service-header h3 {
    font-size: 22px;
    color: var(--ink-black);
    letter-spacing: 2px;
}

.service-price {
    margin-left: auto;
    font-size: 14px;
    color: var(--brand-red);
    font-weight: 600;
}

.service-content {
    font-size: 15px;
    color: var(--ink-gray);
    line-height: 2;
}

.service-features {
    list-style: none;
    margin: 16px 0;
}

.service-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--ink-gray);
    font-size: 14px;
    line-height: 2;
}

.service-features li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--brand-red);
    font-weight: 700;
}

.service-cta {
    margin-top: 24px;
    display: flex;
    gap: 12px;
}

/* === 信息卡片 === */
.info-card {
    background: white;
    border: 1px solid var(--line-color);
    border-radius: 4px;
    padding: 32px;
    margin-bottom: 24px;
}

.info-card h4 {
    font-size: 17px;
    color: var(--ink-black);
    margin-bottom: 12px;
    letter-spacing: 2px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-color);
}

.info-card p {
    font-size: 14px;
    color: var(--ink-gray);
    line-height: 2;
}

/* === 表单 === */
.form-section {
    max-width: 640px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--ink-black);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-group label .required {
    color: var(--brand-red);
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line-color);
    border-radius: 2px;
    font-size: 15px;
    font-family: inherit;
    background: white;
    color: var(--ink-black);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-red);
}

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

.form-note {
    font-size: 13px;
    color: var(--ink-light);
    margin-top: 8px;
    line-height: 1.8;
}

.form-submit {
    text-align: center;
    margin-top: 32px;
}

/* === 书籍板块 === */
.book-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.book-cover {
    aspect-ratio: 3/4;
    background: var(--paper-warm);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--line-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-cover-placeholder {
    color: var(--ink-light);
    font-size: 14px;
    text-align: center;
    line-height: 2;
}

.book-info h3 {
    font-size: 22px;
    color: var(--ink-black);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.book-info .book-publisher {
    font-size: 14px;
    color: var(--brand-red);
    margin-bottom: 20px;
}

.book-info p {
    font-size: 15px;
    color: var(--ink-gray);
    line-height: 2;
    margin-bottom: 16px;
}

.book-meta {
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid var(--line-color);
    border-bottom: 1px solid var(--line-color);
}

.book-meta dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 16px;
    font-size: 14px;
}

.book-meta dt {
    color: var(--ink-light);
}

.book-meta dd {
    color: var(--ink-black);
}

/* === 编辑阵容 === */
.editorial-team {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.team-member {
    background: white;
    border: 1px solid var(--line-color);
    border-radius: 4px;
    padding: 24px;
    text-align: center;
}

.team-member .role {
    font-size: 13px;
    color: var(--ink-light);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.team-member .name {
    font-size: 18px;
    color: var(--ink-black);
    font-weight: 600;
}

/* === 品牌故事 === */
.story-section {
    max-width: 760px;
    margin: 0 auto;
}

.story-section h3 {
    font-size: 20px;
    color: var(--ink-black);
    margin: 32px 0 16px;
    letter-spacing: 2px;
    padding-left: 16px;
    border-left: 3px solid var(--brand-red);
}

.story-section p {
    font-size: 16px;
    color: var(--ink-gray);
    line-height: 2.2;
    margin-bottom: 16px;
    text-indent: 2em;
}

/* === 标志设计 === */
.logo-design {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.logo-display {
    background: white;
    border: 1px solid var(--line-color);
    border-radius: 4px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-display-placeholder {
    text-align: center;
}

.logo-display-placeholder .logo-mark {
    width: 120px;
    height: 120px;
    background: var(--brand-red);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 56px;
    font-weight: 700;
}

.logo-display-placeholder .logo-text {
    font-size: 20px;
    color: var(--ink-black);
    letter-spacing: 4px;
}

.logo-display-placeholder .logo-en {
    font-size: 12px;
    color: var(--ink-light);
    letter-spacing: 2px;
    margin-top: 4px;
}

.logo-text-section h3 {
    font-size: 20px;
    color: var(--ink-black);
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.logo-text-section p {
    font-size: 15px;
    color: var(--ink-gray);
    line-height: 2;
    margin-bottom: 12px;
}

/* === 联系页面 === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
}

.contact-info h3 {
    font-size: 20px;
    color: var(--ink-black);
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-color);
}

.contact-list .label {
    font-size: 13px;
    color: var(--ink-light);
    margin-bottom: 4px;
}

.contact-list .value {
    font-size: 16px;
    color: var(--ink-black);
}

/* === 页脚 === */
.footer {
    background: var(--ink-black);
    color: rgba(255, 255, 255, 0.6);
    padding: 48px 0 24px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo-mark {
    width: 32px;
    height: 32px;
    background: var(--brand-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
}

.footer-brand .name {
    font-size: 16px;
    color: white;
    letter-spacing: 2px;
}

.footer-brand .name .en {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    letter-spacing: 1px;
    margin-top: 2px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    line-height: 2;
}

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

/* === 公益拍摄预约 === */
.booking-notice {
    background: var(--paper-cream);
    border: 1px solid var(--line-color);
    border-radius: 4px;
    padding: 20px 24px;
    margin-bottom: 32px;
    font-size: 14px;
    color: var(--ink-gray);
    line-height: 2;
}

.booking-notice strong {
    color: var(--brand-red);
}

/* === 小程序二维码悬浮卡片 === */
.qr-floating {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 132px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    z-index: 900;
    transition: all var(--transition);
    text-align: center;
}

.qr-floating:hover {
    transform: translateY(-3px);
}

.qr-floating::before {
    content: none;
}

.qr-floating img {
    width: 110px;
    height: 110px;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.qr-floating .qr-title {
    margin-top: 10px;
    font-size: 13px;
    color: var(--brand-red);
    letter-spacing: 2px;
    font-weight: 700;
    line-height: 1.4;
}

.qr-floating .qr-sub {
    margin-top: 2px;
    font-size: 11px;
    color: var(--ink-light);
    letter-spacing: 3px;
}

@media (max-width: 768px) {
    .qr-floating {
        right: 12px;
        bottom: 12px;
        width: 104px;
        padding: 0;
    }

    .qr-floating img {
        width: 86px;
        height: 86px;
    }

    .qr-floating .qr-title {
        font-size: 12px;
        margin-top: 8px;
    }

    .qr-floating .qr-sub {
        font-size: 10px;
    }
}

/* === 响应式 === */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--paper-white);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--line-color);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-brand {
        font-size: 32px;
        letter-spacing: 8px;
    }

    .hero-slogan {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .hero-bg-text {
        font-size: 120px;
        letter-spacing: 20px;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .founder-grid,
    .book-section,
    .logo-design,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .editorial-team {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }

    .module-card {
        padding: 32px 24px;
    }

    .page-hero {
        padding: 100px 0 40px;
    }

    .page-hero h1 {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .footer-top {
        flex-direction: column;
    }
}
