/* 明亮积极风格全局样式 */
:root {
    --primary: #ff6b35;
    --primary-light: #ff8c5a;
    --primary-dark: #e55a2b;
    --secondary: #2196f3;
    --secondary-light: #64b5f6;
    --accent: #4caf50;
    --accent-light: #81c784;
    --warning: #ffc107;
    --apple-black: #1d1d1f;
    --apple-gray: #6e6e73;
    --apple-light-gray: #f5f5f7;
    --apple-blue: #2196f3;
    --apple-blue-hover: #1976d2;
    --apple-white: #ffffff;
    --gradient-warm: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-cool: linear-gradient(135deg, #2196f3 0%, #00bcd4 100%);
    --gradient-fresh: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    --transition-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--apple-black);
    background-color: var(--apple-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    color: var(--apple-black);
    line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.125rem; }

/* 链接样式 */
a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
    -webkit-tap-highlight-color: transparent;
}

a:hover {
    color: var(--primary-dark);
}

/* 容器 */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.022em;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    border: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--gradient-warm);
    color: var(--apple-white);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: var(--apple-white);
    text-decoration: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--apple-white);
    text-decoration: none;
}

/* 卡片样式 */
.card {
    background: var(--apple-white);
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--apple-black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s var(--transition-smooth);
    background: var(--apple-white);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

/* 工具类 */
.text-center { text-align: center; }
.text-gray { color: var(--apple-gray); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* 移动端适配 */
@media (max-width: 768px) {
    .container, 
    .container-wide {
        padding: 0 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 16px;
    }
    
    h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
    h3 { font-size: clamp(1.125rem, 4vw, 1.5rem); }
}

@media (max-width: 480px) {
    .container, 
    .container-wide {
        padding: 0 12px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}
