/* 全局样式 - 深色极简，蓝强调 */
:root {
    --primary-color: #2563eb; /* 蓝色强调 */
    --secondary-color: #0a0a0a; /* 主背景黑 */
    --accent-color: #2563eb; /* 与主色一致 */
    --opens-color: #1e40af; /* Opens 深蓝 */
    --run-color: #60a5fa; /* Run 浅蓝 */
    --text-color: #fafafa; /* 白色字体 */
    --light-text: #a1a1aa; /* 次要文字灰 */
    --border-color: #262626; /* 深灰边框 */
    --card-bg: #171717; /* 卡片背景 */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
    --bg-gradient: #0a0a0a; /* 主页黑色背景，无紫 */
}

/* 让所有.run类的元素都显示为淡蓝色 */
.run {
    color: var(--run-color) !important;
}

/* 确保页眉和页脚的run类元素显示淡蓝色 */
body > header .run,
body > footer .run,
header .logo h1 a .run,
footer .footer-logo h3 .run {
    color: var(--run-color) !important;
}

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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-gradient);
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-details {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-details:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-download {
    background-color: var(--accent-color);
}

.btn-download:hover {
    background-color: #1d4ed8;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: var(--text-color);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

/* 头部样式 */
header {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
}

header .logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

header .logo h1 a {
    text-decoration: none;
    color: inherit;
}

header .logo .opens {
    color: var(--opens-color);
}

header .logo .run {
    color: var(--run-color);
}

nav {
    position: relative;
}

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

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    white-space: nowrap;
}

/* 移动端菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px 10px;
    z-index: 1001;
}

.menu-toggle:focus {
    outline: none;
}

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

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* 英雄区域样式 */
.hero {
    background: transparent;
    padding: 120px 0 60px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 500;
}

.hero-content h2:last-child {
    margin-bottom: 0;
}

.hero-content h2 .opens {
    color: var(--opens-color);
}

.hero-content h2 .run {
    color: var(--run-color);
}

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

.hero .btn {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    padding: 12px 30px;
}

.hero .btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.hero-content .highlight {
    color: var(--primary-color);
    font-weight: 700;
}

/* 产品部分样式 */
.products {
    padding: 150px 0 100px;
    background: transparent;
}

/* 产品列表布局 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

/* 与 Inputive 详情页 logo 一致：flex 容器 + 子图填满，圆角由容器裁剪 */
.product-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(37, 99, 235, 0.15);
    border-radius: 22%;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}

.product-icon img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-name h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--text-color);
    font-weight: 600;
}

.product-description p {
    margin: 0;
    color: var(--light-text);
    font-size: 1rem;
}

.product-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.product-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* 保留原有的product-card样式用于隐藏的产品 */
.product-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background-color: rgba(37, 99, 235, 0.1);
    padding: 20px;
    border-radius: 12px !important;
}

.product-card h3 {
    font-size: 1.5rem;
    margin: 20px 20px 10px;
    color: var(--text-color);
}

.product-card p {
    margin: 0 20px 20px;
    color: var(--light-text);
    min-height: 50px;
}

/* Banner样式 */
.banner {
    padding: 80px 0;
    background-color: white;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 3 / 2;
    box-shadow: var(--shadow);
}

.banner-slides {
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    display: block;
    text-decoration: none;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 2;
}

.banner-controls button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.banner-controls button:hover {
    background-color: white;
    box-shadow: var(--shadow);
}

.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* 关于我们部分 */
.about {
    padding: 100px 0;
    background: transparent;
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    color: var(--light-text);
}

/* 联系部分 */
.contact {
    padding: 100px 0;
    background: transparent;
}

.contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.35em;  /* 与普通两行文字间距一致 */
    align-items: center;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 12px;
}

.contact-item p {
    margin: 0;
    font-size: 1.1rem;
}

/* 页脚样式 */
footer {
    background-color: rgba(10, 10, 10, 0.98);
    color: white;
    padding: 70px 0 30px;
    border-top: 1px solid var(--border-color);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    position: relative;
    left: 0;
    right: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 5px;
}

.footer-logo .opens {
    color: var(--opens-color);
}

.footer-logo .run {
    color: var(--run-color);
}

.footer-logo span:last-child {
    color: white;
}

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

.footer-links h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

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

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

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

.footer-language {
    display: flex;
    flex-direction: column;
}

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

.footer-language h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-language ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-language ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
}

.footer-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-icp-inline {
    color: inherit;
    font-size: inherit;
}

/* 产品详情页样式 */
.product-detail {
    padding: 150px 0 100px;
}

.product-header {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.product-logo {
    width: 120px;
    height: 120px;
    margin-right: 30px;
    border-radius: 22%;
    object-fit: cover;
    flex-shrink: 0;
}

.product-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.product-info p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.product-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.product-section {
    margin-bottom: 50px;
}

.product-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.feature-item p {
    color: var(--light-text);
}

.documents {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.document-link {
    flex: 1;
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.document-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.document-link i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.document-link h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.document-link p {
    color: var(--light-text);
    margin-bottom: 15px;
}

/* 评论区样式 */
.comments {
    margin-top: 50px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.comments h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* 语言切换按钮样式 */
.language-switch {
    display: flex;
    align-items: center;
}

.language-switch a {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
    line-height: 1;
    border: 1px solid var(--border-color);
}

.language-switch a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
        margin-top: 30px;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    header {
        padding: 10px 0;
    }
    
    header .container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        border-top: 1px solid var(--border-color);
    }
    
    nav.active {
        max-height: 500px;
    }
    
    nav ul {
        flex-direction: column;
        padding: 15px;
        gap: 0;
    }
    
    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    nav ul li:last-child {
        margin-bottom: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }
    
    nav ul li:last-child a {
        border-bottom: none;
    }
    
    .banner-slider {
        aspect-ratio: 3 / 2;
    }
    
    .product-list {
        gap: 15px;
    }
    
    .product-item {
        flex-direction: column;
        text-align: center;
    }
    
    .product-content {
        align-items: center;
    }
    
    .product-actions {
        width: 100%;
        justify-content: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        width: 100%;
        max-width: 500px;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-header {
        flex-direction: column;
        text-align: center;
    }
    
    .product-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .product-buttons {
        justify-content: center;
    }
    
    .documents {
        flex-direction: column;
    }
    
    header .logo h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 50px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        margin-top: 50px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    header .logo h1 {
        font-size: 1.3rem;
    }
    
    nav ul li a {
        font-size: 0.9rem;
    }
} 