/* 简化版首页样式 */
:root {
    --primary-color: #ff5a05;
    --primary-dark-color: #e85100;
    --primary-light-color: #ff7a37;
    --text-color: #333;
    --text-light-color: #fff;
    --bg-light-color: #f5f5f5;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.page-home-index {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFangSC-Regular", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(135deg, var(--primary-light-color) 0%, var(--primary-color) 100%);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body.page-home-index::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

body.page-home-index::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-30%, 30%);
    z-index: 0;
}

/* 头部用户图标 */
.header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.header .user .icon {
    font-size: 24px;
    color: #fff;
}

/* 主要内容区 */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 0 60px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
}

/* Logo 区域 */
.logo-container {
    margin-bottom: 40px;
    text-align: center;
    animation: fadeIn 1s ease;
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background-image: url('/static/images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.site-title {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

/* 装饰元素 */
.decorative-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.element-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    animation: float 8s infinite ease-in-out;
}

.element-2 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 8%;
    animation: float 10s infinite ease-in-out 1s;
}

.element-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 20%;
    animation: float 6s infinite ease-in-out 0.5s;
}

/* 搜索区域 */
.search-container {
    width: 90%;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease;
}

.search-form {
    display: flex;
    background-color: #fff;
    border-radius: 30px;
    overflow: hidden;
    padding: 5px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow 0.3s, transform 0.3s;
}

.search-form:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px);
}

.search-form input.word {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    color: #333;
    background: transparent;
}

.search-form input.word:focus {
    outline: none;
}

.search-form .btn-submit {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form .btn-submit:hover {
    background-color: var(--primary-dark-color);
}

.search-form .btn-submit .icon {
    font-size: 20px;
    vertical-align: middle;
}

.search-tips {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 最新发布源码列表 */
.latest-sources {
    width: 90%;
    max-width: 700px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease 0.3s both;
}

.latest-title {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.latest-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 40px;
    height: 3px;
    background-color: #fff;
    transform: translateX(-50%);
    border-radius: 2px;
}

.source-list {
    margin-bottom: 15px;
}

.source-item {
    display: flex;
    align-items: center;
    padding: 12px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.source-item:last-child {
    border-bottom: none;
}

.source-item:hover {
    transform: translateX(5px);
}

.source-date {
    flex: 0 0 50px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.source-info {
    flex: 1;
    display: flex;
    align-items: center;
}

.source-name {
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.source-name:hover {
    color: rgba(255, 255, 255, 0.8);
}

.source-tag {
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.source-tag.hot {
    background-color: rgba(255, 90, 5, 0.7);
}

.source-tag.new {
    background-color: rgba(0, 150, 255, 0.7);
}

.source-price {
    flex: 0 0 60px;
    text-align: right;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.source-more {
    text-align: center;
    padding-top: 10px;
}

.more-btn {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s;
}

.more-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.more-btn .icon {
    font-size: 14px;
    margin-left: 5px;
}

/* 底部区域 */
.site-footer {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    padding: 30px 0 20px;
    z-index: 2;
    position: relative;
    flex-shrink: 0;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    margin-bottom: 20px;
}

.footer-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-block {
    flex: 1;
    min-width: 250px;
    padding: 0 15px;
    margin-bottom: 20px;
}

.footer-block h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-block p {
    line-height: 1.6;
    font-size: 14px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.contact-info .icon {
    margin-right: 8px;
    font-size: 16px;
    color: var(--primary-color);
}

.links-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.friend-links .link-list {
    display: flex;
    flex-wrap: wrap;
}

.friend-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-right: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    transition: color 0.3s;
}

.friend-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* 动画效果 */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 992px) {
    .footer-block {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .search-form input.word {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .search-form .btn-submit {
        padding: 8px 15px;
    }
    
    .site-title {
        font-size: 22px;
    }
    
    body.page-home-index::before,
    body.page-home-index::after {
        width: 150px;
        height: 150px;
    }
    
    .latest-sources {
        width: 95%;
    }
    
    .source-name {
        max-width: 200px;
    }
} 