/* styles.css */
@media (min-width: 960px) {
    .connect-section {
        background-color: #0f1c2b;
        color: #ffffff;
        padding: 20px 130px;
        margin: auto;
        margin-top: 50px;
        font-family: Arial, sans-serif;
    }
    .footer-top {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 20px 0;
    }
}

@media (max-width: 960px) {
    .connect-section {
        background-color: #0f1c2b;
        color: #ffffff;
        width: 100%;
        padding: 20px;
        margin: auto;
        margin-top: 50px;
        font-family: Arial, sans-serif;
    }
    .footer-top {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 20px 0 0 0;
    }
}


.connect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.connect-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #ffffff;
}

.contact-button {
    background-color: #ffffff;
    color: #0f1c2b;
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #cccccc;
}

hr {
    border: none;
    border-top: 1px solid #666666;
    margin: 20px 0;
}

.social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #ffffff;
}

.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #ffffff;
    color: #0f1c2b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.icon.twitter:hover {
    background-color: #1DA1F2;
    /* Twitter blue */
    color: #ffffff;
}

.icon.linkedin:hover {
    background-color: #0077B5;
    /* LinkedIn blue */
    color: #ffffff;
}

.icon.facebook:hover {
    background-color: #4267B2;
    /* Facebook blue */
    color: #ffffff;
}

.icon.medium:hover {
    background-color: #00ab6c;
    /* Medium green */
    color: #ffffff;
}


/* 最底部 */
/* styles.css */
.footer {
    background-color: #ffffff;
    color: #333333;
    font-family: Arial, sans-serif;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.footer-logo h1 {
    font-size: 1.5rem;
    color: #000000;
    margin: 0;
}

.footer-subscribe h3 {
    margin: 0;
    font-size: 1.2rem;
}

.footer-subscribe p {
    font-size: 0.9rem;
    color: #666666;
    margin: 10px 0;
}

.subscribe-form {
    display: flex;
    margin-top: 10px;
}

.subscribe-form input[type="email"] {
    padding: 8px;
    border: 1px solid #cccccc;
    border-radius: 3px 0 0 3px;
    outline: none;
    font-size: 0.9rem;
}

.subscribe-form button {
    background-color: #0070f3;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: #333333;
}

.footer-links a {
    color: #333333;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.icon {
    width: 24px;
    height: 24px;
    background-color: #000000;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

hr {
    border: none;
    border-top: 1px solid #cccccc;
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666666;
}

.app-links {
    display: flex;
    gap: 10px;
}

.app-icon {
    width: 100px;
    height: auto;
}

.copyright {
    text-align: right;
    font-size: 0.8rem;
    color: #666666;
    margin-top: 20px;
}


/* 小屏幕 (最大宽度: 600px) */
@media (max-width: 600px) {

    /* 调整 .connect-section 为全屏宽度 */
    .connect-section {
        padding: 10px;
    }

    /* 调整 .connect-header 中的布局，使标题和按钮换行 */
    .connect-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .connect-header h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        margin-top: 20px;
    }

    .contact-button {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    /* 调整社交图标布局为居中 */
    .social-icons {
        flex-wrap: wrap;
        gap: 10px;
    }

    /* 调整 .footer 样式 */
    .footer {
        padding: 15px;
    }

    /* 调整 .footer-top 中的布局，使其堆叠 */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    /* .footer-logo 调整 */
    .footer-logo h1 {
        font-size: 1.2rem;
    }

    /* .footer-subscribe 调整 */
    .footer-subscribe {
        margin-top: 10px;
    }

    /* 调整 .footer-links 布局，使其居中显示 */
    .footer-links {
        justify-content: center;
        text-align: center;
        gap: 10px;
        margin-top: 10px;
    }

    /* 调整 .social-icons 布局 */
    .social-icons {
        display: none;
    }

    /* 调整 .footer-bottom 布局 */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* 调整 .app-links 为居中对齐 */
    .app-links {
        justify-content: center;
        margin-top: 10px;
    }

    /* 调整 .copyright 的字体大小 */
    .copyright {
        margin-top: 10px;
        font-size: 0.7rem;
    }

    /* 使 .app-icon 宽度稍小 */
    .app-icon {
        width: 80px;
    }
}

/* 中等屏幕 (最大宽度: 768px) */
@media (max-width: 768px) {

    /* 调整 .connect-header 和 .footer-top 的布局 */
    .connect-header {
        flex-direction: column;
        align-items: center;
    }

    /* 调整 .contact-button 大小 */
    .contact-button {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    /* 调整 .footer-subscribe 为居中 */
    .footer-subscribe {
        text-align: center;
        margin-top: 15px;
    }

    /* 使 .footer-links 居中对齐 */
    .footer-links {
        display: none;
    }

    /* 调整 .footer-bottom 中的元素布局 */
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* 减小 .app-icon 的宽度 */
    .app-icon {
        width: 90px;
    }
}

/* 大屏幕 (最小宽度: 1024px) */
@media (min-width: 1024px) {

    /* 使 .footer-top 和 .footer-bottom 的内容保持水平布局 */
    .footer-top {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    /* 使 .footer-links 和 .social-icons 保持默认的间距 */
    .footer-links {
        gap: 20px;
    }

    .social-icons {
        gap: 15px;
    }

    /* .app-icon 大小保持正常 */
    .app-icon {
        width: 100px;
    }
}