<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>终身免费看小说</title>
    <style>
        html,
        body {
            margin: 0 auto;
            padding: 0;
            max-width: 450px;
            font-size: 100px;
            background: #ff572a;
        }

        p {
            margin: 0;
            padding: 0;
            text-align: center;
        }

        .main_box {
            font-size: 0;
            position: relative;
        }

        .main_box img {
            width: 100%;
        }

        .main_box .box {
            position: relative;
            background: #fef7e9;
            margin: 0 .1rem;
            padding: .2rem .1rem;
            top: -.35rem;
            border-radius: .2rem;
        }

        .main_box .intro {
            font-size: 0.16rem;
            font-weight: bold;
            color: #c9391c;
            padding: 0.06rem;
            text-align: center;
        }

        .main_box .weight {
            font-size: .18rem;
            color: #ff572a;
            font-weight: bold;
        }

        .to-buy {
            display: block;
            width: 90%;
            margin: 0.1rem auto;
            background: #ff572a;
            color: #fff;
            font-size: .18rem;
            font-weight: bolder;
            text-align: center;
            text-decoration: none;
            border-radius: .3rem;
            padding: .1rem 0;
        }
        .over{
            background:#CCCCCC;
        }

        .intro span {
            font-size: 0.16rem;
            display: block;
        }

        .intro span.weight {
            font-weight: bolder;
            margin-top: 0.05rem;
        }

        .main_box .coupon {
            width: 90%;
            margin: 0 auto;
        }

        .main_box .gray {
            color: #b4b4b4;
            font-size: 0.14rem;
        }

        .main_box .gray span {
            color: #ff3728;
            font-weight: bolder;
        }

        .main_box .strong {
            font-size: 0.16rem;
            font-weight: 800;
            color: #fe7b27;
            margin: 0.1rem;
        }

        .book-list {
            padding: 0 .2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .book-list .book-item {
            width: 30%;
            font-size: .14rem;
        }

        .book-item p {
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            color: #999;
        }

        .count-down {
            font-size: .14rem;
            text-align: center;
            background: #ffece2;
            padding: .1rem 0;
            margin: 0 .2rem .2rem;
            color: #c9391c;
        }

        .count-down .time {
            display: inline-block;
            background: #ff572a;
            color: #fff;
            width: .2rem;
            height: .2rem;
            border-radius: 3px;
            margin-right: .05rem;
        }

        .banner-box {
            width: 80%;
            margin: .2rem auto;
        }

        .d-none {
            display: none;
        }
    </style>
</head>

<body>
<main class="main_box">
    <div class="banner">
        <img src="https://cdn-novel.iycdm.com//h5/activity-forever/banner.jpg" alt="">
    </div>
    <div class="box">
        <div class="count-down">
            活动倒计时：<span class="time">{{$time['day']}}</span>天
            <span class="time">{{$time['hour']}}</span>时
            <span class="time">{{$time['minute']}}</span>分
            <span class="time">{{$time['second']}}</span>秒
        </div>
        <div class="coupon-box">
            <p class="intro">看一辈子的小说需要多少钱？</p>
            <p class="intro">普通人花费上千上万元，而你</p>
            <p class="weight">只要68元！</p>
            <p class="intro">即可承包你下半辈子的小说！！！</p>
        </div>
        @if($code == 0)
            <a href="{{$url}}" class="to-buy">立即订购</a>
        @else
            <a href="#" class="to-buy over">活动过期</a>
        @endif

        <div class="banner-box">
            <img src="https://cdn-novel.iycdm.com/h5/activity-forever/1.png" alt="">
        </div>
        <div class="book-list">
            @foreach($books as $v)
                <div class="book-item">
                    <img src="{{$v['cover_url']}}" alt="">
                    <p>{{$v['book_name']}}</p>
                </div>
            @endforeach
        </div>
        <div class="banner-box" style="width:100%;margin-bottom:0">
            <img src="https://cdn-novel.iycdm.com/h5/activity-forever/2.png" alt="">
        </div>
    </div>
</main>
</body>

</html>