/* CD Footer 樣式 - 全新構建 */

/* 頁面基本設置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* Footer 主容器 */
.cd-footer {
    background: #21222112;
    color: #ecf0f1;
    padding: 30px 0 40px;
    margin-top: auto;
    width: 100%;
    margin-bottom: 0;
    position: relative;
    bottom: 0;
}

/* Footer 內容區域 */
.cd-footer__content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer區塊橫向排列，每個區塊一排 */
.cd-footer__wrapper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Footer 區塊 - 每個區塊一排，內容居中 */
.cd-footer__block {
    width: 100%;
    text-align: center;
}

.cd-footer__block h4 {
    color: #aa3cff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #aa3cff;
    display: inline-block;
    text-align: center;
}

/* 鏈接橫向排列，居中對齊 */
.cd-footer__block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.cd-footer__block li {
    margin: 0;
}

.cd-footer__block a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    white-space: nowrap;
    font-size: 11px;
}

.cd-footer__block a:hover {
    color: #aa3cff;
    background: rgba(170, 60, 255, 0.1);
    border-color: #aa3cff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(170, 60, 255, 0.2);
}

.cd-footer__block p {
    color: #d8bfd8;
    font-size: 11px;
    margin: 0;
    line-height: 1.5;
    text-align: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border-left: 3px solid #aa3cff;
}

/* 公司信息特殊樣式 - 橫向排列，居中對齊 */
.cd-footer__info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.cd-footer__info a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
    white-space: nowrap;
}

.cd-footer__info a:hover {
    color: #aa3cff;
    background: rgba(170, 60, 255, 0.1);
    border-color: #aa3cff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(170, 60, 255, 0.2);
}

/* 響應式設計 */
@media (max-width: 768px) {
    .cd-footer {
        padding: 25px 0 12px;
    }
    
    .cd-footer__wrapper {
        gap: 15px;
    }
    
    /* 移動端鏈接可以換行 */
    .cd-footer__block ul {
        gap: 8px;
    }
    
    .cd-footer__info {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .cd-footer__content {
        padding: 0 15px;
    }
    
    .cd-footer__block h4 {
        font-size: 13px;
    }
    
    .cd-footer__block a,
    .cd-footer__block p {
        font-size: 10px;
    }
    
    .cd-footer__block a {
        padding: 3px 8px;
        font-size: 10px;
    }
}