/* 文章页面样式 */
#art-ads {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    margin-bottom: 20px;
    position: relative;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* 移除背景图 */
.main-content {
    background: none !important;
}

#com-left {
    width: 100%;
    padding-right: 0;
    border-right: none;
    box-sizing: border-box;
}

#com-right {
    width: 100%;
    padding-left: 0;
    margin-top: 30px;
    box-sizing: border-box;
}

#com-right > div {
    width: 100%;
}

/* 表单样式 */
.contact-form-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.advertisement-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.advertisement-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

#sub-login {
    width: 100%;
    font-weight: normal;
    font-family: 'lato', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 12px;
    background-color: #000000;
    color: white;
    border: 2px solid #000000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#sub-login:hover {
    background-color: #333333;
    border-color: #333333;
}

img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
}

/* 通知样式 */
.notify {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* 社交媒体图标样式 */
.social-icons {
    text-align: center;
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    margin: 0 10px;
    text-decoration: none;
}

.social-icons img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* 响应式设计 - 中等屏幕设备 (平板) */
@media screen and (min-width: 768px) {
    #com-left {
        width: 65%;
        padding-right: 20px;
        border-right: 1px solid #eaeaea;
    }
    
    #com-right {
        width: 35%;
        padding-left: 20px;
        margin-top: 0;
    }
    
    #art-ads {
        padding: 0 15px;
    }
    
    #com-left > * {
        padding: 0 10px;
    }
    
    #com-right > div {
        position: relative;
        width: 100%;
        top: auto;
    }
}

/* 响应式设计 - 大屏幕设备 */
@media screen and (min-width: 1025px) {
    #com-left {
        width: 70%;
        padding-right: 30px;
    }
    
    #com-right {
        width: 30%;
        padding-left: 30px;
    }
    
    /* 仅在足够宽的屏幕上使用固定定位，避免在较小屏幕上出现布局问题 */
    @media screen and (min-width: 1200px) {
        #com-right > div {
            position: sticky;
            top: 120px;
            width: 100%;
            max-width: 280px;
        }
    }
}

/* 响应式设计 - 手机设备 */
@media screen and (max-width: 767px) {
    #art-ads {
        padding: 0 15px;
        margin-bottom: 15px;
        flex-direction: column;
    }
    
    #com-left {
        width: 100%;
        padding-right: 0;
        border-right: none;
        margin-bottom: 20px;
    }
    
    #com-left > * {
        padding: 0 10px;
    }
    
    #com-right {
        width: 100%;
        padding-left: 0;
        margin-top: 20px;
    }
    
    #com-right > div {
        position: static;
        width: 100%;
    }
    
    /* 表单优化 - 移动设备 */
    #com-right form {
        margin-top: 20px;
        padding: 0;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-control {
        width: 100% !important;
        padding: 12px 10px;
        font-size: 16px; /* 防止iOS缩放 */
        border-radius: 6px;
    }
    
    #sub-login {
        width: 100% !important;
        padding: 14px;
        font-size: 16px;
        border-radius: 6px;
    }
    
    /* 图片优化 */
    img {
        width: 100% !important;
        height: auto !important;
        margin-top: 10px;
        border-radius: 4px;
    }
    
    /* 文本优化 */
    h2.title {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    /* 社交媒体图标优化 */
    .social-icons {
        text-align: center;
        margin-top: 15px;
    }
    
    .social-icons a {
        display: inline-block;
        margin: 0 5px;
    }
    
    .social-icons img {
        width: 40px;
        height: 40px;
        margin: 0;
    }
}

/* 超小屏幕设备优化 */
@media screen and (max-width: 480px) {
    #art-ads {
        padding: 0 8px;
        margin-bottom: 15px;
    }
    
    #com-left {
        margin-bottom: 15px;
    }
    
    #com-right form {
        margin-top: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-control {
        padding: 10px 8px;
        font-size: 15px;
    }
    
    #sub-login {
        padding: 12px;
        font-size: 15px;
    }
    
    h2.title {
        font-size: 18px;
    }
    
    .social-icons a {
        margin: 0 3px;
    }
    
    .social-icons img {
        width: 35px;
        height: 35px;
    }
}