html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto 0;
    padding: 0 0 0;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

/* ========================================
   企业级页脚样式 - IoT 科技配色
   ======================================== */
.site-footer {
    background: linear-gradient(180deg, #1a2332 0%, #141a24 100%);
    color: #8892a6;
    margin-top: 0;
}

/* 页脚主内容区 */
.footer-main {
    padding: 35px 0 20px;
}

.footer-section {
    margin-bottom: 20px;
}

/* 公司信息标题 */
.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-title i {
    margin-right: 8px;
    color: #4db8ff;
}

/* 公司描述 */
.footer-desc {
    color: #8fa4b8;
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* 联系信息 */
.footer-contact p {
    margin-bottom: 8px;
    font-size: 13px;
    color: #8fa4b8;
}

.footer-contact i {
    width: 18px;
    color: #4db8ff;
    margin-right: 6px;
}

/* 联系二维码 */
.contact-qrcode {
    margin-top: 12px;
}

.contact-qrcode p {
    margin-bottom: 8px;
}

.qrcode-img {
    width: 90px;
    height: 90px;
    border-radius: 4px;
    background: #fff;
    padding: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 页脚二维码区域 */
.footer-qrcode {
    text-align: center;
}

.footer-qrcode .qrcode-img {
    display: block;
    margin: 0 auto 8px;
}

.qrcode-tip {
    font-size: 11px;
    color: #8fa4b8;
    margin: 0;
}

/* 子标题 */
.footer-subtitle {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4db8ff;
    display: inline-block;
}

/* 链接列表 */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: #8fa4b8;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-links i {
    margin-right: 6px;
    font-size: 11px;
    color: #4db8ff;
}

/* 社交图标 */
.footer-social {
    margin-bottom: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(77, 184, 255, 0.15);
    border-radius: 50%;
    color: #4db8ff;
    font-size: 14px;
    margin-right: 8px;
    transition: all 0.25s ease;
}

.social-link:hover {
    background: #4db8ff;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* 技术支持 */
.footer-tech {
    color: #6c7a89;
    margin-top: 12px;
}

.footer-tech a {
    color: #8fa4b8;
    text-decoration: none;
}

.footer-tech a:hover {
    color: #4db8ff;
}

/* 版权区 */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .copyright,
.footer-bottom .icp-info {
    margin: 0;
    font-size: 12px;
    color: #6c7a89;
}

.footer-bottom .icp-info a {
    color: #8fa4b8;
    text-decoration: none;
}

.footer-bottom .icp-info a:hover {
    color: #4db8ff;
}

.footer-bottom .icp-info i {
    margin-right: 4px;
}

/* 页脚响应式 */
@media (max-width: 991px) {
    .footer-section {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .footer-main {
        padding: 30px 0 15px;
    }
    
    .footer-section {
        text-align: center;
        margin-bottom: 25px;
    }
    
    .footer-title {
        font-size: 16px;
    }
    
    .footer-subtitle {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .footer-links a:hover {
        padding-left: 0;
    }
    
    .footer-bottom .col-sm-6 {
        text-align: center !important;
    }
    
    .footer-bottom .icp-info {
        margin-top: 8px;
    }
    
    .social-link {
        margin: 0 4px;
    }
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: "\e151";
}

a.desc:after {
    content: "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view td {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/* ========================================
   通用页面样式 - IoT 科技风格
   ======================================== */

/* CSS 变量 */
:root {
    --page-primary: #0066cc;
    --page-primary-dark: #004d99;
    --page-primary-light: #e6f2ff;
    --page-accent: #4db8ff;
    --page-success: #00875a;
    --page-bg-dark: #1a2332;
    --page-bg-section: #f8fafc;
    --page-text-primary: #1a2332;
    --page-text-secondary: #5a6178;
    --page-border: #e2e8f0;
    --page-radius: 6px;
    --page-shadow: 0 4px 12px rgba(26, 49, 54, 0.1);
    --page-transition: all 0.25s ease;
}

/* 页面头部横幅 */
.page-header-banner {
    background: linear-gradient(135deg, #1a2332 0%, #243447 50%, #0d4a7a 100%);
    padding: 50px 0 40px;
    text-align: center;
    margin-top: -20px;
    margin-bottom: 40px;
    position: relative;
}

.page-header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 102, 204, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 204, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.page-header-banner .container {
    position: relative;
    z-index: 1;
}

.page-header-banner h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
}

.page-header-banner p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0;
}

/* 页面内容区 */
.page-content {
    padding: 30px 0 50px;
}

/* 左右布局高度对齐 */
.page-content > .container > .row {
    display: flex;
    flex-wrap: wrap;
}

.page-content > .container > .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* 侧边栏卡片堆叠自动填充 */
.page-content .col-md-4 .content-card:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* 响应式：移动端取消 Flex 对齐 */
@media (max-width: 767px) {
    .page-content > .container > .row {
        display: block;
    }
    
    .page-content > .container > .row > [class*="col-"] {
        display: block;
    }
}

/* 内容卡片 */
.content-card {
    background: #fff;
    border-radius: var(--page-radius);
    box-shadow: var(--page-shadow);
    padding: 30px;
    margin-bottom: 25px;
    border: 1px solid var(--page-border);
}

.content-card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--page-border);
}

.content-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--page-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
}

.content-card-title i {
    color: var(--page-primary);
    margin-right: 10px;
    font-size: 20px;
}

/* 表单样式 */
.form-modern .form-group {
    margin-bottom: 20px;
}

.form-modern .control-label {
    font-weight: 600;
    color: var(--page-text-primary);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-modern .form-control {
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--page-border);
    border-radius: var(--page-radius);
    background: #fff;
    transition: var(--page-transition);
}

.form-modern .form-control:focus {
    border-color: var(--page-primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}

.form-modern textarea.form-control {
    height: auto;
    min-height: 100px;
}

.form-modern .help-block {
    font-size: 12px;
    color: #dc3545;
    margin-top: 5px;
}

/* 按钮样式 */
.btn-modern {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--page-radius);
    transition: var(--page-transition);
    border: none;
    cursor: pointer;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--page-primary) 0%, #0088ff 100%);
    color: #fff;
}

.btn-modern-primary:hover {
    background: linear-gradient(135deg, var(--page-primary-dark) 0%, var(--page-primary) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.btn-modern-outline {
    background: transparent;
    color: var(--page-primary);
    border: 2px solid var(--page-primary);
}

.btn-modern-outline:hover {
    background: var(--page-primary);
    color: #fff;
}

/* 链接样式 */
.link-primary {
    color: var(--page-primary);
    text-decoration: none;
    transition: var(--page-transition);
}

.link-primary:hover {
    color: var(--page-primary-dark);
    text-decoration: underline;
}

/* 分隔线 */
.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--page-text-secondary);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--page-border);
}

.divider span {
    padding: 0 15px;
}

/* 特性列表 */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--page-border);
    display: flex;
    align-items: flex-start;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li i {
    color: var(--page-success);
    margin-right: 12px;
    margin-top: 3px;
}

/* 信息卡片 */
.info-card {
    background: var(--page-bg-section);
    border-radius: var(--page-radius);
    padding: 20px;
    margin-bottom: 15px;
}

.info-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--page-primary) 0%, #0088ff 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}

.info-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--page-text-primary);
    margin: 0 0 6px;
}

.info-card p {
    font-size: 13px;
    color: var(--page-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* 第三方登录 */
.social-login {
    margin-top: 20px;
}

.social-login-title {
    font-size: 13px;
    color: var(--page-text-secondary);
    margin-bottom: 15px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    margin-right: 10px;
    transition: var(--page-transition);
    text-decoration: none;
}

.social-btn-wechat {
    background: #07c160;
    color: #fff;
}

.social-btn-qq {
    background: #12b7f5;
    color: #fff;
}

.social-btn-weibo {
    background: #e6162d;
    color: #fff;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 验证码 */
.captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-wrapper img {
    border-radius: var(--page-radius);
    cursor: pointer;
}

.captcha-wrapper .form-control {
    flex: 1;
}

/* 错误提示 */
.alert-modern {
    padding: 14px 18px;
    border-radius: var(--page-radius);
    font-size: 14px;
    margin-bottom: 20px;
}

.alert-modern-danger {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

.alert-modern-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

/* 响应式 */
@media (max-width: 767px) {
    .page-header-banner {
        padding: 35px 0 30px;
        margin-bottom: 25px;
    }
    
    .page-header-banner h1 {
        font-size: 22px;
    }
    
    .content-card {
        padding: 20px;
    }
    
    .form-modern .form-control {
        height: 42px;
    }
    
    .btn-modern {
        width: 100%;
        padding: 14px 20px;
    }
}
