/**
 * 前台主样式文件
 * @author 程序展示平台
 * @date 2025-10-28
 */

/* ========================================
   基础样式
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #2c3e50;
    background: #f8f9fa;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   导航栏
======================================== */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand .logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar-menu a {
    color: #fff;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: rgba(255,255,255,0.2);
}

.navbar-contact {
    display: flex;
    gap: 10px;
}

.contact-btn {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.3s;
}

.contact-qq {
    background: linear-gradient(135deg, #12c2e9 0%, #c471ed 100%);
    color: #fff;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

/* ========================================
   Banner区域
======================================== */
.banner-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 33px 0;
    text-align: center;
    color: #fff;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.banner-subtitle {
    font-size: 20px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 13px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: #667eea;
}

/* ========================================
   产品类型区域
======================================== */
.product-types-section,
.products-section,
.contact-section {
    padding: 27px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 17px;
}

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

.type-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.type-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.type-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.type-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.type-count {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 15px;
}

.type-link {
    color: #3498db;
    font-weight: 500;
}

/* ========================================
   产品卡片
======================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    gap: 5px;
}

.badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.badge-new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.badge-hot {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.product-image {
    height: 200px;
    overflow: hidden;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.product-placeholder {
    font-size: 80px;
    opacity: 0.3;
}

.product-content {
    padding: 20px;
}

.product-type {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
    color: #2c3e50;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

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

.btn-detail,
.btn-consult {
    flex: 1;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.btn-detail {
    background: #3498db;
    color: #fff;
}

.btn-consult {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-detail:hover,
.btn-consult:hover {
    opacity: 0.8;
}

.section-more {
    text-align: center;
    margin-top: 13px;
}

.btn-more {
    color: #3498db;
    font-size: 16px;
    font-weight: 600;
}

.btn-more:hover {
    color: #2980b9;
}

/* ========================================
   客服联系区域
======================================== */
.contact-section {
    background: #f8f9fa;
}

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

.contact-item {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-avatar {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.online-status {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #27ae60;
    border: 3px solid #fff;
    border-radius: 50%;
}

.contact-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-title {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-time {
    color: #95a5a6;
    font-size: 13px;
    margin-bottom: 15px;
}

.btn-contact {
    display: inline-block;
    padding: 10px 30px;
    background: linear-gradient(135deg, #12c2e9 0%, #c471ed 100%);
    color: #fff;
    border-radius: 25px;
    font-weight: 500;
    margin-top: 10px;
}

.btn-contact:hover {
    transform: translateY(-2px);
}

/* ========================================
   页脚
======================================== */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0 15px;
}

.footer .container {
    padding: 0 20px;
}

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

.footer-section {
    margin-bottom: 0;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.footer-section h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
}

.footer-section p {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 5px;
    line-height: 1.6;
}

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

.footer-section ul li {
    margin-bottom: 4px;
}

.footer-section ul li a {
    color: #95a5a6;
    font-size: 13px;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-info h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-info p {
    font-size: 13px;
    color: #95a5a6;
    margin-bottom: 4px;
    line-height: 1.6;
}

/* 友情链接样式 */
.footer-links {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links h4 {
    font-size: 15px;
    margin-bottom: 8px;
    text-align: center;
    color: #ecf0f1;
    font-weight: 500;
}

.footer-links > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    line-height: 1.6;
}

.footer-links a {
    display: inline-block;
    padding: 2px 6px;
    color: #95a5a6;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a[href*="link-apply"]:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
}

.footer-links img {
    height: 16px;
    width: auto;
    max-width: 70px;
    vertical-align: middle;
}

/* 页脚底部 */
.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
}

.footer-bottom p {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 3px;
    line-height: 1.5;
}

/* ========================================
   悬浮客服
======================================== */
.float-contact {
    position: fixed;
    right: 30px;
    bottom: 80px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-qq {
    background: linear-gradient(135deg, #12c2e9 0%, #c471ed 100%);
}

.float-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* ========================================
   授权查询页面
======================================== */
.auth-check-container {
    max-width: 600px;
    margin: 27px auto;
    padding: 40px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.auth-check-container h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #2c3e50;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
}

.search-box button {
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.result-box {
    padding: 30px;
    border-radius: 10px;
    margin-top: 7px;
}

.result-success {
    background: #d4edda;
    border: 2px solid #c3e6cb;
    color: #155724;
}

.result-warning {
    background: #fff3cd;
    border: 2px solid #ffeeba;
    color: #856404;
}

.result-error {
    background: #f8d7da;
    border: 2px solid #f5c6cb;
    color: #721c24;
}

.result-info {
    background: #d1ecf1;
    border: 2px solid #bee5eb;
    color: #0c5460;
}

/* ========================================
   响应式设计
======================================== */
@media (max-width: 768px) {
    .banner-title {
        font-size: 32px;
    }
    
    .banner-subtitle {
        font-size: 16px;
    }
    
    .navbar-menu {
        display: none;
    }
    
    .types-grid,
    .products-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .float-contact {
        right: 20px;
        bottom: 60px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}


