/* 全局样式 */
:root {
    --primary-color: #2563eb;
    --secondary-color: #3b82f6;
    --accent-color: #8b5cf6;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

/* 头部样式 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.5em;
}

.lang-en-text {
    display: none;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin: 0 15px;
}

nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
    transition: var(--transition);
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
}

nav a:hover:after {
    width: 100%;
}

nav a:hover {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
}

.language-switch {
    display: flex;
    margin-right: 20px;
    background: #f1f5f9;
    border-radius: 30px;
    padding: 4px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-btn.active {
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 25px;
    width: 180px;
    text-align: center;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.4);
}

/* Hero 区域 */
.hero {
    padding-top: 140px;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    z-index: 2;
    position: relative;
}

.hero-image:before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(var(--primary-color), transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 1;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(0.9); opacity: 0.15; }
}

/* 功能区域 */
.features {
    background-color: #fff;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 50px;
}

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

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
    border-radius: 20px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover:before {
    opacity: 0.05;
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.7;
}

/* 新增功能样式 - 突出显示 */
.feature-card.new-feature {
    border: none !important;
    position: relative;
}

.feature-card.new-feature:after {
    content: 'NEW';
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: white;
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: bold;
    display: none !important; /* 移除NEW标签 */
}

/* 新增: 触控模式图标样式 */
.feature-card .fa-hand-pointer {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 工作原理区域 */
.how-it-works {
    background: linear-gradient(to bottom, #f0f9ff, #e0f2fe);
    position: relative;
    overflow: hidden;
}

.how-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.how-content {
    flex: 1;
}

.how-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.how-image img {
    max-width: 100%;
    height: auto;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-content h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.step-content p {
    color: var(--gray-color);
}

/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    padding: 40px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.qr-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.qr-code {
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.qr-code img {
    width: 200px;
    height: 200px;
    display: block;
}

.download-text {
    text-align: center;
    color: var(--gray-color);
    line-height: 1.8;
}

.download-text strong {
    color: var(--dark-color);
}

/* 页脚样式 */
footer {
    background: var(--dark-color);
    color: white;
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info {
    padding-right: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--primary-color);
    margin-right: 10px;
}

.footer-info p {
    color: #94a3b8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
    flex-direction: row; /* 改为行排列 */
    justify-content: center; /* 水平居中 */
    padding: 12px; /* 增加内边距使视觉效果更好 */
}

.copyright p {
    margin: 0 8px; /* 调整段落间距 */
    white-space: nowrap; /* 防止文字换行 */
}

/* 为最后一个段落增加一点右边距 */
.copyright p:last-child {
    margin-right: 5px;
}

.copyright a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.copyright a:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .how-container {
        flex-direction: column;
    }

    nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .feature-card {
        padding: 25px;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .header-actions {
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
}

/* 语言切换 */
html.lang-zh .lang-en-text {
    display: none;
}

html.lang-en .lang-zh-text {
    display: none;
}

html.lang-zh .lang-en-text,
html.lang-en .lang-zh-text {
    display: none;
}

html.lang-zh .lang-zh-text,
html.lang-en .lang-en-text {
    display: block;
}