/* ========================================
   QUICK Company Website - Main Stylesheet
   ======================================== */

:root {
    --primary: #0066cc;
    --primary-dark: #004d99;
    --primary-light: #00a0e9;
    --accent: #4dc9f6;
    --dark: #1a1a2e;
    --gray: #f5f7fa;
    --text: #333;
    --text-light: #666;
}

/* ========== Base ========== */
html { scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: var(--text); overflow-x: hidden; }

/* ========== Top Bar ========== */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,.7);
    font-size: 1.8rem;
    padding: 6px 0;
}
.top-bar .lang-link { color: rgba(255,255,255,.6); text-decoration: none; font-size: .75rem; }
.top-bar .lang-link:hover, .top-bar .lang-link.active { color: var(--primary-light); }

/* ========== Navigation ========== */
.main-nav { border-bottom: 1px solid #eee; transition: all .3s; }
.brand-text {
    font-size: 1.5rem;
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.main-nav .nav-link {
    color: var(--text) !important;
    font-size: .9rem;
    padding: .5rem 1rem !important;
    font-weight: 500;
    transition: color .3s;
    position: relative;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--primary) !important;
}
.main-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 2px;
    background: var(--primary);
    transition: transform .3s;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* ========== Hero Banner ========== */
.hero-slide {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 60%, rgba(0,0,0,.1) 100%);
    height: 100%;
}
.hero-content {
    padding-top: 80px;
    color: #fff;
}
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0,0,0,.3);
    margin-bottom: 1rem;
    animation: fadeInUp .8s ease;
}
.hero-subtitle {
    font-size: 1.2rem;
    opacity: .9;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,.3);
}
.btn-hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: #fff;
    border: none;
    padding: 12px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: all .3s;
}
.btn-hero:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,102,204,.4);
}
.carousel-indicators button {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50%;
    border: 2px solid #fff !important;
    background: transparent !important;
    margin: 0 6px;
}
.carousel-indicators button.active { background: #fff !important; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Page Banner ========== */
.page-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    padding: 60px 0;
    position: relative;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.page-banner-title {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.page-banner-subtitle {
    color: rgba(255,255,255,.7);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* ========== Section Common ========== */
.section-padding { padding: 80px 0; }
.section-header { margin-bottom: 50px; }
.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .5rem;
}
.section-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    margin: 12px auto;
    border-radius: 2px;
}
.section-subtitle {
    font-size: .9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========== About Section ========== */
.about-icon-box {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}
.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}
.about-image-placeholder {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f5 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--primary-light);
}

/* ========== Advantages Section ========== */
.advantages-section {
    background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
}
.advantage-card {
    background: #fff;
    border-radius: 12px;
    transition: all .3s;
    border: 1px solid #eee;
    cursor: pointer;
}
.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,102,204,.15);
    border-color: var(--primary-light);
}
.advantage-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,102,204,.1) 0%, rgba(0,160,233,.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: var(--primary);
    transition: all .3s;
}
.advantage-card:hover .advantage-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    transform: rotateY(360deg);
    transition: transform .6s, background .3s, color .3s;
}

/* ========== Products Section ========== */
.product-card {
    border-radius: 12px;
    transition: all .3s;
    overflow: hidden;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.1) !important;
}
.product-img-wrapper {
    height: 200px;
    overflow: hidden;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.product-card:hover .product-img { transform: scale(1.05); }
.product-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-light);
}

/* ========== Team Section ========== */
.team-card {
    padding: 20px;
    border-radius: 12px;
    transition: all .3s;
}
.team-card:hover {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}
.team-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-light);
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4f8 0%, #d0e8f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-light);
}

/* ========== Partners Section ========== */
.partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    align-items: center;
}
.partner-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    transition: all .3s;
    border: 1px solid #eee;
}
.partner-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    border-color: var(--primary-light);
}
.partner-logo {
    max-width: 120px;
    max-height: 50px;
    filter: grayscale(100%);
    opacity: .7;
    transition: all .3s;
}
.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    opacity: 1;
}
.partner-name {
    color: var(--text-light);
    font-weight: 500;
}

/* ========== News Section ========== */
.news-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s;
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.1) !important;
}
.news-img-wrapper {
    height: 180px;
    overflow: hidden;
}
.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.news-card:hover .news-img { transform: scale(1.05); }
.news-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e8ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-light);
}
.news-date {
    display: inline-block;
    background: #f0f7ff;
    color: var(--primary);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .75rem;
}

/* ========== Contact Section ========== */
.contact-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    position: relative;
}
.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.contact-info-box {
    border-radius: 12px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}
.contact-info-item {
    color: rgba(255,255,255,.9);
    font-size: .95rem;
    align-items: flex-start;
}
.contact-info-item i {
    font-size: 1.2rem;
    width: 24px;
    color: var(--accent);
}
.contact-form-box {
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
}
.contact-form-box .form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    transition: all .3s;
}
.contact-form-box .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(0,160,233,.15);
}

/* ========== Footer ========== */
.footer {
    background: var(--dark);
    color: #fff;
    padding: 60px 0 20px;
}
.footer-logo {
    font-weight: 700;
    font-size: 1.3rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    font-size: .85rem;
    transition: color .3s;
}
.footer-links a:hover { color: var(--primary-light); }

/* ========== Back to Top ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,102,204,.4);
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    z-index: 999;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,102,204,.5); }

/* ========== Responsive ========== */
@media (max-width: 991.98px) {
    .hero-slide { height: 450px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .section-padding { padding: 50px 0; }
    .section-title { font-size: 1.6rem; }
    .partner-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .page-banner { padding: 40px 0; }
    .page-banner-title { font-size: 2rem; }
}
@media (max-width: 767.98px) {
    .page-banner { padding: 30px 0; }
    .page-banner-title { font-size: 1.5rem; }
}

@media (max-width: 767.98px) {
    .hero-slide { height: 350px; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: .85rem; }
    .hero-content { padding-top: 40px; }
    .btn-hero { padding: 10px 28px; font-size: .9rem; }
    .section-padding { padding: 40px 0; }
    .section-title { font-size: 1.4rem; }
    .about-image-placeholder { height: 220px; }
    .partner-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
    .partner-item { padding: 12px; }
    .back-to-top { bottom: 15px; right: 15px; width: 36px; height: 36px; font-size: 1rem; }
    .main-nav .nav-link { padding: .4rem .8rem !important; font-size: .8rem; }
}

@media (max-width: 575.98px) {
    .hero-slide { height: 280px; }
    .hero-title { font-size: 1.3rem; }
    .hero-subtitle { font-size: .75rem; }
    .hero-content { padding-top: 30px; }
    .btn-hero { padding: 8px 22px; font-size: .8rem; }
    .section-title { font-size: 1.2rem; }
    .partner-grid { grid-template-columns: repeat(3, 1fr); }
    .team-avatar { width: 80px; height: 80px; }
}

.rotating-icon {
    display: inline-block; /* 关键：让 transform 生效 */
    animation: spin 2s infinite linear; /* 2秒转一圈，无限循环 */
}
