/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

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

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* 移动端菜单按钮 - 圆点动画方案 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: scale(1.1);
}

.hamburger-line {
    width: 6px;
    height: 6px;
    background: #3498db;
    margin: 2px 0;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(10px) scale(0.8);
    background: #e74c3c;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    transform: scale(1.5);
    background: #e74c3c;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-10px) scale(0.8);
    background: #e74c3c;
}

/* 移动端菜单 - 淡入缩放方案 */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.98) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid rgba(240, 240, 240, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu.active .mobile-nav-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-item:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-nav-item:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-item:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-nav-item:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-item:nth-child(6) { transition-delay: 0.35s; }

.mobile-nav-link {
    display: block;
    padding: 18px 30px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.4s ease;
    border-radius: 12px;
    margin: 5px 15px;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 0;
    background: linear-gradient(45deg, #3498db, #2ecc71);
    border-radius: 2px;
    transform: translateY(-50%);
    transition: height 0.3s ease;
}

.mobile-nav-link:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    transform: translateX(10px);
}

.mobile-nav-link:hover::before {
    height: 60%;
}

/* 首页横幅 */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* 关于我们 */
.about {
    padding: 100px 0;
    background: #f8f9fa;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 30px;
}

.feature {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* 团队介绍 */
.team {
    padding: 100px 0;
    background: white;
}

.team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background: #f8f9fa;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: #3498db;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.2);
}

.member-avatar {
    font-size: 4rem;
    margin-bottom: 20px;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.member-role {
    color: #3498db;
    font-weight: bold;
    margin-bottom: 15px;
}

.member-desc {
    color: #666;
    line-height: 1.6;
}

/* 服务项目 */
.services {
    padding: 100px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* 作品展示 */
.portfolio {
    padding: 100px 0;
    background: white;
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.portfolio-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 60px;
}

.portfolio-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.portfolio-featured:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.portfolio-image-large {
    height: 400px;
    background: url('x6_01.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.portfolio-placeholder-large {
    font-size: 6rem;
    opacity: 0.3;
    transition: all 0.3s ease;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-image-large:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-image-large:hover .portfolio-placeholder-large {
    transform: scale(1.1);
}

.view-project-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-project-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.portfolio-info {
    padding: 40px;
}

.portfolio-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #2c3e50;
    line-height: 1.3;
}

.portfolio-category {
    color: #3498db;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    background: rgba(52, 152, 219, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.portfolio-desc {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.portfolio-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-weight: 500;
}

.feature-icon {
    font-size: 1.2rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: #3498db;
    color: white;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* 联系我们 */
.contact {
    padding: 100px 0;
    background: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    gap: 30px;
}

.contact-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.contact-item p {
    font-size: 1.1rem;
    color: #666;
}

/* 电话防爬虫保护 */
.phone-protection {
    position: relative;
}

.phone-masked,
.phone-real {
    font-size: 1.1rem;
    color: #666;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.phone-real {
    color: #3498db;
    font-weight: 600;
    animation: phoneReveal 0.5s ease-in-out;
}

/* 邮箱防爬虫保护 */
.email-protection {
    position: relative;
}

.email-masked,
.email-real {
    font-size: 1.1rem;
    color: #666;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.email-real {
    color: #e74c3c;
    font-weight: 600;
    animation: emailReveal 0.5s ease-in-out;
}

/* 地址防爬虫保护 */
.address-protection {
    position: relative;
}

.address-masked,
.address-real {
    font-size: 1.1rem;
    color: #666;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.address-real {
    color: #9b59b6;
    font-weight: 600;
    animation: addressReveal 0.5s ease-in-out;
}

@keyframes phoneReveal {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes emailReveal {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes addressReveal {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-phone-btn {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
    margin-top: 5px;
}

.reveal-phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    background: linear-gradient(45deg, #2980b9, #27ae60);
}

.reveal-phone-btn:active {
    transform: translateY(0);
}

.reveal-phone-btn.verified {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    cursor: default;
}

.reveal-phone-btn.verified:hover {
    transform: none;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.reveal-email-btn {
    background: linear-gradient(45deg, #e74c3c, #f39c12);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    margin-top: 5px;
}

.reveal-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    background: linear-gradient(45deg, #c0392b, #e67e22);
}

.reveal-email-btn:active {
    transform: translateY(0);
}

.reveal-email-btn.verified {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    cursor: default;
}

.reveal-email-btn.verified:hover {
    transform: none;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.reveal-address-btn {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(155, 89, 182, 0.3);
    margin-top: 5px;
}

.reveal-address-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
    background: linear-gradient(45deg, #8e44ad, #732d91);
}

.reveal-address-btn:active {
    transform: translateY(0);
}

.reveal-address-btn.verified {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    cursor: default;
}

.reveal-address-btn.verified:hover {
    transform: none;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.contact-form {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.contact-form form {
    display: grid;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-form button {
    background: #3498db;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #2980b9;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.footer-left p {
    margin: 0;
}

.icp-info {
    font-size: 0.85rem;
    color: #bdc3c7;
    opacity: 0.8;
}

.icp-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.icp-link:hover {
    color: #ecf0f1;
    text-decoration: underline;
}

.footer-sponsor {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sponsor-text {
    margin: 0;
    font-size: 0.9rem;
    color: #bdc3c7;
}

.sponsor-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sponsor-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.sponsor-logo {
    height: 20px;
    width: auto;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-left {
        text-align: center;
    }
    
    .footer-sponsor {
        flex-direction: column;
        gap: 8px;
    }
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .portfolio {
        padding: 60px 0;
    }
    
    .portfolio h2 {
        font-size: 2rem;
    }
    
    .portfolio-showcase {
        margin: 0 20px;
    }
    
    .portfolio-featured {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .portfolio-image-large {
        height: 250px;
        order: 2;
    }
    
    .portfolio-placeholder-large {
        font-size: 4rem;
    }
    
    .portfolio-info {
        padding: 30px 20px;
        order: 1;
    }
    
    .portfolio-info h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .portfolio-desc {
        font-size: 1rem;
    }
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-container {
        height: 60px;
    }
    
    .nav-logo h2 {
        font-size: 20px;
    }
    
    .mobile-menu {
        top: 60px;
        height: calc(100vh - 60px);
    }
    
    .mobile-nav-link {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        width: 35px;
        height: 35px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0 !important;
    }
    
    /* 移动端额外优化 */
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .feature {
        padding: 20px;
    }
    
    .team-member {
        padding: 20px;
    }
    
    .service-item {
        padding: 20px;
    }
    
    .contact-form input,
    .contact-form textarea {
        font-size: 16px; /* 防止iOS缩放 */
    }
    
    .tech-tag {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .view-project-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* 移动端电话保护优化 */
    .reveal-phone-btn {
        padding: 10px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 200px;
    }
    
    .phone-masked,
    .phone-real {
        font-size: 1.2rem;
        text-align: center;
    }
    
    /* 移动端邮箱保护优化 */
    .reveal-email-btn {
        padding: 10px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 200px;
    }
    
    .email-masked,
    .email-real {
        font-size: 1.2rem;
        text-align: center;
    }
    
    /* 移动端地址保护优化 */
    .reveal-address-btn {
        padding: 10px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 200px;
    }
    
    .address-masked,
    .address-real {
        font-size: 1.2rem;
        text-align: center;
    }
}