/* ========================================
   深圳菲联要账公司 - 全站样式
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

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

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   Header
   ======================================== */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

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

.logo img {
    height: 50px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #1a365d;
    margin-left: 10px;
}

/* Navigation */
.nav ul {
    display: flex;
}

.nav ul li {
    position: relative;
}

.nav ul > li > a {
    display: block;
    padding: 28px 20px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s;
}

.nav ul > li > a:hover,
.nav ul > li > a.active {
    color: #1a365d;
}

.nav ul > li:hover > a {
    color: #1a365d;
}

/* Submenu */
.nav ul .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 180px;
    display: none;
    z-index: 100;
}

.nav ul li:hover .submenu {
    display: block;
}

.nav ul .submenu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    transition: all 0.3s;
}

.submenu li a:hover {
    background: #1a365d;
    color: #fff;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    padding: 10px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    margin: 5px 0;
    transition: all 0.3s;
}

/* ========================================
   Banner / Slider
   ======================================== */
.banner {
    margin-top: 80px;
    height: 500px;
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    position: relative;
    overflow: hidden;
}

.banner-slide {
    height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-content {
    text-align: center;
    color: #fff;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.banner-content p {
    font-size: 24px;
    opacity: 0.9;
}

/* ========================================
   Section Common
   ======================================== */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 20px;
}

.section-title h2 {
    font-size: 32px;
    color: #333;
    position: relative;
    display: inline-block;
}

.section-title h2::before,
.section-title h2::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: #1a365d;
}

.section-title h2::before {
    right: calc(100% + 20px);
}

.section-title h2::after {
    left: calc(100% + 20px);
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 16px;
    margin-bottom: 40px;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    background: #f8f8f8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #1a365d, #3b82f6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.service-item h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.service-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================
   About Section
   ======================================== */
.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex: 0 0 450px;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    color: #1a365d;
    margin-bottom: 20px;
}

.about-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.about-feature {
    background: #f8f8f8;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    color: #333;
}

.more-link {
    display: inline-block;
    margin-top: 25px;
    color: #1a365d;
    font-size: 16px;
}

.more-link:hover {
    text-decoration: underline;
}

/* ========================================
   News Section
   ======================================== */
.news-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.news-date {
    background: #1a365d;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    display: inline-block;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.news-content h3:hover {
    color: #1a365d;
}

.news-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.news-more {
    color: #1a365d;
    font-size: 14px;
}

.news-more:hover {
    text-decoration: underline;
}

/* ========================================
   Cases Section
   ======================================== */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.case-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
}

.case-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.case-item:hover img {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px 15px 15px;
    color: #fff;
}

.case-overlay h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.case-overlay p {
    font-size: 12px;
    opacity: 0.8;
}

/* ========================================
   FAQ Section
   ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background: #f8f8f8;
    padding: 18px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #333;
    transition: all 0.3s;
}

.faq-question:hover {
    background: #eee;
}

.faq-question.active {
    background: #1a365d;
    color: #fff;
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: #1a365d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.contact-text p {
    color: #666;
    font-size: 14px;
}

.contact-form {
    flex: 1;
    background: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a365d;
}

.btn-submit {
    background: #1a365d;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #1e3a5f;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: #222;
    color: #fff;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-section {
    flex: 1;
    padding: 0 20px;
}

.footer-section:first-child {
    flex: 0 0 300px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1a365d;
}

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

.footer-section ul li a {
    color: #ccc;
    font-size: 14px;
    transition: color 0.3s;
}

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

.footer-contact p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-contact i {
    margin-right: 10px;
    color: #1a365d;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.footer-bottom p {
    color: #888;
    font-size: 14px;
}

.footer-bottom a {
    color: #888;
    margin: 0 10px;
}

.footer-bottom a:hover {
    color: #1a365d;
}

/* ========================================
   Page Header
   ======================================== */
.page-header {
    margin-top: 80px;
    background: linear-gradient(135deg, #1a365d, #2d3748);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

.breadcrumb {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: #fff;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   Page Content
   ======================================== */
.page-content {
    padding: 60px 0;
}

.content-block {
    margin-bottom: 50px;
}

.content-block h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a365d;
}

.content-block p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

/* ========================================
   Mobile Fixed Bottom Nav
   ======================================== */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav ul {
    display: flex;
    justify-content: space-around;
}

.mobile-nav li {
    flex: 1;
    text-align: center;
}

.mobile-nav li a {
    display: block;
    padding: 12px 0;
    color: #333;
    font-size: 12px;
}

.mobile-nav li a i {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

/* ========================================
   QQ Float Button
   ======================================== */
.qq-float {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
}

.qq-float a {
    display: block;
    width: 60px;
    height: 60px;
    background: url('../images/qq-icon.gif') no-repeat center;
    background-size: contain;
    animation: qq-pulse 2s infinite;
}

@keyframes qq-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1200px) {
    .container {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        flex: none;
        width: 100%;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-section {
        padding: 0;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 300px;
    }
    
    .banner-slide {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: 28px;
    }
    
    .banner-content p {
        font-size: 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .section-title h2::before,
    .section-title h2::after {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .news-list {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-header {
        padding: 50px 0;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .mobile-nav {
        display: block;
    }
    
    body {
        padding-bottom: 60px;
    }
    
    .qq-float {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .case-item {
        height: 150px;
    }
}
