/* ============================================
   FOOTER STYLES - Yanjing Theme
   ============================================ */

/* Footer Container */
.site-footer {
    background-color: #ab8e66;
    color: #FFFFFF;
    padding: 60px 0 30px;
    font-family: Arial, sans-serif;
    
}

.footer-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Footer Columns Layout */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    margin-bottom: 50px;
    text-align: left;
}

/* Individual Column */
.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* Column Content Container */
.footer-column-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Footer Title */
.footer-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 0 20px 0;
    line-height: 1.4;
    position: relative;
}

/* 手风琴图标 - 默认隐藏 */
.footer-accordion-icon {
    display: none;
}

.footer-title-margin {
    margin-top: 35px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a,
.footer-links span {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    opacity: 0.7;
}

/* Contact Items with Icons */
.footer-contact {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.footer-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #FFFFFF;
}

/* Newsletter Section */
.footer-newsletter {
    width: 100%;
}

.newsletter-form {
    margin-bottom: 15px;
    width: 100%;
}

.newsletter-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.newsletter-input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.6);
}

.newsletter-input {
    flex: 1;
    background: transparent;
    border: none !important;
    padding: 14px 16px;
    color: #FFFFFF;
    font-size: 14px;
    outline: none;
    width: auto;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-submit {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 24px;
    padding: 0 16px;
    cursor: pointer;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.newsletter-submit:hover {
    opacity: 0.7;
}

.newsletter-terms {
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.newsletter-terms a {
    color: #FFFFFF;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.newsletter-terms a:hover {
    opacity: 0.7;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    align-items: center;
}

.social-icon-wrapper {
    position: relative;
    display: inline-block;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    transition: opacity 0.3s ease;
    position: relative;
}

.social-icon:hover {
    opacity: 0.7;
}

.social-icon img {
    width: 100%;
    height: 100%;
    display: block;
    filter: brightness(0) invert(1);
}

/* Tooltip Styles */
.social-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    right: -30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
}

.social-icon-wrapper:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-content {
    background-color: #FFFFFF;
    color: #333333;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.social-tooltip-wide .tooltip-content {
    white-space: normal;
    min-width: 150px;
}

.tooltip-content p {
    margin: 0;
    font-weight: 500;
}

.tooltip-arrow {
    position: absolute;
    bottom: -6px;
    right: 45px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #FFFFFF;
}

/* Footer Divider */
.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
    margin: 40px 0 30px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
}

.footer-copyright {
    font-size: 11px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    letter-spacing: 0.5px;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Large Desktop */
@media (max-width: 1400px) {
    .footer-columns {
        gap: 40px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px 40px;
    }
    
    .footer-newsletter {
        max-width: 100%;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .site-footer {
        padding: 50px 0 25px;
     
    }
    
    .footer-container {
        padding: 0;
    }
    
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* 页脚栏目全宽 */
    .footer-column {
        width: 100%;
    }
    
    .footer-column-content {
        width: 100%;
        padding: 0 25px;
    }
    
    /* 手风琴样式 - 标题 */
    .footer-title {
        font-size: 12px;
        margin-bottom: 0;
        padding: 18px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        user-select: none;
        transition: opacity 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-title:hover {
        opacity: 0.8;
    }
    
    /* 显示手风琴图标 */
    .footer-accordion-icon {
        display: block;
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    
    /* 展开状态图标旋转 */
    .footer-title.is-open .footer-accordion-icon {
        transform: rotate(180deg);
    }
    
    /* 手风琴内容 - 默认隐藏 */
    .footer-links,
    .newsletter-form,
    .newsletter-terms,
    .social-icons {
        display: none;
        padding-top: 16px;
        padding-bottom: 8px;
    }
    
    /* 展开状态显示内容 */
    .footer-title.is-open + .footer-links,
    .footer-title.is-open ~ .newsletter-form,
    .footer-title.is-open ~ .newsletter-terms,
    .footer-title.is-open ~ .social-icons {
        display: block;
    }
    
    .footer-title.is-open ~ .social-icons {
        display: flex;
        width: 100%;
    }
    
    /* 移除间距调整 */
    .footer-column {
        margin-bottom: 0;
    }
    
    .footer-column-content {
        border-bottom: none;
    }
    
    .footer-title-margin {
        margin-top: 0;
        border-top: none;
    }
    
    .footer-links a,
    .footer-links span {
        font-size: 13px;
    }
    
    .newsletter-input {
        font-size: 13px;
        padding: 12px 14px;
    }
    
    .social-icons {
        gap: 4px;
        justify-content: center;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .tooltip-content {
        font-size: 12px;
        padding: 12px 16px;
        min-width: 180px;
    }
    
    .social-tooltip-wide .tooltip-content {
        min-width: 200px;
    }
    
    .social-tooltip-wide .tooltip-content img {
        width: 100px !important;
        height: 100px !important;
    }
    
    /* 手机端提示框居中，防止超出屏幕 */
    .social-tooltip {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .tooltip-arrow {
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* Newsletter 条款居中 */
    .newsletter-terms {
        text-align: center;
        padding-top: 5px;
        width: 100%;
    }
    
    .footer-divider {
        margin: 35px 0 25px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .site-footer {
        padding: 40px 0 20px;
        overflow-x: hidden;
    }
    
    .footer-container {
        padding: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer-columns {
        gap: 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-column {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .footer-column-content {
        padding: 0;
        box-sizing: border-box;
    }
    
    .footer-title {
        font-size: 11px;
        letter-spacing: 1.2px;
        padding: 13px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-links,
    .newsletter-form,
    .newsletter-terms,
    .social-icons {
        padding-left: 20px;
        padding-right: 20px;
        box-sizing: border-box;
    }
    
    .footer-title.is-open ~ .social-icons {
        width: 100%;
        box-sizing: border-box;
    }
    
    .footer-accordion-icon {
        font-size: 12px;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
    
    .newsletter-input {
        padding: 11px 12px;
    }
    
    .newsletter-input-wrapper {
        width: 100%;
        box-sizing: border-box;
    }
    
    .newsletter-submit {
        padding: 0 12px;
        font-size: 20px;
    }
    
    .newsletter-terms {
        font-size: 10px;
    }
    
    .footer-copyright {
        font-size: 10px;
    }
    
    .social-icons {
        gap: 4px;
        justify-content: center;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    /* 手机端提示框居中并限制宽度 */
    .social-tooltip {
        left: 50%;
        transform: translateX(-50%);
        max-width: 90vw;
    }
    
    .tooltip-content {
        font-size: 11px;
        padding: 10px 14px;
        min-width: 160px;
        max-width: calc(100vw - 40px);
        white-space: normal !important;
    }
    
    .social-tooltip-wide .tooltip-content {
        min-width: 180px;
    }
    
    .social-tooltip-wide .tooltip-content img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .tooltip-arrow {
        left: 50%;
        transform: translateX(-50%);
        border-left-width: 6px;
        border-right-width: 6px;
        border-top-width: 6px;
    }
    
    /* Newsletter 条款居中 */
    .newsletter-terms {
        text-align: center;
        padding-top: 5px;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-columns {
        gap: 30px;
    }
}
