/*
Theme Name: 湘潭婚拍推荐
Theme URI: https://xtks110.top
Description: 湘潭婚纱摄影机构推荐主题，高端定制风格，浪漫温馨
Version: 1.0.0
Author: 湘潭周记机械修鞋店
Author URI: https://xtks110.top
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xtks-wedding
Tags: wedding, photography, responsive, custom-logo, custom-menu
*/

/* ============================================
   CSS 变量定义 - 统一管理主题色彩和字体
   ============================================ */
:root {
    /* 色彩系统 */
    --color-bg: #FAF7F2;           /* 米白主背景 */
    --color-accent: #C9A961;       /* 香槟金点缀 */
    --color-primary: #B76E79;      /* 玫瑰金强调 */
    --color-primary-dark: #9A5A64; /* 玫瑰金悬停 */
    --color-text: #2A2A2A;         /* 深灰主体文字 */
    --color-text-light: #888888;   /* 浅灰辅助文字 */
    --color-card: #FFFFFF;          /* 纯白卡片背景 */
    --color-border: #ECECEC;       /* 极淡灰分割线 */

    /* 字体系统 */
    --font-heading: 'Noto Serif SC', 'Source Han Serif SC', 'Songti SC', Georgia, serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-number: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;

    /* 间距系统 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 80px;

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;

    /* 阴影 */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.1);

    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ============================================
   基础重置与全局样式
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 标题样式 - 使用衬线字体 */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

/* 列表样式 */
ul, ol {
    list-style: none;
}

/* 按钮基础样式 */
button,
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #fff;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* 区块通用样式 */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.section-title p {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* ============================================
   卡片通用样式
   ============================================ */
.card {
    background: var(--color-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* ============================================
   响应式断点
   ============================================ */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 60px;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* ============================================
   辅助类
   ============================================ */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-primary { color: var(--color-primary); }
.text-light { color: var(--color-text-light); }

.hidden { display: none !important; }
.visible { display: block !important; }

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

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

/* 滚动指示器动画 */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.scroll-indicator {
    animation: bounce 2s infinite;
}
