/* ==================================================
   渠道人联盟建站服务 - 样式文件
   高端红色主题 - 响应式设计
   ================================================== */

/* CSS变量 - 高端红色系 */
:root {
    --primary-red: #C8102E;
    --primary-red-dark: #9B0D24;
    --primary-red-light: #E81738;
    --secondary-gold: #D4AF37;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #F9F9F9;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 4px 16px rgba(200, 16, 46, 0.12);
    --shadow-strong: 0 8px 32px rgba(200, 16, 46, 0.2);
}

/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: var(--bg-white);
    box-shadow: var(--shadow-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-red);
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--text-dark);
    margin-left: 8px;
    font-size: 20px;
    font-weight: normal;
}

/* 导航菜单 */
nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 40px;
}

nav ul li a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-red);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--primary-red);
    cursor: pointer;
}

/* 横幅区域 */
.hero {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--bg-white);
    padding: 160px 0 120px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--bg-white);
    color: var(--primary-red);
    border: 2px solid var(--bg-white);
}

.btn-primary:hover {
    background: var(--secondary-gold);
    border-color: var(--secondary-gold);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-outline {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

.btn-outline:hover {
    background: var(--bg-white);
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* 区域标题 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-red);
}

.section-title p {
    color: var(--text-gray);
    font-size: 16px;
    max-width: 600px;
    margin: 30px auto 0;
}

/* 区域通用样式 */
.section {
    padding: 100px 0;
}

.section-light {
    background: var(--bg-light);
}

.section-white {
    background: var(--bg-white);
}

/* 服务项目 */
.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-item {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-red);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--bg-white);
}

.service-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-item p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-price {
    color: var(--primary-red);
    font-size: 18px;
    font-weight: bold;
}

/* 案例展示 */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-item {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.case-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: var(--bg-light);
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-item:hover .case-image img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(200, 16, 46, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.case-item:hover .case-overlay {
    opacity: 1;
}

.case-overlay a {
    display: inline-block;
    padding: 10px 30px;
    background: var(--bg-white);
    color: var(--primary-red);
    border-radius: 4px;
    font-weight: 600;
}

.case-info {
    padding: 25px;
}

.case-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.case-info p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.case-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--text-gray);
    font-size: 12px;
    border-radius: 3px;
}

/* 关于我们 */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 28px;
    color: var(--primary-red);
    margin-bottom: 25px;
}

.about-text p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 14px;
}

.about-image img {
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
}

/* 新闻资讯 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.news-image {
    height: 180px;
    background: var(--bg-light);
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-info {
    padding: 25px;
}

.news-date {
    color: var(--primary-red);
    font-size: 13px;
    margin-bottom: 10px;
}

.news-info h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
}

.news-info h3:hover {
    color: var(--primary-red);
}

.news-info p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-more {
    color: var(--primary-red);
    font-size: 14px;
    font-weight: 500;
}

/* 联系我们 */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--primary-red);
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    font-size: 18px;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-gray);
    font-size: 14px;
}

/* 联系表单 */
.contact-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-red);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--bg-white);
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-btn:hover {
    background: linear-gradient(135deg, var(--primary-red-light) 0%, var(--primary-red) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

/* 页脚 */
footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-red);
}

.footer-about p {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--bg-white);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #999;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-red);
}

.footer-contact li {
    margin-bottom: 15px;
    color: #999;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.footer-contact li i {
    margin-right: 10px;
    color: var(--primary-red);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* 成功提示 */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* 内容页面 */
.page-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--bg-white);
    padding: 120px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

.page-content {
    padding: 60px 0;
}

/* 新闻详情 */
.news-detail {
    max-width: 800px;
    margin: 0 auto;
}

.news-detail-header {
    text-align: center;
    margin-bottom: 40px;
}

.news-detail-header h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.news-detail-meta {
    color: var(--text-light);
    font-size: 14px;
}

.news-detail-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.news-detail-image img {
    width: 100%;
    border-radius: 8px;
}

.news-detail-content {
    font-size: 16px;
    line-height: 2;
    color: var(--text-dark);
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: var(--primary-red);
}

/* 回到顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    color: var(--bg-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-red-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* 响应式设计 - 平板 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .services,
    .cases-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 响应式设计 - 手机 */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    nav {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        box-shadow: var(--shadow-light);
        padding: 20px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 15px 0;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-btns {
        flex-direction: column;
        padding: 0 40px;
    }
    
    .btn {
        width: 100%;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .services,
    .cases-grid,
    .news-grid,
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .page-header {
        padding: 80px 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 22px;
    }
    
    .logo span {
        font-size: 16px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .header-inner {
        height: 70px;
    }
    
    nav {
        top: 70px;
    }
}
