/* ========== 全局重置 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

a:hover {
    color: #3f51b5;
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 导航栏 ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: bold;
    color: #3f51b5;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.nav {
    display: flex;
    align-items: center;
}

.nav li {
    position: relative;
    margin-left: 35px;
}

.nav li a {
    display: block;
    padding: 8px 0;
    font-size: 15px;
    color: #333;
    font-weight: 500;
    position: relative;
}

.nav li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #3f51b5;
    transition: width 0.3s;
}

.nav li a:hover::after,
.nav li.active a::after {
    width: 100%;
}

.nav li a:hover,
.nav li.active a {
    color: #3f51b5;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* ========== Banner轮播 ========== */
.banner {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 70px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: 0.9;
}

.banner-btn {
    display: inline-block;
    padding: 14px 45px;
    background: #3f51b5;
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
}

.banner-btn:hover {
    background: #303f9f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(63, 81, 181, 0.4);
}

.banner-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* Banner背景图 - 使用渐变占位 */
.banner-slide-1 {
    background: linear-gradient(135deg, #1a237e 0%, #3f51b5 50%, #5c6bc0 100%);
}

.banner-slide-2 {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 50%, #42a5f5 100%);
}

/* ========== 通用区块 ========== */
.section {
    padding: 80px 0;
}

.section-gray {
    background: #f7f8fa;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: #222;
    margin-bottom: 15px;
    font-weight: bold;
}

.section-title p {
    font-size: 16px;
    color: #888;
}

/* ========== 公司介绍 ========== */
.about-section {
    text-align: center;
    padding: 80px 0;
}

.about-section h2 {
    font-size: 32px;
    color: #222;
    margin-bottom: 25px;
}

.about-section p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

/* ========== 服务三栏 ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.service-item {
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s;
    background: #fff;
}

.service-item:nth-child(2) {
    background: #3f51b5;
    color: #fff;
}

.service-item .service-icon {
    font-size: 60px;
    margin-bottom: 25px;
    color: #333;
}

.service-item:nth-child(2) .service-icon {
    color: #fff;
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: bold;
}

.service-item p {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.9;
}

/* ========== 价格套餐 ========== */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.price-card {
    background: #fff;
    border-radius: 10px;
    padding: 50px 35px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.price-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.price-card h3 {
    font-size: 20px;
    color: #222;
    margin-bottom: 8px;
}

.price-card .price-type {
    font-size: 14px;
    color: #999;
    margin-bottom: 30px;
}

.price-card .price {
    font-size: 56px;
    color: #333;
    font-weight: bold;
    margin-bottom: 25px;
}

.price-card .price span {
    font-size: 20px;
    vertical-align: top;
    margin-right: 5px;
}

.price-card .price-features {
    border-top: 1px solid #eee;
    padding-top: 25px;
    margin-bottom: 35px;
}

.price-card .price-features li {
    padding: 8px 0;
    color: #888;
    font-size: 15px;
}

.price-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #3f51b5;
    color: #fff;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s;
}

.price-btn:hover {
    background: #303f9f;
    color: #fff;
}

/* ========== 案例中心 ========== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.case-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.case-img {
    width: 100%;
    height: 240px;
    background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #3f51b5;
    position: relative;
    overflow: hidden;
}

.case-img::after {
    content: '查看详情';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(63, 81, 181, 0.85);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.case-item:hover .case-img::after {
    opacity: 1;
}

.case-info {
    padding: 25px;
}

.case-info h4 {
    font-size: 18px;
    color: #222;
    margin-bottom: 10px;
}

.case-info p {
    font-size: 14px;
    color: #888;
}

/* 不同案例的背景色 */
.case-img.case-1 { background: linear-gradient(135deg, #1a237e, #3949ab); }
.case-img.case-2 { background: linear-gradient(135deg, #4a148c, #7b1fa2); }
.case-img.case-3 { background: linear-gradient(135deg, #880e4f, #c2185b); }
.case-img.case-4 { background: linear-gradient(135deg, #1b5e20, #388e3c); }
.case-img.case-5 { background: linear-gradient(135deg, #01579b, #0288d1); }
.case-img.case-6 { background: linear-gradient(135deg, #33691e, #689f38); }

/* ========== 资讯中心 ========== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.news-item {
    display: flex;
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.news-date {
    flex-shrink: 0;
    width: 80px;
    text-align: center;
    border-right: 1px solid #eee;
    padding-right: 20px;
    margin-right: 20px;
}

.news-date .day {
    font-size: 32px;
    font-weight: bold;
    color: #3f51b5;
    line-height: 1;
}

.news-date .month {
    font-size: 13px;
    color: #999;
    margin-top: 5px;
}

.news-content {
    flex: 1;
}

.news-content h4 {
    font-size: 17px;
    color: #222;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.news-item:hover .news-content h4 {
    color: #3f51b5;
}

.news-content p {
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 页面Banner（内页） ========== */
.page-banner {
    width: 100%;
    height: 350px;
    margin-top: 70px;
    background: linear-gradient(135deg, #1a237e 0%, #3f51b5 50%, #5c6bc0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.page-banner-content h1 {
    font-size: 40px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-banner-content p {
    font-size: 16px;
    opacity: 0.85;
}

/* ========== 面包屑 ========== */
.breadcrumb {
    padding: 20px 0;
    background: #f7f8fa;
    border-bottom: 1px solid #eee;
}

.breadcrumb .container {
    font-size: 14px;
    color: #888;
}

.breadcrumb a {
    color: #666;
}

.breadcrumb a:hover {
    color: #3f51b5;
}

.breadcrumb span {
    margin: 0 8px;
}

/* ========== 网站建设页面特色 ========== */
.web-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: center;
}

.web-feature:nth-child(even) {
    direction: rtl;
}

.web-feature:nth-child(even) > * {
    direction: ltr;
}

.web-feature-img {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    color: #3f51b5;
    background: #f7f8fa;
}

.web-feature-content {
    padding: 60px;
}

.web-feature-content h3 {
    font-size: 26px;
    color: #222;
    margin-bottom: 20px;
}

.web-feature-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.web-feature-content ul {
    margin-top: 15px;
}

.web-feature-content ul li {
    padding: 8px 0;
    color: #555;
    font-size: 15px;
    padding-left: 25px;
    position: relative;
}

.web-feature-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3f51b5;
    font-weight: bold;
    font-size: 20px;
}

/* ========== 联系我们页面 ========== */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-info-item .icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: #3f51b5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    margin-right: 20px;
}

.contact-info-item .text h4 {
    font-size: 17px;
    color: #222;
    margin-bottom: 8px;
}

.contact-info-item .text p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

.contact-form h3 {
    font-size: 24px;
    color: #222;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3f51b5;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #3f51b5;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #303f9f;
}

/* ========== 右侧悬浮工具栏 ========== */
.sidebar-tools {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-tool {
    width: 60px;
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    padding: 12px 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    color: #666;
}

.sidebar-tool:first-child {
    border-radius: 6px 6px 0 0;
}

.sidebar-tool:last-child {
    border-radius: 0 0 6px 6px;
}

.sidebar-tool:hover {
    background: #3f51b5;
    color: #fff;
}

.sidebar-tool .tool-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

/* ========== 底部 ========== */
.footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 17px;
    margin-bottom: 25px;
    font-weight: 500;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #aaa;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact li .icon {
    margin-right: 10px;
    color: #3f51b5;
    font-size: 16px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid #2a2a4a;
    padding: 25px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

.footer-bottom a {
    color: #888;
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: #fff;
}

.footer-police {
    display: none;
}

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .nav.open {
        display: flex;
    }

    .nav li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }

    .nav li:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
    }

    .banner {
        height: 450px;
    }

    .banner-content h1 {
        font-size: 32px;
    }

    .services-grid,
    .price-grid,
    .case-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .web-feature {
        grid-template-columns: 1fr;
    }

    .web-feature:nth-child(even) {
        direction: ltr;
    }

    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sidebar-tools {
        display: none;
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 24px;
    }

    .banner-content p {
        font-size: 14px;
    }

    .section {
        padding: 50px 0;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .price-card .price {
        font-size: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .page-banner {
        height: 250px;
    }

    .page-banner-content h1 {
        font-size: 28px;
    }
}
