/* ===========================================
   VTS 智能仿真平台 - 公共样式文件
   包含：全局样式、导航栏、页脚、按钮等通用组件
   =========================================== */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================================
   导航栏样式
   =========================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    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;
}

.nav-logo h2 {
    color: #3498db;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #2c3e50;
    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%;
}

.nav-link.active {
    color: #3498db;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* ===========================================
   按钮样式
   =========================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.nav-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* 按钮波纹效果 */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===========================================
   VTS品牌样式
   =========================================== */
.vts-brand {
    display: inline-block;
    margin-right: 0.8rem;
    font-weight: 700;
    color: #3498db;
    position: relative;
}

.nav-logo .vts-brand {
    font-size: 1.2em;
    margin-right: 0.6rem;
}

.vts-brand::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 1px;
    opacity: 0.7;
}

/* ===========================================
   页面标题横幅样式
   =========================================== */
.page-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
    text-align: center;
}

.page-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.page-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    line-height: 1.6;
}

/* ===========================================
   联系我们样式
   =========================================== */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
}

/* 微信相关样式 */
.wechat-item {
    position: relative;
    cursor: pointer;
}

.wechat-number {
    font-weight: 600;
    color: #2c3e50;
    user-select: all;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px dashed #3498db;
    transition: all 0.3s ease;
}

.wechat-number:hover {
    background: #e3f2fd;
    border-color: #2980b9;
}

.wechat-qr {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.wechat-qr::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.wechat-item:hover .wechat-qr {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.qr-image {
    width: 120px;
    height: 120px;
    display: block;
}

/* 复制成功提示 */
.copy-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #27ae60;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
}

/* ===========================================
   页脚样式
   =========================================== */
.vts-footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 0;
}

.vts-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-content p {
    margin: 0;
    font-size: 1rem;
    color: #ecf0f1;
}

.vts-beian {
    display: flex;
    gap: 20px;
    align-items: center;
}

.vts-beian a {
    color: #bdc3c7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.vts-beian a:hover {
    color: #3498db;
}

.vts-beian img {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

/* ===========================================
   汉堡菜单样式
   =========================================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #2c3e50;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===========================================
   通用动画样式
   =========================================== */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* ===========================================
   键盘导航支持
   =========================================== */
.keyboard-navigation *:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ===========================================
   响应式设计 - 移动端优化
   =========================================== */
@media (max-width: 768px) {
    /* 导航栏移动端适配 */
    .navbar {
        padding: 0.8rem 0;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        gap: 1.5rem;
        transition: left 0.3s ease;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 90%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(52, 152, 219, 0.1);
        transform: translateX(5px);
    }
    
    .nav-btn {
        margin: 1rem 0;
        padding: 12px 24px;
        font-size: 1rem;
        width: 80%;
    }
    
    /* VTS品牌移动端优化 */
    .nav-logo .vts-brand {
        margin-right: 0.4rem;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    /* 联系我们移动端优化 */
    .contact-details {
        flex-direction: column;
        align-items: center;
    }
    
    .wechat-qr {
        top: -140px;
    }
    
    /* 页脚移动端优化 */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .vts-beian {
        flex-direction: column;
        gap: 10px;
    }
    
    .vts-beian a {
        font-size: 0.85rem;
    }
}

/* ===========================================
   横屏模式优化
   =========================================== */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-menu {
        height: calc(100vh - 60px);
        top: 60px;
        padding-top: 1rem;
        gap: 1rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}