/*
Theme Name: Curasino Brazil Theme
Description: 融入巴西国旗代表色（经典蓝、明亮黄、生机绿）的专业定制主题
Version: 1.5
*/

/* 全局基础样式：设置整个网页左右两侧各留出 15% 的空白空间 */
body {
    margin: 0;
    padding: 0 15%; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333333;
    background-color: #f0f4f1; /* 极浅的微绿灰底色，衬托国旗色主题 */
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

/* 顶部与导航样式：巴西经典蓝基调 */
.site-header {
    background: #ffffff;
    border-bottom: 3px solid #009b3a; /* 巴西绿边框点缀 */
    padding: 15px 0;
    box-shadow: 0 2px 6px rgba(0, 39, 118, 0.08);
    margin: 20px auto 0 auto;
    border-radius: 8px 8px 0 0;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
}

.site-logo img {
    max-height: 50px;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    text-decoration: none;
    color: #002776; /* 巴西深蓝 */
    font-weight: 600;
}

.main-navigation a:hover {
    color: #009b3a; /* 悬停变为巴西绿 */
}

/* 首页核心网格布局：巴西深蓝标题 */
.home-main-title {
    text-align: center;
    font-size: 28px;
    margin: 40px 0 20px 0;
    font-weight: bold;
    color: #002776; 
}

/* 整合前三个板块的大容器 */
.solutions-combined-wrapper {
    margin: 0 auto 40px auto;
    width: 100%;
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 155, 58, 0.08); /* 微微的绿意投影 */
    border-top: 4px solid #fedf00; /* 巴西明黄顶部条纹点缀 */
}

.solutions-combined-wrapper .sub-section {
    margin-bottom: 35px;
}
.solutions-combined-wrapper .sub-section:last-child {
    margin-bottom: 0;
}

/* 其他区块通用样式 */
.home-section {
    margin: 0 auto 40px auto;
    width: 100%;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.solutions-combined-wrapper h2,
.home-section h2 {
    font-size: 20px;
    border-bottom: 2px solid #fedf00; /* 巴西明黄下划线 */
    padding-bottom: 8px;
    margin-bottom: 20px;
    color: #002776; /* 巴西深蓝 */
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* 蓝底卡片样式：采用纯正巴西国旗蓝渐变，搭配明黄与清爽细节 */
.solution-card {
    background: linear-gradient(135deg, #002776 0%, #001a4e 100%);
    border: 1px solid rgba(254, 223, 0, 0.3); /* 巴西黄细边框 */
    border-radius: 10px;
    padding: 20px 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 39, 118, 0.2);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 155, 58, 0.25); /* 悬停时泛起绿意光效 */
    border-color: #fedf00;
}

.solution-card img {
    max-width: 100%;
    height: 110px;
    object-fit: contain;
    margin-bottom: 12px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.solution-card-link {
    text-decoration: none;
    color: inherit;
}

.solution-card h3 {
    font-size: 15px;
    margin: 0;
    color: #fedf00; /* 标题文字采用醒目的巴西明黄 */
    font-weight: 600;
}

/* 团队与公司简介 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.team-member {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.team-member img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #009b3a; /* 巴西绿头像边框 */
}

.company-intro-box {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.company-intro-box img {
    max-width: 200px;
    height: auto;
}

/* 双栏资讯与政策 */
.dual-columns-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.column-box {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.news-item-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.news-item-row img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.news-item-content h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
}

.news-item-content a {
    text-decoration: none;
    color: #002776; /* 巴西深蓝 */
}

.news-item-content a:hover {
    color: #009b3a; /* 巴西绿 */
}

.news-item-content p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

/* 成功案例横向滚动样式 */
.cases-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 0;
}

.cases-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
}

.cases-marquee-track:hover {
    animation-play-state: paused;
}

.case-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    width: 200px;
    padding: 10px;
    text-align: center;
    flex-shrink: 0;
}

.case-card a {
    text-decoration: none;
    color: inherit;
}

.case-card img {
    width: 100%;
    height: 110px;
    object-fit: contain;
    margin-bottom: 8px;
}

.case-card h4 {
    font-size: 14px;
    margin: 0;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 页脚四列布局：深沉巴西蓝搭配绿色点缀 */
.site-footer {
    background: #001a4e;
    color: #e0e0e0;
    padding: 40px 30px 20px 30px;
    margin: 60px auto 0 auto;
    width: 100%;
    border-radius: 8px 8px 0 0;
    border-top: 4px solid #009b3a; /* 顶部巴西绿装饰线 */
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: #fedf00; /* 页脚标题使用明黄色 */
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(254, 223, 0, 0.3);
    padding-bottom: 8px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
}

.footer-col a:hover {
    color: #fedf00;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 13px;
    color: #888;
}

@media (max-width: 900px) {
    body {
        padding: 0 10px; /* 小屏幕时自动减小左右留白 */
    }
    .solutions-grid, .team-grid, .dual-columns-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* 自定义三列不均等网格：前两列标准，第三列（联系方式）更宽 */
.footer-grid-custom {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1.4fr !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
}

.footer-grid-custom .footer-col {
    display: block !important;
    width: 100% !important;
}

/* 移动端适配：屏幕较小时自动还原为单列上下排列 */
@media (max-width: 900px) {
    .footer-grid-custom {
        grid-template-columns: 1fr !important;
    }
}