/*
 * 云南小山投资有限公司 | 沉稳高端投资风范
 * 视觉语言：藏蓝 + 咖啡棕金 + 象牙白，极简留白与精致分割线
 */

:root {
    --primary: #2C3E50;       /* 深邃藏蓝 */
    --secondary: #8B7355;     /* 咖啡棕金 */
    --accent: #B8860B;        /* 暗金点缀 */
    --cream: #FAF8F5;         /* 象牙白 */
    --charcoal: #1C1C1C;      /* 炭黑 */
    --surface: #F2EDE6;       /* 暖灰卡片底 */
    --border: #E5E0D8;        /* 细线分割 */
    --text: #2F2F2F;
    --text-muted: #6F6F6F;
    --shadow-soft: 0 12px 40px rgba(20, 28, 38, 0.08);
    --shadow-strong: 0 22px 60px rgba(20, 28, 38, 0.12);
    --radius: 14px;
    --radius-sm: 10px;
    --line: 1px solid rgba(139, 115, 85, 0.35);
    --header-height: 84px;
    --font-serif: "Cormorant Garamond", "Times New Roman", "Songti SC", serif;
    --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

    /* 兼容旧版变量，确保子页面内容平滑过渡 */
    --color-primary: var(--primary);
    --color-secondary: var(--secondary);
    --color-accent: var(--accent);
    --color-background: var(--cream);
    --color-text-dark: var(--text);
    --color-text-light: #ffffff;
    --color-border: var(--border);
    --color-hover: #3a4d63;
    --spacing-unit: 8px;
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --spacing-xxl: 96px;
    --border-radius-sm: 8px;
    --border-radius-lg: 14px;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: linear-gradient(180deg, #FBFAF7 0%, #F5F0E7 100%);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

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

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--primary);
    letter-spacing: 0.04em;
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 28px;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-sidebar {
    grid-template-columns: 1fr 3fr;
    align-items: start;
}

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    align-self: start;
}

.sidebar .card { box-shadow: none; }

.main-content {
    background: #fff;
    border: var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-soft);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.content-section {
    padding: 84px 0;
}

.content-section.bg-light { background: var(--cream); }
.content-section.bg-cream { background: var(--cream); }
.content-section.bg-contrast { background: linear-gradient(145deg, #2C3E50 0%, #1C1C1C 100%); color: #fff; }
.content-section.bg-contrast h2,
.content-section.bg-contrast h3,
.content-section.bg-contrast p { color: #F8F5EE; }

.section-title {
    margin-bottom: 32px;
}

.section-title h2 {
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary);
}

.section-title p {
    color: var(--text-muted);
    max-width: 680px;
    margin-top: 12px;
}

.section-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid rgba(139, 115, 85, 0.4);
    border-radius: 999px;
    margin-bottom: 12px;
}

.card {
    background: #fff;
    border: var(--line);
    border-radius: var(--radius);
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, rgba(139, 115, 85, 0.9), rgba(44, 62, 80, 0.85));
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); }

.card-img {
    width: 100%;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.full-width-img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(120deg, #2C3E50 0%, #1C1C1C 100%);
    color: #fff;
    border-color: #222;
}

.btn-primary:hover { box-shadow: var(--shadow-strong); transform: translateY(-1px); }

.btn-outline {
    background: transparent;
    border-color: rgba(44, 62, 80, 0.35);
    color: var(--primary);
}

.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ----------------------- 导航 ----------------------- */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(90deg, rgba(44, 62, 80, 0.92), rgba(28, 28, 28, 0.92));
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1280px;
    padding-inline: 10px 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #F5EBDD;
    font-weight: 700;
}

.brand img { width: 46px; height: 46px; }

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 1.1rem; letter-spacing: 0.1em; }
.brand-tagline { font-size: 0.85rem; color: rgba(245, 235, 221, 0.7); letter-spacing: 0.08em; }

.navbar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    justify-content: flex-end;
    flex-wrap: nowrap;
}

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

.nav-links > li { position: relative; }

.nav-links a {
    color: #F2EDE6;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #F7D8A4;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border: var(--line);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius);
    padding: 12px;
    display: none;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    color: var(--text);
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
    background: var(--surface);
    color: var(--primary);
}

.dropdown:hover > .dropdown-menu { display: block; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.nav-inline {
    color: #F7D8A4;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(247, 216, 164, 0.4);
    padding-bottom: 2px;
    white-space: nowrap;
}

.nav-actions a {
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-actions .btn {
    padding: 10px 16px;
}

.burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
}

@media (max-width: 1024px) {
    .nav-links, .nav-actions {
        display: none;
    }
    .burger { display: flex; }
    .header.is-open .nav-links,
    .header.is-open .nav-actions {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, rgba(44,62,80,0.97), rgba(28,28,28,0.97));
        padding: 18px;
        gap: 10px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .header.is-open .dropdown-menu {
        position: relative;
        box-shadow: none;
        border: 1px solid rgba(255,255,255,0.1);
        background: rgba(0,0,0,0.12);
    }
    .header.is-open .nav-links a { width: 100%; }
}

/* ----------------------- 首页英雄区 ----------------------- */
.hero-prestige {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    padding: 140px 0 120px;
    overflow: hidden;
}

.hero-prestige::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 26, 36, 0.15) 0%, rgba(12, 16, 22, 0.72) 100%);
}

.hero-prestige .hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transform: scale(1.02);
    filter: saturate(0.85);
}

.hero-prestige .hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.tagline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #F7D8A4;
    margin-bottom: 14px;
}

.tagline::before {
    content: "";
    width: 36px;
    height: 1px;
    background: rgba(247, 216, 164, 0.7);
    display: inline-block;
}

.hero-title-serif {
    font-family: var(--font-serif);
    font-size: 3.4rem;
    margin-bottom: 18px;
}

.hero-prestige p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    max-width: 620px;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 18px;
    margin-top: 30px;
}

.hero-meta .meta-item {
    padding: 14px 18px;
    border: 1px solid rgba(247, 216, 164, 0.4);
    border-radius: var(--radius);
    background: rgba(12, 12, 12, 0.25);
}

.meta-label { color: rgba(247, 216, 164, 0.7); font-size: 0.9rem; }
.meta-number { font-size: 1.5rem; font-weight: 700; color: #fff; }

.scroll-line {
    position: absolute;
    bottom: 28px;
    left: 50%;
    width: 2px;
    height: 52px;
    background: linear-gradient(180deg, rgba(247,216,164,0.8), rgba(247,216,164,0));
    transform: translateX(-50%);
    animation: float 1.6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 12px); opacity: 0.4; }
}

/* ----------------------- 首页板块 ----------------------- */
.philosophy-section {
    padding: 96px 0 60px;
    background: var(--cream);
}

.big-quote {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary);
    line-height: 1.5;
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.big-quote .quote-mark {
    color: var(--secondary);
    font-size: 3rem;
}

.investment-areas .horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}

.area-card {
    background: #fff;
    border: var(--line);
    border-radius: var(--radius);
    padding: 22px;
    scroll-snap-align: start;
    box-shadow: var(--shadow-soft);
    min-height: 220px;
}

.area-card .card-number {
    font-size: 1rem;
    color: var(--secondary);
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

.area-card h3 { margin-bottom: 10px; }
.area-card p { color: var(--text-muted); margin-bottom: 16px; }

.link-arrow {
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.portfolio-showcase .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: var(--line);
    box-shadow: var(--shadow-soft);
}

.portfolio-item img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    filter: saturate(0.9);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: #fff;
    gap: 6px;
}

.industry-tag {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(247, 216, 164, 0.8);
    color: #3A2D1A;
    font-size: 0.9rem;
}

.stats-section {
    padding: 84px 0;
    background: var(--charcoal);
    color: #F4EEE4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    text-align: center;
}

.stat-item {
    padding: 18px;
    border: 1px solid rgba(247, 216, 164, 0.35);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.03);
}

.stat-number {
    font-size: 2rem;
    color: #F7D8A4;
    font-weight: 700;
}

.contact-cta {
    background: linear-gradient(120deg, rgba(44,62,80,0.1), rgba(139,115,85,0.08));
    border: var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.contact-cta form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.contact-cta input, .contact-cta textarea {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    font-family: var(--font-sans);
}

.contact-cta textarea { min-height: 120px; resize: vertical; }

/* ----------------------- 子页面英雄 ----------------------- */
.hero {
    position: relative;
    padding: 160px 0 120px;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,26,36,0.35), rgba(12,16,22,0.78));
}

.hero .hero-content {
    position: relative;
    max-width: 760px;
    z-index: 1;
}

.hero h1 { color: #fff; margin-bottom: 14px; }
.hero p { color: rgba(255,255,255,0.82); }

.hero-subpage {
    position: relative;
    padding: 140px 0 80px;
    color: #fff;
    overflow: hidden;
    margin-bottom: 40px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-subpage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 26, 36, 0.2), rgba(12, 16, 22, 0.8));
}

.hero-subpage .hero-content {
    position: relative;
    max-width: 780px;
    z-index: 1;
}

.hero-subpage h1 { color: #fff; margin-bottom: 12px; }
.hero-subpage p { color: rgba(255,255,255,0.8); }

/* ----------------------- 其他模块 ----------------------- */
.page-header {
    padding: 80px 0;
    background: linear-gradient(120deg, rgba(44,62,80,0.9), rgba(28,28,28,0.9));
    color: #fff;
    text-align: center;
}

.page-content { padding: 60px 0; }

.timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--primary);
    margin-top: 32px;
}

.timeline-item {
    position: relative;
    margin-bottom: 28px;
    padding-left: 4px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -39px;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--secondary);
    border-radius: 50%;
    border: 3px solid #fff;
}

.meta {
    color: var(--text-muted);
    font-size: 0.95rem;
}

ul { padding-left: 18px; }
li { margin-bottom: 8px; }

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th, .table td {
    border: var(--line);
    padding: 12px;
    text-align: left;
}

.map-placeholder {
    background: #fff;
    border: var(--line);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow-soft);
}

.map-placeholder img { border-radius: var(--radius-sm); }

/* ----------------------- 页脚 ----------------------- */
.footer {
    background: var(--charcoal);
    color: #EDE7DC;
    padding: 72px 0 32px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.footer-col h4 {
    color: #F7D8A4;
    margin-bottom: 12px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #EDE7DC; }
.footer-col a:hover { color: #F7D8A4; }

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

.footer-brand img { width: 44px; height: 44px; }
.footer-brand .brand-name { font-weight: 700; }
.footer-brand .brand-tagline { color: rgba(237, 231, 220, 0.7); }
.footer-note { color: rgba(237, 231, 220, 0.7); margin-bottom: 12px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 32px;
    padding-top: 16px;
    color: rgba(237, 231, 220, 0.7);
    text-align: center;
    font-size: 0.95rem;
}

/* ----------------------- 响应式 ----------------------- */
@media (max-width: 768px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.8rem; }
    .hero-prestige { padding: 120px 0 90px; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .content-section { padding: 64px 0; }
    .grid-sidebar { grid-template-columns: 1fr; }
    .sidebar { position: static; }
}
