/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: #c19b2c;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* 卡片样式 */
.card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* 导航栏样式 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.header-scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition);
    padding: 10px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--dark-color);
    transition: var(--transition);
}

/* 页面内容区域 */
.page-content {
    display: none;
    padding-top: 120px;
    min-height: 100vh;
}

.page-content.active {
    display: block;
}

/* 英雄区域样式 */
.herohome {
    padding: 200px 0 195px;
    background: linear-gradient(rgba(10, 36, 99, 0.7), rgba(10, 36, 99, 0.7)), url('../assets/images/首页.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.herohome-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.herohome-title {
    font-size: 3.0rem;
    margin-bottom: 20px;
    color: white;
}

.herohome-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* 基础英雄区域样式 */
.hero {
    padding: 150px 150px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 36, 99, 0.85), rgba(10, 36, 99, 0.85));
    z-index: 1;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transition: transform 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
}

/* 特定页面的背景类 */
.product-hero .hero-bg {
    background-image: url('../assets/images/核心业务.jpg');
}

.culture-hero .hero-bg {
    background-image: url('../assets/images/企业文化.jpg');
}

.people-hero .hero-bg {
    background-image: url('../assets/images/人才培养.jpg');
}

.notice-hero .hero-bg {
    background-image: url('../assets/images/公示公告.jpg');
}

/* 关于我们样式 */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.about-image img {
    width: 100%;
    height: auto;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* 证书网格 */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.certificate-item {
    text-align: center;
}

/* 产品展示样式 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

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

.product-image {
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-title {
    font-size: 20px;
    margin-bottom: 15px;
}

/* 企业优势样式 */
.advantages {
    margin-top: 80px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.advantage-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    text-align: center;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.advantage-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.advantage-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* 企业文化样式 */
.culture-tagline {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.culture-tag {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
}

.culture-tag:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

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

.culture-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.culture-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.culture-section {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.culture-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.culture-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--secondary-color);
}

.culture-section h2 {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.culture-section h2 i {
    margin-right: 15px;
    color: var(--secondary-color);
    font-size: 1.5em;
}

.culture-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* 企业社会责任样式 */
.csr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.csr-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
}

.csr-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.csr-image {
    height: 200px;
    overflow: hidden;
}

.csr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.csr-info {
    padding: 25px;
}

.csr-title {
    font-size: 20px;
    margin-bottom: 15px;
}

/* 公告样式 */
.announcement-list {
    max-width: 800px;
    margin: 0 auto;
}

.announcement-item {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.announcement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 公告内容链接样式 */
.announcement-content-link {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.announcement-content-link:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.announcement-content-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 内容链接包装器 */
.announcement-content-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

.announcement-content-wrapper:hover {
    text-decoration: none;
}

.announcement-content-wrapper p {
    margin: 0 0 10px 0;
    line-height: 1.6;
    color: #333;
}

.announcement-content-wrapper:hover p {
    color: #0066cc;
}

/* 链接图标提示 */
.announcement-content-link::after {
    content: "🔗";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #0066cc;
}

.announcement-content-link:hover::after {
    opacity: 0.7;
}

/* 公告内容可点击区域样式 */
.announcement-content-clickable {
    transition: background-color 0.3s ease;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.announcement-content-clickable:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.announcement-content-clickable:active {
    background-color: rgba(0, 123, 255, 0.2);
}

/* 可点击区域内的链接样式调整 */
.announcement-content-clickable a {
    color: #0066cc;
    text-decoration: underline;
}

.announcement-content-clickable a:hover {
    color: #004499;
}

/* 公告头部 */
.announcement-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
    .announcement-header {
        flex-direction: row;
        align-items: center;
    }
}

.announcement-date {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.announcement-title {
    font-size: 18px;
    margin-bottom: 10px;
}

/* 公告文件区域 */
.announcement-files {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.announcement-files h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 1rem 0;
}

/* 文件列表 */
.files-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* 文件项 */
.file-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    max-width: 250px;
}

.file-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.file-item i {
    margin-right: 0.5rem;
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.file-item span {
    font-size: 0.875rem;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.load-more-container.hidden {
    display: none;
}

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

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

.footer-logo {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

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

.footer-description {
    margin-bottom: 20px;
    opacity: 0.8;
}

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

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

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

.footer-title {
    font-size: 18px;
    margin-bottom: 25px;
    color: white;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

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

.footer-link {
    margin-bottom: 12px;
    opacity: 0.8;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-link:hover {
    opacity: 1;
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

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

/* 文件查看弹窗样式 */
.file-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

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

.file-modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.file-modal.active .file-modal-content {
    transform: scale(1);
}

.file-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eaeaea;
    background: #f8f9fa;
}

.file-modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.file-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.file-modal-close:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.file-modal-body {
    padding: 2rem;
}

.file-viewer {
    width: 100%;
    height: 60vh;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.file-modal-actions {
    display: flex;
    justify-content: flex-end;
}

.file-modal-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .file-modal-header {
        padding: 1rem 1.5rem;
    }

    .file-modal-body {
        padding: 1.5rem;
    }

    .file-viewer {
        height: 50vh;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .file-modal-content {
        background: #2c3e50;
        color: #ecf0f1;
    }

    .file-modal-header {
        background: #34495e;
        border-bottom-color: #4a6278;
    }

    .file-modal-title {
        color: #ecf0f1;
    }

    .file-viewer {
        border-color: #4a6278;
    }
}

/* 图片弹窗 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #bbb;
}

.caption-container {
    text-align: center;
    padding: 10px 20px;
    color: white;
}

.modal-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
   display: block;
   transition: transform 0.5s ease;
}

.modal-image:hover {
   transform: scale(1.02);
}

/* 二维码并排布局 */
.qrcode-wrapper {
   display: flex;
    gap: 20px;
   align-items: center;
   margin-top: 15px;
}

.qrcode-container {
    flex: 0 0 auto;
}

/* DOCX加载指示器样式 */
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.text-primary {
    color: #007bff;
}

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

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

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