/* ============================================
   禧时婚纱礼服馆 - 全局样式统一
   高级感、温馨氛围、统一视觉
   ============================================ */

/* ============================================
   1. 色彩系统（主色 + 辅助色，不超过3种）
   ============================================ */
:root {
    /* 主色：金色系 */
    --color-gold-primary: #d4af37;        /* 主金色 */
    --color-gold-light: #f4e4a6;          /* 浅金色 */
    --color-gold-dark: #b8941f;           /* 深金色 */
    --color-cream: #faf8f3;               /* 米白色 */
    --color-cream-light: #f5f0e8;         /* 浅米白 */
    
    /* 辅助色：深咖色/酒红色/浅灰色 */
    --color-brown-dark: #6b3d2d;          /* 深咖色 */
    --color-brown-medium: #8b5a3c;        /* 中咖色 */
    --color-wine: #8b2635;                /* 酒红色 */
    --color-gray-light: #f5f5f5;          /* 浅灰色 */
    --color-gray-medium: #e8e8e8;         /* 中灰色 */
    --color-gray-dark: #999999;           /* 深灰色 */
    
    /* 文字颜色 */
    --color-text-primary: #333333;        /* 主文字 */
    --color-text-secondary: #666666;      /* 次要文字 */
    --color-text-light: #999999;          /* 浅色文字 */
    --color-text-white: #ffffff;          /* 白色文字 */
    
    /* 背景色 */
    --color-bg-white: #ffffff;
    --color-bg-cream: #faf8f3;
    --color-bg-gray: #f5f5f5;
}

/* ============================================
   2. 字体系统（标题艺术字体 + 正文清晰字体）
   ============================================ */

/* 标题字体 - 艺术字体（法式/韩式简约） */
h1, h2, h3, h4, h5, h6,
.title, .section-title, .banner-title,
.appointment-title, .footer-logo-text {
    font-family: "思源宋体", "Source Han Serif SC", "Noto Serif SC", 
                 "造字工房悦圆体", "Microsoft YaHei", "微软雅黑", 
                 "PingFang SC", "Hiragino Sans GB", serif;
    font-weight: 600;
    letter-spacing: 1-2px;
    color: var(--color-text-primary);
}

/* 正文字体 - 清晰易读 */
body, p, span, div, a, li, td, th,
.content, .description, .text {
    font-family: "微软雅黑", "Microsoft YaHei", 
                 "思源黑体", "Source Han Sans SC",
                 "PingFang SC", "Hiragino Sans GB",
                 "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-primary);
}

/* 字体大小规范 */
h1 { font-size: 48px; line-height: 1.2; }
h2 { font-size: 36px; line-height: 1.3; }
h3 { font-size: 28px; line-height: 1.4; }
h4 { font-size: 24px; line-height: 1.4; }
h5 { font-size: 20px; line-height: 1.5; }
h6 { font-size: 18px; line-height: 1.5; }
p, body { font-size: 16px; line-height: 1.6; }

/* ============================================
   3. 留白系统（板块之间足够留白）
   ============================================ */

/* 全局容器 */
.g_cw {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 板块间距 */
.section {
    padding: 80px 0;
    margin: 0;
}

.section-large {
    padding: 100px 0;
}

.section-medium {
    padding: 60px 0;
}

.section-small {
    padding: 40px 0;
}

/* 元素间距 */
.element-spacing {
    margin-bottom: 40px;
}

.element-spacing-large {
    margin-bottom: 60px;
}

.element-spacing-small {
    margin-bottom: 20px;
}

/* ============================================
   4. 按钮样式统一
   ============================================ */

/* 主要按钮（金色） */
.btn-primary, .btn-gold {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--color-gold-primary) 0%, var(--color-gold-light) 50%, var(--color-gold-primary) 100%);
    background-size: 200% auto;
    color: var(--color-text-primary);
    font-size: 16px;
    font-weight: 600;
    border: 2px solid var(--color-gold-primary);
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    cursor: pointer;
    letter-spacing: 1px;
}

.btn-primary:hover, .btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background-position: 100% 0;
}

.btn-primary:active, .btn-gold:active {
    transform: translateY(0);
}

/* 次要按钮（深咖色/酒红色） */
.btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--color-brown-dark);
    color: var(--color-text-white);
    font-size: 15px;
    font-weight: 500;
    border: 2px solid var(--color-brown-dark);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--color-brown-medium);
    border-color: var(--color-brown-medium);
    transform: translateY(-2px);
}

/* 文字按钮 */
.btn-text {
    display: inline-block;
    padding: 8px 16px;
    color: var(--color-gold-primary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.btn-text:hover {
    color: var(--color-gold-dark);
    border-bottom-color: var(--color-gold-dark);
}

/* ============================================
   5. 表单样式统一
   ============================================ */

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-medium);
    border-radius: 6px;
    font-size: 15px;
    font-family: inherit;
    color: var(--color-text-primary);
    background: var(--color-bg-white);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-light);
}

/* ============================================
   6. 图片样式统一
   ============================================ */

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* ============================================
   7. 链接样式统一
   ============================================ */

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold-primary);
}

/* ============================================
   8. 移动端适配核心（70%用户用手机看）
   ============================================ */

/* 基础移动端适配 */
@media (max-width: 1024px) {
    /* 字体放大 */
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    h4 { font-size: 20px; }
    body, p { font-size: 16px; }
    
    /* 按钮放大（方便手指点击） */
    .btn-primary, .btn-gold {
        padding: 16px 36px;
        font-size: 18px;
        min-height: 48px; /* 最小触摸目标 */
    }
    
    .btn-secondary {
        padding: 14px 32px;
        font-size: 17px;
        min-height: 48px;
    }
    
    /* 表单输入框加宽 */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="date"],
    textarea {
        padding: 14px 18px;
        font-size: 16px;
        min-height: 48px;
    }
    
    /* 板块间距调整 */
    .section {
        padding: 50px 0;
    }
    
    .section-large {
        padding: 60px 0;
    }
    
    .section-medium {
        padding: 40px 0;
    }
    
    /* 容器内边距 */
    .g_cw {
        padding: 0 15px;
    }
}

/* 小屏移动端 */
@media (max-width: 600px) {
    /* 字体进一步放大 */
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
    body, p { font-size: 15px; }
    
    /* 按钮 */
    .btn-primary, .btn-gold {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    /* 板块间距 */
    .section {
        padding: 40px 0;
    }
    
    .section-large {
        padding: 50px 0;
    }
    
    /* 容器内边距 */
    .g_cw {
        padding: 0 10px;
    }
}

/* ============================================
   9. 布局系统（左右分栏改为上下叠放）
   ============================================ */

/* PC端：左右分栏 */
.layout-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.layout-three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.layout-four-column {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 移动端：上下叠放 */
@media (max-width: 1024px) {
    .layout-two-column,
    .layout-three-column,
    .layout-four-column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   10. 工具类
   ============================================ */

/* 文本对齐 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* 颜色类 */
.text-gold { color: var(--color-gold-primary); }
.text-brown { color: var(--color-brown-dark); }
.text-gray { color: var(--color-text-secondary); }

/* 背景色类 */
.bg-cream { background-color: var(--color-cream); }
.bg-gray { background-color: var(--color-gray-light); }
.bg-white { background-color: var(--color-bg-white); }

/* 间距类 */
.mt-large { margin-top: 60px; }
.mt-medium { margin-top: 40px; }
.mt-small { margin-top: 20px; }

.mb-large { margin-bottom: 60px; }
.mb-medium { margin-bottom: 40px; }
.mb-small { margin-bottom: 20px; }

.p-large { padding: 60px; }
.p-medium { padding: 40px; }
.p-small { padding: 20px; }

/* 显示/隐藏 */
.hide-mobile {
    display: block;
}

.show-mobile {
    display: none;
}

@media (max-width: 1024px) {
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: block !important;
    }
}

/* ============================================
   11. 动画效果
   ============================================ */

/* 淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* 金色闪烁动画 */
@keyframes goldShine {
    0%, 100% {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 30px rgba(212, 175, 55, 0.6);
    }
}

.gold-shine {
    animation: goldShine 3s ease-in-out infinite;
}

/* ============================================
   12. 重置和优化
   ============================================ */

/* 确保所有元素使用统一盒模型 */
* {
    box-sizing: border-box;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 优化字体渲染 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* 图片懒加载优化 */
img {
    loading: lazy;
}

/* 禁用文本选择（按钮等） */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

