/* 全局样式变量 */
:root {
    --primary-color: #ff7a00;
    --secondary-color: #ff9f45;
    --accent-color: #ffb347;
    --light-color: #fff4e6;
    --dark-color: #333333;
    --text-color: #444444;
    --heading-color: #222222;
    --background-color: #ffffff;
    --section-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 5px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.btn-primary:hover {
    background-color: #e86e00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-left: 15px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--dark-color);
    margin-bottom: 15px;
    position: relative;
}

.divider {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto 20px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 19px;
    color: var(--text-color);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    padding: 15px 0;
    transition: all var(--transition-speed) ease;
}

header.sticky {
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: var(--dark-color);
    font-weight: 700;
}

.logo h1 span {
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 0;
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.hamburger .line {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    transition: all var(--transition-speed) ease;
}

/* 首页 Hero 部分优化 */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ed 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/pattern.png');
    background-size: 300px;
    opacity: 0.05;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.hero-content {
    max-width: 600px;
    flex: 1;
    padding-right: 30px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.floating {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 15px;
    position: relative;
    line-height: 1.2;
}

.hero-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    left: 0;
    bottom: -10px;
}

.hero-subtitle {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 25px 0 20px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--text-color);
    max-width: 90%;
    position: relative;
    padding-left: 15px;
    border-left: 3px solid var(--primary-color);
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
}

/* 关于我们部分 */
.about-section {
    background-color: var(--section-bg);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.about-image {
    flex: 1;
    margin-right: 40px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.about-image:hover {
    transform: translateY(-10px);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text ul {
    padding-left: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.about-text ul li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 服务介绍部分 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    padding: 30px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: 1px solid transparent;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 122, 0, 0.1);
}

.service-icon {
    width: 90px;
    height: 90px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.15);
    transition: all 0.4s ease;
}

.service-item:hover .service-icon {
    transform: rotateY(180deg);
    background-color: var(--primary-color);
}

.service-icon i {
    font-size: 36px;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.service-item:hover .service-icon i {
    color: white;
    transform: rotateY(180deg);
}

.service-item h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--heading-color);
    position: relative;
    padding-bottom: 12px;
}

.service-item h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.service-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.service-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--secondary-color);
}

.service-link:hover i {
    transform: translateX(5px);
}

.service-item p {
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.6;
}

/* 案例展示部分 */
.portfolio-section {
    background-color: var(--section-bg);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    border-radius: 30px;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    position: relative;
    background-color: white;
    transition: all var(--transition-speed) ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.portfolio-info p {
    color: var(--text-color);
}

/* 技术优势部分 */
.tech-advantages {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.tech-category {
    flex: 1;
    min-width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    padding: 35px;
    transition: all var(--transition-speed) ease;
    border-top: 4px solid var(--primary-color);
}

.tech-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tech-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.tech-icon {
    width: 70px;
    height: 70px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.15);
}

.tech-icon i {
    font-size: 32px;
    color: var(--primary-color);
}

.tech-header h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin: 0;
}

.tech-list {
    margin-bottom: 25px;
}

.tech-list li {
    margin-bottom: 15px;
}

.tech-name {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background-color: var(--light-color);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    position: relative;
    animation: progressAnimation 1.5s ease-in-out;
}

@keyframes progressAnimation {
    from { width: 0; }
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
                rgba(255,255,255,0.2) 25%, 
                transparent 25%, 
                transparent 50%, 
                rgba(255,255,255,0.2) 50%, 
                rgba(255,255,255,0.2) 75%, 
                transparent 75%, 
                transparent);
    background-size: 20px 20px;
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    from { background-position: 0 0; }
    to { background-position: 20px 0; }
}

.tech-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.tech-description p {
    color: var(--text-color);
    line-height: 1.7;
}

.tech-percent {
    float: right;
    font-weight: 700;
    color: var(--primary-color);
}

.tech-more-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tech-more-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.tech-more-link:hover {
    color: var(--secondary-color);
}

.tech-more-link:hover i {
    transform: translateX(5px);
}

.team-section {
    background-color: #f9f9f9;
    position: relative;
}

.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/tech-bg.png');
    background-size: 200px;
    background-repeat: repeat;
    opacity: 0.03;
    z-index: 0;
}

.team-section .container {
    position: relative;
    z-index: 1;
}

/* 联系我们部分 */
.contact-section {
    background-color: var(--section-bg);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
    padding: 25px;
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
    border-left: 3px solid var(--primary-color);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    background-color: var(--primary-color);
}

.info-icon i {
    font-size: 24px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.info-item:hover .info-icon i {
    color: white;
}

.info-content h3 {
    font-size: 20px;
    color: var(--heading-color);
    margin-bottom: 8px;
}

.info-content p {
    margin-bottom: 5px;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: all var(--transition-speed) ease;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(255, 122, 0, 0.3);
}

/* 页脚部分 */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 60px 0 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: white;
}

.footer-logo span {
    color: var(--primary-color);
    font-weight: 700;
}

.footer-links h3,
.footer-services h3,
.footer-contact h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bbbbbb;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-services ul li {
    color: #bbbbbb;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #bbbbbb;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #444444;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: #bbbbbb;
}

/* 响应式设计 */
@media screen and (max-width: 1024px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
        text-align: center;
    }
    
    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-description {
        padding-left: 0;
        border-left: none;
        text-align: center;
        margin: 0 auto 30px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        box-shadow: 0 5px 10px var(--shadow-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-speed) ease;
    }
    .nav-links.active {
        max-height: 400px;
    }
    .nav-links li {
        margin: 0;
    }
    .nav-links a {
        display: block;
        padding: 15px;
        border-bottom: 1px solid var(--border-color);
    }
    .about-content {
        flex-direction: column;
    }
    .about-image {
        margin-right: 0;
        margin-bottom: 30px;
    }
    .contact-container {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .tech-advantages {
        flex-direction: column;
    }
    
    .tech-category {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .section-header h2 {
        font-size: 30px;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 22px;
    }
    .hero-image {
        margin-top: 20px;
    }
    .contact-info {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 30px 20px;
    }
    .cta-buttons {
        display: flex;
        flex-direction: column;
    }
    .btn-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
} 