/* 全局样式 */
* {
    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;
}

/* 可访问性样式 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 跳转链接（键盘导航） */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3498db;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 6px;
}

/* 焦点样式优化 */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* 优雅简洁的导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    position: relative;
    z-index: 1001;
}

.nav-logo h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.nav-logo h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transition: width 0.3s ease;
}

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

.nav-logo h2:hover {
    color: #3498db;
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.2px;
}

.nav-link:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.nav-link.active:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* 简洁的移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(52, 152, 219, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: rgba(52, 152, 219, 0.15);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: #3498db;
    margin: 3px 0;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.mobile-menu-toggle.active .hamburger-line {
    background: #e74c3c;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* 简洁的移动端菜单 */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

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

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

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

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

.mobile-menu.active .mobile-nav-item:nth-child(1) {
    transition-delay: 0.05s;
}

.mobile-menu.active .mobile-nav-item:nth-child(2) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-nav-item:nth-child(3) {
    transition-delay: 0.15s;
}

.mobile-menu.active .mobile-nav-item:nth-child(4) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-item:nth-child(5) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-nav-item:nth-child(6) {
    transition-delay: 0.3s;
}

.mobile-nav-item:hover {
    background: rgba(52, 152, 219, 0.05);
}

.mobile-nav-link {
    display: block;
    padding: 18px 30px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: #3498db;
    transform: translateY(-50%);
    transition: height 0.3s ease;
}

.mobile-nav-link:hover::before,
.mobile-nav-link.active::before {
    height: 50%;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #3498db;
    padding-left: 40px;
}

.mobile-nav-link.active {
    background: rgba(52, 152, 219, 0.08);
    font-weight: 600;
}

.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: flex;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

/* 居中的邮箱联系区域 */
.contact-email-section {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-item-centered {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(52, 152, 219, 0.1);
    max-width: 500px;
    width: 100%;
    transition: all 0.3s ease;
}

.contact-item-centered:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(52, 152, 219, 0.2);
}

.contact-item-centered h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
}

/* 联系表单居中 */
.contact-form {
    max-width: 600px;
    width: 100%;
}

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

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

/* 邮箱防爬虫保护 */
.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;
}

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

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.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);
}

.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);
    }
}

/* 验证模态框样式 */
.verification-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.verification-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 15px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 20px;
    margin: 0;
}

.close-modal {
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 25px;
}

.modal-body p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

#hcaptchaWidget {
    display: flex;
    justify-content: center;
    width: 100%;
}

#hcaptchaWidget>div {
    margin: 0 auto;
}

.verification-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

#verificationInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#verificationInput:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.verify-btn {
    padding: 12px 20px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

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

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

.verification-alternatives {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.alt-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.alt-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.alt-btn {
    padding: 8px 16px;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.alt-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* 滑块验证样式 */
.slide-container {
    position: relative;
    margin: 20px 0;
}

.slide-track {
    width: 100%;
    height: 50px;
    background: #f1f3f4;
    border-radius: 25px;
    position: relative;
    border: 2px solid #e0e0e0;
    overflow: hidden;
}

.slide-thumb {
    width: 50px;
    height: 46px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border-radius: 23px;
    position: absolute;
    left: 2px;
    top: 2px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    user-select: none;
}

.slide-thumb:active {
    cursor: grabbing;
    transform: scale(1.05);
}

.slide-thumb.success {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
}

.slide-text {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* 点击验证样式 */
.click-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.click-number {
    width: 60px;
    height: 60px;
    border: 2px solid #ddd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    user-select: none;
}

.click-number:hover {
    border-color: #3498db;
    background: #e3f2fd;
}

.click-number.clicked {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

.click-number.correct {
    background: #27ae60;
    border-color: #229954;
    color: white;
}

.click-number.wrong {
    background: #e74c3c;
    border-color: #c0392b;
    color: white;
    animation: shake 0.5s ease;
}

/* 移动端触摸优化 */
.verification-modal * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#verificationInput {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 触摸反馈效果 */
.verify-btn:active,
.alt-btn:active,
.click-number:active {
    transform: scale(0.95);
}

.slide-thumb:active {
    transform: scale(1.1);
}

/* 导航栏专用动画效果 */
@keyframes navGlow {
    0% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }

    50% {
        box-shadow: 0 12px 40px rgba(102, 126, 234, 0.15);
    }

    100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

@keyframes menuSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes menuSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(100%) scale(0.9);
    }
}

@keyframes navItemPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* 通用动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* 成功动画 */
@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 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 !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-container {
        height: 70px;
        padding: 0 20px;
    }

    .nav-logo h2 {
        font-size: 20px;
    }

    .mobile-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        gap: 40px;
    }

    .contact-item-centered {
        padding: 30px 25px;
        margin: 0 20px;
    }

    .contact-item-centered h3 {
        font-size: 1.3rem;
    }

    .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-email-btn {
        padding: 10px 20px;
        font-size: 1rem;
        width: 100%;
        max-width: 200px;
    }

    .email-masked,
    .email-real {
        font-size: 1.2rem;
        text-align: center;
    }

    /* 移动端模态框优化 */
    .modal-content {
        width: 95%;
        margin: 10px;
    }

    .modal-header {
        padding: 15px 20px 10px;
    }

    .modal-body {
        padding: 20px;
    }

    .verification-input-group {
        flex-direction: column;
        gap: 15px;
    }

    #verificationInput {
        font-size: 16px;
        /* 防止iOS缩放 */
    }

    .verify-btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }

    .alt-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .alt-btn {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }

    .slide-track {
        height: 60px;
    }

    .slide-thumb {
        width: 60px;
        height: 56px;
        font-size: 18px;
    }

    .click-number {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }
}

/* 环境适配样式 */
.environment-indicator {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 9999;
    display: none;
    /* 默认隐藏，仅用于调试 */
}

/* 微信环境优化 */
.wechat-optimized .slide-thumb {
    background: linear-gradient(45deg, #1aad19, #2dc100);
}

.wechat-optimized .verify-btn {
    background: #1aad19;
}

.wechat-optimized .verify-btn:hover {
    background: #179b16;
}

/* QQ环境优化 */
.qq-optimized .click-number {
    border-color: #12b7f5;
}

.qq-optimized .click-number:hover {
    border-color: #0e9ce8;
    background: #e6f7ff;
}

.qq-optimized .verify-btn {
    background: #12b7f5;
}

.qq-optimized .verify-btn:hover {
    background: #0e9ce8;
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .click-number {
        width: 80px;
        height: 80px;
        font-size: 28px;
        border-width: 3px;
    }

    .slide-thumb {
        width: 70px;
        height: 66px;
        font-size: 20px;
    }

    .slide-track {
        height: 70px;
    }

    .verify-btn,
    .alt-btn {
        min-height: 48px;
        font-size: 18px;
    }

    .modal-content {
        border-radius: 20px;
    }

    .verification-input-group {
        gap: 20px;
    }

    #verificationInput {
        padding: 18px 20px;
        font-size: 18px;
        border-radius: 12px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .verification-modal {
        background-color: rgba(0, 0, 0, 0.8);
    }

    .modal-content {
        border: 2px solid #000;
    }

    .click-number {
        border-width: 3px;
    }

    .slide-track {
        border-width: 3px;
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {

    .verification-modal,
    .modal-content,
    .click-number,
    .slide-thumb,
    .verify-btn,
    .alt-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .verification-modal {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .modal-content {
        background: #2c3e50;
        color: #ecf0f1;
    }

    .modal-header {
        border-bottom-color: #34495e;
    }

    .modal-header h3 {
        color: #ecf0f1;
    }

    .close-modal {
        color: #bdc3c7;
    }

    .close-modal:hover {
        color: #e74c3c;
    }

    .modal-body p {
        color: #bdc3c7;
    }

    #verificationInput {
        background: #34495e;
        border-color: #4a5f7a;
        color: #ecf0f1;
    }

    #verificationInput:focus {
        border-color: #3498db;
        background: #3a526b;
    }

    .alt-btn {
        background: #34495e;
        color: #ecf0f1;
        border-color: #4a5f7a;
    }

    .alt-btn:hover {
        background: #3a526b;
        border-color: #5a6f8a;
    }

    .slide-track {
        background: #34495e;
        border-color: #4a5f7a;
    }

    .slide-text {
        color: #bdc3c7;
    }

    .click-number {
        background: #34495e;
        color: #ecf0f1;
        border-color: #4a5f7a;
    }

    .click-number:hover {
        background: #3a526b;
        border-color: #3498db;
    }

    .verification-alternatives {
        border-top-color: #34495e;
    }

    .alt-text {
        color: #95a5a6;
    }
}

/* 验证成功状态样式 */
.verification-success {
    animation: successPulse 0.6s ease;
}

.verification-success .modal-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-radius: 15px 15px 0 0;
}

.verification-success .modal-header h3 {
    color: white;
}

/* 验证失败状态样式 */
.verification-error {
    animation: shake 0.5s ease;
}

.verification-error .modal-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 15px 15px 0 0;
}

.verification-error .modal-header h3 {
    color: white;
}

/* 加载状态样式 */
.verification-loading .verify-btn {
    position: relative;
    color: transparent;
}

.verification-loading .verify-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* 环境特定的验证提示 */
.verification-hint {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 15px 0;
    font-size: 14px;
    color: #495057;
}

.verification-hint.wechat {
    background: #e8f5e8;
    border-color: #1aad19;
    color: #155724;
}

.verification-hint.qq {
    background: #e6f7ff;
    border-color: #12b7f5;
    color: #0c5460;
}

.verification-hint.mobile {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* 验证方式图标 */
.verification-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.verification-icon.math::before {
    content: '🔢';
}

.verification-icon.slide::before {
    content: '👆';
}

.verification-icon.click::before {
    content: '🎯';
}

/* 进度指示器 */
.verification-progress {
    width: 100%;
    height: 4px;
    background: #f1f3f4;
    border-radius: 2px;
    margin: 15px 0;
    overflow: hidden;
}

.verification-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* 验证统计信息 */
.verification-stats {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #dee2e6;
}

/* 无障碍优化 */
.verification-modal[aria-hidden="true"] {
    display: none !important;
}

.verification-modal[aria-hidden="false"] {
    display: flex !important;
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .click-number,
    .slide-thumb,
    .verify-btn {
        border-width: 0.5px;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 500px) {
    .modal-content {
        max-height: 95vh;
        width: 80%;
        max-width: 600px;
    }

    .modal-body {
        padding: 15px 25px;
    }

    .click-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }

    .click-number {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

/* 团队信息扩展块 */
.info-block {
    margin-top: 16px;
    background: #ffffff;
    border: 1px solid #e6f0fb;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.info-link {
    display: inline-block;
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dashed rgba(52, 152, 219, 0.6);
    transition: color 0.2s ease;
}

.info-link:hover {
    color: #2980b9;
}

.info-media {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

.info-thumb {
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.qr-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.info-desc {
    margin-top: 12px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    text-align: left;
}

.info-desc.center {
    text-align: center;
}

.link-list {
    list-style: none;
    margin: 8px 0 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.link-item {
    display: grid;
    grid-template-columns: 24px auto auto;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 12px;
}

.link-icon {
    font-size: 18px;
}

.link-tip {
    justify-self: end;
    font-size: 0.85rem;
    color: #7f8c8d;
}

@media (max-width: 768px) {
    .info-block {
        padding: 14px;
    }

    .info-title {
        font-size: 1rem;
    }

    .info-desc {
        font-size: 0.95rem;
        text-align: left;
    }

    .link-item {
        grid-template-columns: 24px auto;
    }

    .link-tip {
        display: none;
    }
}