/* 基礎重置與動畫定義 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft JhengHei", sans-serif;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
    100% { left: 125%; }
}

body {
    background-color: #f4f4f4; /* 回歸簡約淡灰色 */
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 30px 30px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.wrapper {
    width: 100%;
    max-width: 850px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

/* Logo 區 */
.logo-container {
    margin-bottom: 30px;
}

.main-logo {
    max-width: 380px;
    height: auto;
}

h3 {
    color: #555;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* 會員區塊 - 還原綠色與橘色 */
.member-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.btn-main {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    /* 立體陰影效果 */
    box-shadow: 0 10px 0 rgba(0,0,0,0.1), 0 15px 25px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.btn-main:active {
    transform: translateY(4px);
    box-shadow: 0 5px 0 rgba(0,0,0,0.1);
}

.btn-main:hover {
    transform: translateY(-5px) scale(1.02);
    filter: brightness(1.05);
}

/* 會員按鈕配色 - 參考設計圖漸層 */
.btn-green { background: linear-gradient(to bottom, #89c152, #4e912f); }
.btn-orange { background: linear-gradient(to bottom, #ffc052, #f58220); }

/* 活動專區 - 還原六色 */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.btn-event {
    height: 95px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    border-radius: 4px;
    padding: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    transition: all 0.3s;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.15);
}

.btn-event:hover {
    transform: scale(1.03);
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.15), 0 8px 15px rgba(0,0,0,0.1);
}

/* 具體配色還原 */
.color-orange { background-color: #f7941d; } /* 長庚大學 */
.color-green { background-color: #228b22; }  /* 長庚科大 */
.color-red { background-color: #d71920; }    /* 明志科大 */
.color-navy { background-color: #1a3668; }   /* 股東專區 */
.color-blue { background-color: #4eb9e6; }   /* 加油金 */
.color-purple { background-color: #7b5da7; } /* 富邦 */

/* 分隔線動畫 */
.divider {
    border: 0;
    height: 1px;
    background: #ccc;
    margin: 30px auto;
    width: 95%;
}

/* 頁尾 */
footer {
    margin-top: 50px;
    padding-bottom: 20px;
    color: #888;
    font-size: 12px;
}

/* 滑過發光動畫 */
.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-25deg);
}

.shine-effect:hover::before {
    animation: shine 0.6s;
}

/* 手機版適配 */
@media (max-width: 600px) {
    .event-grid { grid-template-columns: repeat(2, 1fr); }
    .member-grid { flex-direction: column; align-items: center; }
}