/*
 * 友粮官网 - 基础样式
 * 重置与通用样式
 */

@import url('./variables.css');

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

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

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

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

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

/* 容器 */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    color: var(--brand-gold);
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: var(--brand-brown);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.section-divider {
    width: 6rem;
    height: 0.375rem;
    background: linear-gradient(to right, var(--brand-gold), var(--brand-green));
    margin: 0 auto;
    border-radius: 9999px;
}

/* 按钮基础样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--brand-gold);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-green);
    color: white;
}

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

.btn-outline:hover {
    background-color: var(--brand-gold);
    color: white;
}

/* 卡片基础样式 */
.card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}
