/* ===== 如易心理 - 极简版样式 ===== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font: 16px/1.6 "Microsoft YaHei", sans-serif; 
    color: #333; 
    background: #fff;
}
a { color: #ff9900; text-decoration: none; }
a:hover { color: #e68900; }
img { border: none; max-width: 100%; }
ul, ol, li { list-style: none; }

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px;
}

/* 极简头部 */
.header {
    background: #fff;
    border-bottom: 2px solid #ff9900;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 40px;
}

.logo h1 {
    font-size: 24px;
    color: #ff9900;
    font-weight: normal;
}

.nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav a {
    color: #333;
    font-size: 16px;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
    color: #ff9900;
}

.contact {
    color: #666;
    font-size: 14px;
}

/* 极简页面标题 */
.page-title {
    background: #f8f8f8;
    padding: 60px 0;
    text-align: center;
}

.page-title h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    font-weight: normal;
}

.page-title p {
    font-size: 18px;
    color: #666;
}

/* 极简区块 */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    color: #333;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-weight: normal;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: #ff9900;
    margin: 15px auto 0;
}

/* 极简网格布局 */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* 极简卡片 */
.card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 30px;
    transition: box-shadow 0.3s;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: normal;
}

.card p {
    color: #666;
    line-height: 1.8;
}

/* 极简按钮 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: #ff9900;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.btn:hover {
    background: #e68900;
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: #ff9900;
    border: 1px solid #ff9900;
}

.btn-secondary:hover {
    background: #ff9900;
    color: #fff;
}

/* 极简表单 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: normal;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #ff9900;
}

/* 极简底部 */
.footer {
    background: #333;
    color: #ccc;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: normal;
}

.footer-section p,
.footer-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-section a {
    color: #ccc;
}

.footer-section a:hover {
    color: #ff9900;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
}

/* 极简实用类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.p-20 { padding: 20px; }
.bg-gray { background: #f8f8f8; }

/* 响应式 */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .page-title h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* --- 活动页面补充样式 --- */

/* Banner 统一风格 */
.banner {
    position: relative;
    overflow: hidden;
}
.banner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.banner-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
}
.banner-text {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 90%;
}
.banner-text h1 {
    font-size: 36px;
    font-weight: normal;
    margin-bottom: 10px;
}
.banner-text p {
    font-size: 18px;
}

/* 文章列表统一网格 */
.articles-list {
    padding: 60px 0;
}
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* 文章卡片样式 */
.article-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.article-image {
    position: relative;
}
.article-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.article-tag {
    position: absolute;
    top: 10px; left: 10px;
    background: #ff9900;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 3px;
}
.article-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-info h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
    font-weight: normal;
}
.article-desc {
    color: #666;
    flex: 1;
    margin-bottom: 10px;
    line-height: 1.6;
}
.article-meta {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}
.qr-code {
    margin: 10px 0;
}

/* 筛选按钮统一样式 */
.filter-options {
    text-align: center;
    margin-bottom: 30px;
}
.filter-btn {
    background: #fff;
    color: #ff9900;
    border: 1px solid #ff9900;
    padding: 8px 16px;
    margin: 0 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}
.filter-btn.active,
.filter-btn:hover {
    background: #ff9900;
    color: #fff;
}

/* 底部导航修正 */
.footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.footer-nav a {
    color: #ccc;
    font-size: 14px;
}
.footer-nav a:hover {
    color: #ff9900;
}
.copyright {
    text-align: center;
    color: #999;
    font-size: 14px;
}