/* common.css - 全局公共样式与变量 */

/* 引入现代字体 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* 色彩系统 */
    --primary-color: #FF5E00;         /* 活力橙色 */
    --primary-hover: #E04F00;
    --primary-gradient: linear-gradient(135deg, #FF8E25 0%, #FF4500 100%); /* 渐变橙 */
    --gold-gradient: linear-gradient(135deg, #FFE066 0%, #F5A623 100%);    /* 金黄色渐变 */
    --bg-gradient-orange: linear-gradient(180deg, #FF6A00 0%, #FF9500 30%, #FFEEDD 100%); /* 橙色背景渐变 */
    --dark-overlay: rgba(0, 0, 0, 0.4);
    
    /* 文字颜色 */
    --text-primary: #2D2D2D;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-white: #FFFFFF;
    
    /* 玻璃拟态与阴影 */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(255, 94, 0, 0.15);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 35px rgba(255, 94, 0, 0.2);
    
    /* 系统字体 */
    --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    
    /* 动画定义 */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease;
}

/* 重置基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background-color: #FFFFFF;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* 链接样式 */
a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* 按钮基础样式 */
button, .btn {
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

/* 图片自适应 */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 常用辅助类 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 玻璃拟态效果 */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}
