/*
 * 天问科技页面增强样式
 * 现代化布局和视觉效果
 */

/* 公司LOGO样式 */
.company-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 1em;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
}

.logo-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1em;
}

.logo-title h1 {
    margin: 0;
    text-align: center;
}

/* Header中的LOGO样式 */
.header-logo {
    max-height: 32px;
    width: auto;
    margin-right: 0.5em;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.1);
}

#header .title {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* 响应式LOGO */
@media screen and (max-width: 736px) {
    .company-logo {
        max-height: 60px;
    }
    
    .header-logo {
        max-height: 24px;
    }
    
    .logo-title {
        margin-bottom: 0.5em;
    }
}

/* 首页介绍区域增强 */
.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 2em;
    color: #ffffff;
}

.intro-text .highlight {
    color: #ffd700;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2em 0.5em;
    border-radius: 4px;
}

/* 首页特色功能展示 */
.intro-features {
    display: flex;
    justify-content: center;
    gap: 2em;
    margin: 2em 0;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5em;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(237, 200, 35, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 120px;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(237, 200, 35, 0.2);
}

.feature-item i {
    font-size: 2em;
    color: #ffd700;
    margin-bottom: 0.5em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
}

.feature-item span {
    font-size: 0.9em;
    color: #ffffff;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 服务卡片增强 */
.features section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2em;
    border: 1px solid rgba(0, 153, 204, 0.2);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.features section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 153, 204, 0.2);
}

/* 修复图标布局问题 */
.features section .icon {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    display: block;
    margin: 0 auto 1.5em auto;
    text-align: center;
}

.features section h3 {
    color: #ffd700;
    margin-bottom: 1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    text-align: center;
}

.features section p {
    text-align: center;
}

/* 确保features在所有设备上的布局 */
@media screen and (max-width: 980px) {
    .features section {
        padding: 2em 1.5em !important;
    }
    
    .features section .icon {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        margin: 0 auto 1em auto !important;
    }
}

@media screen and (max-width: 480px) {
    .features section {
        padding: 1.5em 1em !important;
    }
    
    .features section .icon {
        margin: 0 auto 0.8em auto !important;
    }
}

/* 联系我们区域美化 */
.contact-section {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info.centered {
    text-align: center;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    margin: 3em 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 2em;
    border: 1px solid rgba(0, 191, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.2);
    border-color: rgba(255, 215, 0, 0.4);
}

.contact-item i {
    font-size: 2.5em;
    color: #00bfff;
    margin-right: 1.5em;
    text-shadow: 0 2px 8px rgba(0, 191, 255, 0.4);
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.3));
}

.contact-details h4 {
    color: #ffd700;
    margin-bottom: 0.5em;
    font-size: 1.1em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-details a {
    color: #00bfff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 600;
    transition: color 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-details a:hover {
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
}

.contact-details span {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.business-hours {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2em;
    margin-top: 2em;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.business-hours h4 {
    color: #ffd700;
    margin-bottom: 1em;
    font-size: 1.2em;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.business-hours p {
    color: #ffffff;
    margin-bottom: 0.5em;
    font-size: 1em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.highlight-text {
    color: #ffd700 !important;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.4) !important;
}

/* 按钮增强 */
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 153, 204, 0.3);
}

.button.primary:hover {
    background: linear-gradient(135deg, #d4b01f 0%, #edc823 100%);
    box-shadow: 0 6px 20px rgba(237, 200, 35, 0.4);
}

/* 图标悬停效果 */
.icon.major:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(237, 200, 35, 0.4);
}

/* 图片悬停效果 */
.spotlights section .image img {
    transition: transform 0.5s ease, filter 0.3s ease;
}

.spotlights section:hover .image img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 导航链接增强 */
#sidebar nav a:hover {
    color: #ffd700 !important;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
}

#header > nav > ul > li a:hover {
    color: #ffd700 !important;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.4);
}

/* 表单字段增强 */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: #00bfff !important;
    box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.3) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a2e !important;
}

/* 响应式优化 */
@media screen and (max-width: 736px) {
    .intro-features {
        gap: 1em;
        margin: 1.5em 0;
    }
    
    .feature-item {
        padding: 1em;
        min-width: 100px;
    }
    
    .feature-item i {
        font-size: 1.5em;
    }
    
    .feature-item span {
        font-size: 0.8em;
    }
    
    .features section {
        margin-bottom: 2em;
        padding: 1.5em !important;
    }
    
    .features section .icon {
        margin-bottom: 1em !important;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1.5em;
        margin: 2em 0;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5em;
    }
    
    .contact-item i {
        margin-right: 0;
        margin-bottom: 1em;
        font-size: 2em;
    }
    
    .business-hours {
        padding: 1.5em;
    }
}

/* 页面加载动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wrapper.fade-up > .inner {
    animation: fadeInUp 1s ease-out;
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0099CC, #edc823);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #007aa3, #d4b01f);
}

/* 页面整体优化 */
.wrapper {
    position: relative;
    overflow: hidden;
}

.wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(237, 200, 35, 0.03) 50%, transparent 70%);
    pointer-events: none;
}

/* 改进的阴影效果 */
.spotlights section .content {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

/* 现代化的卡片效果 */
.split.style1 section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 153, 204, 0.1);
}
