/* ============================================
   common.css – 婚纱网站全局通用样式
   主题：圣洁 · 浪漫 · 柔光
   ============================================ */

/* ---------- 重置 & 基础 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    background-color: #fefcfb;
    background-image: 
        /* 柔光层 */
        radial-gradient(ellipse at 30% 20%, rgba(228, 210, 200, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 70% 60%, rgba(210, 180, 160, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(220, 195, 175, 0.18) 0%, transparent 45%),
        /* 细腻蕾丝纹理 */
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(180, 150, 130, 0.03) 2px,
            rgba(180, 150, 130, 0.03) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(180, 150, 130, 0.03) 2px,
            rgba(180, 150, 130, 0.03) 4px
        );
    background-attachment: fixed;
    color: #3a2e2d;
    line-height: 1.7;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #c4956a;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #a07850;
}

ul {
    list-style: none;
}

/* ---------- 设计变量 ---------- */
:root {
    /* 主色调：香槟金 + 暖沙色 */
    --color-primary: #c4956a;
    --color-primary-dark: #a07850;
    --color-primary-light: #d4b896;
    --color-secondary: #d4a5a5;
    --color-accent: #e8d5d0;
    --color-accent-light: #f5ede8;
    --color-accent-pale: #faf5f2;
    
    /* 背景色 */
    --color-bg: #fefcfb;
    --color-bg-warm: #fdfaf8;
    
    /* 文字色 */
    --color-text: #3a2e2d;
    --color-text-light: #8c7b78;
    --color-text-muted: #b8a9a5;
    
    /* 基础色 */
    --color-white: #ffffff;
    --color-border: #e8d5d0;

    /* 字体 */
    --font-body: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    --font-heading: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
    --font-accent: 'Playfair Display', 'Georgia', serif;

    /* 布局 */
    --container-width: 1280px;
    --container-padding: 2rem;

    /* 动画 */
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* 阴影 */
    --shadow-card: 0 4px 20px rgba(164, 120, 100, 0.08);
    --shadow-hover: 0 12px 32px rgba(164, 120, 100, 0.15);
    --shadow-elegant: 0 2px 40px rgba(164, 120, 100, 0.06);

    /* 圆角 */
    --border-radius: 12px;
    --border-radius-sm: 6px;
}

/* ---------- 公共头部占位 ---------- */
#header-placeholder {
    height: 68px;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #f0e8e4;
}

/* ---------- 公共底部占位 ---------- */
#footer-placeholder {
    background: #fdfaf8;
    border-top: 1px solid #f0e8e4;
    min-height: 60px;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    color: #3a2e2d;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

h1 { 
    font-size: 3rem; 
    font-weight: 300;
    letter-spacing: 2px;
}
h2 { 
    font-size: 2.4rem; 
    font-weight: 300;
    letter-spacing: 1.5px;
}
h3 { 
    font-size: 1.8rem; 
    font-weight: 400;
}
h4 { 
    font-size: 1.3rem; 
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: var(--color-text-light);
}

/* ---------- 容器 ---------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-padding {
    padding: 5rem 0;
}

/* ---------- 按钮 ---------- */
.btn {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--color-primary);
    color: #fff;
    border: 1px solid var(--color-primary);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.btn:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(164, 120, 100, 0.25);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ---------- 卡片 ---------- */
.card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid rgba(232, 213, 208, 0.4);
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
}
.card-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.card:hover .card-image {
    transform: scale(1.03);
}
.card-content {
    padding: 1.8rem;
}
.card-title {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}
.card-meta {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.card-excerpt {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* ---------- 博客列表网格 ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.blog-grid .card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.blog-grid .card:first-child .card-image {
    aspect-ratio: 3 / 2;
}
.blog-grid .card:first-child .card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
}
.blog-grid .card:first-child .card-title {
    font-size: 2rem;
}
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-grid .card:first-child {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }
}
@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-1 { margin-top: 1rem; }
.mb-1 { margin-bottom: 1rem; }
.p-2 { padding: 2rem; }
.hidden { display: none !important; }

/* ---------- 响应式辅助 ---------- */
@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .section-padding { padding: 3rem 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
}