/* home.css */
:root {
    --bg-color: #e0e5ec;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --text-color: #5a626e;
    --transition-speed: 0.5s;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--bg-color);
    font-family: 'Arial', sans-serif;
    margin: 0;
    overflow: hidden;
}

.container {
    text-align: center;
}

.title {
    font-size: 2.5rem;
    color: #a0a5a8;
    margin-bottom: 50px;
    text-shadow: 1px 1px 1px var(--shadow-light), -1px -1px 1px var(--shadow-dark);
}

.card-container {
    display: flex;
    gap: 40px;
}

.card {
    position: relative;
    width: 260px;
    height: 80px;
    border-radius: 50px;
    background-color: var(--bg-color);
    box-shadow: 9px 9px 16px var(--shadow-dark), -9px -9px 16px var(--shadow-light);
    cursor: pointer;
    transition: all var(--transition-speed) cubic-bezier(0.65, 0, 0.35, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.card.expanded {
    width: 350px;
    height: 200px;
    border-radius: 20px;
    cursor: default;
    align-items: flex-start;
    box-shadow: 12px 12px 20px var(--shadow-dark), -12px -12px 20px var(--shadow-light);
}

.card-title {
    font-size: 1.2rem;
    color: var(--text-color);
    transition: all var(--transition-speed) cubic-bezier(0.65, 0, 0.35, 1);
    margin: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.card.expanded .card-title {
    top: 25px;
    font-size: 1.4rem;
}

.card-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s 0.3s;
    margin-top: 80px;
    text-align: center;
}

.card.expanded .card-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.card-content p {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1rem;
    color: var(--text-color);
}

.card-content a {
    text-decoration: none;
    color: #8a5a00;
    padding: 10px 25px;
    border-radius: 20px;
    background: rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1), -2px -2px 4px rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    font-weight: bold;
}

.card-content a:hover {
    background: rgba(255, 215, 0, 0.3);
    box-shadow: 3px 3px 6px rgba(0,0,0,0.15), -3px -3px 6px rgba(255,255,255,0.8);
}

.card-content a:active {
     background: rgba(255, 215, 0, 0.15);
     box-shadow: inset 2px 2px 4px rgba(0,0,0,0.15), inset -2px -2px 4px rgba(255,255,255,0.6);
}

/* 禁止复制样式 */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* 禁用拖拽 */
* {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* 开发者详情横条样式 */
.developer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-color);
    box-shadow: 0 -5px 15px var(--shadow-dark);
    z-index: 1000;
    transition: all 0.3s ease;
}

.developer-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 0.9rem;
    gap: 10px;
    background-color: var(--bg-color);
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    transition: all 0.3s ease;
}

.developer-toggle:hover {
    box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
}

.toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.developer-bar.expanded .toggle-icon {
    transform: rotate(180deg);
}

.developer-card {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--bg-color);
}

.developer-bar.expanded .developer-card {
    max-height: 200px;
}

.developer-info {
    padding: 20px;
    text-align: center;
}

.developer-info h3 {
    margin: 0 0 15px 0;
    color: var(--text-color);
    font-size: 1.2rem;
}

.developer-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.developer-item {
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 45px;
    line-height: 1.2;
}

/* 开发者信息中的按钮样式 */
.developer-item .btn {
    display: inline-block;
    text-decoration: none;
    color: #5a626e;
    background: var(--bg-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 5px;
    box-shadow: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.developer-item .btn:hover {
    box-shadow: 6px 6px 12px var(--shadow-dark), -6px -6px 12px var(--shadow-light);
    transform: translateY(-1px);
}

.developer-item .btn:active {
    box-shadow: inset 3px 3px 6px var(--shadow-dark), inset -3px -3px 6px var(--shadow-light);
    transform: translateY(0);
}

/* 移动端适配 */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 20px 0;
    }

    .container {
        padding: 0 20px;
    }

    .title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .card-container {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .card {
        width: 100%;
        max-width: 300px;
        height: 70px;
        margin: 0 auto;
    }

    .card.expanded {
        width: 100%;
        max-width: 320px;
        height: 200px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card.expanded .card-title {
        font-size: 1.2rem;
    }

    .card-content {
        margin-top: 60px;
    }

    .card-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .card-content a {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .developer-details {
        grid-template-columns: 1fr;
    }

    .developer-item {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .developer-item .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        margin-top: 3px;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .card {
        max-width: 280px;
        height: 65px;
    }

    .card.expanded {
        max-width: 300px;
        height: 180px;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card.expanded .card-title {
        font-size: 1.1rem;
        top: 20px;
    }

    .card-content {
        margin-top: 55px;
    }

    .card-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .card-content a {
        padding: 6px 18px;
        font-size: 0.85rem;
    }

    .developer-toggle {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .developer-info h3 {
        font-size: 1.1rem;
    }

    .developer-item {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* 超小屏幕适配 */
@media (max-width: 360px) {
    .title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .card {
        max-width: 260px;
        height: 60px;
    }

    .card.expanded {
        max-width: 280px;
        height: 170px;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card.expanded .card-title {
        font-size: 1rem;
    }

    .card-content p {
        font-size: 0.8rem;
    }

    .card-content a {
        padding: 5px 15px;
        font-size: 0.8rem;
    }
}

/* 横屏适配 */
@media (max-height: 600px) and (orientation: landscape) {
    body {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 10px 0;
    }

    .title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .card-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .card {
        width: 200px;
        height: 60px;
    }

    .card.expanded {
        width: 280px;
        height: 160px;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .card {
        /* 增加触摸区域 */
        min-height: 60px;
    }

    .card-content a {
        /* 增加按钮触摸区域 */
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .developer-toggle {
        /* 增加触摸区域 */
        min-height: 44px;
    }
}
