/* style.css - 杭州试比高信息科技有限公司官网统一样式表 */

/* 全局样式 */
:root {
    --ocean-blue: #1a5f7a;
    --light-blue: #57a6c3;
    --sea-foam: #87ceeb;
    --wave-white: #f0f8ff;
    --sunrise-orange: #ff9a3d;
    --sand-beige: #f5e8c8;
    --text-dark: #2c3e50;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background-color: var(--sunrise-orange);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 154, 61, 0.3);
}

.btn:hover {
    background-color: #e88a2a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 154, 61, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--ocean-blue);
    color: var(--ocean-blue);
}

.btn-outline:hover {
    background-color: var(--ocean-blue);
    color: white;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--ocean-blue);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--sea-foam), var(--light-blue));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* 导航栏样式 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
            height: 50px;
            margin-right: 12px;
        }

.logo h1 {
    font-size: 1.8rem;
    color: var(--ocean-blue);
    font-weight: 700;
}

.logo span {
    color: var(--sunrise-orange);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 35px;
    position: relative;
}

.nav-links a {
    font-weight: 600;
    padding: 5px 0;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--sunrise-orange);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover:after, .nav-links a.active:after {
    width: 100%;
}

.nav-links a.active {
    color: var(--ocean-blue);
}

/* 首页英雄区域 */
.hero {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--light-blue) 100%);
    color: white;
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.seagull {
    position: absolute;
    font-size: 2rem;
    color: white;
    opacity: 0.7;
    animation: fly 15s linear infinite;
}

.seagull:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.seagull:nth-child(2) {
    top: 30%;
    left: 20%;
    animation-delay: 2s;
}

.seagull:nth-child(3) {
    top: 15%;
    left: 50%;
    animation-delay: 4s;
}

.seagull:nth-child(4) {
    top: 25%;
    left: 70%;
    animation-delay: 6s;
}

.seagull:nth-child(5) {
    top: 35%;
    left: 85%;
    animation-delay: 8s;
}

@keyframes fly {
    0% {
        transform: translateX(-100px) translateY(0);
    }
    50% {
        transform: translateX(calc(100vw + 100px)) translateY(-20px);
    }
    100% {
        transform: translateX(calc(100vw + 100px)) translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

/* 关于我们区域 */
.about {
    background-color: var(--wave-white);
    position: relative;
}


.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--ocean-blue);
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    height: 450px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--sea-foam) 0%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}



/* 服务区域 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    text-align: center;
    border-bottom: 5px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--sea-foam), var(--light-blue));
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--ocean-blue);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.7rem;
    margin-bottom: 20px;
    color: var(--ocean-blue);
}

.service-card p {
    color: #666;
    font-size: 1.05rem;
}

/* 团队区域 */
.team {
    background-color: var(--wave-white);
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    text-align: center;
    background-color: white;
    border-radius: 15px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sea-foam) 0%, var(--light-blue) 100%);
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--ocean-blue);
}

.team-member p {
    color: #666;
}

/* 产品中心页面样式 */
.products-hero {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--light-blue) 100%);
    color: white;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.product-categories {
    display: flex;
    justify-content: center;
    margin-top: 5px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 10px 20px;
    margin: 0 10px 10px;
    background-color: transparent;
    border: 1px solid white;
    color: white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active, .category-btn:hover {
    background-color: white;
    color: var(--ocean-blue);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--sea-foam) 0%, var(--light-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--ocean-blue);
}

.product-info p {
    color: #666;
    margin-bottom: 20px;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--sunrise-orange);
    margin-bottom: 15px;
}

/* 服务特色区域 */
.features {
    background-color: var(--wave-white);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
}

.feature-icon {
    font-size: 3rem;
    color: var(--ocean-blue);
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--ocean-blue);
}

.feature-item p {
    color: #666;
}

/* 联系我们页面样式 */
.contact-hero {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, var(--light-blue) 100%);
    color: white;
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    background-color: var(--wave-white);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--ocean-blue);
    margin-top: 5px;
    min-width: 50px;
    text-align: center;
}

.contact-details h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--ocean-blue);
}

.contact-details p {
    color: #666;
}

.contact-form {
    background-color: var(--wave-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 3px rgba(87, 166, 195, 0.2);
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.map-container {
    margin-top: 50px;
    height: 400px;
    background: linear-gradient(135deg, var(--sea-foam) 0%, var(--light-blue) 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 95, 122, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.map-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.map-overlay p {
    font-size: 1.1rem;
    max-width: 500px;
}

.faq {
    background-color: var(--wave-white);
    position: relative;
}

.faq:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%231a5f7a"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
    transform: rotate(180deg);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-5px);
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--ocean-blue);
}

.faq-item p {
    color: #666;
}

/* 页脚样式 */
footer {
    background: linear-gradient(135deg, var(--ocean-blue) 0%, #0f4c64 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23f0f8ff"></path></svg>');
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--sunrise-orange);
    position: relative;
    display: inline-block;
}

.footer-column h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--sea-foam);
    border-radius: 2px;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li i {
    margin-right: 10px;
    color: var(--sea-foam);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    opacity: 0.8;
}

/* 页面内容区域 */
.page-content {
    padding-top: 120px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .hero h1, .products-hero h1, .contact-hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .nav-links {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links li {
        margin: 8px 15px;
    }
    
    .hero h1, .products-hero h1, .contact-hero h1 {
        font-size: 2.3rem;
    }
    
    .hero p, .products-hero p, .contact-hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .contact-item {
        padding: 20px;
    }
}