        *{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f4f7f6;
    font-family:"Segoe UI",sans-serif;
    padding:15px;
}
        .container{
    width:100%;
    max-width:1100px;
    margin:20px auto;
    background:#fff;
    border-radius:12px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}
        h2 {
            margin-top: 0;
            color: #333;
            text-align: center;
            margin-bottom: 20px;
        }
        /* 頂部數據統計看板樣式 */
        .dashboard {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin-bottom: 25px;
        }
        .stat-card {
            background: #fafafa;
            border-radius: 6px;
            padding: 15px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            border-top: 4px solid #6c757d;
        }
        .stat-card.today { border-top-color: #007bff; }
        .stat-card.seven { border-top-color: #dc3545; }
        .stat-card.thirty { border-top-color: #ffc107; }
        .stat-card.total { border-top-color: #28a745; }
        
        .stat-title {
            font-size: 0.9em;
            color: #666;
            margin-bottom: 5px;
        }
        .stat-value {
            font-size: 1.4em;
            font-weight: bold;
            color: #333;
        }
        
        /* 操作按鈕置頂區塊 */
        .action-top {
            margin-bottom: 15px;
            display: flex;
            justify-content: flex-start;
        }
        
        /* 表格與按鈕樣式 */
        table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
        }
        th, td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: center;
        }
        th {
            background-color: #343a40;
            color: white;
        }
        input {
            width: 90%;
            padding: 6px;
            border: 1px solid #ccc;
            border-radius: 4px;
            box-sizing: border-box;
            text-align: center;
        }
        input:focus {
            outline: none;
            border-color: #007bff;
        }
        button {
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-weight: bold;
        }
        .btn-add {
            background-color: #007bff;
            color: white;
        }
        .btn-add:hover {
            background-color: #0069d9;
        }
        .btn-delete {
            background-color: #dc3545;
            color: white;
            padding: 5px 10px;
        }
        .btn-delete:hover {
            background-color: #c82333;
        }
        .jianjie{
    max-width:1100px;
    margin:20px auto;
    background:#fff;
    border-radius:10px;
    box-shadow:0 4px 8px rgba(0,0,0,.1);
    overflow:hidden;
}

/* ===== 輪播圖片 ===== */

.lunbo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
/* ===== 標題 ===== */

.biaoti{
    width:100%;
    max-width:1100px;
    margin:20px auto;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;

    padding:18px 25px;

    background:linear-gradient(135deg,#ffffff,#f7fbff);

    border:2px solid #1e88e5;
    border-radius:14px;

    box-shadow:
        0 8px 25px rgba(30,136,229,.15),
        inset 0 0 0 1px rgba(255,255,255,.7);

    transition:.3s;
}

.biaoti:hover{
    transform:translateY(-2px);
    box-shadow:
        0 12px 30px rgba(30,136,229,.25);
}

.biaoti .icon{
    font-size:28px;
    flex-shrink:0;
}

.biaoti p{
    margin:0;
    font-size:18px;
    font-weight:500;
    color:#333;
    line-height:1.8;
}

.biaoti strong{
    color:#0d47a1;
    font-size:20px;
}

.biaoti .link{
    display:inline-block;
    margin-left:10px;
    padding:4px 12px;
    border-radius:20px;

    background:#1e88e5;
    color:#fff;
    font-size:15px;
    font-weight:600;
}

.biaoti .link:hover{
    background:#1565c0;
    cursor:pointer;
}


/* ===== 簡介 ===== */

.jianjie{
    padding:25px;
}

.jianjie p{
    font-size:16px;
    line-height:2;
}
.Anh{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.lunbo{

    width:100%;
    max-width:1100px;
    height:320px;

    margin:20px auto;

    position:relative;

    overflow:hidden;

    border-radius:12px;

    box-shadow:0 5px 15px rgba(0,0,0,.15);

}

.slider{

    width:100%;
    height:100%;
    position:relative;

}

.slide{

    position:absolute;

    width:100%;
    height:100%;

    object-fit:cover;

    opacity:0;

    transition:opacity .8s;

}

.slide.active{

    opacity:1;

}

/* Nút */

.prev,
.next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:45px;
    height:45px;

    border:none;

    border-radius:50%;

    background:rgba(0,0,0,.4);

    color:#fff;

    cursor:pointer;

    font-size:22px;

    z-index:5;

}

.prev{

    left:15px;

}

.next{

    right:15px;

}

.prev:hover,
.next:hover{

    background:rgba(0,0,0,.7);

}

/* Dots */

.dots{

    position:absolute;

    bottom:15px;

    left:50%;

    transform:translateX(-50%);

    display:flex;

    gap:10px;

}

.dot{

    width:12px;

    height:12px;

    border-radius:50%;

    background:#fff;

    opacity:.4;

    cursor:pointer;

}

.dot.active{

    opacity:1;

    background:#007bff;

}
/*=============================
Responsive Table
==============================*/

.table-wrapper{

    width:100%;

    overflow-x:auto;

    -webkit-overflow-scrolling:touch;

}

.finance-table{

    width:100%;

    min-width:900px;

    border-collapse:collapse;

}

.finance-table th,
.finance-table td{

    white-space:nowrap;

}
.win-text{
    color:red !important;
    font-weight:bold;
}

.lose-text{
    color:black !important;
    font-weight:bold;
}
/* 贏 */
.result-win{
    color:#ff0000;
    font-weight:bold;
}

/* 輸 */
.result-lose{
    color:#000;
    font-weight:bold;
}
/*=========================
        FOOTER
=========================*/

.footer{

    max-width:1100px;
    margin:35px auto;

    background:#ffffff;

    border-radius:12px;

    border:1px solid #e5e7eb;

    box-shadow:0 5px 18px rgba(0,0,0,.08);

}

.footer-container{

    display:grid;

    grid-template-columns:2fr 1fr 1fr 1fr;

    gap:40px;

    padding:40px;

}

.footer-col h3{

    margin-bottom:18px;

    font-size:20px;

    color:#1e88e5;

}

.footer-logo{

    font-size:32px;

    color:#1e88e5;

    margin-bottom:15px;

}

.footer-col p{

    line-height:1.9;

    color:#d8d8d8;

}

.footer-col ul{

    list-style:none;

    padding:0;

}

.footer-col ul li{

    margin-bottom:12px;

}

.footer-col ul li a{

    color:#d8d8d8;

    text-decoration:none;

    transition:.3s;

}

.footer-col ul li a:hover{

    color:#1e88e5;

}

.social{

    display:flex;

    flex-direction:column;

    gap:12px;

}

.social a{

    color:#fff;

    text-decoration:none;

    background:#1e88e5;

    padding:10px 16px;

    border-radius:25px;

    text-align:center;

    transition:.3s;

}

.social a:hover{

    background:#1565c0;

}

.footer-bottom{

    border-top:1px solid rgba(255,255,255,.1);

    text-align:center;

    padding:18px;

    font-size:14px;

    color:#aaa;

}
.date-mobile{
    display:none;
}

.date-pc{
    display:inline;
}
@media(max-width:768px){

.container{

    width:95%;

    padding:15px;

}

.dashboard{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px;

}

.stat-card{

    min-width:auto;

}

.btn-add{

    width:100%;

}
/* ==============================
   Dòng thắng
================================ */

.row-win{

    background:#ecfff2;

}

/* ==============================
   Dòng thua
================================ */

.row-lose{

    background:#fff1f1;

}

/* ==============================
   Hover
================================ */

.finance-table tbody tr:hover{

    background:#fff8d8;

    transition:.2s;

}

/* ==============================
   Lợi nhuận dương
================================ */

.profit-win{

    color:#0a9b3d;

    font-weight:bold;

    font-size:16px;

}

/* ==============================
   Lợi nhuận âm
================================ */

.profit-lose{

    color:#d80027;

    font-weight:bold;

    font-size:16px;

}
.table-wrapper{
    overflow-x:hidden;
}

.finance-table{
    width:100%;
    min-width:100%;
}

.finance-table th,
.finance-table td{
    white-space:normal;
    font-size:12px;
    padding:6px 4px;
}
.win-text{
    color:red !important;
    font-weight:bold;
}

.lose-text{
    color:black !important;
    font-weight:bold;
}
/* 贏 */
.result-win{
    color:#ff0000;
    font-weight:bold;
}

/* 輸 */
.result-lose{
    color:#000;
    font-weight:bold;
}
.lunbo{
        height:220px;
    }

    .slide{
        object-fit:contain;
        background:#000;   /* hoặc #fff */
    }
@media (max-width:768px){

.footer-container{

    grid-template-columns:1fr;

    text-align:center;

    gap:25px;

}

.footer-logo{

    font-size:28px;

}

.footer-col h3{

    margin-bottom:10px;

}

.social{

    align-items:center;

}

.social a{

    width:220px;

}

.footer-bottom{

    font-size:11px;

    line-height:1.5;

}
.date-pc{
    display:none;
}

.date-mobile{
    display:inline;
}
}

