/* 基础CSS - 原生手写，遵循BEM命名规范 */

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

/* 基础变量 - 浪漫唯美主题 */
:root {
    /* 浪漫渐变色调 - 符合发达国家审美 */
    --color-primary: #e91e63;      /* Rose Pink - 更温柔的玫瑰粉 */
    --color-primary-dark: #c2185b; /* Deeper Rose */
    --color-secondary: #f06292;    /* Light Pink - 柔和粉色 */
    --color-accent: #ffb3e6;       /* Soft Lavender Pink */
    --color-success: #4caf50;
    --color-warning: #ff9800;
    --color-info: #64b5f6;         /* Softer Blue */
    --color-text: #2c2c2c;         /* Softer Black */
    --color-text-light: #757575;   /* Warm Grey */
    --color-bg: #fafafa;           /* Warmer White */
    --color-white: #ffffff;
    
    /* 浪漫阴影效果 */
    --shadow-sm: 0 2px 8px rgba(233, 30, 99, 0.08);
    --shadow-md: 0 4px 12px rgba(233, 30, 99, 0.12);
    --shadow-lg: 0 8px 24px rgba(233, 30, 99, 0.15);
    --shadow-romantic: 0 8px 32px rgba(233, 30, 99, 0.2);
    
    /* 现代圆角和过渡 */
    --border-radius: 12px;
    --border-radius-large: 20px;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* 基础字体 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

/* 基础元素样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

p {
    margin-bottom: 1rem;
}

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

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

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

/* 主内容区域 */
.main-content {
    min-height: auto; /* 移除固定最小高度，避免页面底部白色区域 */
    padding: 2rem 0;
}

/* 按钮基础样式 */
button {
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* 输入框基础样式 */
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.1);
}

/* 页眉样式 */
.pg-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.pg-header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pg-header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pg-header__logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.pg-header__logo-link:hover {
    color: var(--color-primary);
}

.pg-header__logo-icon {
    font-size: 2rem;
}

.pg-header__logo-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pg-header__nav {
    display: flex;
    align-items: center;
}

.pg-header__nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.pg-header__nav-link {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
}

.pg-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.pg-header__nav-link:hover::after,
.pg-header__nav-link--active::after {
    width: 100%;
}

/* 页脚样式 */
.pg-footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.pg-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.pg-footer__links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pg-footer__link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.pg-footer__link:hover {
    color: var(--color-secondary);
}

.pg-footer__separator {
    color: #666;
}

.pg-footer__text {
    margin-bottom: 0.5rem;
}

.pg-footer__disclaimer {
    font-size: 0.875rem;
    color: #aaa;
}

/* 响应式设计 */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .pg-header__nav-list {
        flex-direction: column;
        gap: 1rem;
    }
}