/* Modern Style for Jiuye Platform */
:root {
    /* Color Palette */
    --primary-color: #007AFF;
    --primary-hover: #0062cc;
    --secondary-color: #5856D6;
    --success-color: #34C759;
    --warning-color: #FF9500;
    --danger-color: #FF3B30;
    --info-color: #5AC8FA;
    
    /* Functional Colors */
    --bg-body: #F5F7FA;
    --bg-surface: #FFFFFF;
    --text-main: #1D1D1F;
    --text-secondary: #86868B;
    --text-light: #FFFFFF;
    --border-color: #E5E5EA;
    
    /* Spacing & Radius */
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Global */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utility Classes */
.container {
    width: var(--container-width);
    margin: 0 auto;
    padding: 0 0px;
}

.clear-float::after {
    content: "";
    display: block;
    clear: both;
}

.l { float: left; }
.r { float: right; }
.hide { display: none !important; }
.show { display: block !important; }

/* Header Section */
.header {
    background-color: var(--bg-surface);
    height: 90px;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 100;
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-logo {
    height: 60px;
    width: auto;
}

.search-bar-wrap {
    position: relative;
}

.search-bar {
    width: 280px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0 40px 0 20px;
    font-size: 14px;
    transition: all var(--transition-fast);
    background-color: var(--bg-body);
}

.search-bar:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    outline: none;
}

.wx-btn-wrap {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.icon-svg-search {
    font-size: 18px;
    color: var(--text-secondary);
}

/* Navigation */
.nav-wrap {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 56px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 90;
}

.nav-list {
    display: flex;
    height: 100%;
    width: var(--container-width);
    margin: 0 auto;
}

.nav-item {
    flex: 1;
    text-align: center;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.nav-link {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 500;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 56px;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.nav-item.curr {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* Sub Navigation */
.son-nav {
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    z-index: 80;
}

.nav-item:hover .son-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.son-link {
    display: block;
    padding: 12px 0;
    color: var(--text-main);
    font-size: 14px;
    transition: all var(--transition-fast);
}

.son-link:hover {
    background-color: var(--bg-body);
    color: var(--primary-color);
}

/* Banner Section */
.banner-wrap {
    margin-top: 20px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    height: 400px;
}

#focus-news {
    height: 100%;
    position: relative;
}

.focus-list, .focus-item {
    height: 100%;
    width: 100%;
}

.focus-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.focus-arrow .arrow-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    backdrop-filter: blur(4px);
}

.focus-arrow .arrow-icon:hover {
    background: rgba(0, 0, 0, 0.6);
}

.focus-arrow .arrow-icon img {
    width: 24px;
    height: 24px;
}

.arrow-left { left: 20px; }
.arrow-right { right: 20px; }

/* Function Buttons */
.fun-btns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px auto;
    padding: 0 !important;
    width: var(--container-width);
}

.fun-btns .btn {
    width: 100%;
    height: 100px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: var(--shadow-sm);
    color: var(--text-light);
    font-size: 18px;
    font-weight: 600;
}

.fun-btns .btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.fun-btns .circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    position: static;
}

.fun-btns .circle .iconfont {
    font-size: 28px;
    color: #fff;
}

.btn-red { background: linear-gradient(135deg, #FF6B6B, #EE5253); }
.btn-green { background: linear-gradient(135deg, #1DD1A1, #10AC84); }
.btn-blue { background: linear-gradient(135deg, #54A0FF, #2E86DE); }
.btn-yellow { background: linear-gradient(135deg, #FECA57, #FF9F43); }

/* Main Content Layout */
.row {
    margin-top: 30px;
}

.row-col-two, .row-col-three {
    display: flex;
    gap: 20px;
}

.row-left {
    flex: 0 0 280px;
}

.row-right {
    flex: 1;
}

/* Card Style */
.row-left, .news-wrap, .row-col-thr .row-center, .friend-link-item {
    background: var(--bg-surface);
    border: none;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--transition-fast);
}

.news-wrap:hover, .friend-link-item:hover {
    box-shadow: var(--shadow-md);
}

/* Section Titles */
.col-title, .row-title {
    height: 56px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: rgba(245, 247, 250, 0.5);
}

.col-title .title-txt, .row-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    border: none !important;
    padding: 0;
    margin-right: 20px;
    cursor: pointer;
    line-height: 56px;
    position: relative;
}

.col-title .title-txt.curr {
    color: var(--primary-color);
}

.col-title .title-txt.curr::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.link-more {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 0;
    float: none;
    font-weight: normal;
}

/* List Content */
.col-content {
    padding: 10px 0;
}

.content-item {
    padding: 12px 20px !important;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    transition: background-color var(--transition-fast);
}

.content-item:hover {
    background-color: var(--bg-body);
}

.content-item:last-child {
    border-bottom: none;
}

.content-item .mark {
    background-color: var(--bg-body);
    color: var(--text-secondary);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 15px;
    position: static;
    width: auto;
    height: auto;
    line-height: normal;
    border: 1px solid var(--border-color);
}
.content-item .mark::before { display: none; }

.content-txt-wrap {
    flex: 1;
    overflow: hidden;
    height: auto;
    line-height: normal;
}

.content-txt {
    padding: 0 !important;
    font-size: 14px;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
}

/* News Image & List */
.news-module {
    display: flex;
    height: 100%;
}

.news-img-list {
    flex: 1;
    width: auto;
    height: 250px;
    position: relative;
}

.news-img-item {
    width: 100%;
    height: 100%;
}

.news-img-item .img-link, .news-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-txt-list {
    flex: 0 0 280px;
    width: 280px !important;
    height: 250px;
    background-color: #FAFAFA;
    display: flex;
    flex-direction: column;
}

.news-txt-item {
    flex: 1;
    border-bottom: 1px solid var(--border-color);
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    height: auto;
}

.news-txt-item:last-child {
    border-bottom: none;
}

.news-txt-item:hover, .news-txt-item.curr {
    background-color: var(--bg-surface);
    color: var(--primary-color);
}

.news-txt-item.curr {
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
}
.news-txt-item.curr:before { display: none; }

.news-txt-item .news-link {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    display: block;
}

.news-title {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Date Widget */
#side_date {
    background: var(--bg-surface);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    min-height: 300px;
}

/* Recruitment List (Tags) */
.notice-content ul li {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    float: none;
    width: 100%;
}

.notice-content ul li:hover {
    background-color: var(--bg-body);
    transform: translateX(5px);
}

.notice-content ul li a {
    display: flex;
    align-items: flex-start;
    padding: 0;
    min-height: auto;
}

.notice-content ul li a .date {
    position: static;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background-color: var(--bg-body);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.notice-content ul li a .date .day-month {
    background: none;
    color: var(--text-secondary);
    font-size: 12px;
    height: auto;
    line-height: normal;
}

.notice-content ul li a .date .day {
    color: var(--text-main);
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    line-height: normal;
}

.content-wrap {
    flex: 1;
    width: auto;
}

.notice-content ul li a .title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 5px 0;
}

.notice-content ul li a .content {
    color: var(--text-secondary);
    font-size: 13px;
}

.item-time {
    position: static;
    margin-left: 15px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

.it-txt {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Fast Links */
.row-fast-link {
    background-color: var(--bg-surface);
    margin-top: 40px;
    padding: 60px 0;
    box-shadow: var(--shadow-sm);
}

.fast-link-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.fast-link-item {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-normal);
    margin: 0;
}

.fast-link-item:hover {
    transform: translateY(-10px);
}

.fast-link-item .iconfont {
    font-size: 32px;
    margin-bottom: 8px;
    padding: 0;
}

.fast-link {
    font-size: 13px;
    font-weight: 500;
}

/* Friend Links */
.row-friend-link {
    margin-top: 30px;
    padding: 20px;
}

.friend-link-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.friend-link-item {
    width: auto;
    height: auto;
    margin: 0;
    float: none;
    border: 1px solid var(--border-color);
}

.friend-link-img {
    height: 50px;
    object-fit: contain;
    padding: 10px;
    background: #fff;
}

.friend-link-txt {
    border-top: 1px solid var(--border-color);
    background: var(--bg-body);
    font-size: 12px;
    color: var(--text-secondary);
    height: 30px;
    line-height: 30px;
}

/* Footer */
.footer-wrap {
    background-color: #2C3E50;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 60px;
    padding-bottom: 20px;
}

.footer-wrap .bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-wrap .bottom .col-us,
.footer-wrap .bottom .us,
.footer-wrap .bottom .code-img {
    float: none; /* Reset float */
}

.footer-wrap .col-us {
    flex: 0 0 250px;
}

.footer-wrap .us {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 0 40px;
}

.footer-wrap .us .about-us,
.footer-wrap .us .contact-us {
    float: none;
}

.footer-wrap .code-img {
    flex: 0 0 200px;
    display: flex;
    justify-content: flex-end;
}

.bottom .ii-tit {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.bottom .ii-text {
    font-size: 13px;
    margin: 8px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

.bottom-logo {
    max-width: 100%;
    height: auto;
}

.bottom-r-logo {
    border-radius: 4px;
}

.footer-txt {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 15px;
    text-align: center;
}

.footer-label {
    margin: 0 10px;
    display: inline-block;
}

/* Responsive fixes for new layout */
@media (max-width: 1200px) {
    :root {
        --container-width: 100%;
    }
    
    .fun-btns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .row-col-two, .row-col-three {
        flex-direction: column;
    }
    
    .row-left {
        width: 100%;
    }
    
    .news-module {
        flex-direction: column;
    }
    
    .news-img-list, .news-txt-list {
        width: 100% !important;
        flex: none;
    }
}
