/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3498db;
    border-bottom: 2px solid #3498db;
}

/* 主要内容区域 */
main {
    margin-top: 70px;
    min-height: calc(100vh - 140px);
}

/* Banner样式 */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.banner-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 300;
}

.banner-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

/* 区块标题 */
.section-title {
    text-align: center;
    font-size: 2.5em;
    margin: 60px 0 40px;
    color: #2c3e50;
}

/* 精选资讯样式 */
.featured-news {
    padding: 60px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.news-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    width: 100%;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #2c3e50;
    display:-webkit-box;
overflow:hidden;
text-overflow:ellipsis;
-webkit-line-clamp:1;
-webkit-box-orient:vertical;
}

.news-content p {
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.free-content{
	font-size: 24px;
	line-height: 60px;
}

.read-more {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 24px;
}

.read-more:hover {
    text-decoration: underline;
}

/* 资讯列表样式 */
.news-list {
    padding: 60px 0;
}

.price-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 1.1em;
}

.news-items {
    display: grid;
    gap: 20px;
}

.news-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-item-image {
    width: 100px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 5px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
}

.news-item-content {
    flex: 1;
}

.news-item-content h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.news-item-content p {
    color: #666;
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #999;
}

/* 资讯详情样式 */
.news-detail {
    padding: 60px 0;
}

.news-header {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.news-header h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.news-meta-info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9em;
}

.news-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    line-height: 1.8;
}

.news-image-large {
    width: 100%;
    max-height: 400px;
    background: #f0f0f0;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.payment-section {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
}

.payment-notice h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

.qr-code {
    margin: 30px 0;
}

.qr-placeholder {
    display: inline-block;
    padding: 20px;
    border: 2px dashed #ddd;
    border-radius: 10px;
}

.qr-simulator {
    width: 200px;
    height: 200px;
    background: #f8f9fa;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.qr-grid {
    width: 180px;
    height: 180px;
    background: repeating-linear-gradient(45deg, #333, #333 10px, #fff 10px, #fff 20px);
    opacity: 0.3;
}

.payment-tip {
    color: #666;
    font-size: 0.9em;
    margin-top: 10px;
}

/* 联系我们样式 */
.contact {
    padding: 60px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.5em;
}

.contact-item {
    margin-bottom: 25px;
}

.contact-item strong {
    display: block;
    color: #3498db;
    margin-bottom: 5px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* 页脚样式 */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 60px;
}

footer p{
	font-size: 20px;
	line-height: 40px;
}

footer a{
	color: #FFFFFF;
	font-size: 20px;
	line-height: 40px;
	text-decoration: none;
}


/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }
    
    .nav-menu {
        margin-top: 15px;
    }
    
    .nav-menu li {
        margin: 0 10px;
    }
    
    .banner-content h2 {
        font-size: 2em;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .news-item {
        flex-direction: column;
        text-align: center;
    }
    
    .news-item-image {
        margin: 0 0 15px 0;
        width: 100%;
        height: 150px;
    }
    
    main {
        margin-top: 120px;
    }
}