/* style.css - 科技通信网站完整样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

:root {
    --primary-color: #0066ff;
    --secondary-color: #00ccff;
    --dark-color: #0a1930;
    --light-color: #f8f9fa;
    --text-color: #333;
    --shadow: 0 4px 20px rgba(0, 102, 255, 0.15);
    --transition: all 0.3s ease;
    --content-max-width: 1200px; /* 新增：统一内容区域最大宽度 */
}

body {
    background-color: #f5f7fa;
    color: var(--text-color);
    line-height: 1.6;
}

/* 顶部导航 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-right: 0.5rem;
}

/* 桌面端导航菜单 */
.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

/* 轮播图 - 修改宽度 */
.banner {
    position: relative;
    height: 500px;
    overflow: hidden;
    margin: 0 auto;
    max-width: var(--content-max-width);
    border-radius: 0 0 15px 15px;
    box-shadow: var(--shadow);
}

.slides {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.8s ease;
}

.slide {
    width: 25%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 10%;
    background: rgba(10, 25, 48, 0.7);
    color: white;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.slide-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* 产品列表 - 修改宽度 */
.products {
    max-width: var(--content-max-width);
    margin: 4rem auto;
    padding: 0 5%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-item {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.2);
}

.product-image {
    flex: 0 0 235px;
    height: 235px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-info p {
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.feature {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* 产品申请按钮样式 */
.apply-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    font-weight: 300;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    width: fit-content;
}

.apply-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    color: white;
    background: linear-gradient(135deg, #0052cc, #00b8e6);
}

.apply-button i {
    font-size: 1rem;
}

/* 空产品列表样式 */
.no-products-container {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 2rem auto;
    max-width: 600px;
    transition: var(--transition);
}

.no-products-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 255, 0.2);
}

.no-products-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.no-products-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.no-products-title {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.no-products-message {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-products-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.3);
    border: none;
    cursor: pointer;
}

.no-products-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
    color: white;
}

.no-products-button i {
    font-size: 1.1rem;
}

/* 友情链接模块 - 修改宽度 */
.friend-links-section {
    max-width: var(--content-max-width);
    margin: 3rem auto;
    padding: 0 5%;
}

.friend-links-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.08);
}

.friend-links-header {
    text-align: center;
    margin-bottom: 1rem;
}

.friend-links-header h2 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.friend-links-subtitle {
    color: #666;
    font-size: 0.85rem;
    max-width: 400px;
    margin: 0 auto;
}

.friend-links-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.friend-link-item {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1rem;
    background: rgba(0, 102, 255, 0.05);
    border-radius: 6px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid rgba(0, 102, 255, 0.1);
    font-size: 0.9rem;
}

.friend-link-item:hover {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-color);
    border-color: rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

/* 底部区域 */
footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 1250px) {
    /* 确保在较大屏幕上内容区域不会超过1200px */
    .banner,
    .products,
    .friend-links-section,
    .navbar,
    .footer-content {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 992px) {
    .product-item {
        flex-direction: column;
    }

    .product-image {
        flex: 0 0 200px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
    }

    .slide-content {
        padding: 0 5%;
    }

    .slide-content h2 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 1rem;
    }

    .friend-links-container {
        padding: 1rem;
    }

    .friend-links-header h2 {
        font-size: 1.3rem;
    }

    .friend-links-subtitle {
        font-size: 0.8rem;
    }

    .friend-links-grid {
        gap: 0.6rem;
    }

    .friend-link-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .banner {
        height: 250px;
    }

    .slide-content h2 {
        font-size: 1.5rem;
    }

    .slide-content p {
        font-size: 0.8rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .products {
        margin: 2rem auto;
    }

    .friend-links-section {
        margin: 1.5rem auto;
    }

    .friend-links-container {
        padding: 0.8rem;
    }

    .friend-links-header h2 {
        font-size: 1.2rem;
    }

    .friend-links-subtitle {
        font-size: 0.75rem;
    }

    .friend-link-item {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .no-products-container {
        padding: 3rem 1.5rem;
    }

    .no-products-title {
        font-size: 1.5rem;
    }

    .no-products-message {
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .banner {
        height: 220px;
    }

    .slide-content h2 {
        font-size: 1.3rem;
    }

    .slide-content p {
        font-size: 0.75rem;
    }

    .product-image {
        flex: 0 0 180px;
        height: 180px;
    }

    .product-info {
        padding: 1.2rem 1.5rem;
    }

    .friend-links-grid {
        grid-template-columns: 1fr;
    }

    .friend-link-item {
        padding: 0.8rem;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
}