:root {
    --primary-color: #113055;
    --accent-color: #F1AE29;
    --text-color: #333;
    --white: #fff;
    --gray: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



/* 主页图片组关闭按钮样式 */
.image-gallery-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
}

.image-gallery-close-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

body {
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color .3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
}.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* 更新模态框样式，增加标题栏 */
/* 更新模态框样式 */
.modal-content {
    background: white;
    padding: 0;
    border-radius: 10px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 模态框标题栏 */
.modal-header {
  padding: 0 !important; /* 使用!important确保样式优先级 */
  background-color: transparent !important; /* 去掉背景色 */
  color: var(--primary-color) !important; /* 将文字颜色改为站点主色 */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  font-weight: bold !important; /* 标题文字粗体 */
  border-top-left-radius: 10px !important; /* 确保标题栏左上角圆角与模态框一致 */
  border-top-right-radius: 10px !important; /* 确保标题栏右上角圆角与模态框一致 */
}

.modal-header h2,
.modal-header span {
  font-weight: bold !important; /* 确保标题元素是粗体 */
  padding: 0.5rem 1rem !important; /* 在标题元素上添加内边距，保持内容可读性 */
  margin: 0 !important;
}

.modal-header span {
  margin-right: auto !important; /* 确保标题文字靠左 */
}

/* 模态框内容区域 */
.modal-body {
    padding: 1.5rem !important;
    border-top: none !important;
}

/* 模态框关闭按钮样式 */
.modal-close-btn {
    width: 40px;
    height: 40px;
    background-color: transparent;
    color: var(--primary-color); /* 将关闭按钮颜色改为站点主色 */
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    margin: 0;
}

/* 确保模态框内容容器样式正确 */
.modal-content {
    background: white !important;
    padding: 0 !important;
    border-radius: 10px !important;
    max-width: 400px !important;
    width: 90% !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.modal-body p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    word-wrap: break-word;
}

/* 模态框关闭按钮悬停效果 */
.modal-close-btn:hover {
    background-color: transparent;
    color: var(--accent-color);
}

@media (max-width:768px) {
    .menu-toggle {
        display:block;
    }
}

.hero {
    background: linear-gradient(rgba(17,48,85,.9), rgba(17,48,85,.7)), url('pic/indexbg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: .7rem 1.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all .3s;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.hero .btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid transparent;
    padding: .7rem 1.26rem;
}

.hero .btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: 1px solid var(--accent-color);
}

/* 调整hero区域按钮图标与文字间距，再减少3px */
.hero-btn i {
    margin-right: 5px;
}

.section {
    padding: 2.5rem 0;
    flex: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 1.8rem;
    color: var(--primary-color);
    font-size: 2rem;
}

.download-card {
    background-color: var(--gray);
    padding: 1.8rem;
    border-radius: 10px;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
    line-height: 1.6;
}

.download-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    padding-top: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}
.download-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1rem;
  }
  
  .version-info {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: #666;
  }
.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
  }
  
  .download-options .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
.features .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
  
  /* 下载按钮使用全局.btn样式基础上增加卡片内样式调整 */
  .download-notes {
    background-color: var(--gray);
    padding: 1.4rem;
    border-radius: 10px;
    margin-top: 2rem;
  }
.download-notes h4 {
    margin-bottom: 1rem;
  }
  
  .download-notes ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
.download-notes li {
    padding-left: 1.2rem;
    margin-bottom: 0.6rem;
    position: relative;
  }
  
  .download-notes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 0.75rem;
    height: 0.75rem;
    background-color: var(--primary-color);
    border-radius: 50%;
  }.faq-section{background-color:var(--gray);padding:2rem;border-radius:10px;margin-bottom:2rem}
.faq-question.btn{width:100%;text-align:left;justify-content:space-between;display:flex;align-items:center;margin-bottom:0.5rem}
.faq-question.btn::after{content:'+';font-size:1.2rem}.help-section{background-color:var(--gray);padding:2rem;border-radius:10px;max-width:1200px;margin:0 auto}
.support-card{padding:1.8rem;margin-bottom:1.5rem;border-radius:8px;background-color:white}
.support-card h4{font-size:1.25rem;margin-bottom:0.8rem;color:var(--primary-color);font-weight:600}
.support-card p{font-size:1rem;line-height:1.7;margin-bottom:0.6rem}
.support-card .small{font-size:0.9rem;color:#666;line-height:1.6;margin-top:0.5rem}.features{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}.feature-card{background-color:var(--gray);padding:2rem;border-radius:10px;text-align:center;transition:transform .3s}.feature-card i, .download-card i{font-size:3rem;color:var(--primary-color);margin-bottom:1rem}.feature-card h3{margin-bottom:1rem}.feature-card p{margin-bottom:1.5rem}/* 图片组详情展示区域样式 */
.gallery-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.gallery-content {
    background: white;
    padding: 1rem;
    border-radius: 10px;
    width: calc(100vw - 80px);
    height: calc(100vh - 80px);
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    position: relative;
}

.gallery-content h3 {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.gallery-images {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    min-height: 500px;
    height: 100%;
    flex: 1;
    border-radius: 8px;
    padding: 0;
}

.gallery-images img,
.gallery-images video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0.5em 1.5em rgba(0,0,0,0.2), 0 1em 2.5em rgba(0,0,0,0.15);
    display: block;
}

/* 视频播放器样式 */
#currentVideo {
    border: none;
    outline: none;
}

.gallery-btn {
    position: absolute;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.gallery-btn:hover {
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.indicator-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 10px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.indicator-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* 基础关闭按钮样式 */
.close-gallery-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.close-gallery-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* 确保内容区域有足够的空间 */
.gallery-content,
.modal-content {
    position: relative;
    padding-top: 20px;
    padding-right: 20px;
}

/* 技术支持表单特定样式 */
.support-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-actions {
    margin-top: auto;
    padding-top: 30px;
}

.form-actions .btn {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
}

footer{background-color:var(--primary-color);color:var(--white);padding:3rem 0 1rem}.footer-content{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:2rem;margin-bottom:2rem}.footer-col h3{margin-bottom:1rem;color:var(--white)}.footer-col ul{list-style:none}.footer-col ul li{margin-bottom:.5rem}.footer-col a{color:var(--white);text-decoration:none;transition:color .3s}.footer-col a:hover{color:var(--accent-color)}.footer-col ul li i{font-size:1.2rem;width:24px;margin-right:8px;vertical-align:middle}.copyright{text-align:center;padding-top:2rem;border-top:1px solid rgba(255,255,255,.1);font-size:0.8rem}.copyright a{color:#ccc;text-decoration:none}.copyright a:hover{text-decoration:none}@media (max-width:768px){.nav-links{flex-direction:column;position:absolute;top:70px;left:-100%;background-color:var(--primary-color);width:100%;text-align:center;transition:.3s;padding:2rem 0}.nav-links li{margin:1rem 0}.hero h1{font-size:2.2rem}}/* 技术支持表单美化样式 */
.support-form-container {
    padding: 30px;
    width: 90%;
    max-width: 500px;
    height: auto;
    max-height: 90vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.support-form-container h3 {
    text-align: center;
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 0;
    color: var(--primary-color);
    font-size: 1.6rem;
    line-height: 1.2;
}

/* 模态框动画效果 */
.gallery-container {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-container.active {
    opacity: 1;
    visibility: visible;
}

.gallery-content {
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.gallery-container.active .gallery-content {
    transform: translateY(0);
}

/* 加载状态按钮样式 */
.btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

.btn.loading.btn-outline::after {
    border-top-color: var(--primary-color);
    border-color: rgba(17, 48, 85, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.support-form {
    width: 100%;
}

.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.form-group:focus-within label {
    color: var(--accent-color);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    color: var(--text-color);
    background-color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    font-family: inherit;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #a0aec0;
    font-size: 15px;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(17, 48, 85, 0.1);
    transform: translateY(-1px);
}

.form-input:hover,
.form-textarea:hover {
    border-color: #cbd5e0;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 300px;
    line-height: 1.6;
}

.form-actions {
    text-align: center;
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.form-actions .btn {
    flex: 1;
    max-width: 150px;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.3s;
    text-align: center;
}

.form-actions .btn:first-child {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid transparent;
}

.form-actions .btn:first-child:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.form-actions .btn:last-child {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.form-actions .btn:last-child:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}