/* 佛山E网工作室官网样式 - 参考MINETHINK设计风格 */
:root {
    --primary: #0066cc;
    --primary-dark: #004499;
    --secondary: #ff6600;
    --dark: #1a1a1a;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --border: #e0e0e0;
}

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

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    background: #fff;
}

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

ul {
    list-style: none;
}

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

/* 顶部导航 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: var(--dark);
}

.main-nav ul {
    display: flex;
    gap: 0;
}

.main-nav a {
    display: block;
    padding: 12px 18px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
}

.main-nav a.active {
    color: var(--primary);
}

.header-phone {
    font-size: 14px;
    color: var(--gray);
}

/* 横幅 */
.hero {
    padding: 160px 0 120px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    text-align: center;
    color: #fff;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--secondary);
    color: #fff;
}

.btn-primary:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,102,0,0.35);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: var(--dark);
}

/* 服务项目 */
.services {
    padding: 80px 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark);
}

.section-header p {
    font-size: 16px;
    color: var(--gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.service-card {
    background: #fff;
    padding: 35px 20px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
}

.service-card p {
    font-size: 13px;
    color: var(--gray);
}

/* 案例 */
.cases-section {
    padding: 80px 0;
    background: #fff;
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.case-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.case-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.case-img {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.case-info {
    padding: 20px;
    background: #fff;
}

.case-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.case-info p {
    font-size: 13px;
    color: var(--gray);
}

.section-more {
    text-align: center;
    margin-top: 45px;
}

.btn-link {
    display: inline-block;
    font-size: 15px;
    color: var(--primary);
    font-weight: 500;
}

.btn-link:hover {
    color: var(--secondary);
}

/* 资讯 */
.news-section {
    padding: 80px 0;
    background: var(--light-gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-item {
    display: flex;
    gap: 15px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.news-date {
    flex-shrink: 0;
    width: 55px;
    height: 55px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.news-date span {
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
}

.news-content h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.5;
}

.news-content h3 a:hover {
    color: var(--primary);
}

.news-content p {
    font-size: 13px;
    color: var(--gray);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 关于我们 */
.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: #fff;
}

.about-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 25px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.9;
    opacity: 0.9;
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 45px;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
}

/* 底部 */
.footer {
    background: #1a1a1a;
    color: #999;
    padding: 60px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-col h4 {
    font-size: 17px;
    color: #fff;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #999;
}

.footer-col ul li a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    font-size: 13px;
}

.footer-bottom a {
    color: #999;
}

.footer-bottom a:hover {
    color: var(--secondary);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary);
}

/* 响应式 */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 15px 0;
    }
    .main-nav {
        order: 3;
        width: 100%;
        margin-top: 15px;
        overflow-x: auto;
    }
    .main-nav ul {
        gap: 3px;
    }
    .main-nav a {
        padding: 8px 12px;
        font-size: 13px;
    }
    .header-phone {
        display: none;
    }
    .hero {
        padding: 130px 0 80px;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cases-grid {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: 1fr;
    }
    .about-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* 内页通用样式 */
.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.85;
}

.page-content {
    padding: 60px 0;
}

.content-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

.content-box h2 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.content-box h3 {
    font-size: 18px;
    color: var(--dark);
    margin: 25px 0 12px;
}

.content-box p {
    margin-bottom: 15px;
    color: #555;
}

.content-box ul {
    margin: 15px 0;
}

.content-box ul li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.content-box ul li::before {
    content: "●";
    color: var(--primary);
    position: absolute;
    left: 0;
}

/* 列表页 */
.list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.list-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.list-img {
    height: 180px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
}

.list-info {
    padding: 20px;
}

.list-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.list-info h3 a:hover {
    color: var(--primary);
}

.list-info p {
    font-size: 13px;
    color: var(--gray);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

.pagination a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.pagination .active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* 表格 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table th,
.table td {
    padding: 14px 18px;
    border: 1px solid var(--border);
    text-align: left;
}

.table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--dark);
}

.table tr:hover {
    background: #fafafa;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.submit-btn {
    padding: 14px 42px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    background: var(--secondary);
}

/* 详情页 */
.news-detail {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
}

.news-detail h1 {
    font-size: 28px;
    color: var(--dark);
    margin-bottom: 20px;
}

.news-meta {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 25px;
    color: var(--gray);
    font-size: 13px;
}

.news-detail .content {
    font-size: 16px;
    line-height: 1.9;
    color: #444;
}

.news-detail .content p {
    margin-bottom: 18px;
}
